b3b9e33af5bcea02237fe29ff3a78651efe5f7f4
[gnulib.git] / ChangeLog
1 2012-03-01  Bruno Haible  <bruno@clisp.org>
2
3         Tests for module 'expf-ieee'.
4         * modules/expf-ieee-tests: New file.
5         * tests/test-expf-ieee.c: New file.
6         * tests/test-exp-ieee.h: New file.
7
8         New module 'expf-ieee'.
9         * modules/expf-ieee: New file.
10
11 2012-02-29  Bruno Haible  <bruno@clisp.org>
12
13         cbrtl-ieee: Work around test failure on IRIX 6.5.
14         * m4/cbrtl-ieee.m4: New file.
15         * m4/cbrtl.m4 (gl_FUNC_CBRTL): If gl_FUNC_CBRTL_IEEE is present,
16         test whether cbrtl works with a minus zero argument. Replace it if not.
17         * lib/math.in.h (cbrtl): Override if REPLACE_CBRTL is 1.
18         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTL.
19         * modules/math (Makefile.am): Substitute REPLACE_CBRTL.
20         * modules/cbrtl (configure.ac): Consider REPLACE_CBRTL.
21         (Depends-on): Update conditions.
22         * modules/cbrtl-ieee (Files): Add m4/cbrtl-ieee.m4, m4/minus-zero.m4,
23         m4/signbit.m4.
24         (configure.ac): Invoke gl_FUNC_CBRTL_IEEE.
25         * lib/cbrtl.c (cbrtl) [IRIX]: Avoid an unnecessary addition.
26         * doc/posix-functions/cbrtl.texi: Mention the cbrtl-ieee module.
27
28         Tests for module 'cbrtl-ieee'.
29         * modules/cbrtl-ieee-tests: New file.
30         * tests/test-cbrtl-ieee.c: New file.
31
32         New module 'cbrtl-ieee'.
33         * modules/cbrtl-ieee: New file.
34
35         Tests for module 'cbrt-ieee'.
36         * modules/cbrt-ieee-tests: New file.
37         * tests/test-cbrt-ieee.c: New file.
38
39         New module 'cbrt-ieee'.
40         * modules/cbrt-ieee: New file.
41
42         Tests for module 'cbrtf-ieee'.
43         * modules/cbrtf-ieee-tests: New file.
44         * tests/test-cbrtf-ieee.c: New file.
45         * tests/test-cbrt-ieee.h: New file.
46
47         New module 'cbrtf-ieee'.
48         * modules/cbrtf-ieee: New file.
49
50 2012-02-29  Bruno Haible  <bruno@clisp.org>
51
52         cbrtf: Work around bug in IRIX 6.5 system function.
53         * lib/math.in.h (cbrtf): Override if REPLACE_CBRTF is 1.
54         * m4/cbrtf.m4 (gl_FUNC_CBRTF_WORKS): New macro.
55         (gl_FUNC_CBRTF): Invoke it. Set REPLACE_CBRTF to 1 if cbrtf() does not
56         work.
57         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTF.
58         * modules/math (Makefile.am): Substitute REPLACE_CBRTF.
59         * modules/cbrtf (configure.ac): Consider REPLACE_CBRTF.
60         (Depends-on): Update conditions.
61         * doc/posix-functions/cbrtf.texi: Mention the IRIX 6.5 problem.
62
63 2012-02-29  Bruno Haible  <bruno@clisp.org>
64
65         Tests for module 'cbrtl'.
66         * modules/cbrtl-tests: New file.
67         * tests/test-cbrtl.c: New file.
68
69         New module 'cbrtl'.
70         * lib/math.in.h (cbrtl): New declaration.
71         * lib/cbrtl.c: New file.
72         * m4/cbrtl.m4: New file.
73         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtl is declared.
74         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTL, HAVE_CBRTL,
75         HAVE_DECL_CBRTL.
76         * modules/math (Makefile.am): Substitute GNULIB_CBRTL, HAVE_CBRTL,
77         HAVE_DECL_CBRTL.
78         * modules/cbrtl: New file.
79         * tests/test-math-c++.cc: Check the declaration of cbrtl.
80         * doc/posix-functions/cbrtl.texi: Mention the new module.
81
82 2012-02-29  Bruno Haible  <bruno@clisp.org>
83
84         Tests for module 'cbrtf'.
85         * modules/cbrtf-tests: New file.
86         * tests/test-cbrtf.c: New file.
87
88         New module 'cbrtf'.
89         * lib/math.in.h (cbrtf): New declaration.
90         * lib/cbrtf.c: New file.
91         * m4/cbrtf.m4: New file.
92         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtf is declared.
93         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTF, HAVE_CBRTF,
94         HAVE_DECL_CBRTF.
95         * modules/math (Makefile.am): Substitute GNULIB_CBRTF, HAVE_CBRTF,
96         HAVE_DECL_CBRTF.
97         * modules/cbrtf: New file.
98         * tests/test-math-c++.cc: Check the declaration of cbrtf.
99         * doc/posix-functions/cbrtf.texi: Mention the new module.
100
101 2012-02-29  Bruno Haible  <bruno@clisp.org>
102
103         cbrt: Provide replacement on MSVC and Minix.
104         * lib/math.in.h (cbrt): New declaration.
105         * lib/cbrt.c: New file.
106         * m4/cbrt.m4: New file.
107         * m4/math_h.m4 (gl_MATH_H): Test whether cbrt is declared.
108         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRT, HAVE_CBRT.
109         * modules/math (Makefile.am): Substitute GNULIB_CBRT, HAVE_CBRT.
110         * modules/cbrt (Files): Add lib/cbrt.c, m4/cbrt.m4.
111         (Depends-on): Add dependencies.
112         (configure.ac): Arrange to compile replacement if HAVE_CBRT is 0.
113         * tests/test-math-c++.cc: Check the declaration of cbrt.
114         * doc/posix-functions/cbrt.texi: Mention that the module provides a
115         replacement.
116
117 2012-02-29  Bruno Haible  <bruno@clisp.org>
118
119         hypotl-ieee: Work around test failure on OSF/1 and native Windows.
120         * m4/hypotl-ieee.m4: New file.
121         * m4/hypotl.m4 (gl_FUNC_HYPOTL): If gl_FUNC_HYPOTL_IEEE is present,
122         test whether hypotl works with mixed NaN and Infinity arguments.
123         Replace it if not.
124         * lib/math.in.h (hypotl): Override if REPLACE_HYPOTL is 1.
125         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_HYPOTL.
126         * modules/math (Makefile.am): Substitute REPLACE_HYPOTL.
127         * modules/hypotl (configure.ac): Consider REPLACE_HYPOTL.
128         (Depends-on): Update conditions.
129         * modules/hypotl-ieee (Files): Add m4/hypotl-ieee.m4.
130         (Depends-on): Add hypot-ieee.
131         (configure.ac): Invoke gl_FUNC_HYPOTL_IEEE.
132         * doc/posix-functions/hypotl.texi: Mention the hypotl-ieee module.
133
134         hypotf-ieee: Work around test failure on OSF/1 and native Windows.
135         * m4/hypotf-ieee.m4: New file.
136         * m4/hypotf.m4 (gl_FUNC_HYPOTF): If gl_FUNC_HYPOTF_IEEE is present,
137         test whether hypotf works with mixed NaN and Infinity arguments.
138         Replace it if not.
139         * modules/hypotf-ieee (Files): Add m4/hypotf-ieee.m4.
140         (Depends-on): Add hypot-ieee.
141         (configure.ac): Invoke gl_FUNC_HYPOTF_IEEE.
142         * doc/posix-functions/hypotf.texi: Mention the hypotf-ieee module.
143
144         hypot-ieee: Work around test failure on OSF/1 and native Windows.
145         * lib/math.in.h (hypot): New declaration.
146         * lib/hypot.c: New file.
147         * m4/hypot-ieee.m4: New file.
148         * m4/hypot.m4 (gl_FUNC_HYPOT): If gl_FUNC_HYPOT_IEEE is present, test
149         whether hypot works with mixed NaN and Infinity arguments. Replace it
150         if not.
151         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOT,
152         REPLACE_HYPOT.
153         * modules/math (Makefile.am): Substitute GNULIB_HYPOT, REPLACE_HYPOT.
154         * modules/hypot (Files): Add lib/hypot.c.
155         (Depends-on): Add dependencies.
156         (configure.ac): Arrange to compile replacement if REPLACE_HYPOT is 1.
157         * modules/hypot-ieee (Files): Add m4/hypot-ieee.m4.
158         (configure.ac): Invoke gl_FUNC_HYPOT_IEEE.
159         * tests/test-math-c++.cc: Check the declaration of hypot.
160         * doc/posix-functions/hypot.texi: Mention the hypot-ieee module.
161
162         Tests for module 'hypotl-ieee'.
163         * modules/hypotl-ieee-tests: New file.
164         * tests/test-hypotl-ieee.c: New file.
165
166         New module 'hypotl-ieee'.
167         * modules/hypotl-ieee: New file.
168
169         Tests for module 'hypot-ieee'.
170         * modules/hypot-ieee-tests: New file.
171         * tests/test-hypot-ieee.c: New file.
172
173         New module 'hypot-ieee'.
174         * modules/hypot-ieee: New file.
175
176         Tests for module 'hypotf-ieee'.
177         * modules/hypotf-ieee-tests: New file.
178         * tests/test-hypotf-ieee.c: New file.
179         * tests/test-hypot-ieee.h: New file.
180
181         New module 'hypotf-ieee'.
182         * modules/hypotf-ieee: New file.
183
184 2012-02-29  Bruno Haible  <bruno@clisp.org>
185
186         Remove unused variables.
187         * m4/fmod.m4 (gl_FUNC_FMOD): Remove unused variable 'i'.
188         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
189         * m4/remainder.m4 (gl_FUNC_REMAINDER): Likewise.
190         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
191
192 2012-02-29  Eric Blake  <eblake@redhat.com>
193
194         termios: fix pid_t always, not just for tcgetsid
195         * doc/posix-headers/termios.texi (termios.h): Mention problem.
196         * lib/termios.in.h (include): Ensure pid_t on all platforms, not
197         just when building tcgetsid.
198
199 2012-02-29  Bruno Haible  <bruno@clisp.org>
200
201         Tests for module 'hypotl'.
202         * modules/hypotl-tests: New file.
203         * tests/test-hypotl.c: New file.
204
205         New module 'hypotl'.
206         * lib/math.in.h (hypotl): New declaration.
207         * lib/hypotl.c: New file.
208         * m4/hypotl.m4: New file.
209         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
210         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTL, HAVE_HYPOTL.
211         * modules/math (Makefile.am): Substitute GNULIB_HYPOTL, HAVE_HYPOTL.
212         * modules/hypotl: New file.
213         * tests/test-math-c++.cc: Check the hypotl declaration.
214         * doc/posix-functions/hypotl.texi: Mention the new module.
215
216 2012-02-29  Eric Blake  <eblake@redhat.com>
217
218         tcgetsid: fix cygwin header bug
219         * lib/termios.in.h (includes) [Cygwin]: Ensure pid_t is defined.
220
221         docs: update cygwin progress
222         * doc/posix-functions/llround.texi (llround): Added in cygwin
223         1.7.8.
224         * doc/posix-functions/llroundf.texi (llroundf): Likewise.
225         * doc/glibc-functions/program_invocation_name.texi
226         (program_invocation_name): Likewise.
227         * doc/glibc-functions/program_invocation_short_name.texi
228         (program_invocation_short_name): Likewise.
229         * doc/glibc-functions/madvise.texi (madvise): Likewise.
230         * doc/glibc-functions/pthread_yield.texi (pthread_yield):
231         Likewise.
232         * doc/posix-functions/pthread_spin_destroy.texi
233         (pthread_spin_destroy): Added in cygwin 1.7.10.
234         * doc/posix-functions/pthread_spin_init.texi (pthread_spin_init):
235         Likewise.
236         * doc/posix-functions/pthread_spin_lock.texi (pthread_spin_lock):
237         Likewise.
238         * doc/posix-functions/pthread_spin_trylock.texi
239         (pthread_spin_trylock): Likewise.
240         * doc/posix-functions/pthread_spin_unlock.texi
241         (pthread_spin_unlock): Likewise.
242         * doc/posix-functions/pthread_setschedprio.texi
243         (pthread_setschedprio): Likewise.
244         * doc/posix-functions/pthread_attr_getstack.texi
245         (pthread_attr_getstack): Likewise.
246         * doc/pastposix-functions/pthread_attr_getstackaddr.texi
247         (pthread_attr_getstackaddr): Likewise.
248         * doc/glibc-functions/pthread_getattr_np.texi
249         (pthread_getattr_np): Likewise.
250         * doc/glibc-functions/sys_siglist.texi (sys_siglist): Likewise.
251         * doc/glibc-functions/sysinfo.texi (sysinfo): Likewise.
252         * doc/posix-functions/clock_settime.texi (clock_settime):
253         Likewise.
254         * doc/posix-functions/pthread_attr_getguardsize.texi
255         (pthread_attr_getguardsize): Likewise.
256         * doc/posix-functions/pthread_attr_setguardsize.texi
257         (pthread_attr_setguardsize): Likewise.
258         * doc/posix-functions/pthread_attr_setstack.texi
259         (pthread_attr_setstack): Likewise.
260         * doc/pastposix-functions/pthread_attr_setstackaddr.texi
261         (pthread_attr_setstackaddr): Likewise.
262         * doc/posix-functions/clock_getcpuclockid.texi
263         (clock_getcpuclockid): Likewise.
264         * doc/posix-functions/pthread_getcpuclockid.texi
265         (pthread_getcpuclockid): Likewise.
266         * doc/glibc-functions/error.texi (error): Likewise.
267         * doc/glibc-functions/error_at_line.texi (error_at_line):
268         Likewise.
269         * doc/glibc-functions/error_message_count.texi
270         (error_message_count): Likewise.
271         * doc/glibc-functions/error_one_per_line.texi
272         (error_one_per_line): Likewise.
273         * doc/glibc-functions/error_print_progname.texi
274         (error_print_progname): Likewise.
275         * doc/posix-functions/pthread_condattr_getclock.texi
276         (pthread_condattr_getclock): Likewise.
277         * doc/posix-functions/pthread_condattr_setclock.texi
278         (pthread_condattr_setclock): Likewise.
279         * doc/posix-functions/clock_nanosleep.texi (clock_nanosleep):
280         Likewise.
281         * doc/glibc-functions/getgrouplist.texi (getgrouplist): Likewise.
282         * doc/glibc-functions/getpt.texi (getpt): Likewise.
283         * doc/glibc-functions/get_current_dir_name.texi
284         (get_current_dir_name): Likewise.
285         * doc/glibc-functions/pthread_sigqueue.texi (pthread_sigqueue):
286         Likewise.
287         * doc/posix-functions/tcgetsid.texi (tcgetsid): Likewise, but with
288         wrong return type.
289         * doc/glibc-functions/scandirat.texi (scandirat): Added in cygwin
290         1.7.11.
291
292 2012-02-29  Bruno Haible  <bruno@clisp.org>
293
294         Tests for module 'hypotf'.
295         * modules/hypotf-tests: New file.
296         * tests/test-hypotf.c: New file.
297
298         New module 'hypotf'.
299         * lib/math.in.h (hypotf): New declaration.
300         * lib/hypotf.c: New file.
301         * m4/hypotf.m4: New file.
302         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
303         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTF, HAVE_HYPOTF,
304         REPLACE_HYPOTF.
305         * modules/math (Makefile.am): Substitute GNULIB_HYPOTF, HAVE_HYPOTF,
306         REPLACE_HYPOTF.
307         * modules/hypotf: New file.
308         * tests/test-math-c++.cc: Check the hypotf declaration.
309         * doc/posix-functions/hypotf.texi: Mention the new module.
310
311         hypot: Prepare for hypotf module.
312         * m4/hypot.m4: New file.
313         * modules/hypot (Files): Add m4/hypot.m4.
314         (configure.ac): Invoke gl_FUNC_HYPOT.
315
316 2012-02-29  Bruno Haible  <bruno@clisp.org>
317
318         hypot tests: More tests.
319         * tests/test-hypot.c: Include <float.h>.
320         (main): Add tests about overflow and underflow.
321
322 2012-02-29  Bruno Haible  <bruno@clisp.org>
323
324         math code: Add comments.
325         * lib/acosl.c: Add comment about related glibc source files.
326         * lib/asinl.c: Likewise.
327         * lib/atanl.c: Likewise.
328         * lib/expl.c: Likewise.
329         * lib/logl.c: Likewise.
330         * lib/sincosl.c: Likewise.
331         * lib/sinl.c: Likewise.
332         * lib/tanl.c: Likewise.
333         * lib/trigl.c: Likewise.
334         * lib/cosl.c: Likewise. Fix comments.
335
336 2012-02-28  Bruno Haible  <bruno@clisp.org>
337
338         math: Ensure HUGE_VAL, HUGE_VALF, HUGE_VALL are defined.
339         * lib/math.in.h (HUGE_VAL, HUGE_VALF, HUGE_VALL): Define fallbacks.
340         * tests/test-math.c: Include macros.h. Check that HUGE_VAL, HUGE_VALF,
341         HUGE_VALL are defined.
342         (numeric_equald): Renamed from numeric_equal.
343         (numeric_equalf, numeric_equall): New functions.
344         (main): Check also HUGE_VALF, HUGE_VALL.
345         * modules/math-tests (Files): Add tests/macros.h.
346         * doc/posix-headers/math.texi: Document the problems with HUGE_VALF and
347         HUGE_VALL.
348
349 2012-02-28  Bruno Haible  <bruno@clisp.org>
350
351         doc: Move ISO C11 feature notes into POSIX chapters.
352         * doc/posix-functions/aligned_alloc.texi: Renamed from
353         doc/glibc-functions/aligned_alloc.texi.
354         * doc/posix-functions/quick_exit.texi: Renamed from
355         doc/glibc-functions/quick_exit.texi.
356         * doc/posix-headers/uchar.texi: Renamed from
357         doc/glibc-headers/uchar.texi.
358         * doc/posix-functions/c16rtomb.texi: Renamed from
359         doc/glibc-functions/c16rtomb.texi.
360         * doc/posix-functions/c32rtomb.texi: Renamed from
361         doc/glibc-functions/c32rtomb.texi.
362         * doc/posix-functions/mbrtoc16.texi: Renamed from
363         doc/glibc-functions/mbrtoc16.texi.
364         * doc/posix-functions/mbrtoc32.texi: Renamed from
365         doc/glibc-functions/mbrtoc32.texi.
366         * doc/gnulib.texi: Update.
367         (Glibc uchar.h): Remove section.
368         Suggested by Eric Blake.
369
370 2012-02-29  Paul Eggert  <eggert@cs.ucla.edu>
371
372         stdnoreturn: port to MSVC better
373         MSVC standard headers use __declspec(noreturn), so #define noreturn
374         to empty on that platform.  Reported by Bruno Haible in
375         <http://lists.gnu.org/archive/html/bug-gnulib/2012-02/msg00152.html>.
376         * lib/stdnoreturn.in.h (noreturn): Define to empty on MSVC.
377         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h): Document this.
378
379 2012-02-28  Bruno Haible  <bruno@clisp.org>
380
381         doc: Mention new glibc headers and functions.
382         * doc/glibc-headers/uchar.texi: New file.
383         * doc/glibc-functions/aligned_alloc.texi: New file.
384         * doc/glibc-functions/c16rtomb.texi: New file.
385         * doc/glibc-functions/c32rtomb.texi: New file.
386         * doc/glibc-functions/clock_adjtime.texi: New file.
387         * doc/glibc-functions/fanotify_init.texi: New file.
388         * doc/glibc-functions/fanotify_mark.texi: New file.
389         * doc/glibc-functions/inet6_opt_append.texi: New file.
390         * doc/glibc-functions/inet6_opt_find.texi: New file.
391         * doc/glibc-functions/inet6_opt_finish.texi: New file.
392         * doc/glibc-functions/inet6_opt_get_val.texi: New file.
393         * doc/glibc-functions/inet6_opt_init.texi: New file.
394         * doc/glibc-functions/inet6_opt_next.texi: New file.
395         * doc/glibc-functions/inet6_opt_set_val.texi: New file.
396         * doc/glibc-functions/inet6_rth_add.texi: New file.
397         * doc/glibc-functions/inet6_rth_getaddr.texi: New file.
398         * doc/glibc-functions/inet6_rth_init.texi: New file.
399         * doc/glibc-functions/inet6_rth_reverse.texi: New file.
400         * doc/glibc-functions/inet6_rth_segments.texi: New file.
401         * doc/glibc-functions/inet6_rth_space.texi: New file.
402         * doc/glibc-functions/login.texi: New file.
403         * doc/glibc-functions/mbrtoc16.texi: New file.
404         * doc/glibc-functions/mbrtoc32.texi: New file.
405         * doc/glibc-functions/name_to_handle_at.texi: New file.
406         * doc/glibc-functions/ntp_gettimex.texi: New file.
407         * doc/glibc-functions/open_by_handle_at.texi: New file.
408         * doc/glibc-functions/prlimit.texi: New file.
409         * doc/glibc-functions/process_vm_readv.texi: New file.
410         * doc/glibc-functions/process_vm_writev.texi: New file.
411         * doc/glibc-functions/recvmmsg.texi: New file.
412         * doc/glibc-functions/scandirat.texi: New file.
413         * doc/glibc-functions/sendmmsg.texi: New file.
414         * doc/glibc-functions/setns.texi: New file.
415         * doc/glibc-functions/timespec_get.texi: New file.
416         * doc/gnulib.texi: Include them.
417         (Glibc sys/fanotify.h, Glibc sys/resource.h, Glibc uchar.h): New
418         sections.
419         Reported by Eric Blake.
420
421 2012-02-28  Bruno Haible  <bruno@clisp.org>
422
423         Avoid compilation errors with MSVC option -fp:strict.
424         * lib/floor.c: Use MSVC specific pragma fenv_access.
425         * lib/ceil.c: Likewise.
426         * lib/trunc.c: Likewise.
427         * lib/round.c: Likewise.
428         * lib/rint.c: Likewise.
429         * lib/fma.c: Likewise.
430         * lib/integer_length.c: Likewise.
431         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
432         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
433         * tests/test-floor2.c: Likewise.
434         * tests/test-floorf2.c: Likewise.
435         * tests/test-ceil2.c: Likewise.
436         * tests/test-ceilf2.c: Likewise.
437         * tests/test-trunc2.c: Likewise.
438         * tests/test-truncf2.c: Likewise.
439         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
440
441 2012-02-27  Bruno Haible  <bruno@clisp.org>
442
443         Tests for module 'sqrtl-ieee'.
444         * modules/sqrtl-ieee-tests: New file.
445         * tests/test-sqrtl-ieee.c: New file.
446
447         New module 'sqrtl-ieee'.
448         * modules/sqrtl-ieee: New file.
449
450         Tests for module 'sqrt-ieee'.
451         * modules/sqrt-ieee-tests: New file.
452         * tests/test-sqrt-ieee.c: New file.
453
454         New module 'sqrt-ieee'.
455         * modules/sqrt-ieee: New file.
456
457         Tests for module 'sqrtf-ieee'.
458         * modules/sqrtf-ieee-tests: New file.
459         * tests/test-sqrtf-ieee.c: New file.
460         * tests/test-sqrt-ieee.h: New file.
461
462         New module 'sqrtf-ieee'.
463         * modules/sqrtf-ieee: New file.
464
465 2012-02-27  Bruno Haible  <bruno@clisp.org>
466
467         remainderl-ieee: Work around test failure on OSF/1.
468         * m4/remainderl-ieee.m4: New file.
469         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): If gl_FUNC_REMAINDERL_IEEE is
470         present, test whether remainderl works with a zero second argument.
471         Replace it if not.
472         * lib/math.in.h (remainderl): Override if REPLACE_REMAINDERL is 1.
473         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERL.
474         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERL.
475         * modules/remainderl (configure.ac): Consider REPLACE_REMAINDERL.
476         (Depends-on): Update conditions.
477         * modules/remainderl-ieee (Files): Add m4/remainderl-ieee.m4.
478         (Depends-on): Add remainder-ieee.
479         (configure.ac): Invoke gl_FUNC_REMAINDERL_IEEE.
480         * doc/posix-functions/remainderl.texi: Mention the remainderl-ieee
481         module.
482
483         remainderf-ieee: Work around test failure on OSF/1.
484         * m4/remainderf-ieee.m4: New file.
485         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): If gl_FUNC_REMAINDERF_IEEE is
486         present, test whether remainderf works with a zero second argument.
487         Replace it if not.
488         * lib/math.in.h (remainderf): Override if REPLACE_REMAINDERF is 1.
489         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERF.
490         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERF.
491         * modules/remainderf (configure.ac): Consider REPLACE_REMAINDERF.
492         (Depends-on): Update conditions.
493         * modules/remainderf-ieee (Files): Add m4/remainderf-ieee.m4.
494         (Depends-on): Add remainder-ieee.
495         (configure.ac): Invoke gl_FUNC_REMAINDERF_IEEE.
496         * doc/posix-functions/remainderf.texi: Mention the remainderf-ieee
497         module.
498
499         remainder-ieee: Work around test failure on OSF/1.
500         * m4/remainder-ieee.m4: New file.
501         * m4/remainder.m4 (gl_FUNC_REMAINDER): If gl_FUNC_REMAINDER_IEEE is
502         present, test whether remainder works with a zero second argument.
503         Replace it if not.
504         * lib/math.in.h (remainder): Override if REPLACE_REMAINDER is 1.
505         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDER.
506         * modules/math (Makefile.am): Substitute REPLACE_REMAINDER.
507         * modules/remainder (configure.ac): Consider REPLACE_REMAINDER.
508         (Depends-on): Update dependencies.
509         * modules/remainder-ieee (Files): Add m4/remainder-ieee.m4.
510         (configure.ac): Invoke gl_FUNC_REMAINDER_IEEE.
511         * doc/posix-functions/remainder.texi: Mention the remainder-ieee module.
512
513         Tests for module 'remainderl-ieee'.
514         * modules/remainderl-ieee-tests: New file.
515         * tests/test-remainderl-ieee.c: New file.
516
517         New module 'remainderl-ieee'.
518         * modules/remainderl-ieee: New file.
519
520         Tests for module 'remainder-ieee'.
521         * modules/remainder-ieee-tests: New file.
522         * tests/test-remainder-ieee.c: New file.
523
524         New module 'remainder-ieee'.
525         * modules/remainder-ieee: New file.
526
527         Tests for module 'remainderf-ieee'.
528         * modules/remainderf-ieee-tests: New file.
529         * tests/test-remainderf-ieee.c: New file.
530         * tests/test-remainder-ieee.h: New file.
531
532         New module 'remainderf-ieee'.
533         * modules/remainderf-ieee: New file.
534
535 2012-02-27  Bruno Haible  <bruno@clisp.org>
536
537         modff, modfl: Fix configure syntax error.
538         * m4/modff.m4 (gl_FUNC_MODFF): Insert ':' command in 'if'.
539         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
540
541 2012-02-27  Bruno Haible  <bruno@clisp.org>
542
543         fmodl-ieee: Work around test failures on OSF/1, MSVC 9.
544         * m4/fmodl-ieee.m4: New file.
545         * m4/fmodl.m4 (gl_FUNC_FMODL): If gl_FUNC_FMODL_IEEE is present, test
546         whether fmodl works with zero arguments. Replace it if not.
547         * modules/fmodl-ieee (Files): Add m4/fmodl-ieee.m4.
548         (Depends-on): Add fmod-ieee.
549         (configure.ac): Invoke gl_FUNC_FMODL_IEEE.
550         * doc/posix-functions/fmodl.texi: Mention the fmodl-ieee module.
551
552         fmodf-ieee: Work around test failure on OSF/1.
553         * m4/fmodf-ieee.m4: New file.
554         * m4/fmodf.m4 (gl_FUNC_FMODF): If gl_FUNC_FMODF_IEEE is present, test
555         whether fmodf works with zero arguments. Replace it if not.
556         * lib/math.in.h (fmodf): Override if REPLACE_FMODF is 1.
557         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FMODF.
558         * modules/math (Makefile.am): Substitute REPLACE_FMODF.
559         * modules/fmodf (configure.ac): Consider REPLACE_FMODF.
560         (Depends-on): Update dependencies.
561         * modules/fmodf-ieee (Files): Add m4/fmodf-ieee.m4.
562         (configure.ac): Invoke gl_FUNC_FMODF_IEEE.
563         * doc/posix-functions/fmodf.texi: Mention the problem on OSF/1.
564
565         fmodf-ieee: Work around test failure on MSVC 9.
566         * modules/fmodf-ieee (Depends-on): Add fmod-ieee.
567         * doc/posix-functions/fmodf.texi: Mention the fmodf-ieee module.
568
569         fmod-ieee: Work around test failures on OSF/1, mingw.
570         * m4/fmod-ieee.m4: New file.
571         * m4/fmod.m4 (gl_FUNC_FMOD): If gl_FUNC_FMOD_IEEE is present, test
572         whether fmod works with zero arguments. Replace it if not.
573         * lib/math.in.h (fmod): New declaration.
574         * lib/fmod.c: New file.
575         * m4/math_h.m4 (gl_MATH_H): Test whether fmod is declared.
576         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMOD, REPLACE_FMOD.
577         * modules/math (Makefile.am): Substitute GNULIB_FMOD, REPLACE_FMOD.
578         * modules/fmod (Files): Add lib/fmod.c.
579         (Depends-on): Add math, isinf, trunc, fma.
580         (configure.ac): Arrange to compile lib/fmod.c if needed.
581         * modules/fmod-ieee (Files): Add m4/fmod-ieee.m4, m4/minus-zero.m4,
582         m4/signbit.m4.
583         (configure.ac): Invoke gl_FUNC_FMOD_IEEE.
584         * tests/test-math-c++.cc: Check the declaration of fmod.
585         * doc/posix-functions/fmod.texi: Mention the fmod-ieee module.
586
587         fmodl-ieee: Fix test failures.
588         * lib/fmodl.c (fmodl): Treat Inf specially.
589         * modules/fmodl (Depends-on): Add isinf.
590
591         Tests for module 'fmodl-ieee'.
592         * modules/fmodl-ieee-tests: New file.
593         * tests/test-fmodl-ieee.c: New file.
594
595         New module 'fmodl-ieee'.
596         * modules/fmodl-ieee: New file.
597
598         Tests for module 'fmod-ieee'.
599         * modules/fmod-ieee-tests: New file.
600         * tests/test-fmod-ieee.c: New file.
601
602         New module 'fmod-ieee'.
603         * modules/fmod-ieee: New file.
604
605         Tests for module 'fmodf-ieee'.
606         * modules/fmodf-ieee-tests: New file.
607         * tests/test-fmodf-ieee.c: New file.
608         * tests/test-fmod-ieee.h: New file.
609
610         New module 'fmodf-ieee'.
611         * modules/fmodf-ieee: New file.
612
613 2012-02-27  Bruno Haible  <bruno@clisp.org>
614
615         Tests for module 'rintl-ieee'.
616         * modules/rintl-ieee-tests: New file.
617         * tests/test-rintl-ieee.c: New file.
618
619         New module 'rintl-ieee'.
620         * modules/rintl-ieee: New file.
621
622         Tests for module 'rint-ieee'.
623         * modules/rint-ieee-tests: New file.
624         * tests/test-rint-ieee.c: New file.
625
626         New module 'rint-ieee'.
627         * modules/rint-ieee: New file.
628
629         Tests for module 'rintf-ieee'.
630         * modules/rintf-ieee-tests: New file.
631         * tests/test-rintf-ieee.c: New file.
632         * tests/test-rint-ieee.h: New file.
633
634         New module 'rintf-ieee'.
635         * modules/rintf-ieee: New file.
636
637 2012-02-26  Paul Eggert  <eggert@cs.ucla.edu>
638
639         regex: re_search etc. should return -2 when memory exhausted
640         This bug was uncovered when testing 'grep'.  Without the fix,
641         re_search and friends return -1 when memory is exhausted, but -1
642         means no match, and this causes grep to falsely report no-match
643         instead of memory-exhaustion.  See
644         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=13762>.
645         * lib/regexec.c (re_search_stub): Return -2 (not -1) if there is
646         trouble; this can occur if re_search_internal ran out of memory.
647
648 2012-02-26  Bruno Haible  <bruno@clisp.org>
649
650         modfl-ieee: Work around test failures on IRIX, OSF/1, mingw.
651         * m4/modfl-ieee.m4: New file.
652         * m4/modfl.m4 (gl_FUNC_MODFL): If gl_FUNC_MODFL_IEEE is present, test
653         whether modfl works with Inf. Replace it if not.
654         * lib/math.in.h (modfl): Override if REPLACE_MODFF is 1.
655         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFL.
656         * modules/math (Makefile.am): Substitute REPLACE_MODFL.
657         * modules/modfl (configure.ac): Consider REPLACE_MODFL.
658         (Depends-on): Update dependencies.
659         * modules/modfl-ieee (Files): Add m4/modfl-ieee.m4, m4/minus-zero.m4,
660         m4/signbit.m4.
661         (configure.ac): Invoke gl_FUNC_MODFL_IEEE.
662         * doc/posix-functions/modfl.texi: Mention the modfl-ieee module.
663
664         modfl-ieee: Fix dependencies.
665         * modules/modfl-ieee (Depends-on): Add modf-ieee.
666
667         modfl-ieee: Fix test failures.
668         * lib/modfl.c (modfl): Treat NaN and Inf specially.
669         * modules/modfl (Depends-on): Add isfinite, isinf.
670
671         modff-ieee: Work around test failures on *BSD, IRIX, OSF/1, etc.
672         * m4/modff-ieee.m4: New file.
673         * m4/modff.m4 (gl_FUNC_MODFF): If gl_FUNC_MODFF_IEEE is present, test
674         whether modff works with NaN and Inf. Replace it if not.
675         * lib/math.in.h (modff): Override if REPLACE_MODFF is 1.
676         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFF.
677         * modules/math (Makefile.am): Substitute REPLACE_MODFF.
678         * modules/modff (configure.ac): Consider REPLACE_MODFF.
679         (Depends-on): Update dependencies.
680         * modules/modff-ieee (Files): Add m4/modff-ieee.m4, m4/minus-zero.m4,
681         m4/signbit.m4.
682         (Depends-on): Add modf-ieee.
683         (configure.ac): Invoke gl_FUNC_MODFF_IEEE.
684         * doc/posix-functions/modff.texi: Mention the modff-ieee module.
685
686         modf-ieee: Work around test failures on *BSD, IRIX, OSF/1, Cygwin.
687         * m4/modf-ieee.m4: New file.
688         * m4/modf.m4 (gl_FUNC_MODF): If gl_FUNC_MODF_IEEE is present, test
689         whether modf works with NaN and Inf. Replace it if not.
690         * lib/math.in.h (modf): New declaration.
691         * lib/modf.c: New file.
692         * m4/math_h.m4 (gl_MATH_H): Test whether modf is declared.
693         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODF, REPLACE_MODF.
694         * modules/math (Makefile.am): Substitute GNULIB_MODF, REPLACE_MODF.
695         * modules/modf (Files): Add lib/modf.c.
696         (Depends-on): Add math, isfinite, trunc, isinf.
697         (configure.ac): Addrange to compile lib/modf.c if needed.
698         * modules/modf-ieee (Files): Add m4/modf-ieee.m4, m4/minus-zero.m4,
699         m4/signbit.m4.
700         (configure.ac): Invoke gl_FUNC_MODF_IEEE.
701         * tests/test-math-c++.cc: Check the declaration of modf.
702         * doc/posix-functions/modf.texi: Mention the modf-ieee module.
703
704         Tests for module 'modfl-ieee'.
705         * modules/modfl-ieee-tests: New file.
706         * tests/test-modfl-ieee.c: New file.
707
708         New module 'modfl-ieee'.
709         * modules/modfl-ieee: New file.
710
711         Tests for module 'modf-ieee'.
712         * modules/modf-ieee-tests: New file.
713         * tests/test-modf-ieee.c: New file.
714
715         New module 'modf-ieee'.
716         * modules/modf-ieee: New file.
717
718         Tests for module 'modff-ieee'.
719         * modules/modff-ieee-tests: New file.
720         * tests/test-modff-ieee.c: New file.
721         * tests/test-modf-ieee.h: New file.
722
723         New module 'modff-ieee'.
724         * modules/modff-ieee: New file.
725
726 2012-02-26  Bruno Haible  <bruno@clisp.org>
727
728         Tests for module 'fabsl-ieee'.
729         * modules/fabsl-ieee-tests: New file.
730         * tests/test-fabsl-ieee.c: New file.
731
732         New module 'fabsl-ieee'.
733         * modules/fabsl-ieee: New file.
734
735         Tests for module 'fabs-ieee'.
736         * modules/fabs-ieee-tests: New file.
737         * tests/test-fabs-ieee.c: New file.
738
739         New module 'fabs-ieee'.
740         * modules/fabs-ieee: New file.
741
742         Tests for module 'fabsf-ieee'.
743         * modules/fabsf-ieee-tests: New file.
744         * tests/test-fabsf-ieee.c: New file.
745         * tests/test-fabs-ieee.h: New file.
746
747         New module 'fabsf-ieee'.
748         * modules/fabsf-ieee: New file.
749
750 2012-02-26  Bruno Haible  <bruno@clisp.org>
751
752         Tests for module 'fmal-ieee'.
753         * modules/fmal-ieee-tests: New file.
754         * tests/test-fmal-ieee.c: New file.
755
756         New module 'fmal-ieee'.
757         * modules/fmal-ieee: New file.
758
759         Tests for module 'fma-ieee'.
760         * modules/fma-ieee-tests: New file.
761         * tests/test-fma-ieee.c: New file.
762
763         New module 'fma-ieee'.
764         * modules/fma-ieee: New file.
765
766         Tests for module 'fmaf-ieee'.
767         * modules/fmaf-ieee-tests: New file.
768         * tests/test-fmaf-ieee.c: New file.
769         * tests/test-fma-ieee.h: New file.
770
771         New module 'fmaf-ieee'.
772         * modules/fmaf-ieee: New file.
773
774 2012-02-26  Bruno Haible  <bruno@clisp.org>
775
776         Tests for module 'ldexpl-ieee'.
777         * modules/ldexpl-ieee-tests: New file.
778         * tests/test-ldexpl-ieee.c: New file.
779
780         New module 'ldexpl-ieee'.
781         * modules/ldexpl-ieee: New file.
782
783         Tests for module 'ldexp-ieee'.
784         * modules/ldexp-ieee-tests: New file.
785         * tests/test-ldexp-ieee.c: New file.
786
787         New module 'ldexp-ieee'.
788         * modules/ldexp-ieee: New file.
789
790         Tests for module 'ldexpf-ieee'.
791         * modules/ldexpf-ieee-tests: New file.
792         * tests/test-ldexpf-ieee.c: New file.
793         * tests/test-ldexp-ieee.h: New file.
794
795         New module 'ldexpf-ieee'.
796         * modules/ldexpf-ieee: New file.
797
798 2012-02-26  Bruno Haible  <bruno@clisp.org>
799
800         Refactor frexp*-ieee tests.
801         * tests/test-frexp-ieee.h: New file.
802         * tests/test-frexpf-ieee.c: Include test-frexp-ieee.h.
803         (main): Just call test_function.
804         * tests/test-frexp-ieee.c: Include test-frexp-ieee.h.
805         (main): Just call test_function.
806         * tests/test-frexpl-ieee.c: Include test-frexp-ieee.h.
807         (main): Just call test_function.
808         * modules/frexpf-ieee-tests (Files): Add tests/test-frexp-ieee.h.
809         * modules/frexp-ieee-tests (Files): Likewise.
810         * modules/frexpl-ieee-tests (Files): Likewise.
811
812         Tests for module 'frexpl-ieee'.
813         * modules/frexpl-ieee-tests: New file.
814         * tests/test-frexpl-ieee.c: New file.
815
816         New module 'frexpl-ieee'.
817         * modules/frexpl-ieee: New file.
818
819         Tests for module 'frexp-ieee'.
820         * modules/frexp-ieee-tests: New file.
821         * tests/test-frexp-ieee.c: New file.
822
823         New module 'frexp-ieee'.
824         * modules/frexp-ieee: New file.
825
826         Tests for module 'frexpf-ieee'.
827         * modules/frexpf-ieee-tests: New file.
828         * tests/test-frexpf-ieee.c: New file.
829
830         New module 'frexpf-ieee'.
831         * modules/frexpf-ieee: New file.
832
833 2012-02-26  Bruno Haible  <bruno@clisp.org>
834
835         roundl-ieee tests: More tests.
836         * tests/test-roundl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
837         (main): Add tests for [MX] shaded specification in POSIX.
838         * modules/roundl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
839         (Depends-on): Add isnanl-nolibm.
840
841         round-ieee tests: More tests.
842         * tests/test-round-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
843         (main): Add tests for [MX] shaded specification in POSIX.
844         * modules/round-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
845         (Depends-on): Add isnand-nolibm.
846
847         roundf-ieee tests: More tests.
848         * tests/test-roundf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
849         (main): Add tests for [MX] shaded specification in POSIX.
850         * modules/roundf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
851         (Depends-on): Add isnanf-nolibm.
852
853         truncl-ieee tests: More tests.
854         * tests/test-truncl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
855         (main): Add tests for [MX] shaded specification in POSIX.
856         * modules/truncl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
857         (Depends-on): Add isnanl-nolibm.
858
859         trunc-ieee tests: More tests.
860         * tests/test-trunc-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
861         (main): Add tests for [MX] shaded specification in POSIX.
862         * modules/trunc-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
863         (Depends-on): Add isnand-nolibm.
864
865         truncf-ieee tests: More tests.
866         * tests/test-truncf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
867         (main): Add tests for [MX] shaded specification in POSIX.
868         * modules/truncf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
869         (Depends-on): Add isnanf-nolibm.
870
871         ceill-ieee tests: More tests.
872         * tests/test-ceill-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
873         (main): Add tests for [MX] shaded specification in POSIX.
874         * modules/ceill-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
875         (Depends-on): Add isnanl-nolibm.
876
877         ceil-ieee tests: More tests.
878         * tests/test-ceil-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
879         (main): Add tests for [MX] shaded specification in POSIX.
880         * modules/ceil-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
881         (Depends-on): Add isnand-nolibm.
882
883         ceilf-ieee tests: More tests.
884         * tests/test-ceilf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
885         (main): Add tests for [MX] shaded specification in POSIX.
886         * modules/ceilf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
887         (Depends-on): Add isnanf-nolibm.
888
889         floorl-ieee tests: More tests.
890         * tests/test-floorl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
891         (main): Add tests for [MX] shaded specification in POSIX.
892         * modules/floorl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
893         (Depends-on): Add isnanl-nolibm.
894
895         floor-ieee tests: More tests.
896         * tests/test-floor-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
897         (main): Add tests for [MX] shaded specification in POSIX.
898         * modules/floor-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
899         (Depends-on): Add isnand-nolibm.
900
901         floorf-ieee tests: More tests.
902         * tests/test-floorf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
903         (main): Add tests for [MX] shaded specification in POSIX.
904         * modules/floorf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
905         (Depends-on): Add isnanf-nolibm.
906
907 2012-02-26  Bruno Haible  <bruno@clisp.org>
908
909         fpieee: More comments.
910         * m4/fpieee.m4 (gl_FP_IEEE): Add more comments.
911
912 2012-02-25  Bruno Haible  <bruno@clisp.org>
913
914         Tests for module 'log10l'.
915         * modules/log10l-tests: New file.
916         * tests/test-log10l.c: New file.
917         * tests/test-math-c++.cc: Check the declaration of log10l.
918
919         New module 'log10l'.
920         * lib/math.in.h (log10l): New declaration.
921         * lib/log10l.c: New file.
922         * m4/log10l.m4: New file.
923         * modules/log10l: New file.
924         * m4/math_h.m4 (gl_MATH_H): Test whether log10l is declared.
925         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10L, HAVE_LOG10L,
926         HAVE_DECL_LOG10L.
927         * modules/math (Makefile.am): Substitute GNULIB_LOG10L, HAVE_LOG10L,
928         HAVE_DECL_LOG10L.
929         * doc/posix-functions/log10l.texi: Mention the new module.
930
931 2012-02-25  Bruno Haible  <bruno@clisp.org>
932
933         fmodl, remainder*: Avoid wrong results due to rounding errors.
934         * lib/fmodl.c (fmodl): Correct the result if it is not within the
935         expected bounds.
936         * lib/remainderf.c (remainderf): Likewise.
937         * lib/remainder.c (remainder): Likewise.
938         * lib/remainderl.c (remainderl): Likewise.
939
940 2012-02-25  Bruno Haible  <bruno@clisp.org>
941
942         Tests for module 'remainderl'.
943         * modules/remainderl-tests: New file.
944         * tests/test-remainderl.c: New file.
945         * tests/test-math-c++.cc: Check the declaration of remainderl.
946
947         New module 'remainderl'.
948         * lib/math.in.h (remainderl): New declaration.
949         * lib/remainderl.c: New file.
950         * m4/remainderl.m4: New file.
951         * modules/remainderl: New file.
952         * m4/math_h.m4 (gl_MATH_H): Test whether remainderl is declared.
953         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERL, HAVE_REMAINDERL.
954         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERL,
955         HAVE_REMAINDERL.
956         * doc/posix-functions/remainderl.texi: Mention the new module.
957
958 2012-02-25  Bruno Haible  <bruno@clisp.org>
959
960         Tests for module 'remainderf'.
961         * modules/remainderf-tests: New file.
962         * tests/test-remainderf.c: New file.
963         * tests/test-math-c++.cc: Check the declaration of remainderf.
964
965         New module 'remainderf'.
966         * lib/math.in.h (remainderf): New declaration.
967         * lib/remainderf.c: New file.
968         * m4/remainderf.m4: New file.
969         * modules/remainderf: New file.
970         * m4/math_h.m4 (gl_MATH_H): Test whether remainderf is declared.
971         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERF, HAVE_REMAINDERF.
972         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERF,
973         HAVE_REMAINDERF.
974         * doc/posix-functions/remainderf.texi: Mention the new module.
975
976 2012-02-25  Bruno Haible  <bruno@clisp.org>
977
978         remainder: Support for MSVC.
979         * lib/math.in.h (remainder): New declaration.
980         * lib/remainder.c: New file.
981         * m4/remainder.m4: New file.
982         * modules/remainder (Files): Add lib/remainder.c, m4/remainder.m4.
983         (Depends-on): Add math, round, fma.
984         (configure.ac): Use results of gl_FUNC_REMAINDER.
985         * m4/math_h.m4 (gl_MATH_H): Test whether remainder is declared.
986         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDER, HAVE_REMAINDER,
987         HAVE_DECL_REMAINDER.
988         * modules/math (Makefile.am): Substitute GNULIB_REMAINDER,
989         HAVE_REMAINDER, HAVE_DECL_REMAINDER.
990         * tests/test-math-c++.cc: Check the declaration of remainder.
991         * doc/posix-functions/remainder.texi: Mention that the MSVC and IRIX 5
992         problems are fixed.
993
994 2012-02-25  Bruno Haible  <bruno@clisp.org>
995
996         Tests for module 'fmodl'.
997         * modules/fmodl-tests: New file.
998         * tests/test-fmodl.c: New file.
999         * tests/test-math-c++.cc: Check the declaration of fmodl.
1000
1001         New module 'fmodl'.
1002         * lib/math.in.h (fmodl): New declaration.
1003         * lib/fmodl.c: New file.
1004         * m4/fmodl.m4: New file.
1005         * m4/math_h.m4 (gl_MATH_H): Test whether fmodl is declared.
1006         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODL, HAVE_FMODL,
1007         REPLACE_FMODL.
1008         * modules/math (Makefile.am): Substitute GNULIB_FMODL, HAVE_FMODL,
1009         REPLACE_FMODL.
1010         * modules/fmodl: New file.
1011         * doc/posix-functions/fmodl.texi: Mention the new module.
1012
1013 2012-02-25  Bruno Haible  <bruno@clisp.org>
1014
1015         Tests for module 'modfl'.
1016         * modules/modfl-tests: New file.
1017         * tests/test-modfl.c: New file.
1018         * tests/test-math-c++.cc: Check the declaration of modfl.
1019
1020         New module 'modfl'.
1021         * lib/math.in.h (modfl): New declaration.
1022         * lib/modfl.c: New file.
1023         * m4/modfl.m4: New file.
1024         * m4/math_h.m4 (gl_MATH_H): Test whether modfl is declared.
1025         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFL, HAVE_MODFL.
1026         * modules/math (Makefile.am): Substitute GNULIB_MODFL, HAVE_MODFL.
1027         * modules/modfl: New file.
1028         * doc/posix-functions/modfl.texi: Mention the new module.
1029
1030 2012-02-25  Bruno Haible  <bruno@clisp.org>
1031
1032         Tests for module 'fabsl'.
1033         * modules/fabsl-tests: New file.
1034         * tests/test-fabsl.c: New file.
1035         * tests/test-math-c++.cc: Check the declaration of fabsl.
1036
1037         New module 'fabsl'.
1038         * lib/math.in.h (fabsl): New declaration.
1039         * lib/fabsl.c: New file.
1040         * m4/fabsl.m4: New file.
1041         * m4/math_h.m4 (gl_MATH_H): Test whether fabsl is declared.
1042         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSL, HAVE_FABSL,
1043         REPLACE_FABSL.
1044         * modules/math (Makefile.am): Substitute GNULIB_FABSL, HAVE_FABSL,
1045         REPLACE_FABSL.
1046         * modules/fabsl: New file.
1047         * doc/posix-functions/fabsl.texi: Mention the new module.
1048
1049 2012-02-25  Bruno Haible  <bruno@clisp.org>
1050
1051         fabs tests: More tests.
1052         * tests/test-fabs.c: Include <string.h>, minus-zero.h.
1053         (zero): New variable.
1054         (main): Add tests for signed zero.
1055         * modules/fabs-tests (Files): Add tests/minus-zero.h.
1056
1057         fabsf tests: More tests.
1058         * tests/test-fabsf.c: Include <string.h>, minus-zero.h.
1059         (zero): New variable.
1060         (main): Add tests for signed zero.
1061         * modules/fabsf-tests (Files): Add tests/minus-zero.h.
1062
1063 2012-02-24  Bruno Haible  <bruno@clisp.org>
1064
1065         atanl: Provide function definition on MSVC.
1066         * m4/atanl.m4 (gl_FUNC_ATANL): Test also whether atanl can be used as a
1067         function pointer.
1068         * lib/math.in.h (atanl): Undefine if it does not exist as a function.
1069
1070 2012-02-24  Bruno Haible  <bruno@clisp.org>
1071
1072         acosl: Provide function definition on MSVC.
1073         * m4/acosl.m4 (gl_FUNC_ACOSL): Test also whether acosl can be used as a
1074         function pointer.
1075         * lib/math.in.h (acosl): Undefine if it does not exist as a function.
1076
1077 2012-02-24  Bruno Haible  <bruno@clisp.org>
1078
1079         asinl: Provide function definition on MSVC.
1080         * m4/asinl.m4 (gl_FUNC_ASINL): Test also whether asinl can be used as a
1081         function pointer.
1082         * lib/math.in.h (asinl): Undefine if it does not exist as a function.
1083
1084 2012-02-24  Bruno Haible  <bruno@clisp.org>
1085
1086         tanl: Provide function definition on MSVC.
1087         * m4/tanl.m4 (gl_FUNC_TANL): Test also whether tanl can be used as a
1088         function pointer.
1089         * lib/math.in.h (tanl): Undefine if it does not exist as a function.
1090
1091 2012-02-24  Bruno Haible  <bruno@clisp.org>
1092
1093         cosl: Provide function definition on MSVC.
1094         * m4/cosl.m4 (gl_FUNC_COSL): Test also whether cosl can be used as a
1095         function pointer.
1096         * lib/math.in.h (cosl): Undefine if it does not exist as a function.
1097
1098 2012-02-24  Bruno Haible  <bruno@clisp.org>
1099
1100         sinl: Provide function definition on MSVC.
1101         * m4/sinl.m4 (gl_FUNC_SINL): Test also whether sinl can be used as a
1102         function pointer.
1103         * lib/math.in.h (sinl): Undefine if it does not exist as a function.
1104
1105 2012-02-24  Bruno Haible  <bruno@clisp.org>
1106
1107         logl: Provide function definition on MSVC.
1108         * m4/logl.m4 (gl_FUNC_LOGL): Test also whether logl can be used as a
1109         function pointer.
1110         * lib/math.in.h (logl): Undefine if it does not exist as a function.
1111
1112 2012-02-24  Bruno Haible  <bruno@clisp.org>
1113
1114         expl: Provide function definition on MSVC.
1115         * m4/expl.m4 (gl_FUNC_EXPL): Test also whether expl can be used as a
1116         function pointer.
1117         * lib/math.in.h (expl): Undefine if it does not exist as a function.
1118
1119 2012-02-24  Bruno Haible  <bruno@clisp.org>
1120
1121         sqrtl: Provide function definition on MSVC.
1122         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Test also whether sqrtl can be used as
1123         a function pointer.
1124         * lib/math.in.h (sqrtl): Undefine if it does not exist as a function.
1125
1126 2012-02-24  Bruno Haible  <bruno@clisp.org>
1127
1128         ceill: Provide function definition on MSVC.
1129         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Test also whether ceill can be
1130         used as a function pointer.
1131         * lib/math.in.h (ceill): Undefine if it is not declared as a function.
1132
1133 2012-02-24  Bruno Haible  <bruno@clisp.org>
1134
1135         floorl: Provide function definition on MSVC.
1136         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Test also whether floorl can be
1137         used as a function pointer.
1138         * lib/math.in.h (floorl): Undefine if it is not declared as a function.
1139
1140 2012-02-24  Bruno Haible  <bruno@clisp.org>
1141
1142         ceilf: Provide function definition on MSVC.
1143         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Test also whether ceilf can be
1144         used as a function pointer.
1145         * lib/math.in.h (ceilf): Undefine if it is not declared as a function.
1146
1147 2012-02-24  Bruno Haible  <bruno@clisp.org>
1148
1149         floorf: Provide function definition on MSVC.
1150         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Test also whether floorf can be
1151         used as a function pointer.
1152         * lib/math.in.h (floorf): Undefine if it is not declared as a function.
1153
1154 2012-02-24  Paul Eggert  <eggert@cs.ucla.edu>
1155
1156         stdnoreturn: new module
1157         This implements a replacement for C11's <stdnoreturn.h>.
1158         * doc/gnulib.texi (Header File Substitutes): Add stdnoreturn.
1159         * doc/posix-headers/stdnoreturn.texi, lib/stdnoreturn.in.h:
1160         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
1161         * tests/test-stdnoreturn.c: New files.
1162
1163 2012-02-24  Stanislav Brabec  <sbrabec@suse.cz>  (tiny change)
1164
1165         regex: fix false multibyte matches in some regular expressions
1166         See <http://sourceware.org/bugzilla/show_bug.cgi?id=13637>
1167         and <http://sourceware.org/ml/libc-alpha/2012-02/msg00521.html>.
1168         * lib/regex_internal.c (re_string_skip_chars):
1169         Fix miscomputation of remain_len that may cause incomplete
1170         multi-byte character and false match.
1171
1172 2012-02-24  Jim Meyering  <meyering@redhat.com>
1173
1174         maint.mk: tell sc_prohibit_strcmp to ding "0 == strcmp (...)", too
1175         * top/maint.mk (sc_prohibit_strcmp): Also prohibit uses of strcmp
1176         uses with "==" *before* the call, e.g., 0 == strcmp (...)
1177         Remove now-unnecessary str''cmp obfuscation.
1178         Suggested by Akim Demaille.
1179
1180 2012-02-24  Bruno Haible  <bruno@clisp.org>
1181
1182         streq: Rename macro.
1183         * lib/streq.h (STREQ_OPT): Renamed from STREQ.
1184         * NEWS: Mention the change.
1185         * lib/mbrtowc.c (mbrtowc): Update.
1186         * lib/uniwidth/cjk.h (is_cjk_encoding): Update.
1187         * lib/wcwidth.c (wcwidth): Update.
1188         Suggested by Akim Demaille and Jim Meyering.
1189
1190 2012-02-20  Paul Eggert  <eggert@cs.ucla.edu>
1191
1192         regex: fix typo in definition of MIN
1193         * lib/regex_internal.h (MIN): Fix typo.  Problem reported by Thomas
1194         Schwinge in <http://sourceware.org/bugzilla/show_bug.cgi?id=11638#c4>.
1195
1196 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
1197             Bruno Haible  <bruno@clisp.org>
1198
1199         acl: Don't use ACL_CNT and similar ops, since they are unreliable.
1200         * lib/file-has-acl.c (file_has_acl) [HP-UX, NonStop Kernel]: Read the
1201         entries into a stack-allocated buffer directly.
1202         * lib/copy-acl.c (qcopy_acl) [HP-UX, NonStop Kernel]: Likewise.
1203
1204 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
1205             Bruno Haible  <bruno@clisp.org>
1206
1207         acl: Don't use GETACLCNT and similar ops, since they are unreliable.
1208
1209          - There were several instances of this pattern:
1210
1211              for (;;) {
1212                n = acl (f, GETACLCNT, 0, NULL);
1213                [ allocate an array A of size N ]
1214                if (acl (f, GETACL, n, a) == n)
1215                  break;
1216              }
1217
1218            This loop might never terminate if some other process is constantly
1219            manipulating the file's ACL.  The loop should be rewritten to
1220            terminate.
1221
1222          - The acl (... GETACLNT ...) call is merely an optimization; its value
1223            is merely a hint as to how big to make the array.  A better
1224            optimization is to avoid the acl (... GETACLNT ...)  call entirely,
1225            and just guess a reasonably-big size, growing the size and trying
1226            again if it's not large enough.  This guarantees termination, and
1227            saves a system call.
1228
1229         * lib/acl-internal.h: Include <limits.h>.
1230         (MIN, SIZE_MAX): New macros.
1231         * lib/file-has-acl.c (file_has_acl) [Solaris]: Read the entries into
1232         a stack-allocated buffer, and use malloc if it does not fit. Don't
1233         use GETACLCNT.
1234         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
1235
1236 2012-02-19  Bruno Haible  <bruno@clisp.org>
1237
1238         acl: Fix endless loop on Solaris with vxfs.
1239         * lib/file-has-acl.c (file_has_acl) [Solaris]: Treat a failing
1240         acl()/facl() call for ACE_GETACL like a failing call for ACE_GETACLCNT.
1241         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
1242         * lib/copy-acl.c (qcopy_acl)[Solaris]: Likewise.
1243         * tests/test-sameacls.c (main)[Solaris]: Likewise.
1244         Reported by Bill Jones in
1245         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=10639>, via Paul Eggert.
1246
1247 2012-02-19  Bruno Haible  <bruno@clisp.org>
1248
1249         acl: Fix copy-acl test failure on Solaris 11 2011-11.
1250         * lib/file-has-acl.c (NEW_ACE_WRITEA_DATA): New macro.
1251         (acl_ace_nontrivial): Relax the restrictions on access_masks[] so
1252         that this function returns 0 in some more cases.
1253
1254 2012-02-19  Bruno Haible  <bruno@clisp.org>
1255
1256         acl: Update doc references.
1257         * doc/acl-resources.txt: Update links to Solaris documentation.
1258
1259 2012-02-19  Bruno Haible  <bruno@clisp.org>
1260
1261         Fix test failure in many locales on Solaris 11.
1262         * tests/test-pipe-filter-gi1.c (main): Don't use range expression in
1263         'tr' arguments.
1264         * tests/test-pipe-filter-ii1.c (main): Likewise.
1265         * build-aux/bootstrap (check_versions): Run 'tr' command with range
1266         expressions in the C locale.
1267         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
1268         * m4/host-os.m4 (gl_HOST_OS): Likewise.
1269
1270 2012-02-19  Bruno Haible  <bruno@clisp.org>
1271
1272         gnulib-tool: Improve usage message.
1273         * gnulib-tool (func_usage): Move doc of --help and --version to the
1274         section "Operation modes".
1275
1276 2012-02-18  Reuben Thomas  <rrt@sc3d.org>
1277
1278         README-release: make it easier to execute commands
1279         * top/README-release: break commands out on to separate lines.
1280
1281 2012-02-16  Stefano Lattarini  <stefano.lattarini@gmail.com>
1282
1283         GNUmakefile: simplify detection of unconfigured trees
1284         * top/GNUmakefile: Use $(wildcard) instead of $(shell) to determine
1285         whether the tree make is being run from is already configured or
1286         not.  Related simplifications.
1287
1288 2012-02-13  Simon Josefsson  <simon@josefsson.org>
1289
1290         * gnulib-tool (func_usage): Document --help and --version.
1291
1292 2012-02-11  Jim Meyering  <meyering@redhat.com>
1293
1294         bootstrap: don't exit 0 upon gnulib-tool failure
1295         * build-aux/bootstrap (gnulib_tool): If gnulib-tool fails, exit with
1296         its exit status, not 0.
1297
1298 2011-12-19  Reuben Thomas  <rrt@sc3d.org>
1299
1300         README-release: various improvements
1301         * top/README-release: Give a command to push changes for the
1302         release.  Add "distcheck" to list of other pre-release checks.
1303         Fix instance of "make stable" which should be "make TYPE".
1304
1305 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
1306
1307         maint: replace FSF snail-mail addresses with URLs
1308         * config/argz.mk, lib/accept4.c, lib/alignof.h, lib/alloca.in.h:
1309         * lib/alphasort.c, lib/arcfour.c, lib/arcfour.h, lib/arctwo.c:
1310         * lib/arctwo.h, lib/argz.c, lib/arpa_inet.in.h, lib/asnprintf.c:
1311         * lib/asprintf.c, lib/assert.in.h, lib/base32.c, lib/base32.h:
1312         * lib/base64.c, lib/base64.h, lib/c-ctype.c, lib/c-ctype.h:
1313         * lib/c-strcase.h, lib/c-strcasecmp.c, lib/c-strncasecmp.c:
1314         * lib/check-version.c, lib/check-version.h, lib/config.charset:
1315         * lib/ctype.in.h, lib/des.c, lib/des.h, lib/dup3.c, lib/errno.in.h:
1316         * lib/float+.h, lib/fnmatch.c, lib/fnmatch.in.h, lib/fnmatch_loop.c:
1317         * lib/fseeko.c, lib/gai_strerror.c, lib/gc-gnulib.c:
1318         * lib/gc-libgcrypt.c, lib/gc-pbkdf2-sha1.c, lib/gc.h:
1319         * lib/getaddrinfo.c, lib/getdelim.c, lib/getfilecon.c, lib/getline.c:
1320         * lib/getlogin_r.c, lib/getpass.c, lib/getpass.h, lib/gettext.h:
1321         * lib/gettimeofday.c, lib/glob.in.h, lib/glthread/cond.c:
1322         * lib/glthread/cond.h, lib/glthread/lock.c, lib/glthread/lock.h:
1323         * lib/glthread/thread.c, lib/glthread/thread.h:
1324         * lib/glthread/threadlib.c, lib/glthread/yield.h, lib/hmac-md5.c:
1325         * lib/hmac-sha1.c, lib/hmac.h, lib/iconv.c, lib/iconv.in.h:
1326         * lib/iconv_close.c, lib/iconv_open.c, lib/inet_ntop.c, lib/isfinite.c:
1327         * lib/isinf.c, lib/iswblank.c, lib/langinfo.in.h, lib/link.c:
1328         * lib/localcharset.c, lib/localcharset.h, lib/lseek.c, lib/malloc.c:
1329         * lib/malloca.c, lib/malloca.h, lib/md2.c, lib/md2.h, lib/md4.c:
1330         * lib/md4.h, lib/md5.c, lib/md5.h, lib/memmem.c, lib/mempcpy.c:
1331         * lib/memset.c, lib/memxor.c, lib/memxor.h, lib/minmax.h, lib/mktime.c:
1332         * lib/msvc-inval.c, lib/msvc-inval.h, lib/msvc-nothrow.c:
1333         * lib/msvc-nothrow.h, lib/netdb.in.h, lib/netinet_in.in.h, lib/nproc.c:
1334         * lib/nproc.h, lib/obstack_printf.c, lib/pathmax.h, lib/pipe.c:
1335         * lib/pipe2.c, lib/poll.c, lib/poll.in.h, lib/printf-args.c:
1336         * lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h:
1337         * lib/pselect.c, lib/pthread.in.h, lib/pty-private.h, lib/pty.in.h:
1338         * lib/read-file.c, lib/read-file.h, lib/ref-add.sin, lib/ref-del.sin:
1339         * lib/regcomp.c, lib/regex.c, lib/regex.h, lib/regex_internal.c:
1340         * lib/regex_internal.h, lib/regexec.c, lib/rijndael-alg-fst.c:
1341         * lib/rijndael-alg-fst.h, lib/rijndael-api-fst.c:
1342         * lib/rijndael-api-fst.h, lib/rint.c, lib/rintf.c, lib/rintl.c:
1343         * lib/round.c, lib/roundf.c, lib/roundl.c, lib/scandir.c, lib/select.c:
1344         * lib/sha1.c, lib/sha1.h, lib/size_max.h, lib/snprintf.c:
1345         * lib/stdalign.in.h, lib/stdarg.in.h, lib/stdbool.in.h:
1346         * lib/stddef.in.h, lib/stdint.in.h, lib/stdio.in.h, lib/str-kmp.h:
1347         * lib/str-two-way.h, lib/strcasecmp.c, lib/strcasestr.c, lib/strdup.c:
1348         * lib/striconv.c, lib/striconv.h, lib/string.in.h, lib/strings.in.h:
1349         * lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c, lib/strpbrk.c:
1350         * lib/strptime.c, lib/strsep.c, lib/strstr.c, lib/strverscmp.c:
1351         * lib/sys_file.in.h, lib/sys_ioctl.in.h, lib/sys_select.in.h:
1352         * lib/sys_socket.in.h, lib/sys_stat.in.h, lib/sys_time.in.h:
1353         * lib/sys_times.in.h, lib/sys_types.in.h, lib/sys_uio.in.h:
1354         * lib/sys_utsname.in.h, lib/sys_wait.in.h, lib/tcgetsid.c:
1355         * lib/termios.in.h, lib/time.in.h, lib/time_r.c, lib/timegm.c:
1356         * lib/times.c, lib/unictype/3level.h, lib/unictype/3levelbit.h:
1357         * lib/unistd.in.h, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c:
1358         * lib/vsnprintf.c, lib/waitpid.c, lib/wchar.in.h, lib/wctype.in.h:
1359         * lib/xsize.h, tests/test-closein.c, tests/test-des.c:
1360         * tests/test-fclose.c, tests/test-fgetc.c, tests/test-filevercmp.c:
1361         * tests/test-fputc.c, tests/test-fread.c, tests/test-fwrite.c:
1362         * tests/test-gc-arcfour.c, tests/test-gc-arctwo.c, tests/test-gc-des.c:
1363         * tests/test-gc-hmac-md5.c, tests/test-gc-hmac-sha1.c:
1364         * tests/test-gc-md2.c, tests/test-gc-md4.c, tests/test-gc-md5.c:
1365         * tests/test-gc-pbkdf2-sha1.c, tests/test-gc-rijndael.c:
1366         * tests/test-gc-sha1.c, tests/test-gc.c, tests/test-getdelim.c:
1367         * tests/test-getline.c, tests/test-getndelim2.c, tests/test-md2.c:
1368         * tests/test-md4.c, tests/test-parse-datetime.c, tests/test-perror.c:
1369         * tests/test-perror2.c, tests/test-pipe.c, tests/test-pipe2.c:
1370         * tests/test-poll.c, tests/test-quotearg-simple.c:
1371         * tests/test-quotearg.c, tests/test-quotearg.h:
1372         * tests/test-round-ieee.c, tests/test-round1.c:
1373         * tests/test-roundf-ieee.c, tests/test-roundf1.c:
1374         * tests/test-roundl-ieee.c, tests/test-roundl.c:
1375         * tests/test-safe-alloc.c, tests/test-sigpipe.c:
1376         * tests/test-spawn-pipe-child.c, tests/test-spawn-pipe-main.c:
1377         * tests/test-strerror.c, tests/test-strerror_r.c:
1378         * tests/test-strsignal.c, tests/test-strverscmp.c:
1379         * tests/test-xmemdup0.c:
1380         Replace FSF snail mail addresses with URLs, as per GNU coding
1381         standards.  See glibc bug
1382         <http://sourceware.org/bugzilla/show_bug.cgi?id=13673>.
1383
1384 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
1385
1386         README-release: capitalize a word and split a line
1387         * top/README-release: Fix punctuation and spacing.
1388
1389 2012-02-08  Akim Demaille  <demaille@gostai.com>
1390
1391         fatal-signal: use C prototypes (with explicit void).
1392         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
1393         (init_fatal_signal_set, block_fatal_signals): Fix signatures.
1394
1395 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
1396
1397         regex: spelling fix
1398         * lib/regexec.c: spelling fix
1399
1400         regex: rely on stdint.h for SIZE_MAX
1401         * lib/regex_internal.h (SIZE_MAX): Remove; stdint.h supplies this now.
1402
1403 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
1404
1405         regex: merge glibc changes
1406
1407         * lib/regcomp.c (init_dfa): Tighten overflow checks to test
1408         for IDX_MAX too, since IDX_MAX can be much less than SIZE_MAX.
1409         (init_word_char): Work even if bitset words are not exactly 32 or
1410         64 bits wide.  Don't assume there are no padding bits.
1411         * lib/regex.c [_LIBC]: Do not include <config.h>.
1412         [!_LIBC]: Add pragmas to ignore -Wsuggest-attributes=pure
1413         and -Wtype-limits.
1414         * lib/regex.h (__USE_GNU): Renamed from __USE_GNU_REGEX, to avoid
1415         needless disagreement with glibc.  All uses changed.  Define it to
1416         1 only if _GNU_SOURCE, to match glibc.
1417         (_REG_RM_NAME): Remove; no longer needed, since the names in
1418         question are now all protected by __USE_GNU.
1419         (_REG_RE_NAME): Remove; replaced by glibc's __REPB_PREFIX.
1420         (REG_TRANSLATE_TYPE): Remove; replaced by glibc's __RE_TRANSLATE_TYPE.
1421         * lib/regex_internal.h (MIN): New macro.
1422
1423         2012-01-03 Ulrich Drepper <drepper@gmail.com>
1424         * lib/regcomp.c (init_word_char): Optimize regex a bit.
1425
1426         2011-12-30 Jakub Jelinek <jakub@redhat.com>
1427         * lib/regex_internal.c (re_string_fetch_byte_case):
1428         Fix up regcomp/regexec.  The problem is that parse_bracket_symbol
1429         is miscompiled, and it turns out it is because of an incorrect
1430         attribute on re_string_fetch_byte_case.  Unlike
1431         re_string_peek_byte_case, this one is really not pure, it modifies
1432         memory (increments pstr->cur_idx), and with the pure attribute GCC
1433         assumed it doesn't and it cached the presumed value of
1434         regexp->cur_idx in a variable across the
1435          for (;; ++i)
1436            {
1437              if (i >= BRACKET_NAME_BUF_SIZE)
1438                return REG_EBRACK;
1439              if (token->type == OP_OPEN_CHAR_CLASS)
1440                ch = re_string_fetch_byte_case (regexp);
1441              else
1442                ch = re_string_fetch_byte (regexp);
1443              if (re_string_eoi(regexp))
1444                return REG_EBRACK;
1445              if (ch == delim && re_string_peek_byte (regexp, 0) == ']')
1446                break;
1447              elem->opr.name[i] = ch;
1448            }
1449
1450         2011-11-29 Andreas Schwab <schwab@redhat.com>
1451         * lib/regcomp.c (build_equiv_class):
1452         Fix access after end of search string in regex matcher.
1453
1454         2011-11-12 Ulrich Drepper <drepper@redhat.com>
1455         * lib/regex_internal.c, lib/regex_internal.h: Fix warnings in regex.
1456
1457         2011-10-12 Ulrich Drepper <drepper@redhat.com>
1458         * lib/regcomp.c (parse_branch): One more regex memory leak fixed.
1459
1460         2011-10-11 Ulrich Drepper <drepper@redhat.com>
1461         * lib/regcomp.c (parse_branch, parse_sub_exp):
1462         More regex memory leak fixes and tests.
1463         (parse_sub_exp, parse_bracket_exp):
1464         Fix memory leak for some invalid regular expressions.
1465
1466         2011-05-28 Ulrich Drepper <drepper@gmail.com>
1467         * lib/regex_internal.c, lib/regexec.c:
1468         Fix unnecessary overallocation due to incomplete character.  When
1469         incomplete characters are found at the end of a string the code
1470         ran amok and allocated lots of memory.  Stricter limits are now in
1471         place.
1472
1473         2011-05-20 Reuben Thomas <rrt@sc3d.org>
1474         * lib/regex.h: Update documentation.
1475
1476         2011-05-16 Aharon Robbins <arnold@skeeve.com>
1477         * lib/regex.h: Update RE_SYNTAX*_AWK constants.
1478
1479         2010-05-05 Andreas Schwab <schwab@redhat.com>
1480         * lib/regexec.c (find_collation_sequence_value):
1481         Fix lookup of collation sequence value during regexp matching.
1482
1483         2010-01-22 Ulrich Drepper <drepper@redhat.com>
1484         * lib/regex_internal.c (re_dfa_add_node): Extend overflow detection.
1485
1486         2008-01-16 Ulrich Drepper <drepper@redhat.com>
1487         * lib/regex.h: Cleanup namespace.
1488
1489         2007-11-26 Ulrich Drepper <drepper@redhat.com>
1490         * lib/regex.h (REG_ENOSYS): Define REG_ENOSYS also for __USE_XOPEN2K.
1491
1492         2007-08-26 Ulrich Drepper <drepper@redhat.com>
1493         * lib/regex_internal.h: Prevent some declarations and definitions
1494         to be seen when used in tests.
1495
1496         2005-05-06 Ulrich Drepper <drepper@redhat.com>
1497         * lib/regex_internal.h: Include bits/libc-lock.h or define dummy
1498         __libc_lock_* macros if not _LIBC.
1499         (struct re_dfa_t): Add lock.
1500
1501 2012-02-07  Eric Blake  <eblake@redhat.com>
1502
1503         maint.mk: also prohibit lower-case @var@
1504         * top/maint.mk (sc_makefile_at_at_check): Enhance check to cover
1505         lower case, like @top_srcdir@.
1506
1507 2012-02-04  Eric Blake  <eblake@redhat.com>
1508
1509         canonicalize: avoid uninitialized memory use
1510         * lib/canonicalize-lgpl.c (__realpath): Avoid possibility of
1511         random '/' left in dest.
1512         * lib/canonicalize.c (canonicalize_filename_mode): Likewise.
1513
1514 2012-02-04  Bruno Haible  <bruno@clisp.org>
1515
1516         isatty: Fix test failure of ptsname_r on native Windows.
1517         * lib/isatty.c (_isatty_nothrow): Upon exception, return 0, not -1,
1518         and don't set errno.
1519         (isatty): Test first whether fd is valid. Set errno when returning 0.
1520
1521 2012-02-04  Bruno Haible  <bruno@clisp.org>
1522
1523         spawn-pipe tests: Fix a NULL program name in a diagnostic.
1524         * tests/test-spawn-pipe-main.c: Include progname.h.
1525         (main): Invoke set_program_name.
1526         * modules/spawn-pipe-tests (Depends-on): Add progname.
1527
1528         nonblocking-socket tests: Fix a NULL program name in a diagnostic.
1529         * tests/test-nonblocking-socket-main.c: Include progname.h.
1530         (main): Invoke set_program_name.
1531         * modules/nonblocking-socket-tests (Depends-on): Add progname.
1532
1533         nonblocking-pipe tests: Fix a NULL program name in a diagnostic.
1534         * tests/test-nonblocking-pipe-main.c: Include progname.h.
1535         (main): Invoke set_program_name.
1536         * modules/nonblocking-pipe-tests (Depends-on): Add progname.
1537
1538 2012-02-04  Eric Blake  <eblake@redhat.com>
1539
1540         canonicalize-lgpl: fix // handling
1541         * lib/canonicalize-lgpl.c (__realpath): Don't convert /// to //.
1542
1543         canonicalize: fix // handling
1544         * lib/canonicalize.c (canonicalize_filename_mode): Don't convert
1545         /// to //, since only // is special.
1546
1547 2012-02-04  Bruno Haible  <bruno@clisp.org>
1548
1549         ioctl: Fix test failure on native Windows.
1550         * lib/ioctl.c: Include msvc-nothrow.h.
1551         (primary_ioctl): If fd is not a valid handle, set errno to EBADF.
1552
1553 2012-02-04  Bruno Haible  <bruno@clisp.org>
1554
1555         fsync: Avoid test failure on native Windows.
1556         * lib/fsync.c (fsync) [Windows]: Don't fail if the handle is merely
1557         read-only.
1558
1559 2012-02-04  Bruno Haible  <bruno@clisp.org>
1560
1561         sys_select: Avoid syntax error on OpenBSD 5.0.
1562         * lib/sys_select.in.h [OpenBSD]: When /usr/include/pthread.h is
1563         currently being included, just include the system's <sys/select.h>.
1564
1565 2012-02-04  Bruno Haible  <bruno@clisp.org>
1566
1567         sys_select: Avoid syntax error on OpenBSD 5.0.
1568         * lib/sys_select.in.h: Include <signal.h> only after the include_next
1569         <sys/select.h>, not before.
1570         Reported by Jiri B <jirib@devio.us>.
1571
1572 2012-02-04  Bruno Haible  <bruno@clisp.org>
1573
1574         get-rusage-as, get-rusage-data tests: Avoid test failure with gcc-4.7.
1575         * tests/test-get-rusage-as.c (main): Assign the malloc() results to
1576         global variables.
1577         * tests/test-get-rusage-data.c (main): Likewise.
1578         Reported by Jim Meyering.
1579
1580 2012-02-04  Bruno Haible  <bruno@clisp.org>
1581
1582         stdioext: Fix last commit.
1583         * lib/fwritable.c [EPLAN9]: Include <fcntl.h>.
1584
1585 2012-02-03  Bruno Haible  <bruno@clisp.org>
1586
1587         stdioext: Add tentative support for Plan9.
1588         * lib/stdio-impl.h: Include <errno.h>.
1589         * lib/fseterr.c (fseterr) [EPLAN9]: Add conditional code.
1590         * lib/freadable.c (freadable): Likewise.
1591         * lib/fwritable.c (fwritable): Likewise.
1592         * lib/fbufmode.c (fbufmode): Likewise.
1593         * lib/freading.c (freading): Likewise.
1594         * lib/fwriting.c (fwriting): Likewise.
1595         * lib/freadptr.c (freadptr): Likewise.
1596         * lib/freadseek.c (freadptrinc): Likewise.
1597         * lib/freadahead.c (freadahead): Likewise.
1598         * lib/fpurge.c (fpurge): Likewise.
1599         * lib/fseeko.c (rpl_fseeko): Likewise.
1600         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Plan9.
1601         Reported by Jens Staal <staal1978@gmail.com>.
1602
1603 2012-02-02  Jim Meyering  <meyering@redhat.com>
1604
1605         file-has-acl: suppress a warning from gcc -Wsuggest-attribute=const
1606         * lib/file-has-acl.c (file_has_acl): This function (for some #ifdefs)
1607         would evoke a new gcc warning.  Given all of the #ifdefs, it is better
1608         not even to try to add the attribute.  Instead, add a pragma to suppress
1609         the suggestion/warning.
1610
1611 2012-01-31  Karl Berry  <karl@gnu.org>
1612
1613         setstate doc: typo.
1614         * doc/posix-functions/setstate.texi (setstate): { not (.
1615
1616 2012-01-31  Bruno Haible  <bruno@clisp.org>
1617
1618         popen: Make more robust on Windows.
1619         * lib/popen.c: On native Windows, use the _popen based code even if
1620         HAVE_POPEN is set.
1621         * doc/posix-functions/popen.texi: Mention necessity of COMSPEC
1622         environment variable on native Windows.
1623
1624 2012-01-30  Bruno Haible  <bruno@clisp.org>
1625
1626         pclose: Fix typo.
1627         * lib/stdio.in.h (pclose): Fix typo in warning message.
1628
1629 2012-01-30  Bruno Haible  <bruno@clisp.org>
1630
1631         doc about getlogin_r, setstate.
1632         * doc/posix-functions/getlogin_r.texi: List the incompatible
1633         declaration problem under "not fixed by gnulib".
1634         * doc/posix-functions/setstate.texi: Mention incompatible declaration
1635         problem on Solaris 11 and other platforms.
1636
1637 2012-01-30  Chuanchang Jia  <chuanchang.jia@gmail.com>  (tiny change)
1638             Bruno Haible  <bruno@clisp.org>
1639
1640         poll tests: Make test more robust.
1641         * tests/test-poll.c: Include macros.h.
1642         (test_accept_first, test_pair, test_socket_pair, test_pipe): Verify
1643         return value of various I/O operations.
1644         * modules/poll-tests (Files): Add tests/macros.h.
1645
1646 2012-01-30  Bruno Haible  <bruno@clisp.org>
1647
1648         sys_stat: Fix support for mingw64 and MSVC.
1649         * lib/sys_stat.in.h (stat) [AIX]: Don't redefine 'stat' if the system
1650         header files already do it.
1651         (stat) [mingw, msvc]: Redefine the symbol to which stat is defined, not
1652         stat itself.
1653         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
1654
1655 2012-01-30  Bruno Haible  <bruno@clisp.org>
1656
1657         wcwidth: Work around bug in UTF-8 locale on OpenBSD 5.0.
1658         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test also wcwidth of U+05B0.
1659         * doc/posix-functions/wcwidth.texi: Mention the OpenBSD 5.0 bug.
1660
1661 2012-01-29  Bruno Haible  <bruno@clisp.org>
1662
1663         quotearg: Fix test failure on MacOS X 10.5.
1664         * tests/test-quotearg-simple.c: Include localcharset.h.
1665         (main): If the locale encoding is not ASCII, bypass the tests of
1666         locale_quoting_style and clocale_quoting_style.
1667         * modules/quotearg-tests (Depends-on): Add 'localcharset'.
1668
1669 2012-01-29  Jim Meyering  <meyering@redhat.com>
1670
1671         maint.mk: sc_prohibit_canonicalize_without_use: avoid false positive
1672         * top/maint.mk (sc_prohibit_canonicalize_without_use): Also
1673         detect uses of canonicalize_file_name.
1674
1675 2012-01-28  Bruno Haible  <bruno@clisp.org>
1676
1677         test-framework-sh: Fix test failure with AIX 7.1 diff.
1678         * tests/init.sh (compare_): Don't use 'diff -u' if it inserts a space
1679         in column 1, like 'diff -c' does.
1680         * tests/test-init.sh (test_compare): Don't repeat the test from init.sh
1681         whether 'diff -u' is used. Instead, test whether the output contains
1682         some '@' character.
1683
1684 2012-01-28  Paul Eggert  <eggert@cs.ucla.edu>
1685
1686         strtoimax: eliminate need for stdint.h, inttypes.h checks
1687         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't use
1688         gl_AC_HEADER_STDINT_H or gl_AC_HEADER_INTTYPES_H.  This reduces
1689         the prerequisites for a recently-introduced strtoimax test.
1690         I guess this might cause strtoimax to be replaced when not
1691         strictly necessary on older hosts, but this shouldn't introduce
1692         any bugs and it should make Emacs 'configure' faster on typical
1693         modern hosts.  Problem discovered when importing the latest gnulib
1694         to an Emacs test version.
1695         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4.
1696
1697 2012-01-28  Bruno Haible  <bruno@clisp.org>
1698
1699         sys_time: Override 'struct timeval' on some native Windows platforms.
1700         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Test whether tv_sec
1701         has the right type. Set REPLACE_STRUCT_TIMEVAL if not.
1702         (gl_HEADER_SYS_TIME_H_DEFAULTS): Initialize REPLACE_STRUCT_TIMEVAL.
1703         * lib/sys_time.in.h: Include <winsock2.h> also when 'struct timeval'
1704         needs to be overridden.
1705         (timeval): Override if REPLACE_STRUCT_TIMEVAL is set.
1706         * modules/sys_time (Makefile.am): Substitute REPLACE_STRUCT_TIMEVAL.
1707         * tests/test-sys_select.c: Check that the tv_sec member has the same
1708         size as a 'time_t'.
1709         * tests/test-sys_time.c: Likewise.
1710         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): If REPLACE_STRUCT_TIMEVAL
1711         is set, set also REPLACE_GETTIMEOFDAY.
1712         * lib/gettimeofday.c (gettimeofday): If 'struct timeval' is overridden,
1713         convert the resulting 'struct timeval' before returning.
1714         * lib/select.c: Include <sys/time.h>.
1715         (select, timeval): Undefine at the right place.
1716         * modules/select (Depends-on): Add sys_time.
1717         * doc/posix-headers/sys_time.texi: Mention the problem with tv_sec on
1718         some Windows platforms.
1719         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
1720
1721 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
1722
1723         accept4, fcntl, socket modules: Avoid warnings on x86_64 mingw64.
1724         * lib/accept4.c (accept4): Use intptr_t to convert handle pointer to
1725         an integer.
1726         * lib/fcntl.c (dupfd): Likewise.
1727         * lib/w32sock.h (SOCKET_TO_FD): Likewise.
1728
1729 2012-01-28  Bruno Haible  <bruno@clisp.org>
1730
1731         fcntl: Avoid compilation error on native Windows.
1732         * modules/fcntl (Depends-on): Add 'close'.
1733
1734 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
1735
1736         select, poll, isatty: Avoid warnings on x86_64 mingw64.
1737         * lib/select.c (IsConsoleHandle): Use intptr_t to convert handle
1738         pointer to an integer.
1739         * lib/poll.c (IsConsoleHandle): Likewise.
1740         * lib/isatty.c (IsConsoleHandle): Likewise.
1741
1742 2012-01-28  Jim Meyering  <meyering@redhat.com>
1743
1744         doc: clarify README-release
1745         * top/README-release: Clarify: you should make a point to have
1746         the latest stable versions of build tools in your PATH, and the
1747         reference to buildreq is solely for its list of tool names, not
1748         for its minimal-functional version numbers.
1749         Prompted by discussion with Reuben Thomas and Gary V. Vaughan.
1750
1751         maint.mk: use more readable (yet functionally equivalent) quoting
1752         It is common to quote a single quote in a single quoted string like
1753         this:  '...'\''...'.  Unless you know the idiom, that looks like
1754         gibberish, so prefer to double-quote the string when possible.
1755         Then you can use a more readable, lone single quote: "...'..."
1756         * top/maint.mk (sc_cast_of_argument_to_free): Quoting like this
1757         "don't" is more readable than the equivalent 'don'\''t'.
1758         (sc_cast_of_x_alloc_return_value): Likewise.
1759         (sc_cast_of_alloca_return_value): Likewise.
1760         (sc_makefile_path_separator_check): Similar: use ":" in '...',
1761         rather than '\'':'\''.
1762
1763 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
1764
1765         stdalign: relax _Alignof and tighten _Alignas test
1766         * m4/stdalign.m4 (gl_STDALIGN_H): Relax the _Alignof test,
1767         as it was too strict: alignof must divide offsetof, but it need
1768         not equal offsetof.  Inspired by Joseph S. Myers's comment
1769         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52023#c10>.
1770         Conversely, tighten the _Alignas test a bit, as the resulting
1771         alignment must be exactly 8.
1772
1773 2012-01-27  Bruno Haible  <bruno@clisp.org>
1774
1775         stdalign: Document the last change.
1776         * doc/posix-headers/stdalign.texi: Mention GCC bug 52023.
1777
1778 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
1779
1780         stdalign: check that alignof and offsetof are consistent
1781         * m4/stdalign.m4 (gl_STDALIGN_H): Check for GCC bug 52023.
1782         Problem reported for gnulib by Richard W.M. Jones in
1783         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00340.html>.
1784
1785 2012-01-27  Jim Meyering  <meyering@redhat.com>
1786
1787         update-copyright: accept new option: UPDATE_COPYRIGHT_USE_INTERVALS=2
1788         * build-aux/update-copyright: When UPDATE_COPYRIGHT_USE_INTERVALS=2,
1789         convert a sequence with gaps to the minimal containing range.
1790         For example, convert 2000, 2004-2007, 2009 to 2000-2009.
1791         * tests/test-update-copyright.sh: Test for this.
1792         The FSF confirmed it is ok to do this, assuming there is at
1793         least one significant change per year in the affected range:
1794         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29554/focus=29860
1795
1796 2012-01-26  Bruno Haible  <bruno@clisp.org>
1797
1798         pipe2: refine doc about thread-safety
1799         * doc/glibc-functions/pipe2.texi: Clarify the extent of the
1800         multithread-safety problem.
1801         * doc/glibc-functions/accept4.texi: Likewise.
1802
1803 2012-01-26  Bruno Haible  <bruno@clisp.org>
1804
1805         posix_spawn_file_actions_addopen: Fix 2012-01-08 commit.
1806         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN):
1807         In the test program, include <fcntl.h>, for O_RDONLY.
1808
1809 2012-01-26  Eric Blake  <eblake@redhat.com>
1810
1811         pipe2: document lack of thread-safety in replacement
1812         * doc/glibc-functions/pipe2.texi (pipe2): Mention thread safety
1813         issue in replacement.
1814         * doc/glibc-functions/accept4.texi (accept4): Likewise.
1815         Based on a report by Eric Wong.
1816
1817 2012-01-24  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
1818             Bruno Haible  <bruno@clisp.org>
1819
1820         malloca: Avoid warnings on x86_64 mingw64.
1821         * lib/malloca.c: Include <stdint.h>.
1822         (mmalloca, freea): Use uintptr_t to convert pointers to integers.
1823         * modules/malloca (Depends-on): Add stdint.
1824         * modules/relocatable-prog-wrapper (Depends-on): Likewise.
1825
1826 2012-01-25  Paul Eggert  <eggert@cs.ucla.edu>
1827
1828         obstack: remove __STDC__ conditionals
1829         * lib/obstack.h: Remove __STDC__ conditionals, as suggested by Joseph
1830         S. Myers in <http://cygwin.com/ml/libc-alpha/2012-01/msg00104.html>.
1831         This leaves lib/localcharset.c, m4/iconv.m4, and a confusing comment in
1832         m4/include_next.m4 as the only gnulib-maintained places that still
1833         refer to __STDC__.
1834
1835 2012-01-24  Bruno Haible  <bruno@clisp.org>
1836
1837         havelib: Modern quoting.
1838         * build-aux/config.rpath: Quote 'like this', not `like this', as per
1839         the recent change to the GNU coding standards.
1840
1841 2012-01-24  Bruno Haible  <bruno@clisp.org>
1842
1843         stdint: Improve support for Android.
1844         * lib/stdint.in.h: Test __ANDROID__, not __BIONIC__.
1845         Reported by Simon Josefsson <simon@josefsson.org>.
1846
1847 2012-01-23  Paul Eggert  <eggert@cs.ucla.edu>
1848
1849         doc: omit trailing empty lines from INSTALL etc.
1850         * doc/Makefile (INSTALL): Omit trailing empty lines.
1851         (INSTALL.ISO, INSTALL.UTF-8): Build from INSTALL, so that these also
1852         omit trailing empty lines.  This simplifies the build procedure.
1853
1854 2012-01-23  Jim Meyering  <meyering@redhat.com>
1855
1856         tests: avoid spurious warnings about gl_sockets_startup
1857         Fedora rawhide's gcc version 4.7.0 20120119 with -Wunused-value
1858         would warn about every use of "gl_sockets_startup (SOCKETS_1_1);"
1859         reporting a "statement with no effect".
1860         * tests/test-accept.c (main): Mark as "(void)".
1861         * tests/test-accept4.c (main): Likewise.
1862         * tests/test-bind.c (main): Likewise.
1863         * tests/test-connect.c (main): Likewise.
1864         * tests/test-getpeername.c (main): Likewise.
1865         * tests/test-getsockname.c (main): Likewise.
1866         * tests/test-getsockopt.c (main): Likewise.
1867         * tests/test-listen.c (main): Likewise.
1868         * tests/test-recv.c (main): Likewise.
1869         * tests/test-recvfrom.c (main): Likewise.
1870         * tests/test-send.c (main): Likewise.
1871         * tests/test-sendto.c (main): Likewise.
1872         * tests/test-setsockopt.c (main): Likewise.
1873         * tests/test-shutdown.c (main): Likewise.
1874
1875 2012-01-21  Bruno Haible  <bruno@clisp.org>
1876
1877         locale-fr.m4: Fix for Android.
1878         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Avoid compilation
1879         failure of the test program on Bionic libc.
1880
1881 2012-01-21  Jim Meyering  <meyering@redhat.com>
1882
1883         bootstrap: fail when bootstrap_post_import_hook fails
1884         Otherwise, it's far too easy to miss diagnostics emitted
1885         between gnulib-tool's output and that of running configure.
1886         * build-aux/bootstrap: Fail when bootstrap_post_import_hook fails.
1887
1888 2012-01-17  Jim Meyering  <meyering@redhat.com>
1889
1890         maint: enable sc_trailing_blank
1891         * build-aux/pmccabe.css: Remove trailing blanks.
1892         * doc/acl-cygwin.txt: Likewise.
1893         * doc/gnu-oids.texi: Likewise
1894         * cfg.mk: Enable sc_trailing_blank.
1895         Exempt build-aux/texinfo.tex and doc/Copyright/assign.future.manual.
1896
1897 2012-01-17  Jim Meyering  <meyering@redhat.com>
1898
1899         maint: enable sc_prohibit_openat_without_use
1900         * cfg.mk: Enable sc_prohibit_openat_without_use.
1901         Exempt lib/selinux-at.c.
1902
1903 2012-01-17  Jim Meyering  <meyering@redhat.com>
1904
1905         maint: enable sc_prohibit_cloexec_without_use
1906         * cfg.mk: Enable sc_prohibit_cloexec_without_use.
1907         * lib/dup-safer-flag.c: Don't include "cloexec.h".  Not needed.
1908
1909 2012-01-17  Jim Meyering  <meyering@redhat.com>
1910
1911         maint: enable sc_prohibit_intprops_without_use
1912         * cfg.mk: Enable sc_prohibit_intprops_without_use
1913         * tests/test-nanosleep.c: Don't include "intprops.h".  Not needed.
1914
1915 2012-01-17  Jim Meyering  <meyering@redhat.com>
1916
1917         maint: enable sc_prohibit_hash_pjw_without_use
1918         * cfg.mk: Enable sc_prohibit_hash_pjw_without_use.
1919         * top/maint.mk (sc_prohibit_hash_pjw_without_use): Adjust regexp
1920         to match any use of \<hash_pjw\>, i.e., not necessarily with a
1921         following " (".
1922
1923 2012-01-17  Jim Meyering  <meyering@redhat.com>
1924
1925         maint: enable double-word-prohibiting rule
1926         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_doubled_word.
1927         Exempt three files.
1928
1929 2012-01-17  Jim Meyering  <meyering@redhat.com>
1930
1931         maint: remove empty lines at EOF, but excluding modules/*
1932         Apply syntax rules at home as well as abroad.  Most changes
1933         were induced by running this:
1934           make srcdir=. _build-aux=build-aux -f top/maint.mk \
1935             sc_prohibit_empty_lines_at_EOF | grep -v modules/ \
1936             | xargs perl -pi -0777 -e 's/\n\n+$/\n/'
1937         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_empty_lines_at_EOF.
1938         Exempt modules/* and two binary files.
1939         Also exempt doc/INSTALL*, per request from Bruno Haible.
1940         * doc/regexprops-generic.texi: *Add* a newline at EOF.  There was none.
1941         * doc/Copyright/assign.translation.manual: Remove empty lines at EOF.
1942         * doc/Copyright/request-assign.future: Likewise.
1943         * doc/Copyright/request-disclaim.changes: Likewise.
1944         * doc/INSTALL: Likewise.
1945         * doc/INSTALL.ISO: Likewise.
1946         * doc/INSTALL.UTF-8: Likewise.
1947         * doc/acl-cygwin.txt: Likewise.
1948         * doc/acl-resources.txt: Likewise.
1949         * doc/fdl-1.2.texi: Likewise.
1950         * doc/fdl-1.3.texi: Likewise.
1951         * doc/fdl.texi: Likewise.
1952         * lib/argp-pin.c: Likewise.
1953         * lib/round.c: Likewise.
1954         * lib/unicase/u16-totitle.c: Likewise.
1955         * lib/unictype/block_test.c: Likewise.
1956         * lib/uninorm/canonical-decomposition.c: Likewise.
1957         * m4/README: Likewise.
1958         * m4/relocatable-lib.m4: Likewise.
1959         * tests/test-isnand-nolibm.c: Likewise.
1960         * tests/test-isnand.c: Likewise.
1961         * tests/uninorm/NormalizationTest.txt: Likewise.
1962
1963 2012-01-17  Jim Meyering  <meyering@redhat.com>
1964
1965         maint: add framework to run syntax-check rules against gnulib sources
1966         * cfg.mk: New file, to disable all currently-failing tests.
1967         We'll enable them one by one, as they are made to pass.
1968         * Makefile (sc_maint): New rule.
1969
1970 2012-01-21  Bruno Haible  <bruno@clisp.org>
1971
1972         stdint: Add support for Android.
1973         * lib/stdint.in.h: When included from Bionic <sys/types.h>, just
1974         include the system's <stdint.h>.
1975         Reported by Simon Josefsson <simon@josefsson.org>.
1976
1977 2012-01-19  Jim Meyering  <meyering@redhat.com>
1978
1979         bootstrap: add bootstrap_post_import_hook
1980         Bison does still need something like the gnulib_mk_hook whose
1981         invocation I had to remove along with slurp in commit 767ccd40.
1982         Technically, we could get along without it, but doing so would
1983         have required living with a warning and a mandatory post-bootstrap
1984         automake rerun.
1985         * build-aux/bootstrap (gnulib_mk_hook): Remove definition, too.
1986         (bootstrap_post_import_hook): New function.
1987         Invoke it after gnulib-tool --import and before autoreconf.
1988
1989 2012-01-18  Jim Meyering  <meyering@redhat.com>
1990
1991         gitlog-to-changelog: don't use "no_"-prefixed variable name
1992         * build-aux/gitlog-to-changelog (main): Use getopt's "!" attribute
1993         to enable both --cluster and --no-cluster.  Change variable name,
1994         s/\$no_cluster/$cluster/, and reverse usage to match.
1995
1996         gitlog-to-changelog: use "||", not "or" in expressions
1997         * build-aux/gitlog-to-changelog (main): Use "||", not "or" in
1998         expressions.
1999
2000 2012-01-17  Joel E. Denny  <joeldenny@joeldenny.org>
2001
2002         gitlog-to-changelog: new option --no-cluster
2003         * build-aux/gitlog-to-changelog: New option --no-cluster, disables
2004         clustering of adjacent commit messages.
2005
2006 2012-01-17  Jim Meyering  <meyering@redhat.com>
2007
2008         maint: spell file systems with two words, not one
2009         * m4/ls-mntd-fs.m4 (MOUNTED_INTERIX_STATVFS): Spell file systems with
2010         two words, not one.
2011
2012 2012-01-16  Jim Meyering  <meyering@redhat.com>
2013
2014         bootstrap: add a FIXME comment to ensure we eventually remove the hack
2015         * build-aux/bootstrap (gnulib_tool_options): Add comment.
2016
2017 2012-01-16  Eric Blake  <eblake@redhat.com>
2018
2019         bootstrap: cater to autoconf 2.59
2020         * build-aux/bootstrap (AUTORECONF): Work even when --no-recursive
2021         is not available.
2022
2023         bootstrap: properly check for libtool
2024         * build-aux/bootstrap (libtoolize): Also run libtool when older
2025         usage is detected.
2026
2027 2012-01-15  Bruno Haible  <bruno@clisp.org>
2028
2029         Improve support for MSVC 9.
2030         * lib/unistd.in.h: Include <io.h> when needed to avoid redefinition
2031         clashes on MSVC.
2032         * lib/fcntl.in.h: Likewise.
2033         * lib/stdlib.in.h: Likewise.
2034         * lib/sys_stat.in.h: Likewise.
2035
2036 2011-01-15  Stefano Lattarini  <stefano.lattarini@gmail.com>
2037
2038         gnupload: we hold the master copy of this script now
2039         For motivation and more information, see:
2040         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00222.html>
2041         * build-aux/gnupload: Make it clear in the heading comments that the
2042         master copy of this file is maintained by gnulib.  Since we are at
2043         it, bump its copyright year and ...
2044         ($scriptversion): ... the date in its version.
2045         ($usage): Patches and bug reports should be sent to the gnulib list,
2046         not the automake one.
2047         * config/srclist.txt: Don't try to sync 'gnupload' from automake
2048         anymore.
2049
2050 2012-01-15  Bruno Haible  <bruno@clisp.org>
2051
2052         Fix module 'random'.
2053         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether random, srandom,
2054         initstate, setstate are declared.
2055
2056 2012-01-14  Bruno Haible  <bruno@clisp.org>
2057
2058         Tests for module 'random'.
2059         * modules/random-tests: New file.
2060         * tests/test-random.c: New file, based on tests/test-random_r.c.
2061
2062         New module 'random'.
2063         * lib/stdlib.in.h (random, srandom, initstate, setstate): New
2064         declarations.
2065         * lib/random.c: New file, based on glibc/stdlib/random.c.
2066         * m4/random.m4: New file.
2067         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RANDOM,
2068         HAVE_RANDOM.
2069         * modules/stdlib (Makefile.am): Substitute GNULIB_RANDOM, HAVE_RANDOM.
2070         * modules/random: New file.
2071         * config/srclist.txt: Add an entry for random.c.
2072         * doc/posix-functions/random.texi: Mention the 'random' module.
2073         * doc/posix-functions/initstate.texi: Likewise.
2074         * doc/posix-functions/setstate.texi: Likewise.
2075         * doc/posix-functions/srandom.texi: Likewise.
2076
2077 2012-01-12  Bruno Haible  <bruno@clisp.org>
2078
2079         random_r: Use common idioms.
2080         * lib/random_r.c: Include <stdlib.h> first.
2081
2082         random_r: Override incompatible API on AIX, OSF/1.
2083         * lib/stdlib.in.h (random_r, srandom_r, initstate_r, setstate_r):
2084         Override the system function if REPLACE_RANDOM_R is 1.
2085         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Require AC_CANONICAL_HOST. On AIX
2086         and OSF/1, set REPLACE_RANDOM_R.
2087         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_RANDOM_R.
2088         * modules/stdlib (Makefile.am): Substitute REPLACE_RANDOM_R.
2089         * modules/random_r (configure.ac): Test REPLACE_RANDOM_R.
2090         * doc/glibc-functions/initstate_r.texi: Mention the AIX, OSF/1 problem.
2091         * doc/glibc-functions/random_r.texi: Likewise.
2092         * doc/glibc-functions/setstate_r.texi: Likewise.
2093
2094         random_r: Support for MSVC 9.
2095         * lib/random_r.c: Include stdint.h, not inttypes.h.
2096
2097 2012-01-12  Eric Blake  <eblake@redhat.com>
2098
2099         inet_ntop: guard extra work by IF_LINT
2100         * lib/inet_ntop.c (inet_ntop6): Mark spurious initialization, for
2101         better code generation when not checking for warnings.
2102         Suggested by Paul Eggert and Jim Meyering.
2103
2104         strptime: fix regression on mingw
2105         * lib/strptime.c (__strptime_internal) [!_LIBC && !HAVE_TM_GMTOFF]:
2106         Fix regression.  Reported by Bruno Haible.
2107
2108 2012-01-11  Reuben Thomas  <rrt@sc3d.org>
2109             Bruno Haible  <bruno@clisp.org>
2110
2111         copy-file: add error-code-returning variant.
2112         * lib/copy-file.h (GL_COPY_ERR_*): New enumeration items.
2113         (qcopy_file_preserving): New declaration.
2114         * lib/copy-file.c (qcopy_file_preserving): Renamed from
2115         copy_file_preserving. Change return type to 'int'. Don't emit an error
2116         message here.
2117         (copy_file_preserving): New function.
2118         * tests/test-copy-file.c: Include <stdlib.h>.
2119         (main): Test qcopy_file_preserving if the environment variable
2120         NO_STDERR_OUTPUT is set.
2121         * tests/test-copy-file-1.sh: Invoke test-copy-file.sh a second time,
2122         with NO_STDERR_OUTPUT
2123         * tests/test-copy-file-2.sh: Likewise.
2124
2125 2012-01-10  Bruno Haible  <bruno@clisp.org>
2126
2127         copy-file: Use 'quote' module consistently.
2128         * lib/copy-file.c (copy_file_preserving): Use quote().
2129
2130         copy-file: Refactor.
2131         * lib/copy-file.c: Include quote.h.
2132         (copy_file_preserving): Call qcopy_acl instead of copy_acl. Emit error
2133         message here.
2134         * modules/copy-file (Depends-on): Add quote.
2135
2136         acl: Export qcopy_acl.
2137         * lib/acl.h (qcopy_acl): New declaration.
2138         * lib/copy-acl.c (qcopy_acl): Make non-static.
2139
2140         acl: Rename a local variable.
2141         * lib/set-mode-acl.c (set_acl): Use same variable name as in copy_acl.
2142
2143         acl: Align return values of copy_acl and qcopy_acl.
2144         * lib/copy-acl.c (copy_acl): Return the same value as qcopy_acl,
2145         maybe < -1.
2146
2147 2012-01-11  Eric Blake  <eblake@redhat.com>
2148
2149         strptime: silence gcc warnings
2150         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT],
2151         [!_LIBC && !HAVE_TM_GMTOFF]: Avoid unused variables.
2152         Reported by Daniel P. Berrange.
2153
2154         inet_ntop: silence gcc warning
2155         * lib/inet_ntop.c (inet_ntop6): Initialize best.base.
2156         Reported by Daniel P. Berrange.
2157
2158 2012-01-11  Dmitry V. Levin  <ldv@altlinux.org>
2159
2160         getloadavg test: skip the test on GNU/Linux without /proc mounted
2161         GNU libc implements getloadavg(3) on Linux by parsing /proc/loadavg
2162         file.  When /proc is not mounted, it always fails with ENOENT.
2163         * tests/test-getloadavg.c (main): Treat ENOENT return code from
2164         getloadavg(3) the same way as ENOSYS and ENOTSUP.
2165
2166 2012-01-10  Bruno Haible  <bruno@clisp.org>
2167
2168         regex: Avoid link error on MSVC 9.
2169         * modules/regex (Depends-on): Add wctype.
2170
2171 2012-01-10  Bruno Haible  <bruno@clisp.org>
2172
2173         doc: Mention --with-tests option.
2174         * gnulib-tool (func_usage): Suggest --with-tests for --test etc.
2175         * doc/gnulib.texi (Extra tests modules): Mention the need to pass
2176         --with-tests.
2177         Reported by Reuben Thomas.
2178
2179 2012-01-10  Reuben Thomas  <rrt@sc3d.org>
2180
2181         users.txt: order package names lexicographically.
2182         * users.txt: Order package names lexicographically.
2183
2184 2012-01-10  Jim Meyering  <meyering@redhat.com>
2185
2186         maint.mk: fix description in comment
2187         * top/maint.mk (require_exactly_one_NL_at_EOF_): Fix comment.
2188
2189         ignore-value: remove deprecated ignore_ptr function
2190         * lib/ignore-value.h (ignore_ptr): Remove deprecated function.
2191         * NEWS: Note this.
2192
2193 2012-01-09  Jim Meyering  <meyering@redhat.com>
2194
2195         test-init.sh: avoid a subshell
2196         * tests/test-init.sh: Remove protective subshell.
2197         Suggested by Bernhard Voelker.  While a subshell is normally
2198         required to protect against older shells (Solaris, FreeBSD) that
2199         warn about a missing program before performing redirection, the
2200         shell-selection tests performed by init.sh probably exclude any
2201         offending shell.
2202
2203 2012-01-08  Bruno Haible  <bruno@clisp.org>
2204
2205         setlocale tests: Avoid test failure on Solaris 11 2011-11.
2206         * tests/test-setlocale2.sh: Use 'env' to set the LC_ALL environment
2207         variable.
2208
2209 2012-01-08  Bruno Haible  <bruno@clisp.org>
2210
2211         posix_spawn_file_actions_addopen: Work around Solaris 11 2011-11 bug.
2212         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
2213         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
2214         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN): New
2215         macro.
2216         * lib/spawn.in.h (posix_spawn_file_actions_addopen): Test
2217         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
2218         * lib/spawn_faction_addopen.c: Add workaround implementation if
2219         HAVE_WORKING_POSIX_SPAWN.
2220         * modules/spawn (Makefile): Substitute
2221         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
2222         * modules/posix_spawn_file_actions_addopen (configure.ac): Invoke
2223         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN. Test
2224         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
2225         (Depends-on): Update conditions.
2226         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
2227         the Solaris 11 bug.
2228
2229 2012-01-08  Bruno Haible  <bruno@clisp.org>
2230
2231         posix_spawn_file_actions_adddup2: Work around Solaris 11 2011-11 bug.
2232         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
2233         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
2234         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2): New
2235         macro.
2236         * lib/spawn.in.h (posix_spawn_file_actions_adddup2): Test
2237         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
2238         * lib/spawn_faction_adddup2.c: Add workaround implementation if
2239         HAVE_WORKING_POSIX_SPAWN.
2240         * modules/spawn (Makefile): Substitute
2241         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
2242         * modules/posix_spawn_file_actions_adddup2 (configure.ac): Invoke
2243         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2. Test
2244         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
2245         (Depends-on): Update conditions.
2246         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
2247         the Solaris 11 bug.
2248
2249 2012-01-08  Bruno Haible  <bruno@clisp.org>
2250
2251         posix_spawn_file_actions_addclose: Work around Solaris 11 2011-11 bug.
2252         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
2253         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
2254         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Define
2255         HAVE_WORKING_POSIX_SPAWN.
2256         (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE): New macro.
2257         * lib/spawn.in.h (posix_spawn_file_actions_addclose): Test
2258         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
2259         * lib/spawn_faction_addclose.c: Add workaround implementation if
2260         HAVE_WORKING_POSIX_SPAWN.
2261         * modules/spawn (Makefile): Substitute
2262         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
2263         * modules/posix_spawn_file_actions_addclose (configure.ac): Invoke
2264         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE. Test
2265         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
2266         (Depends-on): Update conditions.
2267         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
2268         the Solaris 11 bug.
2269
2270 2012-01-08  Bruno Haible  <bruno@clisp.org>
2271
2272         doc: Update for Solaris 11 2011-11.
2273         * doc/*/*.texi: Mention Solaris 11 2011-11 where appropriate.
2274         * m4/printf.m4: Update comments.
2275
2276 2012-01-08  Bruno Haible  <bruno@clisp.org>
2277
2278         mktime: Avoid compilation error on Solaris 11.
2279         * lib/mktime.c (WRAPV): Define to 0 on all non-glibc systems.
2280
2281 2012-01-08  Bruno Haible  <bruno@clisp.org>
2282
2283         doc: Small fix.
2284         * doc/posix-headers/nl_types.texi: Correct platforms list.
2285
2286 2012-01-08  Simon Josefsson  <simon@josefsson.org>
2287
2288         Add lgpl-3.0 module.
2289         * MODULES.html.sh (Support for building documentation): Add
2290         lgpl-3.0.
2291         * modules/lgpl-3.0: New file.
2292
2293 2012-01-08  Jim Meyering  <meyering@redhat.com>
2294
2295         select.c: indent with spaces, not TABs
2296         * lib/select.c (windows_poll_handle): Indent with spaces, not TABs.
2297
2298 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
2299
2300         quotearg: do not use grave accent for left quote
2301         * lib/quotearg.c (gettext_quote): Map "`" to "'" for
2302         locale_quoting_style.
2303         (quotearg_buffer_restyled): Fix example.
2304         * tests/test-quotearg-simple.c (results_g): Adjust test vectors.
2305
2306 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
2307
2308         quotearg: fall back to Unicode single quotes in UTF-8, GB-18030 locales
2309         Most programs do not have translation catalogs for English and much
2310         less separate catalogs for British and American English.  Drop the
2311         suggestion to translators about these two, and provide it
2312         automatically for Unicode locales.  Like most programs, even those
2313         using American English, we use single quotation marks.  This conflicts
2314         with the American typographic convention, but works better when you
2315         cite the entire error message within double quotes.  It also tries not
2316         to clash with established practice and with what non-gnulib programs
2317         will usually do.
2318         * lib/quotearg.c (gettext_quote): Hard-code U+2018 and U+2019 when
2319         using an UTF-8 or GB-18030 locale.  The list of other locales with
2320         quotes was provided by Bruno Haible.
2321         (quotearg_buffer_restyled): Adjust instructions to translators.
2322         * lib/quotearg.h (locale_quoting_style): Do not put an example in the
2323         text, since this would be wrong when using Unicode.
2324         * modules/quotearg: Depend on c-strcaseeq.
2325
2326 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
2327
2328         quotearg: fix Wikipedia link
2329         * lib/quotearg.c (quotearg_buffer_restyled): Fix link to Wikipedia.
2330
2331 2012-01-07  Simon Josefsson  <simon@josefsson.org>
2332
2333         Fix for mingw with MSVC9.
2334         * m4/ld-version-script.m4: Check that compiler rejects version
2335         scripts with syntax errors.  Reported by Bruno Haible
2336         <bruno@clisp.org>.
2337
2338 2012-01-06  Bruno Haible  <bruno@clisp.org>
2339
2340         Talk about "native Windows API", not "Woe32".
2341         * lib/accept4.c: Update comments to mention native Windows.
2342         * lib/execute.c: Likewise.
2343         * lib/fatal-signal.c: Likewise.
2344         * lib/localcharset.c: Likewise.
2345         * lib/nanosleep.c: Likewise.
2346         * lib/nl_langinfo.c: Likewise.
2347         * lib/pclose.c: Likewise.
2348         * lib/pipe-filter-gi.c: Likewise.
2349         * lib/pipe-filter-ii.c: Likewise.
2350         * lib/pipe.c: Likewise.
2351         * lib/pipe2.c: Likewise.
2352         * lib/popen.c: Likewise.
2353         * lib/progreloc.c: Likewise.
2354         * lib/relocatable.c: Likewise.
2355         * lib/sigaction.c: Likewise.
2356         * lib/sigprocmask.c: Likewise.
2357         * lib/spawn-pipe.h: Likewise.
2358         * lib/spawn-pipe.c: Likewise.
2359         * lib/spawni.c: Likewise.
2360         * lib/stat-time.h: Likewise.
2361         * lib/w32spawn.h: Likewise.
2362         * tests/test-isatty.c: Likewise.
2363         * lib/config.charset: More comments.
2364         * doc/gnulib-intro.texi: Mention native Windows.
2365         * doc/posix-functions/_Exit_C99.texi: Likewise.
2366         * doc/posix-headers/fcntl.texi: Likewise.
2367
2368 2012-01-06  Guillem Jover  <guillem@hadrons.org>  (tiny change)
2369
2370         argp: Avoid crash if translator uses % characters in a translation.
2371         * lib/argp-parse.c (argp_version_parser): Use a "%s" format string.
2372         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
2373
2374 2012-01-06  Paul Eggert  <eggert@cs.ucla.edu>
2375
2376         doc: C11 and C++11 are now official
2377         * doc/posix-headers/assert.texi, doc/posix-headers/stdalign.texi:
2378         * doc/verify.texi, stdalign.in.h, verify.h, m4/gnulib-common.m4:
2379         * m4/stdalign.m4, modules/assert-h, modules/snippet/_Noreturn:
2380         * modules/stdalign:
2381         Replace references to draft C1X to C11, and to draft C++0X to C++11.
2382
2383 2012-01-06  Bruno Haible  <bruno@clisp.org>
2384
2385         uc-is-grapheme-break tests: Tweak.
2386         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Fix an error
2387         message.
2388
2389 2012-01-06  Bruno Haible  <bruno@clisp.org>
2390
2391         test-init.sh: correct the test for diff -u
2392         * tests/test-init.sh: Also redirect stdout to /dev/null.
2393
2394 2012-01-05  Paul Eggert  <eggert@cs.ucla.edu>
2395
2396         Use ', not `, for quoting output.
2397         * build-aux/announce-gen (usage, sizes, print_news_deltas)
2398         (print_changelog_deltas, get_tool_versions, main program):
2399         * build-aux/git-version-gen:
2400         * build-aux/gitlog-to-changelog (usage, parse_amend_file):
2401         * build-aux/move-if-change (help):
2402         * build-aux/useless-if-before-free (usage, main program):
2403         * check-module (parse_module_file, usage)
2404         (find_included_lib_files, check_module):
2405         * lib/argmatch.c (main) [TEST]:
2406         * lib/argp-help.c (_help):
2407         * lib/getopt1.c (main) [TEST]:
2408         * lib/git-merge-changelog.c (usage):
2409         * lib/xstrtol-error.c (xstrtol_error):
2410         * m4/alloca.m4 (_AC_LIBOBJ_ALLOCA):
2411         * m4/argz.m4 (gl_FUNC_ARGZ):
2412         * m4/bison.m4 (gl_BISON):
2413         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU):
2414         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
2415         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
2416         * m4/fpending.m4 (gl_PREREQ_FPENDING):
2417         * m4/gc-random.m4 (gl_GC_RANDOM):
2418         * m4/intl.m4 (gt_CHECK_DECL):
2419         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK):
2420         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT)
2421         (AC_TYPE_UNSIGNED_LONG_LONG_INT):
2422         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS):
2423         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK):
2424         * m4/onceonly.m4 (AC_CHECK_FUNCS_ONCE):
2425         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION):
2426         * tests/test-dirname.c (main):
2427         * tests/test-getpass.c (main):
2428         * tests/test-iconvme.c (main):
2429         * tests/test-parse-datetime.c (LOG):
2430         * tests/test-xstrtoimax.sh:
2431         * tests/test-xstrtol.sh:
2432         * tests/test-xstrtoll.sh:
2433         * tests/test-xstrtoumax.sh:
2434         * tests/unigbrk/test-uc-is-grapheme-break.c (main):
2435         * top/GNUmakefile (abort-due-to-no-makefile):
2436         Quote 'like this', not `like this', as per the recent change to
2437         the GNU coding standards.
2438
2439 2012-01-05  Bruno Haible  <bruno@clisp.org>
2440
2441         strtoimax: Don't force a replacement on systems where intmax_t is int.
2442         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Use a different test if
2443         'intmax_t' is not larger than 'int'.
2444         Reported by Pádraig Brady <P@draigBrady.com>.
2445
2446 2012-01-05  Bruno Haible  <bruno@clisp.org>
2447
2448         doc: Mention NetBSD bugs.
2449         * doc/posix-functions/*printf.texi: Mention a NetBSD 5.1 bug.
2450         * doc/posix-functions/nl_langinfo.texi: Mention another NetBSD 5.1 bug.
2451
2452 2012-01-05  Bruno Haible  <bruno@clisp.org>
2453
2454         strtoumax tests: Enhance tests.
2455         * tests/test-strtoumax.c (main): Add tests for large values.
2456
2457 2012-01-05  Bruno Haible  <bruno@clisp.org>
2458
2459         strtoimax: Work around AIX 5.1 bug.
2460         * lib/inttypes.in.h (strtoimax): Allow overriding the system's
2461         definition.
2462         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Check against the AIX 5.1 bug.
2463         Set HAVE_STRTOIMAX.
2464         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Initialize
2465         REPLACE_STRTOIMAX.
2466         * modules/inttypes-incomplete (Makefile.am): Substitute
2467         REPLACE_STRTOIMAX.
2468         * modules/strtoimax (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
2469         (configure.ac): Test HAVE_STRTOIMAX, REPLACE_STRTOIMAX.
2470         (Depends-on): Update conditions.
2471         * tests/test-strtoimax.c (main): Add tests for large values.
2472         * doc/posix-functions/strtoimax.texi: Mention the AIX 5.1 bug.
2473
2474 2012-01-05  Bruno Haible  <bruno@clisp.org>
2475
2476         inttypes: Modernize.
2477         * lib/inttypes.in.h (strtoimax, strtoumax): Use the C++ safe idioms.
2478         * modules/inttypes-incomplete (Depends-on): Add snippet/c++defs.
2479         (Makefile.am): Update inttypes.h rule.
2480
2481 2012-01-05  Jim Meyering  <meyering@redhat.com>
2482
2483         init.sh: don't waste a subshell just to redirect stderr
2484         * tests/init.sh: In testing for diff -u and diff -c, use a
2485         stderr-redirecting exec inside `...` rather than a subshell.
2486
2487         test-init.sh: avoid failure on HP-UX 11.00
2488         * tests/test-init.sh: Skip "diff -u"-comparing step when compare
2489         resolves to diff -c or cmp.  Reported by Bruno Haible.
2490
2491 2012-01-05  Bruno Haible  <bruno@clisp.org>
2492
2493         Tests for module 'strtoull'.
2494         * modules/strtoull-tests: New file.
2495         * tests/test-strtoull.c: New file, based on tests/test-strtoumax.c.
2496
2497 2012-01-05  Bruno Haible  <bruno@clisp.org>
2498
2499         Tests for module 'strtoll'.
2500         * modules/strtoll-tests: New file.
2501         * tests/test-strtoll.c: New file, based on tests/test-strtoimax.c.
2502
2503 2012-01-05  Bruno Haible  <bruno@clisp.org>
2504
2505         Tests for module 'strtoul'.
2506         * modules/strtoul-tests: New file.
2507         * tests/test-strtoul.c: New file, based on tests/test-strtoumax.c.
2508
2509 2012-01-05  Bruno Haible  <bruno@clisp.org>
2510
2511         Tests for module 'strtol'.
2512         * modules/strtol-tests: New file.
2513         * tests/test-strtol.c: New file, based on tests/test-strtoimax.c.
2514
2515 2012-01-04  Jim Meyering  <meyering@redhat.com>
2516
2517         test-init.sh: accommodate Solaris 5.10's different diff -u output
2518         * tests/test-init.sh: Also exempt @@ lines from the comparison
2519         of diff output, since Solaris 5.10 and GNU diff formats differ.
2520         Reported by Stefano Lattarini.
2521
2522 2012-01-04  Paul Eggert  <eggert@cs.ucla.edu>
2523
2524         test-posixtm: don't assume signed integer wraparound
2525         * tests/test-posixtm.c (main): Don't assume wraparound semantics
2526         after signed integer overflow.  Inspired by (though it may not
2527         fix) Bruno Haible's bug report in
2528         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00066.html>.
2529
2530         Spell out "Windows 9x" and "Windows XP".
2531         * lib/poll.c, lib/select.c: In comments, replace "Win9x" with
2532         "Windows 9x" and "WinXP" with "Windows XP".
2533
2534 2012-01-04  Jim Meyering  <meyering@redhat.com>
2535
2536         test-vc-list-files-cvs.sh: remove obsolete comment
2537         * tests/test-vc-list-files-cvs.sh: Remove obsolete comment about
2538         double exit.  Now that's all encapsulated via skip_ and Exit.
2539
2540 2012-01-04  Bruno Haible  <bruno@clisp.org>
2541
2542         Talk about "native Windows API", not "Win32".
2543         * lib/classpath.c: Update comments to mention native Windows.
2544         * lib/csharpexec.c: Likewise.
2545         * lib/dup2.c: Likewise.
2546         * lib/error.c: Likewise.
2547         * lib/fcntl.c: Likewise.
2548         * lib/filename.h: Likewise.
2549         * lib/findprog.c: Likewise.
2550         * lib/get-rusage-as.c: Likewise.
2551         * lib/get-rusage-data.c: Likewise.
2552         * lib/getpagesize.c: Likewise.
2553         * lib/javaexec.c: Likewise.
2554         * lib/msvc-inval.c: Likewise.
2555         * lib/msvc-nothrow.c: Likewise.
2556         * lib/nanosleep.c: Likewise.
2557         * lib/nonblocking.c: Likewise.
2558         * lib/printf-parse.c: Likewise.
2559         * lib/setlocale.c: Likewise.
2560         * lib/sigaction.c: Likewise.
2561         * lib/strerror_r.c: Likewise.
2562         * lib/tmpdir.c: Likewise.
2563         * lib/vasnprintf.c: Likewise.
2564         * lib/w32spawn.h: Likewise.
2565         * lib/waitpid.c: Likewise.
2566         * lib/stdio.in.h (fdopen, fopen, freopen): Likewise.
2567         * m4/locale-ar.m4: Likewise.
2568         * m4/locale-fr.m4: Likewise.
2569         * m4/locale-ja.m4: Likewise.
2570         * m4/locale-tr.m4: Likewise.
2571         * m4/locale-zh.m4: Likewise.
2572         * m4/printf.m4: Likewise.
2573         * tests/test-cloexec.c: Likewise.
2574         * tests/test-copy-acl.sh: Likewise.
2575         * tests/test-copy-file.sh: Likewise.
2576         * tests/test-file-has-acl.sh: Likewise.
2577         * tests/test-set-mode-acl.sh: Likewise.
2578         * tests/test-dup-safer.c: Likewise.
2579         * tests/test-dup2.c: Likewise.
2580         * tests/test-dup3.c: Likewise.
2581         * tests/test-fcntl.c: Likewise.
2582         * tests/test-nonblocking-pipe.h: Likewise.
2583         * tests/test-nonblocking-socket.h: Likewise.
2584         * tests/test-pipe.c: Likewise.
2585         * tests/test-pipe2.c: Likewise.
2586         * tests/test-spawn-pipe-child.c: Likewise.
2587         * doc/acl-resources.txt: Likewise.
2588         * lib/getaddrinfo.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
2589         * tests/test-poll.c (WINDOWS_NATIVE): Likewise.
2590         * tests/test-select.h (WINDOWS_NATIVE): Likewise.
2591         * lib/localcharset.c: Update comments to mention native Windows.
2592         (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
2593         * lib/localename.c: Likewise.
2594         * lib/progreloc.c: Likewise.
2595         * lib/relocatable.c: Likewise.
2596         * lib/poll.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
2597         (windows_compute_revents): Renamed from win32_compute_revents.
2598         (windows_compute_revents_socket): Renamed from
2599         win32_compute_revents_socket.
2600         * lib/select.c: Update comments to mention native Windows.
2601         (windows_poll_handle): Renamed from win32_poll_handle.
2602         * m4/threadlib.m4: Update comments to mention native Windows.
2603         (gl_THREADLIB_EARLY_BODY, gl_THREADLIB_BODY): Expect
2604         --enable-threads=windows instead of --enable-threads=win32. Set
2605         USE_WINDOWS_THREADS, not USE_WIN32_THREADS.
2606         * lib/glthread/lock.h: Update comments to mention native Windows.
2607         (USE_WINDOWS_THREADS): Renamed from USE_WIN32_THREADS.
2608         * lib/glthread/lock.c (USE_WINDOWS_THREADS): Renamed from
2609         USE_WIN32_THREADS.
2610         * lib/glthread/cond.h (USE_WINDOWS_THREADS): Likewise.
2611         * lib/glthread/cond.c (USE_WINDOWS_THREADS): Likewise.
2612         * lib/glthread/thread.h (USE_WINDOWS_THREADS): Likewise.
2613         * lib/glthread/thread.c (USE_WINDOWS_THREADS): Likewise.
2614         * lib/glthread/tls.h (USE_WINDOWS_THREADS): Likewise.
2615         * lib/glthread/tls.c (USE_WINDOWS_THREADS): Likewise.
2616         * lib/glthread/yield.h (USE_WINDOWS_THREADS): Likewise.
2617         * tests/test-cond.c (USE_WINDOWS_THREADS): Likewise.
2618         * tests/test-thread_create.c (USE_WINDOWS_THREADS): Likewise.
2619         * tests/test-lock.c (USE_WINDOWS_THREADS): Likewise.
2620         (TEST_WINDOWS_THREADS): Renamed from TEST_WIN32_THREADS.
2621         * tests/test-tls.c: Likewise.
2622         Rationale:
2623         Microsoft renamed the "Win32 API" to "Windows API", as it is available
2624         on both 32-bit and 64-bit Windows systems.
2625         But in gnulib, we treat Cygwin like a Unix platform, therefore the main
2626         line of distinction is between "native Windows" on one side and Unix/
2627         POSIX systems on the other side. More details in
2628         <https://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00027.html>.
2629         Suggested by Paul Eggert.
2630
2631 2012-01-03  Bruno Haible  <bruno@clisp.org>
2632
2633         isatty: Support for MSVC 9.
2634         * doc/posix-functions/isatty.texi: Mention the MSVC problem.
2635         * lib/isatty.c: Include <errno.h>, msvc-inval.h.
2636         (_isatty_nothrow): New function.
2637         (isatty): Use it instead of _isatty.
2638         (IsConsoleHandle): Add comment, from Paolo Bonzini.
2639         * lib/poll.c (IsConsoleHandle): Likewise.
2640         * lib/select.c (IsConsoleHandle): Likewise.
2641         * m4/isatty.m4 (gl_FUNC_ISATTY): Fix comment. Reported by Eli Zaretskii.
2642         (gl_PREREQ_ISATTY): New macro.
2643         * modules/isatty (Depends-on): Add msvc-inval.
2644         (configure.ac): Invoke gl_PREREQ_ISATTY.
2645
2646 2012-01-03  Jim Meyering  <meyering@redhat.com>
2647
2648         maint.mk: remove temporary transition aid from over 1.5 years ago
2649         * top/maint.mk (_prohibit_regexp): Remove definition whose sole
2650         purpose was to aid in the transition (avoiding silent malfunction)
2651         from that old name to the new _sc_search_regexp.  This shim was
2652         added by commit 219c504b.
2653
2654         init.sh: do not try to accommodate compare arguments starting with "-"
2655         * tests/init.sh (compare_dev_null_): Do not try to accommodate
2656         compare arguments that start with "-".  Besides, we do not worry
2657         about this when invoking diff or cmp; why start now with sed?
2658         Using "--" to separate options from argument would trigger sed
2659         failure in at least Solaris 7, HP-UX 11.00, IRIX 6.5, FreeBSD 6.4,
2660         OpenBSD 4.9 and NetBSD 5.1.  Reported by Bruno Haible.
2661
2662 2012-01-02  Bruno Haible  <bruno@clisp.org>
2663
2664         Enhance tests for module 'isatty'.
2665         * modules/isatty-tests (Depends-on): Add pipe-posix.
2666         * tests/test-isatty.c: Include <fcntl.h>.
2667         (DEV_NULL): New macro.
2668         (main): Test the resut of isatty() also on regular files, pipes, and
2669         /dev/null.
2670
2671         New module 'isatty'.
2672         * lib/unistd.in.h (isatty): New declaration.
2673         * lib/isatty.c: New file, based on an idea of
2674         Bastien Roucariès <roucaries.bastien@gmail.com>.
2675         * m4/isatty.m4: New file.
2676         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether isatty is declared.
2677         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ISATTY, REPLACE_ISATTY.
2678         * modules/unistd (Makefile.am): Substitute GNULIB_ISATTY,
2679         REPLACE_ISATTY.
2680         * modules/isatty: New file.
2681         * doc/posix-functions/isatty.texi: Mention the new module.
2682         Suggested by Paolo Bonzini.
2683
2684 2012-01-02  Bruno Haible  <bruno@clisp.org>
2685
2686         canonicalize: Tweak 2011-12-29 commit.
2687         * lib/canonicalize.c (canonicalize_filename_mode): Fix typo in comment.
2688         * lib/canonicalize.h (canonicalize_filename_mode): Update specification.
2689
2690 2012-01-02  Jim Meyering  <meyering@redhat.com>
2691
2692         gitlog-to-changelog: describe input syntax in --help output
2693         * build-aux/gitlog-to-changelog (usage) [SPECIAL SYNTAX]: New section.
2694
2695         gitlog-to-changelog: fix typo in --help: show backslash before email @
2696         * build-aux/gitlog-to-changelog (usage): An "@" was backslash-escaped
2697         in sources, but not in actual output.
2698
2699 2011-12-30  Jim Meyering  <meyering@redhat.com>
2700
2701         gitlog-to-changelog: don't malfunction when name contains %-directive
2702         * build-aux/gitlog-to-changelog (main): Don't let a %-directive
2703         in a name string cause trouble.  E.g., with a user name of "%s",
2704         gitlog-to-changelog would fail with "Missing argument in sprintf at..."
2705
2706 2011-12-30  Gary V. Vaughan  <gary@gnu.org>
2707
2708         gitlog-to-changelog: Copyright-paperwork-exempt: yes == (tiny change)
2709         * build-aux/gitlog-to-changelog (main): Map the string, at beginning
2710         of line in a git commit log, "Copyright-paperwork-exempt: yes", to
2711         the "  (tiny change)" notation that is appended to the standard
2712         ChangeLog "date  name  email" header line.
2713
2714 2012-01-01  Jim Meyering  <meyering@redhat.com>
2715
2716         test-framework-sh: init.sh: fix "make dist" failure
2717         When using gnulib-tool's --with-tests option and any module that
2718         depends on test-framework-sh, "make dist" would fail due to the
2719         lack of init.sh *in lib/*.  The EXTRA_DIST += init.sh is required
2720         in the gltests directory, and not in the gllib/ directory.
2721         One way to work around that is to move the EXTRA_DIST += init.sh
2722         from the primary module to the -tests one:
2723         * modules/test-framework-sh-tests (EXTRA_DIST): Add init.sh here, ...
2724         * modules/test-framework-sh (Makefile.am): ...not here.
2725         Reported by Tom G. Christensen in
2726         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29519
2727
2728         version-etc: update copyright year reported by --version
2729         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2012.
2730
2731 2011-12-31  Pádraig Brady  <P@draigBrady.com>
2732
2733         canonicalize: only stat() if required
2734         * lib/canonicalize.c (canonicalize_filename_mode):
2735         Avoid calling l?stat() when both CAN_MISSING,
2736         and CAN_NOLINKS are set, as we neither need
2737         to resolve symlinks or test component existence.
2738
2739 2011-12-31  Paul Eggert  <eggert@cs.ucla.edu>
2740
2741         doc: cover st_ino issues once; add OpenVMS etc.
2742         * doc/posix-functions/stat.texi (stat):
2743         * doc/posix-functions/lstat.texi (lstat):
2744         * doc/posix-functions/fstatat.texi (fstatat):
2745         * doc/posix-functions/fstat.texi (fstat):
2746         Move general 'struct stat' stuff to sys_stat.texi,
2747         leaving behind a pointer.
2748         * doc/posix-headers/sys_stat.texi (sys/stat.h):
2749         Merge duplicate info about 'struct stat' problems into here.
2750         Mention issues with OpenVMS, GNU/Linux NFS, NetApp, ClearCase,
2751         and suggest partial workarounds.
2752
2753         same-inode: port to OpenVMS
2754         * lib/same-inode.h (SAME_INODE): Port to OpenVMS by checking all
2755         three st_ino values.
2756
2757 2011-12-30  Pádraig Brady  <P@draigBrady.com>
2758
2759         canonicalize: fix references to stat() and lstat()
2760         * lib/canonicalize.c (canonicalize_filename_mode):
2761         Ensure references always resolve to a replacement
2762         function if required (even via a macro).
2763
2764 2011-12-30  Jim Meyering  <meyering@redhat.com>
2765
2766         gitlog-to-changelog: remove a little duplication
2767         * build-aux/gitlog-to-changelog (main): Grep @lines once,
2768         rather than twice.
2769
2770 2011-12-29  Pádraig Brady  <P@draigBrady.com>
2771
2772         canonicalize: add support for not resolving symlinks
2773         * lib/canonicalize.h: Add the CAN_NOLINKS flag to
2774         indicate we don't want to follow symlinks.  Also
2775         provide CAN_MODE_MASK to aid setting these existing
2776         mutually exclusive values.
2777         * lib/canonicalize.c (canonicalize_filename_mode):
2778         Extract the flags from can_mode parameter, which
2779         are currently just used to select between stat()
2780         and lstat().  Also ensure that mutually exclusive
2781         values are flagged immediately as invalid.
2782         * tests/test-canonicalize.c: Verify symlinks are
2783         not followed, and that invalid flag combinations
2784         are diagnosed.
2785
2786 2011-12-25  Jim Meyering  <meyering@redhat.com>
2787
2788         gitlog-to-changelog: do not clump multi-paragraph entries
2789         Identical header lines (date,name,email+coauthors) are suppressed,
2790         thus putting all entries with those same characteristics under
2791         a single header.  However, when a log entry consists of two or
2792         more paragraphs, it may not be clear where it starts and ends.
2793         This change makes it so that such an entry is always separated
2794         from others by a header line, even when that header would
2795         otherwise be suppressed.
2796         * build-aux/gitlog-to-changelog: Implement the above.
2797         Inspired by a related request from Stefano Lattarini in
2798         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29456
2799
2800 2011-12-25  Paul Eggert  <eggert@cs.ucla.edu>
2801
2802         announce-gen: fix `cmd' typo in diagnostic
2803         * build-aux/announce-gen (print_changelog_deltas): Fix typo in
2804         diagnostic: a missing '$' meant that the command was not output.
2805
2806 2011-12-23  Jim Meyering  <meyering@redhat.com>
2807
2808         test-framework-sh: distribute init.sh
2809         * modules/test-framework-sh (EXTRA_DIST): Append init.sh.
2810         Otherwise, "make -C gnulib-tests check" (at least in grep) would
2811         fail due to the lack of init.sh.
2812
2813         maint: remove explicit Files: tests/init.sh; depend on test-framework-sh
2814         * modules/atexit-tests: Rather than listing tests/init.sh,
2815         now that there's a module for it, simply depend on that new module.
2816         * modules/closein-tests: Likewise.
2817         * modules/exclude-tests: Likewise.
2818         * modules/getcwd-tests: Likewise.
2819         * modules/perror-tests: Likewise.
2820         * modules/pread-tests: Likewise.
2821         * modules/pwrite-tests: Likewise.
2822         * modules/vc-list-files-tests: Likewise.
2823         * modules/verify-tests: Likewise.
2824         * modules/xalloc-die-tests: Likewise.
2825         * modules/xstrtoimax-tests: Likewise.
2826         * modules/xstrtol-tests: Likewise.
2827         * modules/xstrtoll-tests: Likewise.
2828         * modules/xstrtoumax-tests: Likewise.
2829         * modules/yesno-tests: Likewise.
2830
2831 2011-12-22  Jim Meyering  <meyering@redhat.com>
2832
2833         test-framework-sh: add minimal tests of init.sh's compare function
2834         * modules/test-framework-sh-tests: New file.
2835         * tests/test-init.sh: New file.
2836
2837         test-framework-sh: new module
2838         * modules/test-framework-sh: New file.
2839         * MODULES.html.sh (Support for maintaining and releasing projects):
2840         List it.
2841
2842         init.sh: do not emit simulated diff output to stderr
2843         * tests/init.sh (compare_dev_null_): Print to stdout, not stderr.
2844
2845 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
2846
2847         .gitignore: ignore gnulib.dvi and regex.info
2848         * doc/.gitignore:add gnulib.dvi and regex.info
2849
2850 2011-12-22  Jim Meyering  <meyering@redhat.com>
2851
2852         init.sh: correct previous change
2853         * tests/init.sh (compare): My previous change was wrong.
2854         Don't clobber "$?".  Spotted by Stefano Lattarini and Pádraig Brady.
2855
2856         init.sh: avoid unwarranted test failure when using "set -e"
2857         * tests/init.sh (compare): Ignore nonzero exit from compare_dev_null_.
2858         Otherwise, in a test script that uses "set -e" (like many in vc-dwim)
2859         a use like "compare exp out" would get evoke an unconditional failure.
2860
2861 2011-12-21  Alfred M. Szmidt  <ams@gnu.org>
2862
2863         bootstrap: fix it to honor $ACLOCAL_FLAGS once again
2864         The 2011-12-17 change, commit 767ccd40, replaced a manual invocation
2865         of aclocal that used explicit $ACLOCAL_FLAGS with an invocation of
2866         autoreconf that did not.
2867         * build-aux/bootstrap: Use $ACLOCAL_FLAGS when invoking autoreconf.
2868         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
2869
2870 2011-12-17  Jim Meyering  <meyering@redhat.com>
2871
2872         bootstrap: remove some now-unneeded code
2873         This script arose back when gnulib-tool was young.
2874         Since then, it has seen improvements that render much of this
2875         script unnecessary.  In particular, it can now make symlinks
2876         to the files it uses.  Also, I no longer see as much value in
2877         marking files as read-only via comments.
2878         If you relied on the symlink-creation feature of the preceding
2879         version of this script, you can get most of that functionality
2880         by adding the --symlink option to the definition of
2881         gnulib_tool_option_extras in your bootstrap.conf file.
2882         * build-aux/bootstrap (AUTOPOINT, AUTORECONF): Factor out definitions.
2883         Run autopoint and libtoolize *before* gnulib-tool.
2884         After it, run an abbreviated autoreconf, rather than a loop around
2885         all tools.
2886         (slirp, bt_mark_as_generated): Remove functions.
2887
2888 2011-12-18  Paul Eggert  <eggert@cs.ucla.edu>
2889
2890         ftoastr: fix typo
2891         * lib/ftoastr.h: Fix misspelling in comment.
2892
2893 2011-12-18  Reuben Thomas  <rrt@sc3d.org>
2894
2895         * top/README-release: fix punctuation.
2896
2897 2011-12-17  Jim Meyering  <meyering@redhat.com>
2898
2899         bootstrap: correct the recent buildreq change
2900         The 2011-12-07 commit, 39f5f1e4, omitted some '*'s, and thus
2901         had no effect.
2902         * build-aux/bootstrap (buildreq): Bracket each search term with
2903         "*...*", so that the shell "case" statement works as intended.
2904         Add comments.
2905
2906 2011-12-17  Bernhard Voelker  <mail@bernhard-voelker.de>
2907
2908         build: let bootstrap resort to wget when downloading .po files
2909         * build-aux/bootstrap (download_po_files): Fallback to wget when
2910         downloading the .po files via rsync fails.  This is necessary to
2911         bootstrap from behind a strict firewall.
2912
2913 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
2914
2915         stdint: don't assume C++11 when compiling with g++
2916         Problem reported for glibc 2.14 and g++ by Alexander V. Lukyanov in
2917         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00099.html>.
2918         * m4/stdint.m4 (gl_STDINT_H): Don't go to extra work to make it
2919         work also in C++ before C++11, as that improperly inhibits
2920         generating a substitute stdint.h for that case.
2921
2922 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
2923
2924         alloca: protect comment from gnulib-tool
2925         * lib/alloca.c: Change "GCC version 2" to "GCC 2" in comment, so
2926         that gnulib-tool doesn't think it's a license, and munge it to
2927         say "GCC version 3".
2928
2929 2011-12-15  Ludovic Courtès  <ludo@gnu.org>  (tiny change)
2930
2931         localcharset: Use an absolute path in TESTS_ENVIRONMENT.
2932         * modules/localcharset (LOCALCHARSET_TESTS_ENVIRONMENT): Use
2933         $(abs_top_builddir) instead of $(top_builddir).
2934
2935 2011-12-14  Alex Nelson  <ajnelson@cs.ucsc.edu>  (tiny change)
2936
2937         strftime-tests: also test nanoseconds
2938         * tests/test-strftime.c (T): Add a test of %N.
2939
2940 2011-12-13  Paul Eggert  <eggert@cs.ucla.edu>
2941
2942         inttypes, stdint: add C++11 support
2943         C++11 says there's no need to define __STDC_CONSTANT_MACROS etc.
2944         when including inttypes.h and stdint.h.  Support this change to
2945         the standard.
2946         * doc/posix-headers/inttypes.texi (inttypes.h):
2947         * doc/posix-headers/stdint.texi (stdint.h): Document this.
2948         * lib/inttypes.in.h (__STDC_FORMAT_MACROS) [! __cplusplus]:
2949         Define if not defined already, for the benefit of pre-C++11 hosts.
2950         Define the standard format macros (e.g., PRId8) always.
2951         * lib/stdint.in.h (__STDC_CONSTANT_MACROS, __STDC_LIMIT_MACROS):
2952         Likewise, if __cpluspus.  Define the standard constant and limit
2953         macros (e.g., INT8_C, INT8_MAX) always.
2954         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Do not define
2955         GL_TRIGGER_STDC_LIMIT_MACROS or __STDC_LIMIT_MACROS; no longer needed.
2956         * m4/stdint.m4 (gl_STDINT_H): Update comments about these macros.
2957         * tests/test-inttypes.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS)
2958         (__STDC_FORMAT_MACROS): Do not define, since we assume C++11 API now.
2959         * tests/test-stdint.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS):
2960         Likewise.
2961
2962 2011-12-12  Paul Eggert  <eggert@cs.ucla.edu>
2963
2964         nonblocking tests: Fix test failure on Linux/PPC.
2965         Suggested by Prerna Saxena in
2966         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00080.html>.
2967         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/PPC64]:
2968         Set to 1100000.
2969
2970 2011-12-12  Jim Meyering  <meyering@redhat.com>
2971
2972         argmatch: don't hard-code `' when listing valid option arguments
2973         * lib/argmatch.c (argmatch_valid): Don't hard-code `%s'.  Instead,
2974         use the quote function to add quotes.  Use fputs rather than
2975         fprintf for the format string with no format directive.
2976
2977 2011-12-07  Eric Blake  <eblake@redhat.com>
2978
2979         bootstrap: detect tools required by gnulib-tool
2980         * build-aux/bootstrap (buildreq): Provide minimum implicit
2981         dependencies.
2982         * DEPENDENCIES: Mention patch as a prereq.
2983
2984 2011-12-04  Bruno Haible  <bruno@clisp.org>
2985
2986         sethostname: Port to Windows platforms.
2987         * lib/sethostname.c: Provide an alternate implementation for Windows
2988         platforms.
2989         * tests/test-sethostname2.c (geteuid): Redefine on Cygwin.
2990         (main): Skip the test if sethostname() fails with EPERM. On Windows
2991         platforms, don't check the result of gethostname().
2992
2993 2011-12-04  Bruno Haible  <bruno@clisp.org>
2994             Jim Meyering  <meyering@redhat.com>
2995
2996         tests: Avoid spurious error message on platforms without mktemp program.
2997         * tests/init.sh (mktempd_): Run mktemp in a subcommand.
2998
2999 2011-12-04  Bruno Haible  <bruno@clisp.org>
3000
3001         sethostname: Fix documentation.
3002         * doc/glibc-functions/sethostname.texi: Move the Solaris problem to the
3003         "not fixed" section.
3004
3005 2011-12-03  Bruno Haible  <bruno@clisp.org>
3006
3007         gnulib-tool: Verify that the License field is present and non-empty.
3008         * gnulib-tool (func_get_license_raw): New function, extracted from
3009         func_get_license.
3010         (func_get_license): Use it. Warn if the module is not a test module and
3011         has no license.
3012         Suggested by Jim Meyering.
3013
3014 2011-12-03  Bruno Haible  <bruno@clisp.org>
3015
3016         sethostname tests: Fix link error on mingw.
3017         * tests/test-sethostname1.c: New file, extracted from
3018         tests/test-sethostname.c.
3019         * tests/test-sethostname2.c: New file, extracted from
3020         tests/test-sethostname.c.
3021         * tests/test-sethostname.c: Remove file.
3022         * modules/sethostname-tests (Files): Add tests/test-sethostname1.c,
3023         tests/test-sethostname2.c. Remove tests/test-sethostname.c.
3024         (Depends-on): Add gethostname.
3025         (Makefile.am): Compile both test-sethostname1 and test-sethostname2.
3026         Link the latter with $(GETHOSTNAME_LIB).
3027
3028         sethostname tests: Fix compilation error on mingw.
3029         * tests/test-sethostname.c: Don't include <sys/types.h>.
3030         (geteuid): Use a dummy value without uid_t.
3031         * modules/sethostname-tests (Depends-on): Remove sys_types.
3032
3033         sethostname tests: Avoid a gcc warning.
3034         * tests/test-sethostname.c (main): Remove an unused variable.
3035
3036         Tweak last commit.
3037         * modules/sethostname-tests (Files): Sort by decreasing importance.
3038         (configure.ac): Check for geteuid.
3039         * tests/test-sethostname.c (main): Emit error messages to stderr. Skip
3040         the test when there's nothing to test. Drop an unnecessary cast.
3041         Improve an error message. Verify that the final sethostname() call
3042         succeeds.
3043
3044 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
3045
3046         Add a test suite for the sethostname module.
3047         * modules/sethostname-tests: New file.  A test program
3048         for the sethostname module.
3049         * tests/test-sethostname.c: Likewise.
3050
3051 2011-12-03  Bruno Haible  <bruno@clisp.org>
3052
3053         Tweak last commit.
3054         * lib/unistd.in.h (sethostname): Keep declarations in alphabetic order.
3055         Fix preprocessor directives indentation. Fix typos.
3056         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Keep alphabetic order.
3057         * modules/unistd (Makefile): Likewise.
3058
3059 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
3060
3061         Integrate the sethostname module into unistd.
3062         * lib/unistd.in.h: Integrate the SETHOSTNAME preprocessor handling
3063         into the unistd.h header.
3064         * m4/unistd_h.m4: Setup the autoconf handling for the SETHOSTNAME
3065         preprocessor directives.
3066         * modules/unistd: Setup the Makefile substitutions of the
3067         SETHOSTNAME preprocessor directives.
3068
3069 2011-12-03  Bruno Haible  <bruno@clisp.org>
3070
3071         Tweak last commit.
3072         * lib/sethostname.c: Don't include <string.h>.
3073         (sethostname): No need to copy the argument string to the stack. Don't
3074         call clearerr. Preserve errno when fprintf failed.
3075         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): Comment about HOST_NAME_MAX.
3076         Don't invoke AC_REPLACE_FUNCS.
3077         * modules/sethostname (Link): Remove empty section.
3078         * doc/glibc-functions/sethostname.texi: Gnulib does not fix the ENOSYS
3079         failure problem.
3080
3081 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
3082
3083         New module 'sethostname'.
3084         * lib/sethostname.c (sethostname): New file.  Provide sethostname
3085         for systems that lack it.
3086         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): New file.  Detection of
3087         sethostname declaration and function.
3088         * modules/sethostname: New file.  Define the sethostname module.
3089
3090 2011-12-03  Bruno Haible  <bruno@clisp.org>
3091
3092         Tweak last commit.
3093         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Trim blank line.
3094
3095 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
3096
3097         Split the HOST_NAME_MAX detection into a separate m4 macro.
3098         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Make this a separate
3099         macro so it can be used by the pending sethostname module.
3100
3101 2011-12-03  Bruno Haible  <bruno@clisp.org>
3102
3103         Fix module descriptions syntax.
3104         * modules/argv-iter (License): Fix syntax.
3105         * modules/di-set (License): Likewise.
3106         * modules/ino-map (License): Likewise.
3107         Reported by Stefano Lattarini <stefano.lattarini@gmail.com>.
3108
3109 2011-12-02  Paul Eggert  <eggert@cs.ucla.edu>
3110
3111         stdalign: port to Clang 3.0
3112         Problem reported by Simon Josefsson in
3113         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00005.html>.
3114         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Clang 3.0,
3115         which has <stdalign.h> but which does not define alignof.
3116         * m4/stdalign.m4 (gl_STDALIGN_H): Check for Clang 3.0's problem.
3117
3118 2011-12-01  Eric Blake  <eblake@redhat.com>
3119
3120         mktempd: silence dd usage
3121         * build-aux/mktempd (rand_bytes): Silence dd.
3122
3123 2011-11-30  Simon Josefsson  <simon@josefsson.org>
3124
3125         manywarnings: Don't mention gcc version in docstring.
3126         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Doc fix.  Suggested by
3127         Jim Meyering <meyering@redhat.com>.
3128
3129 2011-11-30  Jim Meyering  <meyering@redhat.com>
3130
3131         hash: mark a few floating point constants with "f" suffix
3132         * lib/hash.c (DEFAULT_GROWTH_THRESHOLD, DEFAULT_GROWTH_FACTOR)
3133         (DEFAULT_SHRINK_THRESHOLD, DEFAULT_SHRINK_FACTOR): Mark literal
3134         floating point constants with "f", since they're destined to be
3135         saved/used as "float"s.
3136
3137 2011-11-29  Paolo Bonzini  <bonzini@gnu.org>
3138
3139         float tests: Correct and re-enable assertion about LDBL_MIN_EXP.
3140         * tests/test-float.c (test_long_double): Correct and re-enable the
3141         assertion about LDBL_MIN_EXP that was disabled on 2011-08-31.
3142
3143 2011-11-29  Matthew Wala  <wala1@illinois.edu>  (tiny change)
3144
3145         Avoid subtracting two pointers that don't point into the same block.
3146         * lib/argp-help.c (hol_append): Reorder pointer subtractions so that
3147         only pointers into the same memory block are subtracted. We cannot
3148         assume that sizeof (ptrdiff_t) == sizeof (void *).
3149
3150 2011-11-29  Eric Blake  <eblake@redhat.com>
3151
3152         maint.mk: add syntax check for use of compare from init.sh
3153         * top/maint.mk (sc_prohibit_reversed_compare_failure): New rule,
3154         moved here from coreutils.
3155
3156         manywarnings: drop -Wunsuffixed-float-constants
3157         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): C99 does not allow
3158         '1.0D', which is the only way to silence this warning for 'double'.
3159
3160 2011-11-29  Jim Meyering  <meyering@redhat.com>
3161
3162         hash: mark compute_bucket_size with the pure attribute
3163         * lib/hash.c (compute_bucket_size): Use _GL_ATTRIBUTE_PURE.
3164
3165         quotearg, propername: correct pragma guard expression
3166         * lib/quotearg.c: Enable pragma for gcc-4.6 and newer, not 4.3 and newer.
3167         * lib/propername.c: Likewise.  Reported by Bernhard Voelker.
3168
3169 2011-11-28  Jim Meyering  <meyering@redhat.com>
3170
3171         propername: do not mark proper_name with the const attribute
3172         * lib/propername.h (proper_name): Do *not* mark as _GL_ATTRIBUTE_CONST,
3173         since it examines data pointed to by its parameter.
3174         * lib/propername.c (proper_name): Instead, add a pragma to suppress
3175         the suggestion from -Wsuggest-attribute=const.
3176
3177         propername: mark one more function as const
3178         * lib/propername.h (proper_name): Mark as _GL_ATTRIBUTE_CONST.
3179
3180 2011-11-27  Jim Meyering  <meyering@redhat.com>
3181
3182         mark functions with const and pure attributes
3183
3184         Mark functions per suggestions from gcc-4.6 when using these options:
3185         -Wsuggest-attribute=pure -Wsuggest-attribute=const.
3186         Use gnulib's _GL_ATTRIBUTE_PURE and _GL_ATTRIBUTE_CONST macros.
3187         Follow these guidelines: when possible, apply the attribute to
3188         an extern declaration, not to its definition.  Apply it to the
3189         definition only when the definition is static.
3190         * lib/argmatch.h (argmatch, argmatch_to_argument): Mark.
3191         * lib/argv-iter.h (argv_iter_n_args): Likewise.
3192         * lib/base64.h (isbase64): Likewise.
3193         * lib/basename-lgpl.c (last_component, base_len): Likewise.
3194         * lib/c-ctype.h (c_isascii, c_isalnum, c_isalpha): Likewise.
3195         (c_isblank, c_iscntrl, c_isdigit, c_islower, c_isgraph): Likewise.
3196         (c_isprint, c_ispunct, c_isspace, c_isupper, c_isxdigit): Likewise.
3197         (c_tolower, c_toupper): Likewise.
3198         * lib/c-strcase.h (c_strcasecmp, c_strncasecmp): Likewise.
3199         * lib/chdir-long.c (find_non_slash): Likewise.
3200         * lib/dirname.h (base_len, dir_len, last_component): Likewise.
3201         * lib/exclude.h (fnmatch_pattern_has_wildcards): Likewise.
3202         * lib/file-type.h (file_type): Likewise.
3203         * lib/filenamecat-lgpl.c (longest_relative_suffix): Likewise.
3204         * lib/filevercmp.c (verrevcmp): Likewise.
3205         * lib/freadahead.h (freadahead): Likewise.
3206         * lib/fts.c (fts_maxarglen): Likewise.
3207         * lib/hash-pjw.h (hash_pjw): Likewise.
3208         * lib/hash-triple.h (triple_hash_no_name, triple_compare_ino_str):
3209         * lib/hash.c (is_prime, next_prime): Likewise.
3210         * lib/hash.c (hash_get_n_buckets, hash_get_n_buckets_used): Likewise.
3211         (hash_get_n_entries, hash_get_max_bucket_length): Likewise.
3212         (hash_table_ok, hash_get_first, hash_string): Likewise.
3213         (compute_bucket_size): Likewise.
3214         * lib/i-ring.h (i_ring_empty): Likewise.
3215         * lib/isnan.c (isnanl): Likewise.
3216         * lib/math.h (isnanl, rpl_isnanl): Likewise.
3217         * lib/memcasecmp.h (memcasecmp): Likewise.
3218         * lib/memchr2.h (memchr2): Likewise.
3219         * lib/memcmp2.h (memcmp2): Likewise.
3220         * lib/parse-datetime.y (lookup_zone): Likewise.
3221         * lib/sockets.h (gl_sockets_startup, gl_sockets_cleanup)
3222         [!WINDOWS_SOCKETS]: Likewise.
3223         * lib/strnlen1.h (strnlen1): Likewise.
3224         * lib/uniwidth.in.h (uc_width): Likewise.
3225         * lib/quotearg.c: Add pragma to avoid unwarranted suggestion from
3226         gcc's -Wsuggest-attribute=pure for quoting_options_from_style.
3227         (quoting_options_from_style): Add a comment.
3228         * lib/propername.h (proper_name): Add a comment.
3229
3230 2011-11-27  Bruno Haible  <bruno@clisp.org>
3231
3232         Remove unused macros from !_LIBC code in glibc-borrowed files.
3233         * lib/fnmatch.c (STRCOLL): Remove macro.
3234         * lib/fnmatch_loop.c (STRCOLL): Remove undef.
3235         * lib/glob.c (__stat, __readdir64): Remove macros.
3236         * lib/tempname.c (__open64, __xstat64): Remove macros.
3237         Suggested by Paul Eggert.
3238
3239 2011-11-27  Bruno Haible  <bruno@clisp.org>
3240
3241         getcwd: Fix link error on MSVC 9.
3242         * modules/getcwd (Depends-on): Add readdir, rewinddir.
3243
3244 2011-11-27  Bruno Haible  <bruno@clisp.org>
3245
3246         Don't set REPLACE_FOO to 1 if HAVE_FOO is 0.
3247         * m4/opendir.m4 (gl_FUNC_OPENDIR): Don't set REPLACE_OPENDIR to 1 if
3248         HAVE_OPENDIR is 0.
3249         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Don't set REPLACE_CLOSEDIR to 1 if
3250         HAVE_CLOSEDIR is 0.
3251         * m4/dup2.m4 (gl_FUNC_DUP2): Don't set REPLACE_DUP2 to 1 if HAVE_DUP2
3252         is 0.
3253         * m4/dup3.m4 (gl_FUNC_DUP3): Update comments.
3254
3255 2011-11-27  Bruno Haible  <bruno@clisp.org>
3256
3257         getcwd: Fix bug from 2011-08-17.
3258         * m4/getcwd.m4 (gl_FUNC_GETCWD): Set REPLACE_GETCWD to 1 only on
3259         platforms that need it.
3260         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Consider a return
3261         code of 4 to be a failure, not a success. This ensures that
3262         REPLACE_GETCWD becomes 1 on OpenBSD 4.9 and NetBSD 5.1.
3263
3264 2011-11-27  Bruno Haible  <bruno@clisp.org>
3265
3266         binary-io tests: Avoid test failure on mingw when libtool is used.
3267         * tests/test-binary-io.c (main): Don't remove t-bin-out2.tmp here.
3268         Don't verify the size of t-bin-out1.tmp here.
3269         * tests/test-binary-io.sh: Verify it here.
3270         Reported by Simon Josefsson.
3271
3272 2011-11-26  Bruno Haible  <bruno@clisp.org>
3273
3274         Fix conflict between two instantiations of module 'unistd'.
3275         * gnulib-tool (func_emit_autoconf_snippet): Substitute
3276         ${include_guard_prefix} also in the autoconf snippet.
3277         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Don't set GNULIB_UNISTD_H_GETOPT.
3278         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Don't initialize
3279         GNULIB_UNISTD_H_GETOPT.
3280         * modules/getopt-posix (configure.ac): Set the
3281         GNULIB_${gl_include_guard_prefix}_UNISTD_H_GETOPT variable.
3282         * modules/getopt-gnu (configure.ac): Likewise.
3283         * modules/unistd (Makefile.am): Change the substitution value of
3284         GNULIB_UNISTD_H_GETOPT to depend on the include guard prefix.
3285         Reported by Simon Josefsson.
3286
3287 2011-11-25  Bruno Haible  <bruno@clisp.org>
3288
3289         pagealign_alloc: Doc and comments.
3290         * doc/posix-functions/posix_memalign.texi: Refer to the pagealign_alloc
3291         module.
3292         * lib/pagealign_alloc.c (pagealign_alloc): Add comment.
3293
3294 2011-11-25  Jim Meyering  <meyering@redhat.com>
3295
3296         test-update-copyright.sh: avoid false-positive failure
3297         * tests/test-update-copyright.sh: Use $TMP.? (not $TMP.*), to work
3298         around false positive failure on Cygwin/Windows.  The latter was
3299         matching erroneously-created files with names like
3300         update-copyright.test-ex.4.bak.  Reported by Simon Josefsson.
3301
3302 2011-11-25  Simon Josefsson  <simon@josefsson.org>
3303
3304         valgrind-tests.m4: Avoid breakage if valgrind on bash fails.
3305         * m4/valgrind-tests.m4: Check that the parameters that will be
3306         used works, not just a subset of them.  Reported by Bruno Haible
3307         <bruno@clisp.org>.
3308
3309 2011-11-24  Jim Meyering  <meyering@redhat.com>
3310
3311         test-stdalign.c: comment out long double tests
3312         * tests/test-stdalign.c: Don't try to reduce alignment of long double
3313         variables.  That provokes errors like this from gcc-4.7.0 20111124:
3314         error: '_Alignas' specifiers cannot reduce alignment of \
3315         'static_longdouble_alignas'.
3316
3317 2011-11-22  Jim Meyering  <meyering@redhat.com>
3318
3319         init.sh: make "compare /dev/null FILE" output more readable
3320         * tests/init.sh (compare_): Document the preferred order of arguments.
3321         (emit_diff_u_header_): New function.
3322         (compare_dev_null_): Emit a simulated diff, rather than just the
3323         contents of the unexpected file.  Suggestion from Bruno Haible.
3324
3325 2011-11-21  Jim Meyering  <meyering@redhat.com>
3326             Eric Blake  <eblake@redhat.com>
3327
3328         init.sh: work around OSF/1 5.1's mishandling of /dev/null
3329         * tests/init.sh: Make our compare function slightly more portable.
3330         Reported by Bruno Haible in
3331         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/4020
3332
3333 2011-11-21  Simon Josefsson  <simon@josefsson.org>
3334
3335         * m4/gnulib-common.m4 (_Noreturn): Check that _MSC_VER is defined
3336         before using it, in code that ends up in config.h.
3337
3338 2011-11-20  Bruno Haible  <bruno@clisp.org>
3339
3340         getcwd: Work around getcwd bug on AIX 5..7.
3341         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Require
3342         AC_CANONICAL_HOST. Assign exit code 31 to the bug seen on AIX 5.1..7.1.
3343         Use a different value for gl_cv_func_getcwd_path_max. Move the
3344         definition of HAVE_PARTLY_WORKING_GETCWD from here...
3345         * m4/getcwd.m4 (gl_FUNC_GETCWD): ... to here. Invoke
3346         gl_FUNC_GETCWD_PATH_MAX also when $gl_cv_func_getcwd_null is 'no'.
3347         Define HAVE_MINIMALLY_WORKING_GETCWD.
3348         * lib/getcwd.c (__getcwd): Don't use the system's getcwd on platforms
3349         where it is not even minimally working, that is, on AIX.
3350         * tests/test-getcwd.c (test_long_name): Distinguish the same cases as
3351         m4/getcwd-path-max.m4.
3352         (main): Update exit code computation.
3353         * doc/posix-functions/getcwd.texi: Mention list of platforms where
3354         getcwd does not handle long file names.
3355
3356 2011-11-20  Bruno Haible  <bruno@clisp.org>
3357
3358         getcwd: Fix bug from 2009-09-10.
3359         * m4/getcwd.m4 (gl_FUNC_GETCWD): Treat "guessing yes" like "yes", not
3360         like "no".
3361
3362 2011-11-20  Simon Josefsson  <simon@josefsson.org>
3363
3364         * m4/manywarnings.m4: Add more warnings from gcc 4.6.2.
3365
3366 2011-11-20  Bruno Haible  <bruno@clisp.org>
3367
3368         fma tests: Avoid shadowing local variables.
3369         * tests/test-fma2.h (test_function): Reduce scope of x, y, z, result,
3370         expected.
3371
3372 2011-11-20  Bruno Haible  <bruno@clisp.org>
3373
3374         copysignf tests: Fix.
3375         * tests/test-copysignf.c: Fix signature check.
3376
3377 2011-11-20  Bruno Haible  <bruno@clisp.org>
3378
3379         fma: Remove unused code.
3380         * lib/fma.c (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): Remove
3381         unused macros.
3382
3383 2011-11-20  Bruno Haible  <bruno@clisp.org>
3384
3385         sethostname: Fix doc about AIX.
3386         * doc/glibc-functions/sethostname.texi: Drop mention that AIX 5.1 lacks
3387         sethostname; it has it.
3388
3389         sethostname: Mention more portability problems.
3390         * doc/glibc-functions/sethostname.texi: Mention the missing declaration
3391         problem.
3392         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
3393
3394 2011-11-19  Bruno Haible  <bruno@clisp.org>
3395
3396         Depend on module fcntl-h when AT_FDCWD is used.
3397         * modules/utimens (Depends-on): Add fcntl-h.
3398         * modules/areadlinkat (Depends-on): Likewise.
3399         * modules/areadlinkat-with-size (Depends-on): Likewise.
3400         * modules/faccessat (Depends-on): Likewise.
3401         * modules/fchmodat (Depends-on): Likewise.
3402         * modules/fchownat (Depends-on): Likewise.
3403         * modules/getcwd (Depends-on): Likewise.
3404         * modules/mkdirat (Depends-on): Likewise.
3405         * modules/mkfifoat (Depends-on): Likewise.
3406         * modules/readlinkat (Depends-on): Likewise.
3407         * modules/symlinkat (Depends-on): Likewise.
3408         * modules/dup2-tests (Depends-on): Likewise.
3409         * modules/fdutimensat-tests (Depends-on): Likewise.
3410         * modules/futimens-tests (Depends-on): Likewise.
3411
3412 2011-11-19  Bruno Haible  <bruno@clisp.org>
3413
3414         euidaccess: Update a comment.
3415         * lib/euidaccess.c: Update comment about platforms with faccessat.
3416
3417 2011-11-19  Bruno Haible  <bruno@clisp.org>
3418
3419         openat: Fix file list.
3420         * modules/openat (Files): Remove lib/at-func.c.
3421
3422 2011-11-19  Bruno Haible  <bruno@clisp.org>
3423
3424         fstatat: Simplify.
3425         * lib/fstatat.c (AT_FUNC_NAME): Define as fstatat. On platforms where
3426         gnulib should define rpl_fstatat, there is a
3427         "#define fstatat rpl_fstatat" in <sys/stat.h>.
3428
3429 2011-11-19  Bruno Haible  <bruno@clisp.org>
3430
3431         Ensure 'inline' can be used in tests/test-utimens-common.h.
3432         * modules/fdutimensat-tests (configure.ac): Require AC_C_INLINE.
3433         * modules/futimens-tests (configure.ac): Likewise.
3434         * modules/utimens-tests (configure.ac): Likewise.
3435         * modules/utimensat-tests (configure.ac): Likewise.
3436
3437 2011-11-19  Simon Josefsson  <simon@josefsson.org>
3438
3439         * lib/hash.c (hash_insert): Use hash_insert_if_absent,
3440         not hash_insert0.
3441         (hash_insert_if_absent): Doc fix.
3442
3443 2011-11-19  Simon Josefsson  <simon@josefsson.org>
3444
3445         * m4/readline.m4 (gl_FUNC_READLINE): Check for readline/history.h.
3446
3447 2011-11-18  Paul Eggert  <eggert@cs.ucla.edu>
3448
3449         test-getcwd: disambiguate exit status
3450         * tests/test-getcwd.c (test_long_name): Return 0..7.
3451         (main): Exit with an unambiguous exit status.  The old
3452         code yielded a mysterious mixture of two failure codes.
3453
3454         fstatat: fix configuration bug on mingw, OpenBSD 4, Solaris 8
3455         * lib/fstatat.c (AT_FUNC_NAME): Use HAVE_FSTAT, not
3456         HAVE_WORKING_FSTATAT_ZERO_FLAG, to decide whether to define
3457         rpl_fstatat or fstatat.  This should fix the other problem
3458         reported by Kai Habel in
3459         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
3460         A similar problem was reported for OpenBSD 4.6 by Mats Erik Andersson
3461         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00239.html>
3462         and I reproduced it on a Solaris 8 host we still have in production.
3463
3464 2011-11-18  Jim Meyering  <meyering@redhat.com>
3465
3466         hash: deprecate poorly-named hash_insert0: use hash_insert_if_absent
3467         * lib/hash.c (hash_insert_if_absent): Rename from hash_insert0.
3468         Add a sentence to the comment.
3469         (hash_insert0): New function that simply calls hash_insert_if_absent.
3470         * lib/hash.h (hash_insert_if_absent): Declare it.
3471         (hash_insert0): Add deprecation attribute.
3472         (_GL_ATTRIBUTE_DEPRECATED): Define.
3473         * lib/di-set.c (di_set_insert): Use hash_insert_if_absent,
3474         not hash_insert0.
3475         * NEWS: Mention it, even though it's not really an incompatible change.
3476
3477 2011-11-18  Dagobert Michelsen  <dam@opencsw.org>  (tiny change)
3478
3479         openat: avoid compilation failure due to lack of <errno.h> inclusion
3480         * lib/openat.c: Include <errno.h>.
3481
3482 2011-11-17  Paul Eggert  <eggert@cs.ucla.edu>
3483
3484         * modules/getcwd (Depends-on): Add fdopendir.
3485         This fixes one of the two problems reported by Kai Habel in
3486         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
3487
3488         modules/crypto/gc-*: simplify dependencies and fix stdalign.h bug
3489         stdalign problem reported by Ian Beckwith in
3490         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00238.html>.
3491         * modules/crypto/gc-arcfour (Depends-on):
3492         Depend conditionally on crypto/arcfour.
3493         * modules/crypto/gc-arctwo (Depends-on):
3494         Depend conditionally on crypto/arctwo.
3495         * modules/crypto/gc-des (Depends-on):
3496         Depend conditionally on crypto/des.
3497         * modules/crypto/gc-hmac-md5 (Depends-on):
3498         Depend conditionally on crypto/hmac-md5.
3499         * modules/crypto/gc-hmac-sha1 (Depends-on):
3500         Depend conditionally on crypto/hmac-sha1.
3501         * modules/crypto/gc-md2 (Depends-on): Remove stdint, minmax.
3502         * modules/crypto/gc-md4 (Depends-on):
3503         Depend conditionally on crypto/md4.
3504         * modules/crypto/gc-md5 (Depends-on):
3505         Depend conditionally on crypto/md5.
3506         * modules/crypto/gc-rijndael (Depends-on):
3507         Depend conditionally on crypto/rijndael.
3508         * modules/crypto/gc-sha1 (Depends-on):
3509         Depend conditionally on crypto/sha1.
3510         * modules/crypto/gc-arcfour:
3511         * modules/crypto/gc-arctwo:
3512         * modules/crypto/gc-des:
3513         * modules/crypto/gc-hmac-md5:
3514         * modules/crypto/gc-hmac-sha1:
3515         * modules/crypto/gc-md2:
3516         * modules/crypto/gc-md4:
3517         * modules/crypto/gc-md5:
3518         * modules/crypto/gc-rijndael:
3519         * modules/crypto/gc-sha1:
3520         (Files, Depends-on, configure.ac): Remove now-unnecessary stuff,
3521         now that the conditional dependencies do the work for us.
3522
3523 2011-11-17  Jim Meyering  <meyering@redhat.com>
3524
3525         tests: factor st_ctime-comparison out of two headers
3526         * tests/test-utimens-common.h (ctime_compare): Define.
3527         * tests/test-futimens.h (test_futimens): Replace open-coded equivalent.
3528         * tests/test-lutimens.h (test_lutimens): Likewise.
3529         * tests/test-utimens.h (test_utimens): Likewise.
3530
3531         test-getcwd: don't leave behind a confdir3/ directory upon interrupt
3532         Invoke the test program via an init.sh-using wrapper.
3533         * tests/test-getcwd.sh: New file.
3534         * modules/getcwd-tests (Files): Add it.
3535         (Makefile.am) [TESTS]: Invoke the shell script wrapper.
3536
3537 2011-11-01  Gary V. Vaughan  <gary@gnu.org>
3538
3539         gitlog-to-changelog: support multi-author commits.
3540         The FSF cares about keeping track of all authors of patches to its
3541         projects, but Git doesn't provide obvious support for multi-author
3542         changesets. Consensus seems to be forming around the use of extra
3543         Signed-off-by inspired lines in the log message formatted as
3544         `Co-authored-by: A U Thor <email@example.com>' for round-tripping
3545         multi-author commits between version control systems.
3546         * gitlog-to-changelog: Extract `Co-authored-by:' lines from the git
3547         log message and output in standard ChangeLog multi-author format.
3548         Reported by Peter Rosin <peda@lysator.liu.se>
3549
3550 2011-11-15  Ben Walton <bwalton@artsci.utoronto.ca>  (tiny change)
3551             Bruno Haible  <bruno@clisp.org>
3552
3553         Fix some modules' file list.
3554         * modules/fstatat (Files): Add m4/lstat.m4.
3555         * modules/openat (Files): Likewise.
3556         * modules/unlinkat (Files): Likewise.
3557
3558 2011-11-15  Gary V. Vaughan  <gary@gnu.org>
3559
3560         maint.mk: fix tight-scope.mk generation in VPATH builds.
3561         * top/maint.mk (tight-scope.mk): Make sure to prefix file
3562         reference with $(srcdir) so that the file is found correctly even
3563         when running `make syntax-check' in a VPATH build.
3564
3565 2011-11-13  Bruno Haible  <bruno@clisp.org>
3566             Jim Meyering  <meyering@redhat.com>
3567
3568         Silence successful tests that use 'compare' on AIX, HP-UX, Solaris.
3569         * tests/init.sh (compare): Remove "No differences encountered" or
3570         synonymous output from the 'diff' program.
3571
3572 2011-11-13  Bruno Haible  <bruno@clisp.org>
3573
3574         Makefile: Tweak indentation.
3575         * Makefile: Use tab as first character in every line that contains rule
3576         commands.
3577
3578 2011-11-13  Bruno Haible  <bruno@clisp.org>
3579
3580         Syntax check for copyright statements.
3581         * check-copyright: New file.
3582         * Makefile (sc_check_copyright): New rule.
3583
3584 2011-11-13  Simon Josefsson  <simon@josefsson.org>
3585
3586         * build-aux/git-version-gen: Add --prefix to configure the tag
3587         match string.
3588
3589 2011-11-13  Simon Josefsson  <simon@josefsson.org>
3590
3591         * build-aux/git-version-gen: Add --help and --version.
3592
3593 2011-11-12  Jim Meyering  <meyering@redhat.com>
3594
3595         revamp the other test-exclude?.sh scripts to use init.sh, too
3596         * tests/test-exclude1.sh: Use init.sh.
3597         * tests/test-exclude2.sh: Likewise.
3598         * tests/test-exclude3.sh: Likewise.
3599         * tests/test-exclude4.sh: Likewise.
3600         * tests/test-exclude5.sh: Likewise.
3601         * tests/test-exclude6.sh: Likewise.
3602         * tests/test-exclude7.sh: Likewise.
3603         * tests/test-exclude8.sh: Likewise.
3604         * modules/exclude-tests (Files): List init.sh.
3605
3606         test-exclude2.sh, test-exclude5.sh: fail if test-exclude fails
3607         These shell scripts ignored failure of the binary test-exclude,
3608         so making the latter return 77 didn't cause them to be skipped.
3609         * tests/test-exclude5.sh: Exit with test-exclude's error status
3610         when that program fails.  Revamp to use init.sh.
3611         * tests/test-exclude2.sh: Likewise.
3612
3613         test-exclude: fix a typo
3614         * tests/test-exclude.c (main): Test for "leading_dir", not "leading-dir".
3615
3616 2011-11-11  Bruno Haible  <bruno@clisp.org>
3617
3618         obstack: Fix compilation error on MSVC 9.
3619         * lib/obstack.c (print_and_abort): Declare with _Noreturn specifier.
3620
3621 2011-11-11  Jim Meyering  <meyering@redhat.com>
3622
3623         test-exclude: skip tests rather than failing on deficient systems
3624         * tests/test-exclude.c (main): Skip tests that use FNM_CASEFOLD
3625         and FNM_LEADING_DIR on systems that lack the definitions.  This affects
3626         at least Solaris 9.  Reported and diagnosed by Dagobert Michelsen in
3627         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/3947/focus=3950
3628
3629 2011-11-10  Bruno Haible  <bruno@clisp.org>
3630
3631         ptsname_r test: Avoid gcc warning on glibc systems.
3632         * tests/test-ptsname_r.c (null_ptr): New function.
3633         (test_errors): Use it.
3634
3635 2011-11-10  Bruno Haible  <bruno@clisp.org>
3636
3637         ptsname_r: Avoid compilation error on OSF/1 5.1.
3638         * lib/stdlib.in.h (ptsname_r): Override if REPLACE_PTSNAME_R is 1.
3639         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_PTSNAME_R.
3640         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Set REPLACE_PTSNAME_R if the
3641         function is not declared or incompatibly declared.
3642         * modules/stdlib (Makefile.am): Substitute REPLACE_PTSNAME_R.
3643         * modules/ptsname_r (Depends-on, configure.ac): Update.
3644         * doc/glibc-functions/ptsname_r.texi: Mention the OSF/1 problems.
3645
3646 2011-11-10  Bruno Haible  <bruno@clisp.org>
3647
3648         fstatat: Make cross-compilation guess succeed everywhere except on AIX.
3649         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Require AC_CANONICAL_HOST.
3650         When cross-compiling, guess yes on all platforms except AIX.
3651         Reported by Ludovic Courtès <ludo@gnu.org>.
3652
3653 2011-11-09  Bruno Haible  <bruno@clisp.org>
3654
3655         ptsname_r tests: Fix bugs.
3656         * tests/test-ptsname_r.c (test_errors): Change return type to 'void'.
3657         Fix ptsname_r calls. Reduce loop rounds to a reasonable amount.
3658
3659 2011-11-09  Paul Eggert  <eggert@cs.ucla.edu>
3660
3661         fstatat: work with cross-compilation
3662         Problem reported by Ludovic Courtès in
3663         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00136.html>.
3664         * m4/fstatat.m4 (gl_FUNC_FSTATAT): When cross-compiling, report
3665         "cross-compiling" and assume the bug is present.  Replace
3666         FSTATAT_ZERO_FLAG_BROKEN with HAVE_WORKING_FSTATAT_ZERO_FLAG with
3667         an inverted sense, to be more conservative about our assumptions.
3668         * lib/fstatat.c (rpl_fstatat): Adjust to renamed macro.
3669
3670 2011-11-09  Bruno Haible  <bruno@clisp.org>
3671
3672         Improve MODULES.html output.
3673         * modules/mkfifoat (Description): Use the word "function".
3674         * modules/readlinkat (Description): Likewise.
3675         * modules/symlinkat (Description): Likewise.
3676
3677 2011-11-09  Eric Blake  <eblake@redhat.com>
3678
3679         ptsname_r-tests: new test module
3680         * modules/ptsname_r-tests: New module.
3681         * tests/test-ptsname_r.c: New file.
3682
3683         ptsname_r: new module
3684         * modules/ptsname_r: New module.
3685         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): New file.
3686         * lib/ptsname.c (__ptsname_r): Split...
3687         * lib/ptsname_r.c: ...into new file.
3688         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
3689         (gl_STDLIB_H_DEFAULTS): Set witness defaults.
3690         * modules/stdlib (Makefile.am): Substitute witnesses.
3691         * lib/stdlib.in.h (ptsname_r): Declare it.
3692         * doc/glibc-functions/ptsname_r.texi (ptsname_r): Document it.
3693         * MODULES.html.sh (Misc): Likewise.
3694         * modules/ptsname (Depends-on): Alter dependency.
3695         * doc/posix-functions/ptsname.texi (ptsname): Mention new module.
3696
3697 2011-11-09  Jim Meyering  <meyering@redhat.com>
3698
3699         announce-gen: be more concise when there's only one URL+tarball
3700         * build-aux/announce-gen (get_tool_versions): When you distribute
3701         only one type of tarball, combine the first two "Here are..."
3702         sections and make the key-checking grammar independent of
3703         how many tarballs there are.
3704
3705 2011-11-09  Eric Blake  <eblake@redhat.com>
3706
3707         openpty: provide a stub on mingw
3708         * lib/pty.in.h (includes): Provide forward declarations.
3709         * lib/openpty.c (openpty) [mingw]: Provide ENOSYS stub.
3710
3711         raise: fix mingw handling of SIGPIPE
3712         * lib/sigprocmask.c (_gl_raise_SIGPIPE): Provide a return value.
3713
3714 2011-11-08  Bruno Haible  <bruno@clisp.org>
3715
3716         More conditional dependencies.
3717         * modules/faccessat (Depends-on): Add conditions.
3718         * modules/fchmodat (Depends-on): Likewise.
3719         * modules/fchownat (Depends-on): Likewise.
3720         * modules/fstatat (Depends-on): Likewise.
3721         * modules/mkfifoat (Depends-on): Likewise.
3722         * modules/readlinkat (Depends-on): Likewise.
3723         * modules/symlinkat (Depends-on): Likewise.
3724         * modules/unlinkat (Depends-on): Likewise.
3725         * modules/utimensat (Depends-on): Likewise.
3726         * modules/mkdirat (Depends-on): Add sys_stat. Add conditions.
3727         * modules/linkat (Depends-on): Refine the conditions.
3728         * modules/renameat (Depends-on): Likewise.
3729
3730 2011-11-08  Bruno Haible  <bruno@clisp.org>
3731
3732         faccessat: Move AC_LIBOBJ invocation to module description.
3733         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT): New macro.
3734         (gl_FUNC_FACESSAT): Don't test for access() here. Move AC_LIBOBJ
3735         invocation from here...
3736         * modules/faccessat (configure.ac): ... to here. Invoke
3737         gl_PREREQ_FACCESSAT.
3738
3739 2011-11-08  Bruno Haible  <bruno@clisp.org>
3740
3741         faccessat: Simplify autoconf macro.
3742         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Don't require gl_FUNC_OPENAT,
3743         gl_FUNC_EUIDACCESS.
3744
3745 2011-11-08  Bruno Haible  <bruno@clisp.org>
3746
3747         renameat: Fix dependencies.
3748         * modules/renameat (Depends-on): Add stdbool.
3749
3750 2011-11-08  Bruno Haible  <bruno@clisp.org>
3751
3752         mkfifoat: Fix module description.
3753         * modules/mkfifoat (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR,
3754         not gl_UNISTD_MODULE_INDICATOR.
3755
3756 2011-11-08  Bruno Haible  <bruno@clisp.org>
3757
3758         fstatat: Remove unused dependency.
3759         * modules/fstatat (Depends-on): Remove fstat.
3760
3761 2011-11-08  Simon Josefsson  <simon@josefsson.org>
3762
3763         GNUmakefile: behave when Makefile is missing.
3764         * top/GNUmakefile: Always initialize _build-aux and _autoreconf.
3765
3766 2011-11-08  Bruno Haible  <bruno@clisp.org>
3767
3768         openat: Conditionalize dependencies.
3769         * lib/openat.c: Reduce the scope of some #includes.
3770         * modules/openat (Depends-on): Add conditions.
3771
3772 2011-11-07  Jim Meyering  <meyering@redhat.com>
3773
3774         maint.mk: extract GPG key ID without using a temporary file
3775         * top/maint.mk (gpg_key_ID): Extract GPG key ID from signed tag, but
3776         without using a temporary file.  Based on a suggestion from Werner Koch
3777         in http://thread.gmane.org/gmane.comp.encryption.gpg.devel/16496
3778
3779 2011-11-07  Eric Blake  <eblake@redhat.com>
3780
3781         grantpt: fix typo
3782         * lib/stdlib.in.h (grantpt): Check correct function.
3783
3784         maint.mk: silence new syntax check
3785         * top/maint.mk (sc_prohibit_dirent_without_use): Add missing @.
3786
3787 2011-11-06  Bruno Haible  <bruno@clisp.org>
3788
3789         Doc about floating-point and math API.
3790         * doc/posix-headers/float.texi: Mention problem with FLT_ROUNDS.
3791         * doc/posix-headers/math.texi: Mention problem with math_errhandling.
3792
3793 2011-11-06  Bruno Haible  <bruno@clisp.org>
3794
3795         stdalign tests: Skip the test when compiled by Sun C.
3796         * tests/test-stdalign.c (main): Skip the test on Sun C.
3797
3798 2011-11-06  Bruno Haible  <bruno@clisp.org>
3799
3800         ansi-c++-opt: Complete the 2011-06-05 change.
3801         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is found but
3802         does not support namespaces, set the variable to "no", not to ":".
3803
3804 2011-11-06  Paul Eggert  <eggert@cs.ucla.edu>
3805
3806         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Sun review ID.
3807
3808 2011-11-06  Bruno Haible  <bruno@clisp.org>
3809
3810         copysignl: Fix result for zero argument on HP-UX 11 with HP C.
3811         * lib/copysignl.c (compute_minus_zerol) [HP-UX]: New function.
3812         (minus_zerol) [HP-UX]: New macro.
3813         (unary_minus) [HP-UX]: New function.
3814         (copysignl) [HP-UX]: Use unary_minus function.
3815
3816 2011-11-06  Bruno Haible  <bruno@clisp.org>
3817
3818         ldexp, ldexpf, ldexpl: Enhance tests.
3819         * tests/test-ldexp.h: New file, combining code from tests/test-ldexp.c
3820         and tests/test-ldexpl.c.
3821         * tests/test-ldexpl.c: (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO,
3822         LDEXP, MIN_EXP, MAX_EXP): New macros.
3823         Include test-ldexp.h.
3824         (main): Just call test_function.
3825         * tests/test-ldexp.c: Include float.h, isnand-nolibm.h, minus-zero.h,
3826         infinity.h, nan.h.
3827         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
3828         MAX_EXP): New macros.
3829         Include test-ldexp.h.
3830         (x, y): Remove variables.
3831         (main): Just call test_function.
3832         * tests/test-ldexpf.c: Include float.h, isnanf-nolibm.h, minus-zero.h,
3833         infinity.h, nan.h.
3834         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
3835         MAX_EXP): New macros.
3836         Include test-ldexp.h.
3837         (x, y): Remove variables.
3838         (main): Just call test_function.
3839         * modules/ldexpl-tests (Files): Add tests/test-ldexp.h.
3840         * modules/ldexp-tests (Files): Add tests/test-ldexp.h,
3841         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
3842         (Depends-on): Add isnand-nolibm, signbit, float.
3843         * modules/ldexpf-tests (Files): Add tests/test-ldexp.h,
3844         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
3845         (Depends-on): Add isnanf-nolibm, signbit, float.
3846
3847 2011-11-06  Bruno Haible  <bruno@clisp.org>
3848
3849         math tests: Cosmetics.
3850         * tests/test-math-c++.cc: Reorder declarations.
3851
3852 2011-11-05  Bruno Haible  <bruno@clisp.org>
3853
3854         fma*: Simplify test.
3855         * tests/test-fma2.h (FORGIVE_GLIBC_BUG): Remove macro.
3856         (test_function): Remove all if (FORGIVE_GLIBC_BUG) statements.
3857
3858         Tests for module 'fmal'.
3859         * modules/fmal-tests: New file.
3860         * tests/test-fmal1.c: New file.
3861         * tests/test-fmal2.c: New file.
3862
3863         New module 'fmal'.
3864         * lib/math.in.h (fmal): New declaration.
3865         * lib/fmal.c: New file.
3866         * m4/fmal.m4: New file.
3867         * m4/math_h.m4 (gl_MATH_H): Test whethern fmal is declared.
3868         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAL, HAVE_FMAL, REPLACE_FMAL.
3869         * modules/math (Makefile.am): Substitute GNULIB_FMAL, HAVE_FMAL,
3870         REPLACE_FMAL.
3871         * modules/fmal: New file.
3872         * doc/posix-functions/fmal.texi: Mention the new module and the various
3873         bugs.
3874
3875         Tests for module 'fmaf'.
3876         * modules/fmaf-tests: New file.
3877         * tests/test-fmaf1.c: New file.
3878         * tests/test-fmaf2.c: New file.
3879
3880         New module 'fmaf'.
3881         * lib/math.in.h (fmaf): New declaration.
3882         * lib/fmaf.c: New file.
3883         * m4/fmaf.m4: New file.
3884         * m4/math_h.m4 (gl_MATH_H): Test whethern fmaf is declared.
3885         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAF, HAVE_FMAF, REPLACE_FMAF.
3886         * modules/math (Makefile.am): Substitute GNULIB_FMAF, HAVE_FMAF,
3887         REPLACE_FMAF.
3888         * modules/fmaf: New file.
3889         * doc/posix-functions/fmaf.texi: Mention the new module and the various
3890         bugs.
3891
3892         Tests for module 'fma'.
3893         * modules/fma-tests: New file.
3894         * tests/test-fma1.c: New file.
3895         * tests/test-fma1.h: New file.
3896         * tests/test-fma2.c: New file.
3897         * tests/test-fma2.h: New file.
3898
3899         New module 'fma'.
3900         * lib/math.in.h (fma): New declaration.
3901         * lib/fma.c: New file.
3902         * m4/fma.m4: New file.
3903         * m4/fegetround.m4: New file.
3904         * m4/math_h.m4 (gl_MATH_H): Test whethern fma is declared.
3905         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMA, HAVE_FMA, REPLACE_FMA.
3906         * modules/math (Makefile.am): Substitute GNULIB_FMA, HAVE_FMA,
3907         REPLACE_FMA.
3908         * modules/fma: New file.
3909         * doc/posix-functions/fma.texi: Mention the new module and the various
3910         bugs.
3911
3912         Extend gl_MATHFUNC.
3913         * m4/mathfunc.m4 (gl_MATHFUNC): Accept an 4th parameter of INCLUDES.
3914         Support 'void' as argument type.
3915         * m4/rint.m4 (gl_FUNC_RINT): Update gl_MATHFUNC invocation.
3916
3917 2011-11-05  Jim Meyering  <meyering@redhat.com>
3918
3919         maint.mk: also prohibit inclusion of dirent.h without use
3920         * top/maint.mk (sc_prohibit_dirent_without_use): New rule.
3921
3922 2011-11-05  Bruno Haible  <bruno@clisp.org>
3923
3924         ldexpl tests: Avoid test failure on MSVC 9.
3925         * tests/test-ldexpl.c (main): Use a temporary variable for the expected
3926         value. Needed in order to enforce the conversion from a value greater
3927         than LDBL_MAX to Infinity.
3928
3929 2011-11-05  Bruno Haible  <bruno@clisp.org>
3930
3931         New modules 'at-internal', 'openat-h', split off from module 'openat'.
3932         * modules/at-internal: New file, extracted from modules/openat.
3933         * modules/openat-h: New file.
3934         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_OPENAT. Don't
3935         invoke gl_PREREQ_OPENAT and gl_MODULE_INDICATOR.
3936         * modules/openat (Description): Add reference to POSIX function.
3937         (Files): Remove lib/openat.h, lib/openat-proc.c.
3938         (Depends-on): Add at-internal, openat-h. Remove fdopendir, gettext-h,
3939         intprops, unistd.
3940         (configure.ac): Remove AC_LIBOBJ of openat-proc. Invoke
3941         gl_PREREQ_OPENAT, gl_MODULE_INDICATOR here. Invoke
3942         gl_FCNTL_MODULE_INDICATOR.
3943         (Include): Remove unistd.h, openat.h.
3944         * modules/areadlinkat (Files): Add lib/at-func.c.
3945         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
3946         openat-die, openat-h, save-cwd.
3947         * modules/areadlinkat-with-size (Files): Add lib/at-func.c.
3948         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
3949         openat-die, openat-h, save-cwd, unistd.
3950         * modules/faccessat (Files): Add lib/at-func.c, lib/openat-priv.h.
3951         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
3952         openat-h, save-cwd. Remove fcntl-h, openat.
3953         * modules/fchmodat (Files): Remove lib/openat.h.
3954         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
3955         openat, stdbool, unistd.
3956         * modules/fchownat (Files): Remove lib/openat.h.
3957         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
3958         openat, stdbool, sys_stat.
3959         * modules/fdopendir (Files): Remove lib/openat-priv.h,
3960         lib/openat-proc.c.
3961         (Depends-on): Add at-internal.
3962         (condigure.ac): Remove AC_LIBOBJ of openat-proc.
3963         * modules/fstatat (Files): Remove lib/openat.h.
3964         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
3965         stdbool, unistd.
3966         * modules/fts (Depends-on): Add openat-h.
3967         * modules/linkat (Depends-on): Add at-internal, openat-h. Remove
3968         openat.
3969         * modules/mkdirat (Files): Remove lib/openat.h.
3970         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
3971         openat, stdbool, sys_stat.
3972         * modules/mkfifoat (Files): Add lib/at-func.c.
3973         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
3974         openat-h, save-cwd. Remove fcntl-h, openat.
3975         * modules/openat-die (Depends-on): Add openat-h. Remove openat.
3976         * modules/readlinkat (Files): Add lib/at-func.c.
3977         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
3978         openat-h, save-cwd. Remove fcntl-h, openat.
3979         * modules/renameat (Depends-on): Add at-internal, openat-h. Remove
3980         openat.
3981         * modules/selinux-at (Files): Add lib/at-func.c.
3982         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
3983         fcntl-h, openat-die, openat-h, save-cwd, unistd. Remove openat.
3984         * modules/symlinkat (Files): Add lib/at-func.c.
3985         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
3986         openat-h, save-cwd. Remove fcntl-h, openat.
3987         * modules/unlinkat (Files): Remove lib/openat.h.
3988         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
3989         stdbool.
3990         * modules/utimensat (Files): Add lib/at-func.c.
3991         (Depends-on): Add at-internal, dosname, errno, fchdir, fcntl-h,
3992         openat-die, openat-h, save-cwd.
3993         * modules/fchownat-tests (Depends-on): Add openat-h. Remove openat.
3994         * modules/fdutimensat-tests (Depends-on): Add openat.
3995         * modules/fstatat-tests (Depends-on): Add openat-h.
3996         * modules/readlinkat-tests (Depends-on): Add openat.
3997         * modules/symlinkat-tests (Depends-on): Add openat.
3998
3999 2011-11-05  Bruno Haible  <bruno@clisp.org>
4000
4001         openat: Include <stdbool.h>.
4002         * lib/openat.c: Include <stdbool.h>.
4003
4004 2011-11-04  Bruno Haible  <bruno@clisp.org>
4005
4006         fchownat, renameat, unlinkat: Fix dependencies.
4007         * modules/fchownat (Depends-on): Add fstatat.
4008         * modules/renameat (Depends-on): Likewise.
4009         * modules/unlinkat (Depends-on): Likewise.
4010
4011 2011-11-04  Paul Eggert  <eggert@cs.ucla.edu>
4012
4013         openat: remove direct dependency on dirent
4014         * lib/openat.h: Don't include <dirent.h>; it's no longer needed,
4015         and hasn't been needed ever since fdopendir was split into its own
4016         module on 2009-08-31.
4017         * modules/openat (Depends-on): Remove dirent.
4018
4019 2011-11-04  Bruno Haible  <bruno@clisp.org>
4020
4021         renameat: Optimize code size.
4022         * modules/renameat (configure.ac): Don't compile at-func2.c if
4023         REPLACE_RENAMEAT is 1.
4024
4025 2011-11-04  Bruno Haible  <bruno@clisp.org>
4026
4027         openat tests: Fix file list.
4028         * modules/openat-tests (Files): Add tests/test-open.h.
4029
4030 2011-11-04  Bruno Haible  <bruno@clisp.org>
4031
4032         openat, fchmodat, fchownat, linkat, renameat: Fix dependencies.
4033         * modules/fchmodat (Depends-on): Add openat-die.
4034         * modules/fchownat (Depends-on): Likewise.
4035         * modules/linkat (Depends-on): Likewise.
4036         * modules/renameat (Depends-on): Likewise.
4037         * modules/openat (Depends-on): Add dirent.
4038
4039 2011-11-04  Jim Meyering  <meyering@redhat.com>
4040
4041         at-func*.c: fix comments
4042         * lib/at-func2.c: Correct/improve first-line comment.
4043         * lib/at-func.c: Correct grammar in first-line comment.
4044
4045 2011-11-04  Bruno Haible  <bruno@clisp.org>
4046
4047         New module 'mkdirat', split off from module 'openat'.
4048         * m4/mkdirat.m4: New file. extracted from m4/openat.m4.
4049         * m4/openat.m4 (gl_FUNC_OPENAT): Don't require gl_SYS_STAT_H_DEFAULTS.
4050         Don't test for mkdirat. Don't set GNULIB_MKDIRAT, HAVE_MKDIRAT.
4051         * modules/mkdirat: New file, extracted from modules/openat.
4052         * modules/openat (Files): Remove lib/mkdirat.c.
4053         (Depends-on): Remove mkdir.
4054         (configure.ac): Remove AC_LIBOBJ of mkdirat.
4055         (Include): Remove <sys/stat.h>.
4056         * modules/mkdirat-tests: New file, extracted from modules/openat-tests.
4057         * modules/openat-tests (Files): Remove tests/test-mkdirat.c,
4058         tests/test-mkdir.h.
4059         (Depends-on): Remove ignore-value.
4060         (Makefile.am): Remove rules for test-mkdirat.
4061         * doc/posix-functions/mkdirat.texi: Mention module 'mkdirat' instead
4062         of module 'openat'.
4063         * NEWS: Mention the change.
4064
4065 2011-11-04  Bruno Haible  <bruno@clisp.org>
4066
4067         closedir: Avoid warning on mingw.
4068         * lib/closedir.c: Include <unistd.h>.
4069
4070 2011-11-04  Bruno Haible  <bruno@clisp.org>
4071
4072         New module 'fstatat', split off from module 'openat'.
4073         * lib/openat.h (statat, lstatat): Enable only if GNULIB_FSTATAT is
4074         defined.
4075         * m4/fstatat.m4: New file. extracted from m4/openat.m4.
4076         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FSTATAT. Don't invoke
4077         gl_FUNC_FSTATAT.
4078         (gl_FUNC_FSTATAT): Moved to m4/fstatat.m4.
4079         * modules/fstatat: New file, extracted from modules/openat.
4080         * modules/openat (Files): Remove lib/fstatat.c.
4081         (Depends-on): Remove lstat.
4082         (configure.ac): Remove AC_LIBOBJ of fstatat.
4083         * modules/fstatat-tests: New file, extracted from modules/openat-tests.
4084         * modules/openat-tests (Files): Remove tests/test-fstatat.c,
4085         tests/test-lstat.h, tests/test-stat.h.
4086         (Depends-on): Remove getcwd-lgpl.
4087         (Makefile.am): Remove rules for test-fstatat.
4088         * doc/posix-functions/fstatat.texi: Mention module 'fstatat' instead
4089         of module 'openat'.
4090         * NEWS: Mention the change.
4091         * modules/getcwd (Depends-on): Add fstatat.
4092         * modules/linkat (Depends-on): Likewise.
4093         * modules/mkfifoat-tests (Depends-on): Likewise.
4094         * modules/utimensat (Depends-on): Add fstatat. Remove openat.
4095
4096 2011-11-03  Bruno Haible  <bruno@clisp.org>
4097
4098         New module 'unlinkat', split off from module 'openat'.
4099         * m4/unlinkat.m4: New file, extracted from m4/openat.m4.
4100         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_UNLINKAT,
4101         REPLACE_UNLINKAT, HAVE_UNLINKAT. Don't test for unlinkat.
4102         * modules/unlinkat: New file, extracted from modules/openat. Correct
4103         the dependency conditions.
4104         * modules/openat (Files): Remove lib/unlinkat.c.
4105         (Depends-on): Remove rmdir, unlink.
4106         (configure.ac): Remove AC_LIBOBJ of unlinkat.
4107         * modules/unlinkat-tests: New file, extracted from modules/openat-tests.
4108         * modules/openat-tests (Files): Remove tests/test-unlinkat.c,
4109         tests/test-rmdir.h, tests/test-unlink.h.
4110         (Depends-on): Remove unlinkdir.
4111         (Makefile.am): Remove rules for test-unlinkat.
4112         * doc/posix-functions/unlinkat.texi: Mention module 'unlinkat' instead
4113         of module 'openat'.
4114         * NEWS: Mention the change.
4115         * modules/linkat-tests (Depends-on): Add unlinkat.
4116         * modules/mkfifoat-tests (Depends-on): Likewise.
4117         * modules/readlinkat-tests (Depends-on): Likewise.
4118
4119 2011-11-02  Bruno Haible  <bruno@clisp.org>
4120
4121         New module 'fchmodat', split off from module 'openat'.
4122         * lib/openat.h (chmodat, lchmodat): Enable only if GNULIB_FCHMODAT is
4123         defined.
4124         * m4/fchmodat.m4: New file, extracted from m4/openat.m4.
4125         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHMODAT. Don't test
4126         for fchmodat, lchmod. Don't set HAVE_FCHMODAT.
4127         * modules/fchmodat: New file, extracted from modules/openat.
4128         * modules/openat (Files): Remove lib/fchmodat.c.
4129         (configure.ac): Remove AC_LIBOBJ of fchmodat.
4130         * modules/fchmodat-tests: New file, extracted from modules/openat-tests.
4131         * modules/openat-tests (Files): Remove tests/test-fchmodat.c.
4132         (Makefile.am): Remove rules for test-fchmodat.
4133         * doc/posix-functions/fchmodat.texi: Mention module 'fchmodat' instead
4134         of module 'openat'.
4135         * NEWS: Mention the change.
4136
4137 2011-11-02  Jim Meyering  <meyering@redhat.com>
4138
4139         putenv: indent #definition of "environ" to placate cppi
4140         * lib/putenv.c (environ): Make indentation reflect cpp nesting.
4141
4142         gitlog-to-changelog: provide a ChangeLog-repair mechanism
4143         Git logs are often treated as immutable, because editing them
4144         changes the SHA1 checksums of all descendants.  Thus, errors in
4145         git logs tend to stay there forever.  However, when we generate
4146         a ChangeLog file -- typically for distribution -- from that git log,
4147         we can actually make corrections in the generated file.  The key
4148         lies in recording in machine-readable/applicable form the desired
4149         corrections.  See --help for description and an example.
4150         * build-aux/gitlog-to-changelog (parse_amend_file): New function.
4151         (usage): Describe it; alphabetize option descriptions.
4152         (main): Honor the new option, carefully.
4153
4154 2011-11-01  Jim Meyering  <meyering@redhat.com>
4155
4156         gitlog-to-changelog: avoid an infloop
4157         * build-aux/gitlog-to-changelog: Don't infloop for a commit log
4158         that ends up being empty.
4159
4160 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
4161
4162         * MODULES.html.sh: Fix sed-script shell quoting and locale issues.
4163         (func_module): Replace foo=` ... sed -e COMPLICATED ... ` with
4164         bar=COMPLICATED; foo=` ... sed -e "$bar" ... ` when COMPLICATED
4165         contains (possibly-quoted) backslashes.  This should avoid
4166         all-too-common shell bugs if COMPLICATED contains backslashes in
4167         the "wrong" places.  Reported by David Evans in
4168         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00013.html>.
4169         When 'sed' uses character ranges like A-Z, invoke it in the C locale,
4170         because we want ASCII ranges.  Is there some reason we don't use
4171         the C locale everywhere in this script?
4172         (func_module, top level): Avoid unwanted pathname expansion when
4173         $repo_url_prefix or $repo_url_suffix_repl contain shell
4174         metacharacters like '?' and '*'.
4175
4176 2011-11-01  Bruno Haible  <bruno@clisp.org>
4177
4178         fchownat: Improve description.
4179         * modules/fchownat (Description): Add link to function.
4180
4181 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
4182
4183         * tests/test-stdalign.c (TEST_ALIGNMENT): Shrink back to 8.
4184         mingw supports alignments only up to 8 (!).  Reported by Bruno Haible in
4185         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00006.html>.
4186         * doc/posix-headers/stdalign.texi (stdalign.h): Document this.
4187
4188 2011-11-01  Bruno Haible  <bruno@clisp.org>
4189
4190         alignof: Avoid collision with stdalign module.
4191         * lib/alignof.h (alignof): Remove macro.
4192         * NEWS: Mention the change.
4193         Reported by Paul Eggert.
4194
4195 2011-11-01  Bruno Haible  <bruno@clisp.org>
4196
4197         New module 'fchownat', split off from module 'openat'.
4198         * lib/openat.h (chownat, lchownat): Enable only if GNULIB_FCHOWNAT is
4199         defined.
4200         * m4/fchownat.m4: New file, extracted from m4/openat.m4.
4201         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHOWNAT. Don't
4202         invoke gl_FUNC_FCHOWNAT.
4203         (gl_FUNC_FCHOWNAT_DEREF_BUG, gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG,
4204         gl_FUNC_FCHOWNAT): Moved to m4/fchownat.m4.
4205         * modules/fchownat: New file, extracted from modules/openat.
4206         * modules/openat (Files): Remove lib/fchownat.c.
4207         (Depends-on): Remove lchown.
4208         (configure.ac): Remove AC_LIBOBJ of fchownat.
4209         * modules/fchownat-tests: New file, extracted from modules/openat-tests.
4210         * modules/openat-tests (Files): Remove tests/test-fchownat.c,
4211         tests/test-chown.h, tests/test-lchown.h, tests/nap.h.
4212         (Depends-on): Remove mgetgroups, usleep, stat-time.
4213         (configure.ac): Remove test for getegid.
4214         (Makefile.am): Remove rules for test-fchownat.
4215         * doc/posix-functions/fchownat.texi: Mention module 'fchownat' instead
4216         of module 'openat'.
4217         * NEWS: Mention the change.
4218
4219 2011-10-31  Paul Eggert  <eggert@cs.ucla.edu>
4220
4221         stdalign: port better to MSVC and to Sun C 5.11
4222         This fixes some of the problems reported by Bruno Haible in
4223         <http://lists.gnu.org/archive/html/bug-gnulib/2011-10/msg00300.html>.
4224         * doc/posix-headers/stdalign.texi (stdalign.h): Document more
4225         shortcomings of MSVC and of Sun C 5.11.
4226         * lib/stdalign.in.h (_Alignas): Omit bogus extra parenthesis
4227         around __declspec arg.
4228         * modules/stdalign-tests (Files): Add tests/macros.h.
4229         * tests/test-stdalign.c: Do not include <stdlib.h>; no longer needed.
4230         Include macros.h, for ASSERT.
4231         (DECLARE_ALIGNED): Remove.
4232         (TEST_ALIGNMENT): Define to 16 if alignment is supported (more likely
4233         to catch bug), and to 1 if not (simplifies the rest of the code).
4234         (CHECK_STATIC): Always declare the alignment test vars; that's simpler.
4235         (CHECK_AUTO): Remove.
4236         (CHECK_ALIGNED): Check only the alignment of the static vars,
4237         since auto var alignment isn't supported by Sun C 5.11.
4238         (CHECK_TYPES): Remove.  All uses replaced by inline code, so that
4239         ASSERT failures are easier to diagnose.
4240
4241 2011-10-31  Bruno Haible  <bruno@clisp.org>
4242
4243         doc about some IRIX 5.3 problems.
4244         * doc/posix-functions/getpwnam_r.texi: Mention incompatible declaration
4245         on IRIX 5.3.
4246         * doc/posix-headers/poll.texi: Mention missing nfds_t on IRIX 5.3.
4247         * doc/posix-functions/ptsname.texi: Mention missing declaration on IRIX
4248         5.3.
4249         * doc/posix-functions/grantpt.texi: Likewise.
4250         * doc/posix-functions/unlockpt.texi: Likewise.
4251         * doc/posix-functions/lgamma.texi: Likewise.
4252         * doc/posix-functions/nextafter.texi: Likewise.
4253         * doc/posix-functions/remainder.texi: Likewise.
4254         * doc/posix-functions/select.texi: Mention misplaced declaration on
4255         IRIX 5.3.
4256         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
4257
4258 2011-10-31  Dmitry V. Levin  <ldv@altlinux.org>
4259
4260         gitlog-to-changelog: fix git-log invocation.
4261         git-log mishandles date strings before 1970-01-01 UTC, and there is
4262         no use to specify --since=1970-01-01 by default anyway.
4263         * build-aux/gitlog-to-changelog: By default, when no --since option
4264         was given, do not specify explicit --since option to git-log.
4265
4266 2011-10-30  Dmitry V. Levin  <ldv@altlinux.org>
4267
4268         gitlog-to-changelog: new option --append-dot.
4269         * build-aux/gitlog-to-changelog: New option --append-dot, makes the
4270         first non-blank line of each commit message terminated with a dot.
4271
4272 2011-10-30  Bruno Haible  <bruno@clisp.org>
4273
4274         ffsl, ffsll: Avoid compilation error due to 'restrict'.
4275         * lib/ffsl.h: Include <config.h>.
4276         Suggested by Tom G. Christensen <tgc@jupiterrise.com>.
4277
4278 2011-10-30  Jim Meyering  <meyering@redhat.com>
4279
4280         GNUmakefile: reenable "make syntax-check" for most projects
4281         Since Friday's commit 05e2d798, "maint.mk: don't maintain a second
4282         build-aux variable", "syntax-check" would do nothing but succeed with
4283         the "No version control files detected..." diagnostic (unless you
4284         happened to override _build-aux via cfg.mk).
4285         * top/GNUmakefile (_autoreconf, _build-aux): Move default definitions
4286         to precede inclusion of maint.mk.  Otherwise, these variables would
4287         be used undefined in any project that does not override the default.
4288
4289 2011-10-29  Dmitry V. Levin  <ldv@altlinux.org>
4290
4291         gitlog-to-changelog: treat a message with only blank lines as empty.
4292         * build-aux/gitlog-to-changelog: Move the code that removes leading and
4293         trailing blank lines before the code that issues a warning about an
4294         empty commit message.
4295
4296 2011-10-30  Jim Meyering  <meyering@redhat.com>
4297
4298         test-parse-datetime.c: avoid new DST-related false positive test failure
4299         * tests/test-parse-datetime.c (gmt_offset): Determine the "gmt_offset"
4300         based on the time/date we'll convert, not the current time.
4301         Otherwise, the moment we cross a DST boundary like today's in
4302         Europe, (CEST to CET), that offset ends up being one hour off.
4303
4304 2011-10-27  Bruno Haible  <bruno@clisp.org>
4305
4306         fstat: Tweak documentation.
4307         * modules/fstat (Description): More precise description.
4308
4309 2011-10-27  Bruno Haible  <bruno@clisp.org>
4310
4311         Update documentation regarding 'largefile' module.
4312         * doc/posix-functions/fstat.texi: Tweak wording.
4313         * doc/posix-functions/opendir.texi: Mention that the module fixes the
4314         problems with huge directories and/or small ino_t types.
4315         * doc/posix-functions/readdir.texi: Likewise.
4316         * doc/posix-functions/rewinddir.texi: Likewise.
4317
4318 2011-10-28  Gary V. Vaughan  <gary@gnu.org>
4319
4320         maint.mk: don't maintain a second build-aux variable.
4321         * maint.mk (build_aux): Removed.  The maintainer-makefile module
4322         depends on GNUmakefile, which already maintains a cfg.mk
4323         overridable $(_build-aux) for projects with a non-standard
4324         build-aux directory location, although without the $(srcdir)
4325         prefix.  Use that variable consistently instead of introducing a
4326         second one.  Adjust all call sites.
4327
4328 2011-10-27  Paul Eggert  <eggert@cs.ucla.edu>
4329
4330         Add stdalign module and use it in other modules.
4331         This is based on a previous proposal by Bruno Haible
4332         <https://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00226.html>.
4333
4334         stdalign: new module
4335         * doc/posix-headers/stdalign.texi, lib/stdalign.in.h, m4/stdalign.m4:
4336         * modules/stdalign: New files.
4337         * MODULES.html.sh (c1x_core_properties): Add stdalign.
4338         * doc/gnulib.texi (Header File Substitutes): Add stdalign.
4339
4340         stdalign-tests: new module
4341         * modules/stdalign-tests, tests/test-stdalign.c: New files.
4342
4343         argp: use stdalign
4344         * lib/argp-parse.c: Include <stdalign.h>.
4345         (alignof): Remove.
4346         * modules/argp (Depends-on): Add stdalign.
4347
4348         crypto libraries: use stdalign
4349         * lib/md4.c, lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c:
4350         Include <stdalign.h> and <stdint.h>.  Do not include <stddef.h>.
4351         Do not include <stdlib.h> twice, in md4.c.
4352         (UNALIGNED_P): Simplify by using alignof.  Use uintptr_t, not size_t,
4353         because we are accessing a pointer's bit-pattern, not a size.
4354         * modules/crypto/gc-md4 (Depends-on): Add stdalign.
4355         * modules/crypto/gc-md5, modules/crypto/gc-sha1, modules/crypto/md4:
4356         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
4357         * modules/crypto/sha512: Likewise.
4358
4359         sys_socket: use stdalign, not alignof
4360         * lib/sys_socket.in.h: Include <stdalign.h> instead of <alignof.h>.
4361         * modules/sys_socket (Depends-on): Depend on stdalign, not alignof.
4362
4363 2011-10-27  Bruno Haible  <bruno@clisp.org>
4364
4365         raise test: Avoid a test failure on Linux/MIPS.
4366         * tests/test-raise.c (main): Try raising signal 199, not 99. Needed
4367         because 99 is a valid signal on Linux/MIPS.
4368
4369 2011-10-27  Bruno Haible  <bruno@clisp.org>
4370
4371         nonblocking tests: Fix test failure on Linux/MIPS.
4372         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/MIPS]:
4373         Set to 270000.
4374
4375 2011-10-27  Bruno Haible  <bruno@clisp.org>
4376
4377         utimensat: Work around problem on Linux/hppa.
4378         * lib/utimensat.c (rpl_utimensat) [Linux/hppa]: Reject invalid tv_nsec
4379         values.
4380         * doc/posix-functions/utimensat.texi: Mention the problem on Linux/hppa.
4381
4382 2011-10-25  Jim Meyering  <meyering@redhat.com>
4383
4384         maint.mk: fix a bug in sc_prohibit_stddef_without_use
4385         * top/maint.mk (sc_prohibit_stddef_without_use): Don't require / *\(/
4386         after symbols like NULL, size_t, etc.
4387         Reported by Alfred M. Szmidt.
4388
4389         maint.mk: exempt ENODATA from a syntax-check rule
4390         * top/maint.mk (gl_extract_significant_defines_): Also exempt ENODATA
4391         from the sc_prohibit_always-defined_macros syntax-check rule.
4392         Add a comment.  See this for more details:
4393         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739/focus=28795
4394
4395 2011-10-23  Jim Meyering  <meyering@redhat.com>
4396
4397         fts: close parent dir FD before returning from post-traversal fts_read
4398         The problem: the fts-using "mkdir -p A/B; rm -rf A" would attempt to
4399         unlink A, even though an FD open on A remained.  This is suboptimal
4400         (holding a file descriptor open longer than needed), but otherwise not
4401         a problem on Unix-like kernels.  However, on Cygwin with certain Novell
4402         file systems, (see http://cygwin.com/ml/cygwin/2011-10/msg00365.html),
4403         that represents a real problem: it causes the removal of A to fail
4404         with e.g., "rm: cannot remove `A': Device or resource busy"
4405
4406         fts visits each directory twice and keeps a cache (fts_fd_ring) of
4407         directory file descriptors.  After completing the final, FTS_DP,
4408         visit of a directory, RESTORE_INITIAL_CWD intended to clear the FD
4409         cache, but then proceeded to add a new FD to it via the subsequent
4410         FCHDIR (which calls cwd_advance_fd and i_ring_push).  Before, the
4411         final file descriptor would be closed only via fts_close's call to
4412         fd_ring_clear.  Now, it is usually closed earlier, via the final
4413         FTS_DP-returning fts_read call.
4414         * lib/fts.c (restore_initial_cwd): New function, converted from
4415         the macro.  Call fd_ring_clear *after* FCHDIR, not before it.
4416         Update callers.
4417         Reported by Franz Sirl via the above URL, with analysis by Eric Blake
4418         in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739
4419
4420 2011-10-23  Gary V. Vaughan  <gary@gnu.org>
4421             Bruno Haible  <bruno@clisp.org>
4422             Jim Meyering  <jim@meyering.net>
4423
4424         readme-release: improve safety of release prep instructions.
4425         * README-release: Don't git pull all branches when only master
4426         is needed for the release process.
4427         Run make maintainer-clean before changing trees and merging.
4428         Don't try to run ./configure right after git pull in case files
4429         that influence the bootstrap process have changed, move the
4430         ./configure step to after running ./bootstrap.
4431         Don't bootstrap "one last time"... it's the first time!
4432
4433 2011-10-22  Bruno Haible  <bruno@clisp.org>
4434
4435         errno, strerror-override: Support for MSVC 10.
4436         * lib/errno.in.h (GNULIB_defined_ETXTBSY): Remove macro.
4437         (ENOMSG, EIDRM, ENOLINK, EPROTO, EBADMSG, EOVERFLOW, ENOTSUP,
4438         ENETRESET, ECONNABORTED, ECANCELED, EINPROGRESS, EALREADY, ENOTSOCK,
4439         EDESTADDRREQ, EMSGSIZE, EPROTOTYPE, ENOPROTOOPT, EPROTONOSUPPORT,
4440         EOPNOTSUPP, EAFNOSUPPORT, EADDRINUSE, EADDRNOTAVAIL, ENETDOWN,
4441         ENETUNREACH, ECONNRESET, ENOBUFS, EISCONN, ENOTCONN, ETIMEDOUT,
4442         ECONNREFUSED, ELOOP, EHOSTUNREACH, EWOULDBLOCK, ETXTBSY) [Win32]:
4443         Assign values compatible with MSVC 10.
4444         (ENODATA, ENOSR, ENOSTR, ENOTRECOVERABLE, EOWNERDEAD, ETIME, EOTHER):
4445         New macros.
4446         (GNULIB_defined_EWINSOCK): New macro.
4447         * lib/strerror-override.c (strerror_override): Update accordingly.
4448         * lib/strerror-override.h: Likewise.
4449         * lib/w32sock.h (set_winsock_errno): Map those WSA* values that are no
4450         longer equal to the corresponding errno value.
4451         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
4452
4453 2011-10-22  Bruno Haible  <bruno@clisp.org>
4454
4455         perror: Recognize when test program crashes.
4456         * m4/perror.m4 (gl_FUNC_PERROR): If the test program crashes due to
4457         strerror, set gl_cv_func_perror_works to no.
4458         Reported by Daniel Richard G. <skunk@iskunk.org>.
4459
4460         perror: Fix indentation.
4461         * m4/perror.m4 (gl_FUNC_PERROR): Fix indentation.
4462
4463 2011-10-22  Bruno Haible  <bruno@clisp.org>
4464
4465         isfinite, isinf, isnan, signbit: Don't define as a macro in C++.
4466         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_1,
4467         _GL_MATH_CXX_REAL_FLOATING_DECL_2): nEW MACROS.
4468         (isfinite, isinf, isnan, signbit): In C++, define as overloaded
4469         functions, not as a macro.
4470         * tests/test-math-c++.cc (REAL_FLOATING_CHECK, OVERLOADED_CHECK): New
4471         macros.
4472         (isfinite, isinf, isnan, signbit): Check overloaded functions and
4473         absence of macro.
4474         Suggested by Eric Blake.
4475         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
4476
4477 2011-10-21  Bruno Haible  <bruno@clisp.org>
4478
4479         relocatable-prog-wrapper: Don't leave object files behind.
4480         * build-aux/install-reloc: Re-synchronize list of .o files to be
4481         removed with list of compilation units.
4482
4483 2011-10-20  Bruno Haible  <bruno@clisp.org>
4484
4485         openpty, posix_openpt: Remove code duplication.
4486         * lib/posix_openpt.c: Add comments about platforms, from lib/openpty.c.
4487         * lib/openpty.c: Include <stdlib.h>.
4488         (openpty): Use posix_openpt on all platforms except IRIX.
4489         * modules/openpty (Depends-on): Add posix_openpt. Add conditions.
4490
4491 2011-10-20  Bruno Haible  <bruno@clisp.org>
4492
4493         unlockpt: Detect invalid argument.
4494         * lib/unlockpt.c: Include <fcntl.h>.
4495         (unlockpt): Check whether fd is valid, using fcntl().
4496         * modules/unlockpt (Depends-on): Add fcntl-h.
4497
4498 2011-10-20  Bruno Haible  <bruno@clisp.org>
4499
4500         openpty: Avoid compilation error on AIX 6.1.
4501         * lib/pty.in.h [AIX]: Include <sys/ioctl.h>, for 'struct winsize'.
4502
4503 2011-10-20  Bruno Haible  <bruno@clisp.org>
4504
4505         posix_openpt: Support for OpenBSD.
4506         * lib/posix_openpt.c [OpenBSD]: Include <sys/ioctl.h>, <sys/tty.h>.
4507         (posix_openpt) [OpenBSD]: New code.
4508         * lib/grantpt.c: Include <fcntl.h>.
4509         (grantpt) [OpenBSD]: Only test whether fd is valid, nothing else.
4510         * modules/grantpt (Depends-on): Add fcntl-h.
4511
4512 2011-10-20  Bruno Haible  <bruno@clisp.org>
4513
4514         posix_openpt test: Coding style.
4515         * tests/test-posix_openpt.c: Use GNU coding style.
4516
4517 2011-10-20  Bruno Haible  <bruno@clisp.org>
4518
4519         grantpt: Support --avoid=pt_chown.
4520         * modules/grantpt (Files): Add lib/pty-private.h.
4521
4522 2011-10-20  Bruno Haible  <bruno@clisp.org>
4523
4524         posix_openpt: Fix autoconf macro.
4525         * m4/posix_openpt.m4 (gl_FUNC_POSIX_OPENPT): Fix variable name. Remove
4526         unneeded check for _getpty.
4527
4528 2011-10-20  Bruno Haible  <bruno@clisp.org>
4529
4530         openpty: Update comments.
4531         * lib/openpty.c: Add comments about Minix.
4532
4533 2011-10-19  Eric Blake  <eblake@redhat.com>
4534
4535         openpty: relax license
4536         * modules/openpty (License): Change from LGPLv3+ to LGPLv2+.
4537
4538         pt_chown: use configmake to simplify build
4539         * modules/pt_chown (Makefile.am): Drop line guaranteed by configmake.
4540
4541         ptsname and others: relax license
4542         * modules/grantpt (License): Change from LGPLv3+ to LGPLv2+.
4543         * modules/unlockpt (License): Likewise.
4544         * modules/pt_chown (License): Likewise.
4545         * modules/ptsname (License): Likewise.
4546         * modules/ttyname_r (License): Likewise.
4547
4548 2011-10-19  Jim Meyering  <meyering@redhat.com>
4549
4550         posix_openpt: remove spurious #endif
4551         * lib/posix_openpt.c (posix_openpt): Remove spurious #endif.
4552
4553 2011-10-19  Gary V. Vaughan  <gary@gnu.org>
4554
4555         maint.mk: Respect $(build_aux) in web-manual rule.
4556         * top/maint.mk (web-manual): Find gen-announce script in user's
4557         $(build_aux) directory instead of hard-coding 'build-aux'.
4558
4559 2011-10-19  Bruno Haible  <bruno@clisp.org>
4560
4561         posix_openpt: Fix compilation error.
4562         * lib/posix_openpt.c (posix_openpt): Renamed from posix_openpty.
4563         * doc/posix-functions/posix_openpt.texi: Mention ENOENT error code.
4564         Mention the openpty module as an alternative.
4565
4566 2011-10-19  Bruno Haible  <bruno@clisp.org>
4567
4568         Support for old NeXTstep 3.3 frexp().
4569         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Check for alarm. Limit the
4570         execution time of the test to 5 seconds.
4571         Reported by Daniel Richard G. <skunk@iskunk.org>.
4572
4573 2011-10-19  Bruno Haible  <bruno@clisp.org>
4574
4575         Support for old NeXTstep 3.3 sed.
4576         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): In the sed address
4577         part, use /.../, not \|...|. Escape periods in the header file name.
4578         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
4579         Reported by Daniel Richard G. <skunk@iskunk.org>.
4580
4581 2011-10-18  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
4582
4583         Support for old NeXTstep 3.3 gcc.
4584         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Write
4585         'defined __STRICT_ANSI__', not '__STRICT_ANSI__'.
4586         * lib/math.in.h (_GL_NUM_UINT_WORDS etc.): Likewise.
4587         * lib/spawn.in.h (_Restrict_arr_): Likewise.
4588         * lib/regex.h (_Restrict_arr_): Likewise.
4589         * lib/regex_internal.h (re_token_t): Likewise.
4590         * lib/regexec.c (check_node_accept_bytes): Likewise.
4591         * tests/test-printf-posix.c (func1, func2, func3, func4): Likewise.
4592
4593 2011-10-18  Eric Blake  <eblake@redhat.com>
4594
4595         posix_openpt: new module
4596         * modules/posix_openpt: New module.
4597         * m4/posix_openpt.m4: New file.
4598         * lib/posix_openpt.c: Likewise.
4599         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
4600         (gl_STDLIB_H_DEFAULTS): Set defaults.
4601         * modules/stdlib (Makefile.am): Substitute macros.
4602         * lib/stdlib.in.h (posix_openpt): Declare.
4603         * MODULES.html.sh (systems lacking POSIX:2008): Document it.
4604         * doc/posix-functions/posix_openpt.texi (posix_openpt): Likewise.
4605         * modules/posix_openpt-tests: New test module.
4606         * tests/test-posix_openpt.c: New test.
4607
4608 2011-10-15  Bruno Haible  <bruno@clisp.org>
4609
4610         xstrtoll: Fix compilation failure.
4611         * lib/xstrtol.c (ULLONG_MAX, LLONG_MAX, LLONG_MIN): New macros, taken
4612         from lib/strtol.c.
4613         * doc/posix-headers/limits.texi: Mention missing numerical limits on
4614         some platforms.
4615         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
4616
4617 2011-10-15  Bruno Haible  <bruno@clisp.org>
4618
4619         vasnprintf: Optimize bit search operation.
4620         * lib/vasnprintf.c (divide): Use optimizations from integer_length.c.
4621         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require
4622         gl_DOUBLE_EXPONENT_LOCATION.
4623         * modules/vasnprintf (Files): Add m4/exponentd.m4.
4624         * modules/unistdio/u8-vasnprintf (Files): Likewise.
4625         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
4626         * modules/unistdio/u16-vasnprintf (Files): Likewise.
4627         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
4628         * modules/unistdio/u32-vasnprintf (Files): Likewise.
4629         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
4630         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
4631         * m4/isnand.m4 (gl_PREREQ_ISNAND): Use AC_REQUIRE.
4632
4633 2011-10-15  Bruno Haible  <bruno@clisp.org>
4634
4635         vasnprintf: Fix comments.
4636         * lib/vasnprintf.c (decode_long_double, decode_double): Fix comments.
4637
4638 2011-10-14  Bruno Haible  <bruno@clisp.org>
4639
4640         Tests for module 'integer_length_ll'.
4641         * modules/integer_length_ll-tests: New file.
4642         * tests/test-integer_length_ll.c: New file.
4643
4644         New module 'integer_length_ll'.
4645         * lib/integer_length_ll.c: New file.
4646         * modules/integer_length_ll: New file.
4647
4648 2011-10-14  Bruno Haible  <bruno@clisp.org>
4649
4650         Tests for module 'integer_length_l'.
4651         * modules/integer_length_l-tests: New file.
4652         * tests/test-integer_length_l.c: New file.
4653
4654         New module 'integer_length_l'.
4655         * lib/integer_length_l.c: New file.
4656         * modules/integer_length_l: New file.
4657
4658 2011-10-14  Bruno Haible  <bruno@clisp.org>
4659
4660         Tests for module 'integer_length'.
4661         * modules/integer_length-tests: New file.
4662         * tests/test-integer_length.c: New file.
4663
4664         New module 'integer_length'.
4665         * lib/integer_length.h: New file.
4666         * lib/integer_length.c: New file.
4667         * modules/integer_length: New file.
4668
4669 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
4670
4671         popen: Fix dependency conditions.
4672         * modules/popen (Depends-on, configure.ac): Fix shell syntax error.
4673
4674 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
4675
4676         perror: Fix autoconf test.
4677         * m4/perror.m4 (gl_FUNC_PERROR): In the test program, include
4678         <stdlib.h> and <string.h>.
4679
4680 2011-10-14  Bruno Haible  <bruno@clisp.org>
4681
4682         ffsl: Optimize on 64-bit platforms.
4683         * lib/ffsl.h (FUNC): Omit a test from the last loop round. Do loop
4684         unrolling.
4685
4686 2011-10-13  Bruno Haible  <bruno@clisp.org>
4687
4688         ffsl: Optimize on 32-bit platforms.
4689         * lib/ffsl.h (FUNC): If TYPE has the same representation as 'int', just
4690         use ffs() without a loop.
4691
4692         ffsl, ffsll: Optimize for GCC.
4693         * lib/ffsl.h (FUNC): Use GCC_BUILTIN if defined.
4694         * lib/ffsl.c (GCC_BUILTIN): New macro.
4695         * lib/ffsll.c (GCC_BUILTIN): Likewise.
4696
4697 2011-10-13  Bruno Haible  <bruno@clisp.org>
4698
4699         ffs, bcopy, memset: Support symbol renaming via config.h.
4700         * lib/ffs.c: Include <config.h>.
4701         * lib/bcopy.c: Likewise.
4702         * lib/memset.c: Likewise.
4703
4704 2011-10-10  Bruno Haible  <bruno@clisp.org>
4705
4706         atanl: Simplify for platforms where 'long double' == 'double'.
4707         * lib/atanl.c (atanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
4708         alternative implementation.
4709         * m4/atanl.m4 (gl_FUNC_ATANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
4710         Determine ATANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
4711         * modules/atanl (Depends-on): Add atan. Update conditions.
4712
4713 2011-10-10  Bruno Haible  <bruno@clisp.org>
4714
4715         acosl: Simplify for platforms where 'long double' == 'double'.
4716         * lib/acosl.c (acosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
4717         alternative implementation.
4718         * m4/acosl.m4 (gl_FUNC_ACOSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
4719         Determine ACOSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
4720         * modules/acosl (Depends-on): Add acos. Update conditions.
4721
4722 2011-10-10  Bruno Haible  <bruno@clisp.org>
4723
4724         asinl: Simplify for platforms where 'long double' == 'double'.
4725         * lib/asinl.c (asinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
4726         alternative implementation.
4727         * m4/asinl.m4 (gl_FUNC_ASINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
4728         Determine ASINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
4729         * modules/asinl (Depends-on): Add asin. Update conditions.
4730
4731 2011-10-10  Bruno Haible  <bruno@clisp.org>
4732
4733         tanl: Simplify for platforms where 'long double' == 'double'.
4734         * lib/tanl.c (tanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
4735         implementation.
4736         * m4/tanl.m4 (gl_FUNC_TANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
4737         Determine TANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
4738         * modules/tanl (Depends-on): Add tan. Update conditions.
4739         (configure.ac): Don't compile trigl.c if
4740         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
4741
4742 2011-10-10  Bruno Haible  <bruno@clisp.org>
4743
4744         cosl: Simplify for platforms where 'long double' == 'double'.
4745         * lib/cosl.c (cosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
4746         implementation.
4747         * m4/cosl.m4 (gl_FUNC_COSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
4748         Determine COSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
4749         * modules/cosl (Depends-on): Add cos. Update conditions.
4750         (configure.ac): Don't compile sincosl.c and trigl.c if
4751         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
4752
4753 2011-10-10  Bruno Haible  <bruno@clisp.org>
4754
4755         sinl: Simplify for platforms where 'long double' == 'double'.
4756         * lib/sinl.c (sinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
4757         implementation.
4758         * m4/sinl.m4 (gl_FUNC_SINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
4759         Determine SINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
4760         * modules/sinl (Depends-on): Add sin. Update conditions.
4761         (configure.ac): Don't compile sincosl.c and trigl.c if
4762         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
4763
4764 2011-10-10  Bruno Haible  <bruno@clisp.org>
4765
4766         logl: Simplify for platforms where 'long double' == 'double'.
4767         * lib/logl.c (logl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
4768         implementation.
4769         * m4/logl.m4 (gl_FUNC_LOGL): Require gl_LONG_DOUBLE_VS_DOUBLE.
4770         Determine LOGL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
4771         * modules/logl (Depends-on): Add log. Update conditions.
4772
4773 2011-10-10  Bruno Haible  <bruno@clisp.org>
4774
4775         expl: Simplify for platforms where 'long double' == 'double'.
4776         * lib/expl.c (expl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
4777         implementation.
4778         * m4/expl.m4 (gl_FUNC_EXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
4779         Determine EXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
4780         * modules/expl (Depends-on): Add exp. Update conditions.
4781
4782 2011-10-10  Bruno Haible  <bruno@clisp.org>
4783
4784         sqrtl: Simplify for platforms where 'long double' == 'double'.
4785         * lib/sqrtl.c (sqrtl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
4786         alternative implementation.
4787         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
4788         Determine SQRTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
4789         * modules/sqrtl (Depends-on): Update conditions.
4790
4791 2011-10-10  Bruno Haible  <bruno@clisp.org>
4792
4793         ldexpl: Simplify for platforms where 'long double' == 'double'.
4794         * lib/ldexpl.c (ldexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
4795         alternative implementation.
4796         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
4797         Determine LDEXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
4798         * modules/ldexpl (Depends-on): Add ldexp. Update conditions.
4799
4800 2011-10-10  Tom G. Christensen  <tgc@jupiterrise.com>  (tiny change)
4801
4802         ffsll: set correct witness
4803         * modules/ffsll (configure.ac): Fix typo.
4804
4805 2011-10-10  Bruno Haible  <bruno@clisp.org>
4806
4807         printf-frexpl: Simplify for platforms where 'long double' == 'double'.
4808         * lib/printf-frexpl.c: Include <config.h>.
4809         (printf_frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
4810         * lib/printf-frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a
4811         second time.
4812         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Require
4813         gl_LONG_DOUBLE_VS_DOUBLE.
4814         * modules/printf-frexpl (Depends-on): Add printf-frexp. Update
4815         conditions.
4816
4817 2011-10-10  Bruno Haible  <bruno@clisp.org>
4818
4819         frexpl: Simplify for platforms where 'long double' == 'double'.
4820         * lib/frexpl.c: Include <config.h>.
4821         (frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
4822         * lib/frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
4823         time.
4824         * m4/frexpl.m4 (gl_FUNC_FREXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
4825         Determine FREXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
4826         (gl_FUNC_FREXPL_NO_LIBM): Require gl_LONG_DOUBLE_VS_DOUBLE.
4827         * modules/frexpl (Depends-on): Add frexp. Update conditions.
4828         * modules/frexpl-nolibm (Depends-on): Add frexp-nolibm. Update
4829         conditions.
4830
4831 2011-10-10  Jim Meyering  <meyering@redhat.com>
4832
4833         test-renameat: don't leave behind a temporary file
4834         * tests/test-renameat.c (main): Don't forget to remove a temporary file.
4835           ERROR: files left in build directory after distclean:
4836           ./gltests/test-renameat.too
4837           make[1]: *** [distcleancheck] Error 1
4838         Reported by Tom G. Christensen.
4839
4840 2011-10-09  Bruno Haible  <bruno@clisp.org>
4841
4842         rint: Determine RINT_LIBM correctly on AIX 7.
4843         * m4/mathfunc.m4 (gl_MATHFUNC): Try to invoke the function also
4844         directly, not only through a function pointer. Also accept an optional
4845         4th argument with extra code.
4846         * m4/rint.m4 (gl_FUNC_RINT): Pass an extra code that gets turned into a
4847         rintf() call by gcc when optimizing.
4848
4849         mathfunc.m4: Refactor.
4850         * m4/mathfunc.m4 (gl_MATHFUNC): Assign the argument list to a temporary
4851         m4 variable.
4852
4853 2011-10-09  Bruno Haible  <bruno@clisp.org>
4854
4855         rintl: Simplify for platforms where 'long double' == 'double'.
4856         * lib/rintl.c: Include <config.h>.
4857         (rintl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
4858         * lib/rint.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
4859         time.
4860         * m4/rintl.m4 (gl_FUNC_RINTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
4861         Determine RINTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
4862         * modules/rintl (Depends-on): Add rint. Update conditions.
4863
4864 2011-10-09  Bruno Haible  <bruno@clisp.org>
4865
4866         roundl: Simplify for platforms where 'long double' == 'double'.
4867         * lib/roundl.c: Include <config.h>.
4868         (roundl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
4869         * lib/round.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
4870         time.
4871         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require gl_LONG_DOUBLE_VS_DOUBLE.
4872         Determine ROUNDL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
4873         * modules/roundl (Depends-on): Add round. Update conditions.
4874
4875 2011-10-09  Bruno Haible  <bruno@clisp.org>
4876
4877         truncl: Simplify for platforms where 'long double' == 'double'.
4878         * lib/truncl.c: Include <config.h>.
4879         (truncl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
4880         * lib/trunc.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
4881         time.
4882         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require gl_LONG_DOUBLE_VS_DOUBLE.
4883         Determine TRUNCL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
4884         * modules/truncl (Depends-on): Add trunc. Update conditions.
4885
4886 2011-10-09  Bruno Haible  <bruno@clisp.org>
4887
4888         ceill: Simplify for platforms where 'long double' == 'double'.
4889         * lib/ceill.c: Include <config.h>.
4890         (ceill) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
4891         * lib/ceil.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
4892         time.
4893         * m4/ceill.m4 (gl_FUNC_CEILL): Require gl_LONG_DOUBLE_VS_DOUBLE.
4894         Determine CEILL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
4895         * modules/ceill (Depends-on): Add ceil. Update conditions.
4896
4897 2011-10-09  Bruno Haible  <bruno@clisp.org>
4898
4899         floorl: Simplify for platforms where 'long double' == 'double'.
4900         * lib/floorl.c: Include <config.h>.
4901         (floorl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
4902         * lib/floor.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
4903         time.
4904         * m4/floorl.m4 (gl_FUNC_FLOORL): Require gl_LONG_DOUBLE_VS_DOUBLE.
4905         Determine FLOORL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
4906         * modules/floorl (Depends-on): Add floor. Update conditions.
4907
4908 2011-10-09  Bruno Haible  <bruno@clisp.org>
4909
4910         rint: Fix ordering constraints.
4911         * m4/rint.m4 (gl_FUNC_RINT): Require gl_MATH_H_DEFAULTS.
4912         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
4913         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
4914
4915 2011-10-09  Bruno Haible  <bruno@clisp.org>
4916
4917         copysignl: Simplify for platforms where 'long double' == 'double'.
4918         * lib/copysignl.c (copysignl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
4919         alternative.
4920         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Require gl_LONG_DOUBLE_VS_DOUBLE.
4921         Determine COPYSIGNL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
4922         * modules/copysignl (Depends-on): Add copysign. Update conditions.
4923
4924 2011-10-09  Bruno Haible  <bruno@clisp.org>
4925
4926         Tests for module 'rintl'.
4927         * modules/rintl-tests: New file.
4928         * tests/test-rintl.c: New file.
4929
4930         New module 'rintl'.
4931         * lib/math.in.h (rintl): New declaration.
4932         * lib/rintl.c: New file.
4933         * m4/rintl.m4: New file.
4934         * m4/math_h.m4 (gl_MATH_H): Test whether rintl is declared.
4935         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTL, HAVE_RINTL.
4936         * modules/math (Makefile.am): Substitute GNULIB_RINTL, HAVE_RINTL.
4937         * modules/rintl: New file.
4938         * tests/test-math-c++.cc: Check the declaration of rintl.
4939         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
4940         $(RINTL_LIBM). Needed on IRIX 6.5 with cc.
4941         * doc/posix-functions/rintl.texi: Mention the new module.
4942
4943 2011-10-09  Bruno Haible  <bruno@clisp.org>
4944
4945         Tests for module 'rintf'.
4946         * modules/rintf-tests: New file.
4947         * tests/test-rintf.c: New file.
4948
4949         New module 'rintf'.
4950         * lib/math.in.h (rintf): New declaration.
4951         * lib/rintf.c: New file.
4952         * m4/rintf.m4: New file.
4953         * m4/math_h.m4 (gl_MATH_H): Test whether rintf is declared.
4954         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTF, HAVE_RINTF.
4955         * modules/math (Makefile.am): Substitute GNULIB_RINTF, HAVE_RINTF.
4956         * modules/rintf: New file.
4957         * tests/test-math-c++.cc: Check the declaration of rintf.
4958         * doc/posix-functions/rintf.texi: Mention the new module.
4959
4960 2011-10-09  Bruno Haible  <bruno@clisp.org>
4961
4962         rint: Support for MSVC.
4963         * lib/math.in.h (rint): New declaration.
4964         * lib/rint.c: New file.
4965         * m4/rint.m4: New file.
4966         * m4/math_h.m4 (gl_MATH_H): Test whether rint is declared.
4967         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINT, HAVE_RINT.
4968         * modules/math (Makefile.am): Substitute GNULIB_RINT, HAVE_RINT.
4969         * modules/rint (Description): Fix.
4970         (Files): Add lib/rint.c, m4/rint.m4.
4971         (Depends-on): Add math.
4972         (configure.ac): Invoke gl_FUNC_RINT, AC_LIBOBJ,
4973         gl_MATH_MODULE_INDICATOR.
4974         * tests/test-math-c++.cc: Check the declaration of rint.
4975         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
4976         $(RINT_LIBM). Needed on IRIX 6.5 with cc.
4977         * doc/posix-functions/rint.texi: Mention the replacement provided by
4978         the module.
4979
4980         rint tests: More tests.
4981         * tests/test-rint.c: Include <float.h>, <stdio.h>, isnand-nolibm.h,
4982         minus-zero.h, infinity.h, nan.h.
4983         (main): Skip the test if the current rounding mode is not standard. Add
4984         tests for negative numbers, minus zero, infinity, NaN.
4985         * modules/rint-tests (Files): Add tests/minus-zero.h, tests/infinity.h,
4986         tests/nan.h.
4987         (Depends-on): Add isnand-nolibm.
4988
4989 2011-10-09  Bruno Haible  <bruno@clisp.org>
4990
4991         Tests for module 'copysignl'.
4992         * modules/copysignl-tests: New file.
4993         * tests/test-copysignl.c: New file.
4994
4995         New module 'copysignl'.
4996         * lib/math.in.h (copysignl): New declaration.
4997         * lib/copysignl.c: New file.
4998         * m4/copysignl.m4: New file.
4999         * m4/math_h.m4 (gl_MATH_H): Test whether copysignl is declared.
5000         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNL, HAVE_COPYSIGNL.
5001         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNL,
5002         HAVE_COPYSIGNL.
5003         * modules/copysignl: New file.
5004         * tests/test-math-c++.cc: Check the declaration of copysignl.
5005         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
5006         $(COPYSIGNL_LIBM). Needed on IRIX 6.5 with cc.
5007         * doc/posix-functions/copysignl.texi: Mention the new module.
5008
5009 2011-10-09  Bruno Haible  <bruno@clisp.org>
5010
5011         Tests for module 'copysignf'.
5012         * modules/copysignf-tests: New file.
5013         * tests/test-copysignf.c: New file.
5014
5015         New module 'copysignf'.
5016         * lib/math.in.h (copysignf): New declaration.
5017         * lib/copysignf.c: New file.
5018         * m4/copysignf.m4: New file.
5019         * m4/math_h.m4 (gl_MATH_H): Test whether copysignf is declared.
5020         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNF, HAVE_COPYSIGNF.
5021         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNF,
5022         HAVE_COPYSIGNF.
5023         * modules/copysignf: New file.
5024         * tests/test-math-c++.cc: Check the declaration of copysignf.
5025         * doc/posix-functions/copysignf.texi: Mention the new module.
5026
5027 2011-10-09  Bruno Haible  <bruno@clisp.org>
5028
5029         Ensure that HAVE_* variables are set to 1 before they are set to 0.
5030         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require gl_DIRENT_H_DEFAULTS.
5031         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS.
5032         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
5033         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Require
5034         gl_SIGNAL_H_DEFAULTS.
5035
5036 2011-10-09  Bruno Haible  <bruno@clisp.org>
5037
5038         poll: Make macro safer.
5039         * m4/poll.m4 (gl_FUNC_POLL): Complain if, after invoking gl_POLL_H,
5040         ac_cv_header_poll_h is not set.
5041
5042 2011-10-09  Bruno Haible  <bruno@clisp.org>
5043
5044         copysign: Provide replacement.
5045         * lib/math.in.h (copysign): New declaration.
5046         * lib/copysign.c: New file.
5047         * m4/copysign.m4: New file.
5048         * m4/math_h.m4 (gl_MATH_H): Test whether copysign is declared.
5049         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGN, HAVE_COPYSIGN.
5050         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGN,
5051         HAVE_COPYSIGN.
5052         * modules/copysign (Description): Clarify.
5053         (Files): Add lib/copysign.c, m4/copysign.m4.
5054         (Depends-on): Add math, signbit.
5055         (configure.ac): Invoke gl_FUNC_COPYSIGN, AC_LIBOBJ,
5056         gl_MATH_MODULE_INDICATOR.
5057         * tests/test-math-c++.cc: Check the declaration of copysign.
5058         * doc/posix-functions/copysign.texi: Mention the effects of the module
5059         on Minix and MSVC.
5060
5061 2011-10-09  Bruno Haible  <bruno@clisp.org>
5062
5063         isinf: Ensure macro on AIX 5.1.
5064         * m4/isinf.m4 (gl_ISINF): Also test whether isinf is defined as a
5065         macro.
5066         * doc/posix-functions/isinf.texi: Mention also AIX 5.1 as deficient.
5067
5068 2011-10-09  Bruno Haible  <bruno@clisp.org>
5069
5070         *printf-posix tests: Fix for platforms where 'long double' == 'double'.
5071         * modules/snprintf-posix-tests (configure.ac): Require
5072         gl_LONG_DOUBLE_VS_DOUBLE.
5073         * modules/sprintf-posix-tests (configure.ac): Likewise.
5074         * modules/vasnprintf-posix-tests (configure.ac): Likewise.
5075         * modules/vasprintf-posix-tests (configure.ac): Likewise.
5076         * modules/vsnprintf-posix-tests (configure.ac): Likewise.
5077         * modules/vsprintf-posix-tests (configure.ac): Likewise.
5078         * tests/test-snprintf-posix.h (test_function): Avoid 80-bit long double
5079         tests on platforms where 'long double' is the same as 'double'.
5080         * tests/test-sprintf-posix.h (test_function): Likewise.
5081         * tests/test-vasnprintf-posix.c (test_function): Likewise.
5082         * tests/test-vasprintf-posix.c (test_function): Likewise.
5083
5084         *printf: Fix for platforms where 'long double' == 'double'.
5085         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
5086         gl_LONG_DOUBLE_VS_DOUBLE. Don't blindly assume 80-bit 'long double'.
5087         * modules/dprintf-posix (Files): Add m4/math_h.m4.
5088         * modules/fprintf-posix (Files): Likewise.
5089         * modules/obstack-printf-posix (Files): Likewise.
5090         * modules/snprintf-posix (Files): Likewise.
5091         * modules/sprintf-posix (Files): Likewise.
5092         * modules/vasnprintf (Files): Likewise.
5093         * modules/vasnprintf-posix (Files): Likewise.
5094         * modules/vasprintf-posix (Files): Likewise.
5095         * modules/vdprintf-posix (Files): Likewise.
5096         * modules/vfprintf-posix (Files): Likewise.
5097         * modules/vsnprintf-posix (Files): Likewise.
5098         * modules/vsprintf-posix (Files): Likewise.
5099         * modules/unistdio/u8-vasnprintf (Files): Likewise.
5100         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
5101         * modules/unistdio/u16-vasnprintf (Files): Likewise.
5102         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
5103         * modules/unistdio/u32-vasnprintf (Files): Likewise.
5104         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
5105         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
5106
5107         isnanl[-nolibm]: Fix for platforms where 'long double' == 'double'.
5108         * lib/isnan.c (rpl_isnanl): Don't blindly assume 80-bit 'long double'.
5109         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
5110         (gl_FUNC_ISNANL_WORKS): Likewise. Don't blindly assume 80-bit
5111         'long double'.
5112         * modules/isnanl-nolibm (Files): Add m4/math_h.m4.
5113
5114         isinf: Fix for platforms where 'long double' == 'double'.
5115         * m4/isinf.m4 (gl_ISINFL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
5116         Don't blindly assume 80-bit 'long double'.
5117
5118         isfinite: Fix for platforms where 'long double' == 'double'.
5119         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
5120         Don't blindly assume 80-bit 'long double'.
5121
5122         isfinite, isinf, isnan tests: Avoid syntax error on MSVC 9.
5123         * m4/math_h.m4 (gl_LONG_DOUBLE_VS_DOUBLE): New macro.
5124         * modules/isfinite-tests (configure.ac): Require
5125         gl_LONG_DOUBLE_VS_DOUBLE.
5126         * modules/isinf-tests (configure.ac): Likewise.
5127         * modules/isnan-tests (configure.ac): Likewise.
5128         * modules/isnanl-tests (configure.ac): Likewise.
5129         * modules/isnanl-nolibm-tests (configure.ac): Likewise.
5130         * tests/test-isfinite.c (test_isfinitel): Avoid 80-bit long double
5131         tests on platforms where 'long double' is the same as 'double'.
5132         * tests/test-isinf.c (test_isinfl): Likewise.
5133         * tests/test-isnan.c (test_long_double): Likewise.
5134         * tests/test-isnanl.h (main): Likewise.
5135
5136 2011-10-08  Bruno Haible  <bruno@clisp.org>
5137
5138         Tests for module 'tanhf'.
5139         * modules/tanhf-tests: New file.
5140         * tests/test-tanhf.c: New file.
5141
5142         New module 'tanhf'.
5143         * lib/math.in.h (tanhf): New declaration.
5144         * lib/tanhf.c: New file.
5145         * m4/tanhf.m4: New file.
5146         * m4/math_h.m4 (gl_MATH_H): Test whether tanhf is declared.
5147         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANHF, HAVE_TANHF.
5148         * modules/math (Makefile.am): Substitute GNULIB_TANHF, HAVE_TANHF.
5149         * modules/tanhf: New file.
5150         * tests/test-math-c++.cc: Check the declaration of tanhf.
5151         * doc/posix-functions/tanhf.texi: Mention the new module.
5152
5153         tanh: Use a .m4 file.
5154         * m4/tanh.m4: New file.
5155         * modules/tanh (Files): Add it.
5156         (configure.ac): Just invoke gl_FUNC_TANH.
5157
5158 2011-10-08  Bruno Haible  <bruno@clisp.org>
5159
5160         Tests for module 'coshf'.
5161         * modules/coshf-tests: New file.
5162         * tests/test-coshf.c: New file.
5163
5164         New module 'coshf'.
5165         * lib/math.in.h (coshf): New declaration.
5166         * lib/coshf.c: New file.
5167         * m4/coshf.m4: New file.
5168         * m4/math_h.m4 (gl_MATH_H): Test whether coshf is declared.
5169         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSHF, HAVE_COSHF.
5170         * modules/math (Makefile.am): Substitute GNULIB_COSHF, HAVE_COSHF.
5171         * modules/coshf: New file.
5172         * tests/test-math-c++.cc: Check the declaration of coshf.
5173         * doc/posix-functions/coshf.texi: Mention the new module.
5174
5175         cosh: Use a .m4 file.
5176         * m4/cosh.m4: New file.
5177         * modules/cosh (Files): Add it.
5178         (configure.ac): Just invoke gl_FUNC_COSH.
5179
5180 2011-10-08  Bruno Haible  <bruno@clisp.org>
5181
5182         Tests for module 'sinhf'.
5183         * modules/sinhf-tests: New file.
5184         * tests/test-sinhf.c: New file.
5185
5186         New module 'sinhf'.
5187         * lib/math.in.h (sinhf): New declaration.
5188         * lib/sinhf.c: New file.
5189         * m4/sinhf.m4: New file.
5190         * m4/math_h.m4 (gl_MATH_H): Test whether sinhf is declared.
5191         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINHF, HAVE_SINHF.
5192         * modules/math (Makefile.am): Substitute GNULIB_SINHF, HAVE_SINHF.
5193         * modules/sinhf: New file.
5194         * tests/test-math-c++.cc: Check the declaration of sinhf.
5195         * doc/posix-functions/sinhf.texi: Mention the new module.
5196
5197         sinh: Use a .m4 file.
5198         * m4/sinh.m4: New file.
5199         * modules/sinh (Files): Add it.
5200         (configure.ac): Just invoke gl_FUNC_SINH.
5201
5202 2011-10-08  Bruno Haible  <bruno@clisp.org>
5203
5204         Tests for module 'atan2f'.
5205         * modules/atan2f-tests: New file.
5206         * tests/test-atan2f.c: New file.
5207
5208         New module 'atan2f'.
5209         * lib/math.in.h (atan2f): New declaration.
5210         * lib/atan2f.c: New file.
5211         * m4/atan2f.m4: New file.
5212         * m4/math_h.m4 (gl_MATH_H): Test whether atan2f is declared.
5213         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATAN2F, HAVE_ATAN2F.
5214         * modules/math (Makefile.am): Substitute GNULIB_ATAN2F, HAVE_ATAN2F.
5215         * modules/atan2f: New file.
5216         * tests/test-math-c++.cc: Check the declaration of atan2f.
5217         * doc/posix-functions/atan2f.texi: Mention the new module.
5218
5219         atan2: Use a .m4 file.
5220         * m4/atan2.m4: New file.
5221         * modules/atan2 (Files): Add it.
5222         (configure.ac): Just invoke gl_FUNC_ATAN2.
5223
5224 2011-10-08  Bruno Haible  <bruno@clisp.org>
5225
5226         Tests for module 'atanf'.
5227         * modules/atanf-tests: New file.
5228         * tests/test-atanf.c: New file.
5229
5230         New module 'atanf'.
5231         * lib/math.in.h (atanf): New declaration.
5232         * lib/atanf.c: New file.
5233         * m4/atanf.m4: New file.
5234         * m4/math_h.m4 (gl_MATH_H): Test whether atanf is declared.
5235         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATANF, HAVE_ATANF.
5236         * modules/math (Makefile.am): Substitute GNULIB_ATANF, HAVE_ATANF.
5237         * modules/atanf: New file.
5238         * tests/test-math-c++.cc: Check the declaration of atanf.
5239         * doc/posix-functions/atanf.texi: Mention the new module.
5240
5241         atan: Use a .m4 file.
5242         * m4/atan.m4: New file.
5243         * modules/atan (Files): Add it.
5244         (configure.ac): Just invoke gl_FUNC_ATAN.
5245
5246 2011-10-08  Bruno Haible  <bruno@clisp.org>
5247
5248         Tests for module 'acosf'.
5249         * modules/acosf-tests: New file.
5250         * tests/test-acosf.c: New file.
5251
5252         New module 'acosf'.
5253         * lib/math.in.h (acosf): New declaration.
5254         * lib/acosf.c: New file.
5255         * m4/acosf.m4: New file.
5256         * m4/math_h.m4 (gl_MATH_H): Test whether acosf is declared.
5257         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ACOSF, HAVE_ACOSF.
5258         * modules/math (Makefile.am): Substitute GNULIB_ACOSF, HAVE_ACOSF.
5259         * modules/acosf: New file.
5260         * tests/test-math-c++.cc: Check the declaration of acosf.
5261         * doc/posix-functions/acosf.texi: Mention the new module.
5262
5263         acos: Use a .m4 file.
5264         * m4/acos.m4: New file.
5265         * modules/acos (Files): Add it.
5266         (configure.ac): Just invoke gl_FUNC_ACOS.
5267
5268 2011-10-08  Bruno Haible  <bruno@clisp.org>
5269
5270         Tests for module 'asinf'.
5271         * modules/asinf-tests: New file.
5272         * tests/test-asinf.c: New file.
5273
5274         New module 'asinf'.
5275         * lib/math.in.h (asinf): New declaration.
5276         * lib/asinf.c: New file.
5277         * m4/asinf.m4: New file.
5278         * m4/math_h.m4 (gl_MATH_H): Test whether asinf is declared.
5279         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ASINF, HAVE_ASINF.
5280         * modules/math (Makefile.am): Substitute GNULIB_ASINF, HAVE_ASINF.
5281         * modules/asinf: New file.
5282         * tests/test-math-c++.cc: Check the declaration of asinf.
5283         * doc/posix-functions/asinf.texi: Mention the new module.
5284
5285         asin: Use a .m4 file.
5286         * m4/asin.m4: New file.
5287         * modules/asin (Files): Add it.
5288         (configure.ac): Just invoke gl_FUNC_ASIN.
5289
5290 2011-10-08  Bruno Haible  <bruno@clisp.org>
5291
5292         Tests for module 'tanf'.
5293         * modules/tanf-tests: New file.
5294         * tests/test-tanf.c: New file.
5295
5296         New module 'tanf'.
5297         * lib/math.in.h (tanf): New declaration.
5298         * lib/tanf.c: New file.
5299         * m4/tanf.m4: New file.
5300         * m4/math_h.m4 (gl_MATH_H): Test whether tanf is declared.
5301         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANF, HAVE_TANF.
5302         * modules/math (Makefile.am): Substitute GNULIB_TANF, HAVE_TANF.
5303         * modules/tanf: New file.
5304         * tests/test-math-c++.cc: Check the declaration of tanf.
5305         * doc/posix-functions/tanf.texi: Mention the new module.
5306
5307         tan: Use a .m4 file.
5308         * m4/tan.m4: New file.
5309         * modules/tan (Files): Add it.
5310         (configure.ac): Just invoke gl_FUNC_TAN.
5311
5312 2011-10-08  Bruno Haible  <bruno@clisp.org>
5313
5314         Tests for module 'cosf'.
5315         * modules/cosf-tests: New file.
5316         * tests/test-cosf.c: New file.
5317
5318         New module 'cosf'.
5319         * lib/math.in.h (cosf): New declaration.
5320         * lib/cosf.c: New file.
5321         * m4/cosf.m4: New file.
5322         * m4/math_h.m4 (gl_MATH_H): Test whether cosf is declared.
5323         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSF, HAVE_COSF.
5324         * modules/math (Makefile.am): Substitute GNULIB_COSF, HAVE_COSF.
5325         * modules/cosf: New file.
5326         * tests/test-math-c++.cc: Check the declaration of cosf.
5327         * doc/posix-functions/cosf.texi: Mention the new module.
5328
5329         cos: Use a .m4 file.
5330         * m4/cos.m4: New file.
5331         * modules/cos (Files): Add it.
5332         (configure.ac): Just invoke gl_FUNC_COS.
5333
5334 2011-10-08  Bruno Haible  <bruno@clisp.org>
5335
5336         Tests for module 'sinf'.
5337         * modules/sinf-tests: New file.
5338         * tests/test-sinf.c: New file.
5339
5340         New module 'sinf'.
5341         * lib/math.in.h (sinf): New declaration.
5342         * lib/sinf.c: New file.
5343         * m4/sinf.m4: New file.
5344         * m4/math_h.m4 (gl_MATH_H): Test whether sinf is declared.
5345         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINF, HAVE_SINF.
5346         * modules/math (Makefile.am): Substitute GNULIB_SINF, HAVE_SINF.
5347         * modules/sinf: New file.
5348         * tests/test-math-c++.cc: Check the declaration of sinf.
5349         * doc/posix-functions/sinf.texi: Mention the new module.
5350
5351         sin: Use a .m4 file.
5352         * m4/sin.m4: New file.
5353         * modules/sin (Files): Add it.
5354         (configure.ac): Just invoke gl_FUNC_SIN.
5355
5356 2011-10-08  Bruno Haible  <bruno@clisp.org>
5357
5358         Tests for module 'powf'.
5359         * modules/powf-tests: New file.
5360         * tests/test-powf.c: New file.
5361
5362         New module 'powf'.
5363         * lib/math.in.h (powf): New declaration.
5364         * lib/powf.c: New file.
5365         * m4/powf.m4: New file.
5366         * m4/math_h.m4 (gl_MATH_H): Test whether powf is declared.
5367         (gl_MATH_H_DEFAULTS): Initialize GNULIB_POWF, HAVE_POWF.
5368         * modules/math (Makefile.am): Substitute GNULIB_POWF, HAVE_POWF.
5369         * modules/powf: New file.
5370         * tests/test-math-c++.cc: Check the declaration of powf.
5371         * doc/posix-functions/powf.texi: Mention the new module.
5372
5373         pow: Use a .m4 file.
5374         * m4/pow.m4: New file.
5375         * modules/pow (Files): Add it.
5376         (configure.ac): Just invoke gl_FUNC_POW.
5377
5378 2011-10-08  Bruno Haible  <bruno@clisp.org>
5379
5380         Tests for module 'log10f'.
5381         * modules/log10f-tests: New file.
5382         * tests/test-log10f.c: New file.
5383
5384         New module 'log10f'.
5385         * lib/math.in.h (log10f): New declaration.
5386         * lib/log10f.c: New file.
5387         * m4/log10f.m4: New file.
5388         * m4/math_h.m4 (gl_MATH_H): Test whether log10f is declared.
5389         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10F, HAVE_LOG10F.
5390         * modules/math (Makefile.am): Substitute GNULIB_LOG10F, HAVE_LOG10F.
5391         * modules/log10f: New file.
5392         * tests/test-math-c++.cc: Check the declaration of log10f.
5393         * doc/posix-functions/log10f.texi: Mention the new module.
5394
5395         log10: Use a .m4 file.
5396         * m4/log10.m4: New file.
5397         * modules/log10 (Files): Add it.
5398         (configure.ac): Just invoke gl_FUNC_LOG10.
5399
5400 2011-10-08  Bruno Haible  <bruno@clisp.org>
5401
5402         Tests for module 'logf'.
5403         * modules/logf-tests: New file.
5404         * tests/test-logf.c: New file.
5405
5406         New module 'logf'.
5407         * lib/math.in.h (logf): New declaration.
5408         * lib/logf.c: New file.
5409         * m4/logf.m4: New file.
5410         * m4/math_h.m4 (gl_MATH_H): Test whether logf is declared.
5411         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGF, HAVE_LOGF.
5412         * modules/math (Makefile.am): Substitute GNULIB_LOGF, HAVE_LOGF.
5413         * modules/logf: New file.
5414         * tests/test-math-c++.cc: Check the declaration of logf.
5415         * doc/posix-functions/logf.texi: Mention the new module.
5416
5417         log: Use a .m4 file.
5418         * m4/log.m4: New file.
5419         * modules/log (Files): Add it.
5420         (configure.ac): Just invoke gl_FUNC_LOG.
5421
5422 2011-10-08  Bruno Haible  <bruno@clisp.org>
5423
5424         Tests for module 'expf'.
5425         * modules/expf-tests: New file.
5426         * tests/test-expf.c: New file.
5427
5428         New module 'expf'.
5429         * lib/math.in.h (expf): New declaration.
5430         * lib/expf.c: New file.
5431         * m4/expf.m4: New file.
5432         * m4/math_h.m4 (gl_MATH_H): Test whether expf is declared.
5433         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPF, HAVE_EXPF.
5434         * modules/math (Makefile.am): Substitute GNULIB_EXPF, HAVE_EXPF.
5435         * modules/expf: New file.
5436         * tests/test-math-c++.cc: Check the declaration of expf.
5437         * doc/posix-functions/expf.texi: Mention the new module.
5438
5439         exp: Use a .m4 file.
5440         * m4/exp.m4: New file.
5441         * modules/exp (Files): Add it.
5442         (configure.ac): Just invoke gl_FUNC_EXP.
5443
5444 2011-10-08  Bruno Haible  <bruno@clisp.org>
5445
5446         Tests for module 'sqrtf'.
5447         * modules/sqrtf-tests: New file.
5448         * tests/test-sqrtf.c: New file.
5449
5450         New module 'sqrtf'.
5451         * lib/math.in.h (sqrtf): New declaration.
5452         * lib/sqrtf.c: New file.
5453         * m4/sqrtf.m4: New file.
5454         * m4/math_h.m4 (gl_MATH_H): Test whether sqrtf is declared.
5455         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SQRTF, HAVE_SQRTF.
5456         * modules/math (Makefile.am): Substitute GNULIB_SQRTF, HAVE_SQRTF.
5457         * modules/sqrtf: New file.
5458         * tests/test-math-c++.cc: Check the declaration of sqrtf.
5459         * doc/posix-functions/sqrtf.texi: Mention the new module.
5460
5461 2011-10-08  Bruno Haible  <bruno@clisp.org>
5462
5463         Tests: Avoid link failures w.r.t. libintl.
5464         * modules/faccessat-tests (Makefile.am): Link test-faccessat against
5465         $(LIBINTL).
5466         * modules/fchdir-tests (Makefile.am): Link test-fchdir against
5467         $(LIBINTL).
5468         * modules/getcwd-lgpl-tests (Makefile.am): Link test-getcwd-lgpl
5469         against $(LIBINTL).
5470         * modules/getcwd-tests (Makefile.am): Link test-getcwd against
5471         $(LIBINTL).
5472         * modules/openat-tests (Makefile.am): Link test-fchmodat against
5473         $(LIBINTL).
5474         * modules/stat-tests (Makefile.am): Link test-stat against $(LIBINTL).
5475
5476 2011-10-08  Bruno Haible  <bruno@clisp.org>
5477
5478         pow tests: Defeat compiler optimizations.
5479         * tests/test-pow.c (main): Assign arguments to x and y before use.
5480
5481 2011-10-08  Bruno Haible  <bruno@clisp.org>
5482
5483         gnulib-tool: Improve last commit.
5484         * gnulib-tool (func_modules_transitive_closure): Simplify code.
5485         (func_emit_autoconf_snippets): Instead of invoking func_acceptable,
5486         ignore dependencies that are not among the modules list.
5487
5488 2011-10-07  Paul Eggert  <eggert@cs.ucla.edu>
5489
5490         gnulib-tool: don't follow dependencies to avoided modules
5491         This fixes a bug that is related to the previous one.
5492         * gnulib-tool (func_modules_transitive_closure)
5493         (func_emit_autoconf_snippets):
5494         Check whether a dependency is acceptable before using it.
5495         (--extract-dependencies): Report an error if --avoid is also used,
5496         since this combination of options is not yet supported.
5497
5498         gnulib-tool: fix typo that broke Emacs on powerpc-apple-darwin9.8.0.
5499         Problem reported by Peter Dyballa in
5500         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9696>.
5501         * gnulib-tool (func_emit_autoconf_snippets): Quote with "", not '',
5502         when echoing "$condition".
5503
5504 2011-10-07  Bruno Haible  <bruno@clisp.org>
5505
5506         Fix documentation about math functions on MacOS X.
5507         * doc/posix-functions/exp2.texi: Don't say the function is missing on
5508         MacOS X 10.5.
5509         * doc/posix-functions/fdim.texi: Likewise.
5510         * doc/posix-functions/feclearexcept.texi: Likewise.
5511         * doc/posix-functions/fegetenv.texi: Likewise.
5512         * doc/posix-functions/fegetround.texi: Likewise.
5513         * doc/posix-functions/feholdexcept.texi: Likewise.
5514         * doc/posix-functions/feraiseexcept.texi: Likewise.
5515         * doc/posix-functions/fesetenv.texi: Likewise.
5516         * doc/posix-functions/fesetround.texi: Likewise.
5517         * doc/posix-functions/fetestexcept.texi: Likewise.
5518         * doc/posix-functions/feupdateenv.texi: Likewise.
5519         * doc/posix-functions/fmax.texi: Likewise.
5520         * doc/posix-functions/fmin.texi: Likewise.
5521         * doc/posix-functions/log2.texi: Likewise.
5522         * doc/posix-functions/modff.texi: Likewise.
5523         * doc/posix-functions/nan.texi: Likewise.
5524         * doc/posix-functions/nanf.texi: Likewise.
5525         * doc/posix-functions/nextafterf.texi: Likewise.
5526         * doc/posix-functions/remquo.texi: Likewise.
5527
5528 2011-10-07  Bruno Haible  <bruno@clisp.org>
5529
5530         modff: Drop assumption about library that defines modff.
5531         * m4/modff.m4 (gl_FUNC_MODFF): Use gl_MATHFUNC macro instead of
5532         AC_CHECK_FUNCS.
5533         * modules/modff (Files): Add m4/mathfunc.m4.
5534
5535 2011-10-07  Bernhard Voelker  <mail@bernhard-voelker.de>
5536
5537         raise tests: Avoid a GCC warning.
5538         * tests/test-raise.c (handler): Use _Noreturn.
5539
5540 2011-10-07  Bruno Haible  <bruno@clisp.org>
5541
5542         Tests for module 'ldexpf'.
5543         * modules/ldexpf-tests: New file.
5544         * tests/test-ldexpf.c: New file.
5545
5546         New module 'ldexpf'.
5547         * lib/math.in.h (ldexpf): New declaration.
5548         * lib/ldexpf.c: New file.
5549         * m4/ldexpf.m4: New file.
5550         * m4/math_h.m4 (gl_MATH_H): Test whether ldexpf is declared.
5551         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LDEXPF, HAVE_LDEXPF.
5552         * modules/math (Makefile.am): Substitute GNULIB_LDEXPF, HAVE_LDEXPF.
5553         * modules/ldexpf: New file.
5554         * tests/test-math-c++.cc: Check the declaration of ldexpf.
5555         * doc/posix-functions/ldexpf.texi: Mention the new module.
5556
5557 2011-10-06  Bruno Haible  <bruno@clisp.org>
5558
5559         frexpf: Work around problems on IRIX and mingw.
5560         * lib/math.in.h (frexpf): Consider also REPLACE_FREXPF.
5561         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPF.
5562         * m4/frexpf.m4 (gl_FUNC_FREXPF_WORKS): New macro.
5563         (gl_FUNC_FREXPF): Invoke it. Set REPLACE_FREXPF.
5564         * modules/frexpf (Depends-on, configure.ac): Consider REPLACE_FREXPF.
5565         * modules/math (Makefile.am): Substitute REPLACE_FREXPF.
5566         * doc/posix-functions/frexpf.texi: Mention the IRIX and mingw problems.
5567
5568 2011-10-06  Bruno Haible  <bruno@clisp.org>
5569
5570         fabsf: Drop assumption about library that defines fabsf.
5571         * m4/fabsf.m4 (gl_FUNC_FABSF): Use gl_MATHFUNC macro instead of
5572         AC_CHECK_FUNCS.
5573         * modules/fabsf (Files): Add m4/mathfunc.m4.
5574
5575 2011-10-06  Bruno Haible  <bruno@clisp.org>
5576
5577         frexpf: Drop assumption about library that defines frexpf.
5578         * m4/mathfunc.m4 (gl_MATHFUNC): Support also the argument types
5579         'int *', 'float *', 'long double *', 'float', 'long double'.
5580         * m4/frexpf.m4 (gl_FUNC_FREXPF): Use gl_MATHFUNC macro instead of
5581         AC_CHECK_FUNCS.
5582         * modules/frexpf (Files): Add m4/mathfunc.m4.
5583
5584         Tests for module 'frexpf'.
5585         * modules/frexpf-tests: New file.
5586         * tests/test-frexpf.c: New file.
5587
5588         New module 'frexpf'.
5589         * lib/math.in.h (frexpf): New declaration.
5590         * lib/frexpf.c: New file.
5591         * m4/frexpf.m4: New file.
5592         * m4/math_h.m4 (gl_MATH_H): Test whether frexpf is declared.
5593         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPF, HAVE_FREXPF.
5594         * modules/math (Makefile.am): Substitute GNULIB_FREXPF, HAVE_FREXPF.
5595         * modules/frexpf: New file.
5596         * tests/test-math-c++.cc: Check the declaration of frexpf.
5597         * doc/posix-functions/frexpf.texi: Mention the new module.
5598
5599 2011-10-06  Bruno Haible  <bruno@clisp.org>
5600
5601         math: Sort function declarations of math.in.h.
5602         * lib/math.in.h (frexp, logb): Move declarations.
5603
5604 2011-10-05  Bruno Haible  <bruno@clisp.org>
5605
5606         Tests for module 'modff'.
5607         * modules/modff-tests: New file.
5608         * tests/test-modff.c: New file.
5609
5610         New module 'modff'.
5611         * lib/math.in.h (modff): New declaration.
5612         * lib/modff.c: New file.
5613         * m4/modff.m4: New file.
5614         * m4/math_h.m4 (gl_MATH_H): Test whether modff is declared.
5615         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFF, HAVE_MODFF.
5616         * modules/math (Makefile.am): Substitute GNULIB_MODFF, HAVE_MODFF.
5617         * modules/modff: New file.
5618         * tests/test-math-c++.cc: Check the declaration of modff.
5619         * doc/posix-functions/modff.texi: Mention the new module.
5620
5621         modf tests: Make test sharper.
5622         * tests/test-modf.c (main): Strengthen upper bound.
5623
5624         modf: Use a .m4 file.
5625         * m4/modf.m4: New file.
5626         * modules/modf (Files): Add it.
5627         (configure.ac): Just invoke gl_FUNC_MODF.
5628
5629 2011-10-05  Bruno Haible  <bruno@clisp.org>
5630
5631         Tests for module 'fmodf'.
5632         * modules/fmodf-tests: New file.
5633         * tests/test-fmodf.c: New file.
5634
5635         New module 'fmodf'.
5636         * lib/math.in.h (fmodf): New declaration.
5637         * lib/fmodf.c: New file.
5638         * m4/fmodf.m4: New file.
5639         * m4/math_h.m4 (gl_MATH_H): Test whether fmodf is declared.
5640         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODF, HAVE_FMODF.
5641         * modules/math (Makefile.am): Substitute GNULIB_FMODF, HAVE_FMODF.
5642         * modules/fmodf: New file.
5643         * tests/test-math-c++.cc: Check the declaration of fmodf.
5644         * doc/posix-functions/fmodf.texi: Mention the new module.
5645
5646         fmod: Use a .m4 file.
5647         * m4/fmod.m4: New file.
5648         * modules/fmod (Files): Add it.
5649         (configure.ac): Just invoke gl_FUNC_FMOD.
5650
5651 2011-10-05  Bruno Haible  <bruno@clisp.org>
5652
5653         Tests for module 'fabsf'.
5654         * modules/fabsf-tests: New file.
5655         * tests/test-fabsf.c: New file.
5656
5657         New module 'fabsf'.
5658         * lib/math.in.h (fabsf): New declaration.
5659         * lib/fabsf.c: New file.
5660         * m4/fabsf.m4: New file.
5661         * m4/math_h.m4 (gl_MATH_H): Test whether fabsf is declared.
5662         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSF, HAVE_FABSF.
5663         * modules/math (Makefile.am): Substitute GNULIB_FABSF, HAVE_FABSF.
5664         * modules/fabsf: New file.
5665         * tests/test-math-c++.cc: Check the declaration of fabsf.
5666         * doc/posix-functions/fabsf.texi: Mention the new module.
5667
5668         fabs: Use a .m4 file.
5669         * m4/fabs.m4: New file.
5670         * modules/fabs (Files): Add it.
5671         (configure.ac): Just invoke gl_FUNC_FABS.
5672
5673 2011-10-05  Jim Meyering  <meyering@redhat.com>
5674
5675         file-has-acl: revert both recent changes, 80af92af and 95f7c57f
5676         * lib/file-has-acl.c: While the 2011-10-03 change does fix the
5677         ls -lL regression introduced in coreutils-8.12, it does so at the
5678         cost of an additional stat call in the common case.  Besides, now
5679         that the kernel change that prompted commit 95f7c57f has been reverted
5680         (see https://bugzilla.redhat.com/show_bug.cgi?id=720325#c24)
5681         we have no use for commit 95f7c57f, "file-has-acl: use
5682         acl_extended_file_nofollow if available".
5683
5684 2011-10-03  Kamil Dudka  <kdudka@redhat.com>
5685
5686         file-has-acl: revert unintended change in behavior of ls -L
5687         * lib/file-has-acl.c (acl_extended_file_wrap): New function,
5688         derived from...
5689         (file_has_acl): ...code here.  Call it.
5690         This problem was introduced with 2011-07-22 commit 95f7c57f,
5691         "file-has-acl: use acl_extended_file_nofollow if available".
5692         See http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28538
5693
5694 2011-10-03  Bruno Haible  <bruno@clisp.org>
5695
5696         poll: Avoid link errors on MSVC.
5697         * m4/poll.m4 (gl_FUNC_POLL): Determine LIB_POLL.
5698         * modules/poll (Depends-on): Add sockets.
5699         (Link): New section.
5700         * NEWS: Mention the change.
5701         * modules/poll-tests (Makefile.am): Link test-poll against $(LIB_POLL).
5702         * modules/poll-h-c++-tests (Makefile.am): Link test-poll-h-c++ against
5703         $(LIB_POLL) instead of $(LIBSOCKET).
5704
5705 2011-10-03  Bruno Haible  <bruno@clisp.org>
5706
5707         sys_select tests: Fix link error on MSVC 9.
5708         * modules/sys_select-c++-tests (Makefile.am): Link test-sys_select-c++
5709         with $(LIB_SELECT) instead of $(LIBSOCKET).
5710
5711 2011-10-03  Bruno Haible  <bruno@clisp.org>
5712
5713         sys_select: Fix compilation error on mingw.
5714         * lib/sys_select.in.h: On native Windows, include <io.h>.
5715
5716 2011-10-03  Bruno Haible  <bruno@clisp.org>
5717
5718         wmemset: Support for MSVC.
5719         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Use a small test program to test
5720         whether wmemset() exists.
5721
5722 2011-10-03  Bruno Haible  <bruno@clisp.org>
5723
5724         wmemmove: Support for MSVC.
5725         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Use a small test program to test
5726         whether wmemmove() exists.
5727
5728 2011-10-03  Bruno Haible  <bruno@clisp.org>
5729
5730         wmemcpy: Support for MSVC.
5731         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Use a small test program to test
5732         whether wmemcpy() exists.
5733
5734 2011-10-03  Bruno Haible  <bruno@clisp.org>
5735
5736         wmemcmp: Support for MSVC.
5737         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Use a small test program to test
5738         whether wmemcmp() exists.
5739
5740 2011-10-03  Bruno Haible  <bruno@clisp.org>
5741
5742         wmemchr: Support for MSVC.
5743         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Use a small test program to test
5744         whether wmemchr() exists.
5745
5746 2011-10-03  Bruno Haible  <bruno@clisp.org>
5747
5748         glthread/*, strsignal: Support for MSVC.
5749         * lib/glthread/cond.h: Define WIN32_LEAN_AND_MEAN, so as to avoid
5750         including <winsock.h> on MSVC 9.
5751         * lib/glthread/lock.h: Likewise.
5752         * lib/glthread/thread.h: Likewise.
5753         * lib/glthread/tls.h: Likewise.
5754         * lib/glthread/yield.h: Likewise.
5755         * lib/strsignal.c: Include <string.h> first. Don't include <unistd.h>
5756         if HAVE_UNISTD_H is false.
5757         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Test for <unistd.h>.
5758
5759 2011-10-03  Bruno Haible  <bruno@clisp.org>
5760
5761         nonblocking tests: Fix test failure on OpenBSD/SPARC64.
5762         * tests/test-nonblocking-socket.h (SOCKET_DATA_BLOCK_SIZE) [OpenBSD]:
5763         Set to 100000.
5764
5765 2011-10-03  Bruno Haible  <bruno@clisp.org>
5766
5767         acl: Fix specification.
5768         * lib/file-has-acl.c (file_has_acl): Fix specification.
5769
5770 2011-10-03  Bruno Haible  <bruno@clisp.org>
5771
5772         relocatable-lib[-lgpl]: Avoid expensive /proc access on Linux, Cygwin.
5773         * lib/relocatable.c (ENABLE_COSTLY_RELOCATABLE): New macro.
5774         (compute_curr_prefix, shared_library_fullname,
5775         find_shared_library_fullname, get_shared_library_fullname, relocate):
5776         Use it together with PIC && INSTALLDIR.
5777         Reported by <jojelino@gmail.com>
5778         via Charles Wilson <cygwin@cwilson.fastmail.fm>.
5779
5780 2011-10-01  Jim Meyering  <meyering@redhat.com>
5781
5782         maint.mk: adjust a release-related rule not to require use of gzip
5783         * top/maint.mk (writable-files): Don't hard-code use of .tar.gz.
5784         Instead, check each file in $(DIST_ARCHIVES).  This is better for
5785         projects that build only .tar.xz files.  Also fix an erroneous test.
5786
5787         test-linkat: don't leave behind a temporary file
5788         * tests/test-linkat.c (main): Don't forget to remove a temporary file.
5789         Otherwise, coreutils' "make distcheck" would fail with this:
5790           Only in /c/cu/tests/torture/coreutils/test/\
5791             coreutils-8.13.22-d5caf.old/gnulib-tests: test-linkat.too
5792           make[2]: *** [my-distcheck] Error 1
5793
5794         float, math: add omitted file
5795         * lib/itold.c: Add file, required for yesterday's float change.
5796
5797 2011-10-01  Bruno Haible  <bruno@clisp.org>
5798
5799         isinf: Fix for OpenBSD/x86.
5800         * m4/isinf.m4 (gl_ISINFL_WORKS): Also test the behaviour of isinf on
5801         pseudo-NaNs, pseudo-Infinities, and other non-IEEE values.
5802         * doc/posix-functions/isinf.texi: Mention the problem on OpenBSD/x86.
5803
5804 2011-10-01  Bruno Haible  <bruno@clisp.org>
5805
5806         isfinite: Fix syntax error in configure test.
5807         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Fix syntax error.
5808
5809         isfinite: Fix typo.
5810         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): When cross-compiling, set
5811         gl_cv_func_isfinitel_works, not gl_cv_func_isnanl_works.
5812
5813 2011-10-01  Bruno Haible  <bruno@clisp.org>
5814
5815         nonblocking tests: Fix test failure on Linux/IA-64.
5816         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/IA-64]:
5817         Set to 270000.
5818
5819 2011-10-01  Bruno Haible  <bruno@clisp.org>
5820
5821         mkfifoat tests: Fix a test failure on mingw.
5822         * tests/test-mkfifoat.c (main): Allow mkfifoat or test_mknodat to fail
5823         with error ENOSYS.
5824
5825 2011-09-30  Bruno Haible  <bruno@clisp.org>
5826
5827         float, math: Fix 'int' to 'long double' conversion on Linux/SPARC64.
5828         * m4/float_h.m4 (gl_FLOAT_H): Test conversion from 'int' to
5829         'long double'. Set REPLACE_ITOLD.
5830         * lib/float.in.h (_Qp_itoq, _gl_float_fix_itold): New declarations.
5831         * lib/math.in.h (_Qp_itoq, _gl_math_fix_itold): New declarations.
5832         * lib/itold.c: New file.
5833         * modules/float (Files): Add lib/itold.c.
5834         (configure.ac): When REPLACE_ITOLD is 1, arrange to compile itold.c.
5835         (Makefile.am): Substitute REPLACE_ITOLD.
5836         * modules/math (Depends-on): Add float.
5837         (Makefile.am): Substitute REPLACE_ITOLD.
5838         * doc/posix-headers/float.texi: Mention problem on Linux/SPARC64.
5839         * doc/posix-headers/math.texi: Likewise.
5840         * doc/posix-functions/logl.texi: Likewise.
5841
5842 2011-09-30  Bruno Haible  <bruno@clisp.org>
5843
5844         nonblocking tests: Fix test failure on Linux/SPARC (32-bit and 64-bit).
5845         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/SPARC]:
5846         Set to 140000.
5847
5848 2011-09-30  Bruno Haible  <bruno@clisp.org>
5849
5850         gnulib-tool: Improve suggestion where to put gl_EARLY invocation.
5851         * gnulib-tool (func_import): If the configure.ac has an AC_PROG_CC_STDC
5852         invocation, say "right after AC_PROG_CC_STDC", not "right after
5853         AC_PROG_CC".
5854         Reported by Gary V. Vaughan <gary@gnu.org>.
5855
5856 2011-09-30  Bruno Haible  <bruno@clisp.org>
5857
5858         Centralize C99 requirement.
5859         * m4/gnulib-common.m4 (gl_PROG_CC_C99): New macro.
5860         * modules/stdarg (configure.ac-early): Invoke it instead of
5861         AC_PROG_CC_STDC.
5862         Reported by Gary V. Vaughan and Paul Eggert.
5863
5864 2011-09-29  Bruno Haible  <bruno@clisp.org>
5865
5866         float: Fix LDBL_MAX value on Linux/PowerPC.
5867         * m4/float_h.m4 (gl_FLOAT_H): Set FLOAT_H and REPLACE_FLOAT_LDBL also
5868         on Linux/PowerPC.
5869         * lib/float.in.h (LDBL_MAX): Redefine also on Linux/PowerPC.
5870         * lib/float.c (gl_LDBL_MAX): Also define on Linux/PowerPC.
5871         * doc/posix-headers/float.texi: Mention Linux/PowerPC as an affected
5872         platform.
5873         Reported by Andreas Metzler <ametzler@downhill.at.eu.org>.
5874
5875 2011-09-29  Bruno Haible  <bruno@clisp.org>
5876
5877         doc: Improve doc about gl_EARLY.
5878         * doc/gnulib-tool.texi (Initial import): Mention where to place an
5879         AC_PROG_CC_STDC invocation.
5880         Reported by Gary V. Vaughan <gary@gnu.org>.
5881
5882 2011-09-28  Bruno Haible  <bruno@clisp.org>
5883
5884         fgetc, fputc, fread, fwrite tests: Fix link error.
5885         * tests/test-fgetc.c (main): Don't invoke gl_msvc_inval_ensure_handler
5886         on non-MSVC platforms.
5887         * tests/test-fputc.c (main): Likewise.
5888         * tests/test-fread.c (main): Likewise.
5889         * tests/test-fwrite.c (main): Likewise.
5890         Reported by Jim Meyering.
5891
5892 2011-09-27  Bruno Haible  <bruno@clisp.org>
5893
5894         fputc, fwrite tests: Avoid test failure on MSVC.
5895         * tests/test-fgetc.c: Include msvc-inval.h.
5896         (main): Invoke gl_msvc_inval_ensure_handler.
5897         * tests/test-fputc.c: Include msvc-inval.h.
5898         (main): Invoke gl_msvc_inval_ensure_handler.
5899         * tests/test-fread.c: Include msvc-inval.h.
5900         (main): Invoke gl_msvc_inval_ensure_handler.
5901         * tests/test-fwrite.c: Include msvc-inval.h.
5902         (main): Invoke gl_msvc_inval_ensure_handler.
5903         * modules/fgetc-tests (Depends-on): Add msvc-inval.
5904         * modules/fputc-tests (Depends-on): Likewise.
5905         * modules/fread-tests (Depends-on): Likewise.
5906         * modules/fwrite-tests (Depends-on): Likewise.
5907
5908 2011-09-27  Bruno Haible  <bruno@clisp.org>
5909
5910         raise: Fix double declaration with modules 'sigprocmask' and 'sigpipe'.
5911         * lib/signal.in.h (GNULIB_defined_signal_blocking): New macro.
5912         (raise): Remove older, duplicated declaration.
5913         (_gl_raise_SIGPIPE): New declaration.
5914         * lib/sigprocmask.c (_gl_raise_SIGPIPE): New function.
5915         (rpl_raise): Remove function.
5916         * lib/raise.c (rpl_raise, raise): Merge into a single function. Handle
5917         a gnulib-defined SIGPIPE here.
5918         * m4/raise.m4 (gl_FUNC_RAISE): Set REPLACE_RAISE also if the module
5919         'sigprocmask' has detected missing signal-blocking and the module
5920         'sigpipe' is enabled.
5921         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
5922
5923 2011-09-26  Gijs van Tulder  <gvtulder@gmail.com>
5924
5925         base64-tests: avoid memory leak
5926         * tests/test-base64.c (main): Plug memory leak.
5927
5928         base32: new module
5929         * modules/base32: New module.
5930         * lib/base32.c: New file.
5931         * lib/base32.h: Likewise.
5932         * m4/base32.m4: Likewise.
5933         * modules/base32-tests: New test.
5934         * tests/test-base32.c: Likewise.
5935         * MODULES.html.sh (Misc): Mention it.
5936
5937 2011-09-26  Paul Eggert  <eggert@cs.ucla.edu>
5938
5939         gnulib: use more-standard license notice wording
5940         * gnulib-tool (func_emit_copyright_notice): When emitting a
5941         license notice into a file, use the standard wording as suggested
5942         by the current information for GNU maintainers, except say "file"
5943         rather than "program".  The new wording gives a license version
5944         number, which addresses an issue raised by Glenn Morris in
5945         <http://lists.gnu.org/archive/html/bug-gnulib/2011-09/msg00397.html>.
5946         * m4/onceonly.m4: Use that same wording here, too.
5947
5948         dup2: minor simplification
5949         * m4/dup2.m4 (gl_PREREQ_DUP2): Don't require AC_C_INLINE,
5950         as lib/dup2.c no longer uses 'inline'.
5951
5952 2011-09-25  Bruno Haible  <bruno@clisp.org>
5953
5954         strings: Fix compilation error on MSVC.
5955         * lib/strings.in.h: Include <stddef.h> for size_t.
5956
5957 2011-09-25  Bruno Haible  <bruno@clisp.org>
5958
5959         fflush et al.: Document limitation on MSVC.
5960         * doc/posix-functions/fflush.texi: Document possible crash in handling
5961         mode other than DEFAULT_HANDLING.
5962         * doc/posix-functions/fgetc.texi: Likewise.
5963         * doc/posix-functions/fputc.texi: Likewise.
5964         * doc/posix-functions/fread.texi: Likewise.
5965         * doc/posix-functions/fwrite.texi: Likewise.
5966
5967 2011-09-25  Bruno Haible  <bruno@clisp.org>
5968
5969         msvc-inval: Allow three invalid parameter handling modes.
5970         * lib/msvc-inval.h: Don't include <stdlib.h> here.
5971         (DEFAULT_HANDLING, HAIRY_LIBRARY_HANDLING, SANE_LIBRARY_HANDLING): New
5972         macros.
5973         (gl_msvc_inval_ensure_handler, TRY_MSVC_INVAL, CATCH_MSVC_INVAL,
5974         DONE_MSVC_INVAL): Implement DEFAULT_HANDLING. Treat
5975         SANE_LIBRARY_HANDLING as a no-op.
5976         * lib/msvc-inval.c: Treat SANE_LIBRARY_HANDLING as a no-op. Include
5977         <stdlib.h>.
5978         (gl_msvc_invalid_parameter_handler): Implement DEFAULT_HANDLING.
5979
5980 2011-09-25  Bruno Haible  <bruno@clisp.org>
5981
5982         msvc-inval: Make handler multithread-safe.
5983         * lib/msvc-inval.h (struct gl_msvc_inval_per_thread): New type.
5984         (gl_msvc_inval_restart, gl_msvc_inval_restart_valid): Remove
5985         declarations.
5986         (gl_msvc_inval_current): New declaration.
5987         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
5988         Operate on the structure returned by gl_msvc_inval_current().
5989         * lib/msvc-inval.c (gl_msvc_inval_restart, gl_msvc_inval_restart_valid):
5990         Remove varaiables.
5991         (tls_index, tls_initialized): New variables.
5992         (not_per_thread): New variable.
5993         (gl_msvc_inval_current): New function.
5994         (gl_msvc_invalid_parameter_handler) [!_MSC_VER]: Use the structure
5995         returned by gl_msvc_inval_current().
5996
5997 2011-09-25  Bruno Haible  <bruno@clisp.org>
5998
5999         msvc-inval: Install handler globally.
6000         * lib/msvc-inval.h (STATUS_GNULIB_INVALID_PARAMETER): Define also for
6001         !_MSC_VER.
6002         (gl_msvc_invalid_parameter_handler): Remove declaration.
6003         (gl_msvc_inval_restart_valid, gl_msvc_inval_ensure_handler): New
6004         declarations.
6005         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
6006         Install the handler globally, don't uninstall it.
6007         * lib/msvc-inval.c (gl_msvc_inval_restart_valid): New variable.
6008         (gl_msvc_invalid_parameter_handler): Make static. If the restart is not
6009         currently valid, call RaiseException instead.
6010         (gl_msvc_inval_initialized, gl_msvc_inval_ensure_handler): Define also
6011         for !_MSC_VER.
6012
6013 2011-09-25  Bruno Haible  <bruno@clisp.org>
6014
6015         strerror_r-posix: Fix for MSVC 9.
6016         * lib/strerror_r.c (local_snprintf): New function.
6017         (snprintf): Define to local_snprintf, not to _snprintf.
6018
6019 2011-09-25  Bruno Haible  <bruno@clisp.org>
6020
6021         ftruncate: Support for MSVC 9.
6022         * lib/ftruncate.c: Include errno.h, msvc-inval.h.
6023         (chsize_nothrow): New function.
6024         (chsize): Redefine as a macro.
6025         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): Require AC_C_INLINE.
6026         * modules/ftruncate (Depends-on): Add msvc-inval.
6027
6028 2011-09-25  Bruno Haible  <bruno@clisp.org>
6029
6030         New module 'fstat'.
6031         * lib/sys_stat.in.h (fstat): Declare only if GNULIB_FSTAT is set.
6032         * lib/fstat.c: New file, based on a piece of lib/fchdir.c.
6033         * lib/fchdir.c (rpl_fstat): Remove function.
6034         * m4/fstat.m4: New file.
6035         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_FSTAT.
6036         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Test whether fstat is
6037         declared.
6038         (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_FSTAT.
6039         * modules/sys_stat (Makefile.am): Substitute GNULIB_FSTAT.
6040         * modules/fstat: New file.
6041         * modules/sys_stat-tests (Depends-on): Remove fstat-tests.
6042         * tests/test-sys_stat-c++.cc (fstat): Check only if GNULIB_TEST_FSTAT
6043         is set.
6044         * doc/posix-functions/fstat.texi: Mention the new module and the
6045         problem on MSVC.
6046         * NEWS: Mention the change.
6047         * modules/acl (Depends-on): Add fstat.
6048         * modules/chdir-safer (Depends-on): Likewise.
6049         * modules/chown (Depends-on): Likewise.
6050         * modules/copy-file (Depends-on): Likewise.
6051         * modules/fchdir (Depends-on): Likewise.
6052         * modules/fdopendir (Depends-on): Likewise.
6053         * modules/fopen (Depends-on): Likewise.
6054         * modules/fts (Depends-on): Likewise.
6055         * modules/getcwd (Depends-on): Likewise.
6056         * modules/isapipe (Depends-on): Likewise.
6057         * modules/linkat (Depends-on): Likewise.
6058         * modules/lseek (Depends-on): Likewise.
6059         * modules/mkdir-p (Depends-on): Likewise.
6060         * modules/open (Depends-on): Likewise.
6061         * modules/openat (Depends-on): Likewise.
6062         * modules/read-file (Depends-on): Likewise.
6063         * modules/renameat (Depends-on): Likewise.
6064         * modules/utimens (Depends-on): Likewise.
6065
6066 2011-09-25  Bruno Haible  <bruno@clisp.org>
6067
6068         linkat: Fix compilation on MSVC 9.
6069         * lib/linkat.c: Don't include <stdint.h>.
6070
6071 2011-09-25  Bruno Haible  <bruno@clisp.org>
6072
6073         fclose: Support for MSVC 9.
6074         * lib/fclose.c: Include msvc-inval.h.
6075         (fclose_nothrow): New function.
6076         (rpl_fclose): Use it.
6077         * modules/fclose (Depends-on): Add msvc-inval.
6078         * doc/posix-functions/fclose.texi: Mention the problem on MSVC.
6079
6080 2011-09-24  Paul Eggert  <eggert@cs.ucla.edu>
6081
6082         dup2: minor simplifications
6083         * lib/dup2.c (ms_windows_dup2): Omit 'inline' as it's not clear
6084         that it's a performance win.
6085         (rpl_dup2): Change "if !((defined _WIN32 || defined __WIN32__) &&
6086         ! defined __CYGWIN__)" to "ifdef F_GETFL".
6087
6088 2011-09-24  Jim Meyering  <meyering@redhat.com>
6089
6090         test-futimens: avoid a warning from gcc -Wshadow
6091         * tests/test-futimens.h (test_futimens): Rename inner local, s/fd/fd0/
6092         to avoid a shadowing warning.
6093
6094 2011-09-24  Bruno Haible  <bruno@clisp.org>
6095
6096         fdopen: Support for MSVC 9.
6097         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Set REPLACE_FDOPEN also if
6098         HAVE_MSVC_INVALID_PARAMETER_HANDLER is 1.
6099         * lib/fdopen.c: Include msvc-inval.h.
6100         (fdopen_nothrow): New function.
6101         (rpl_fdopen): Use it.
6102         * modules/fdopen (Depends-on): Add msvc-inval.
6103         * modules/fclose-tests (Depends-on): Add fdopen.
6104         * modules/fflush-tests (Depends-on): Likewise.
6105         * modules/fgetc-tests (Depends-on): Likewise.
6106         * modules/fputc-tests (Depends-on): Likewise.
6107         * modules/fread-tests (Depends-on): Likewise.
6108         * modules/freopen-tests (Depends-on): Likewise.
6109         * modules/fseeko-tests (Depends-on): Likewise.
6110         * modules/ftello-tests (Depends-on): Likewise.
6111         * modules/fwrite-tests  (Depends-on): Likewise.
6112         * doc/posix-functions/fdopen.texi: Mention the problem on MSVC.
6113
6114 2011-09-24  Bruno Haible  <bruno@clisp.org>
6115
6116         fgetc, fputc, fread, fwrite tests: Avoid compilation error on MSVC.
6117         * modules/fgetc-tests (Depends-on): Add unistd.
6118         * modules/fputc-tests (Depends-on): Likewise.
6119         * modules/fread-tests (Depends-on): Likewise.
6120         * modules/fwrite-tests (Depends-on): Likewise.
6121
6122 2011-09-24  Bruno Haible  <bruno@clisp.org>
6123
6124         dup: Simplify autoconf test.
6125         * m4/dup.m4 (gl_FUNC_DUP): Don't run a test program. Instead, just rely
6126         on gl_MSVC_INVAL's result.
6127
6128 2011-09-24  Bruno Haible  <bruno@clisp.org>
6129
6130         Tests for function fwrite().
6131         * modules/fwrite-tests: New file.
6132         * tests/test-fwrite.c: New file.
6133         * modules/stdio-tests (Depends-on): Add fwrite-tests.
6134
6135         Tests for function fread().
6136         * modules/fread-tests: New file.
6137         * tests/test-fread.c: New file.
6138         * modules/stdio-tests (Depends-on): Add fread-tests.
6139
6140         Activate fputc tests.
6141         * modules/stdio-tests (Depends-on): Add fputc-tests.
6142
6143         Enhance fgetc, fputc tests.
6144         * tests/test-fgetc.c (main): Also test the stream's error indicator.
6145         * tests/test-fputc.c (main): Likewise.
6146
6147 2011-09-24  Bruno Haible  <bruno@clisp.org>
6148
6149         write: Support for MSVC 9.
6150         * lib/unistd.in.h (write): Replace also when GNULIB_UNISTD_H_NONBLOCKING
6151         is not 1.
6152         * lib/write.c (write_nothrow): New function.
6153         (rpl_write): Define also when GNULIB_NONBLOCKING or GNULIB_SIGPIPE is
6154         not 1. Use write_nothrow.
6155         * m4/write.m4 (gl_FUNC_WRITE): Replace read if the platform has an
6156         invalid parameter handler.
6157         (gl_PREREQ_WRITE): New macro.
6158         * modules/write (Depends-on): Add msvc-inval.
6159         (configure.ac): Invoke gl_PREREQ_WRITE.
6160         * doc/posix-functions/write.texi: Mention the problem on MSVC.
6161
6162 2011-09-24  Bruno Haible  <bruno@clisp.org>
6163
6164         read: Fix last commit.
6165         * lib/read.c (read_nothrow): Change return type to 'ssize_t'.
6166
6167 2011-09-24  Bruno Haible  <bruno@clisp.org>
6168
6169         dup2: Fix last commit.
6170         * lib/dup2.c: Restore comments. Treat Cygwin like Unix.
6171         (rpl_dup2): Disable fcntl workaround on native Windows.
6172
6173         sigprocmask: Make code safer.
6174         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' before the code
6175         section that changes macro definitions for this compilation unit.
6176
6177 2011-09-23  Paul Eggert  <eggert@cs.ucla.edu>
6178
6179         dup2: clarify by coalescing Windows-specific material
6180         * lib/dup2.c: Move '#include "msvc-inval.h"' and '#include
6181         "msvc-nothrow.h"' to the Windows-specific section, so that the
6182         Emacs source need not contain these include files.
6183         (ms_windows_dup2): Rename from dup2_nothrow, and move all the
6184         Windows-specific fixes into this function rather than just the
6185         nothrow fix, as this shortens and clarifies the code.  Always
6186         define as a function, as that's a bit cleaner than having it be
6187         sometimes a function and sometimes a macro.
6188         (rpl_dup2): Move the Windows-specific stuff out of here and into
6189         ms_windows_dup2.  Don't protect the Haiku-related fix with
6190         "#if !defined __linux__", as the same code also works around
6191         a Linux kernel bug, and it doesn't add any system calls on any
6192         platform.  Add comment about FreeBSD 6.1.
6193
6194         sigprocmask: move #include directive
6195         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' to the
6196         Windows-specific section, so that the Emacs source need not
6197         contain msvc-inval.h.
6198
6199 2011-09-23  Bruno Haible  <bruno@clisp.org>
6200
6201         read: Support for MSVC 9.
6202         * lib/unistd.in.h (read): Replace also when GNULIB_UNISTD_H_NONBLOCKING
6203         is not 1.
6204         * lib/read.c (read_nothrow): New function.
6205         (rpl_read): Define also when GNULIB_NONBLOCKING is not 1. Use
6206         read_nothrow.
6207         * m4/read.m4 (gl_FUNC_READ): Replace read if the platform has an
6208         invalid parameter handler.
6209         (gl_PREREQ_READ): New macro.
6210         * modules/read (Depends-on): Add msvc-inval.
6211         (configure.ac): Invoke gl_PREREQ_READ.
6212         * doc/posix-functions/read.texi: Mention the problem on MSVC.
6213
6214 2011-09-23  Bruno Haible  <bruno@clisp.org>
6215
6216         close: Support for MSVC 9.
6217         * lib/close.c: Include <errno.h>, msvc-inval.h.
6218         (close_nothrow): New function.
6219         (rpl_close): Use it.
6220         * m4/close.m4 (gl_FUNC_CLOSE): Replace close if the platform has an
6221         invalid parameter handler.
6222         * modules/close (Depends-on): Add msvc-inval.
6223         * modules/dup2-tests (Depends-on): Add close.
6224         * modules/dup3-tests (Depends-on): Likewise.
6225         * modules/fcntl-tests (Depends-on): Likewise.
6226         * modules/spawn-pipe-tests (Depends-on): Likewise.
6227         * modules/unistd-safer-tests (Depends-on): Likewise.
6228         * doc/posix-functions/close.texi: Mention the problem on MSVC.
6229
6230 2011-09-23  Bruno Haible  <bruno@clisp.org>
6231
6232         New module 'dup'.
6233         * lib/unistd.in.h (dup): Declare only if the 'dup' module is in use.
6234         Allow replacement.
6235         * lib/dup.c: New file.
6236         * lib/fchdir.c (rpl_dup): Remove function.
6237         * m4/dup.m4: New file.
6238         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_DUP here.
6239         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether 'dup' is declared.
6240         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP.
6241         * modules/unistd (Makefile.am): Substitute GNULIB_DUP.
6242         * modules/dup: New file.
6243         * tests/test-unistd-c++.cc: Check the signature of 'dup' only if the
6244         'dup' module is in use.
6245         * modules/fdopendir (Depends-on): Add dup.
6246         * modules/fdutimensat-tests (Depends-on): Likewise.
6247         * modules/fts (Depends-on): Likewise.
6248         * modules/futimens-tests (Depends-on): Likewise.
6249         * modules/posix_spawnp-tests (Depends-on): Likewise.
6250         * modules/unistd-safer-tests (Depends-on): Likewise.
6251         * modules/utimens-tests (Depends-on): Likewise.
6252         * doc/posix-functions/dup.texi: Mention the new module and the problem
6253         on MSVC.
6254
6255 2011-09-23  Bruno Haible  <bruno@clisp.org>
6256
6257         getdtablesize: Support for MSVC 9.
6258         * lib/getdtablesize.c: Include msvc-inval.h.
6259         (_setmaxstdio_nothrow): New function.
6260         (_setmaxstdio): Redefine it.
6261         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE): New macro.
6262         * modules/getdtablesize (Depends-on): Add msvc-inval.
6263         (configure.ac): Invoke gl_PREREQ_GETDTABLESIZE.
6264
6265 2011-09-23  Bruno Haible  <bruno@clisp.org>
6266
6267         signal-h: Rename from signal.
6268         * modules/signal-h: Renamed from modules/signal.
6269         * modules/pthread_sigmask (Depends-on): Update.
6270         * modules/raise (Depends-on): Likewise.
6271         * modules/sigaction (Depends-on): Likewise.
6272         * modules/sigpipe (Depends-on): Likewise.
6273         * modules/sigprocmask (Depends-on): Likewise.
6274         * modules/sys_select (Depends-on): Likewise.
6275         * modules/signal-h-tests: Renamed from modules/signal-tests.
6276         (Files, Depends-on, Makefile.am): Update.
6277         * tests/test-signal-h.c: Renamed from tests/test-signal.c.
6278         * modules/signal-h-c++-tests: Renamed from modules/signal-c++-tests.
6279         (Files, Makefile.am): Update.
6280         * tests/test-signal-h-c++.cc: Renamed from tests/test-signal-c++.cc.
6281         * tests/test-signal-h-c++2.cc: Renamed from tests/test-signal-c++2.cc.
6282         * modules/signal: New placeholder file.
6283         * MODULES.html.sh (Support for systems lacking POSIX:2008): Update.
6284         * doc/posix-headers/signal.texi: Update.
6285         * NEWS: Mention the change.
6286
6287 2011-09-23  Bruno Haible  <bruno@clisp.org>
6288
6289         sigprocmask: Avoid crashes through signal() on MSVC 9.
6290         * lib/sigprocmask.c: Include msvc-inval.h.
6291         (signal_nothrow): New function.
6292         (signal): Redefine it.
6293         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Require AC_C_INLINE.
6294         * modules/sigprocmask (Depends-on): Add msvc-inval.
6295         * doc/posix-functions/signal.texi: Mention the problem on MSVC.
6296
6297 2011-09-23  Bruno Haible  <bruno@clisp.org>
6298
6299         Tests for module 'raise'.
6300         * modules/raise-tests: New file.
6301         * tests/test-raise.c: New file.
6302
6303         raise: Support for MSVC.
6304         * lib/signal.in.h (raise): New declaration.
6305         * lib/raise.c (raise_nothrow, rpl_raise): New alternate implementation
6306         for native Windows platforms.
6307         * m4/raise.m4: New file.
6308         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize GNULIB_RAISE,
6309         HAVE_RAISE, REPLACE_RAISE.
6310         * modules/signal (Makefile.am): Substitute GNULIB_RAISE, HAVE_RAISE,
6311         REPLACE_RAISE.
6312         * modules/raise (Status, Notice): Remove fields.
6313         (Files): Add m4/raise.m4.
6314         (Depends-on): Add signal, msvc-inval.
6315         (configure.ac): Use the common idioms.
6316         (Maintainer): Add me.
6317         * tests/test-signal-c++.cc: Check the signature of raise.
6318         * doc/posix-functions/raise.texi: Mention the problem on MSVC.
6319
6320 2011-09-23  Bruno Haible  <bruno@clisp.org>
6321
6322         pipe2: Fix compilation on pre-C99 compilers.
6323         * lib/pipe2.c (pipe2): Surround verify(...) declaration with braces.
6324
6325 2011-09-23  Bruno Haible  <bruno@clisp.org>
6326
6327         New module 'msvc-nothrow'. Makes _get_osfhandle safe on MSVC 9.
6328         * lib/msvc-nothrow.h: New file.
6329         * lib/msvc-nothrow.c: New file.
6330         * m4/msvc-nothrow.m4: New file.
6331         * modules/msvc-nothrow: New file.
6332         * lib/dup2.c: Include msvc-nothrow.h.
6333         (rpl_dup2): No need to protect _get_osfhandle call here.
6334         * lib/accept4.c: Include msvc-nothrow.h.
6335         * lib/error.c: Likewise.
6336         * lib/fcntl.c: Likewise.
6337         * lib/lseek.c: Likewise.
6338         * lib/nonblocking.c: Likewise.
6339         * lib/poll.c: Likewise.
6340         * lib/read.c: Likewise.
6341         * lib/select.c: Likewise.
6342         * lib/sockets.h: Likewise.
6343         * lib/sockets.c: Likewise.
6344         * lib/stdio-read.c: Likewise.
6345         * lib/stdio-write.c: Likewise.
6346         * lib/write.c: Likewise.
6347         * lib/w32sock.h: Likewise.
6348         * lib/w32spawn.h: Likewise.
6349         * lib/flock.c: Include msvc-nothrow.h instead of <io.h>.
6350         * lib/fsync.c: Likewise.
6351         * lib/isapipe.c: Likewise.
6352         * modules/dup2 (Depends-on): Add msvc-nothrow.
6353         * modules/accept4 (Depends-on): Likewise.
6354         * modules/error (Depends-on): Likewise.
6355         * modules/fcntl (Depends-on): Likewise.
6356         * modules/lseek (Depends-on): Likewise.
6357         * modules/nonblocking (Depends-on): Likewise.
6358         * modules/poll (Depends-on): Likewise.
6359         * modules/read (Depends-on): Likewise.
6360         * modules/select (Depends-on): Likewise.
6361         * modules/sockets (Depends-on): Likewise.
6362         * modules/sigpipe (Depends-on): Likewise.
6363         * modules/write (Depends-on): Likewise.
6364         * modules/accept (Depends-on): Likewise.
6365         * modules/bind (Depends-on): Likewise.
6366         * modules/connect (Depends-on): Likewise.
6367         * modules/gethostname (Depends-on): Likewise.
6368         * modules/getpeername (Depends-on): Likewise.
6369         * modules/getsockname (Depends-on): Likewise.
6370         * modules/getsockopt (Depends-on): Likewise.
6371         * modules/ioctl (Depends-on): Likewise.
6372         * modules/listen (Depends-on): Likewise.
6373         * modules/recv (Depends-on): Likewise.
6374         * modules/recvfrom (Depends-on): Likewise.
6375         * modules/send (Depends-on): Likewise.
6376         * modules/sendto (Depends-on): Likewise.
6377         * modules/setsockopt (Depends-on): Likewise.
6378         * modules/shutdown (Depends-on): Likewise.
6379         * modules/socket (Depends-on): Likewise.
6380         * modules/execute (Depends-on): Likewise.
6381         * modules/spawn-pipe (Depends-on): Likewise.
6382         * modules/flock (Depends-on): Likewise.
6383         * modules/fsync (Depends-on): Likewise.
6384         * modules/isapipe (Depends-on): Likewise.
6385         * tests/test-cloexec.c: Include msvc-nothrow.h.
6386         * tests/test-dup-safer.c: Likewise.
6387         * tests/test-dup2.c: Likewise.
6388         * tests/test-dup3.c: Likewise.
6389         * tests/test-fcntl.c: Likewise.
6390         * tests/test-pipe.c: Likewise.
6391         * tests/test-pipe2.c: Likewise.
6392         * modules/cloexec-tests (Depends-on): Add msvc-nothrow.
6393         * modules/unistd-safer-tests (Depends-on): Likewise.
6394         * modules/dup2-tests (Depends-on): Likewise.
6395         * modules/dup3-tests (Depends-on): Likewise.
6396         * modules/fcntl-tests (Depends-on): Likewise.
6397         * modules/pipe-posix-tests (Depends-on): Likewise.
6398         * modules/pipe2-tests (Depends-on): Likewise.
6399
6400 2011-09-23  Bruno Haible  <bruno@clisp.org>
6401
6402         dup2: Make code more maintainable.
6403         * lib/dup2.c (dup2_nothrow): New function, extracted from rpl_dup2.
6404         (rpl_dup2): Use it.
6405         * m4/dup2.m4 (gl_PREREQ_DUP2): New macro.
6406         * modules/dup2 (configure.ac): Invoke it.
6407         Reported by Paul Eggert.
6408
6409 2011-09-23  Bruno Haible  <bruno@clisp.org>
6410
6411         msvc-inval: Fix compilation error.
6412         * lib/msvc-inval.h: Include <excpt.h>.
6413
6414 2011-09-23  Bruno Haible  <bruno@clisp.org>
6415
6416         mkdir: Tweak for MSVC 9.
6417         * lib/sys_stat.in.h: Update comments.
6418         * doc/posix-functions/mkdir.texi: Mention problem on MSVC 9.
6419
6420         Tests for module 'chdir'.
6421         * modules/chdir-tests: New file.
6422         * tests/test-chdir.c: New file.
6423
6424         New module 'chdir'.
6425         * modules/chdir: New file.
6426         * lib/unistd.in.h: Include <io.h>, <direct.h> also for chdir.
6427         (chdir): New declaration.
6428         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether chdir is declared.
6429         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CHDIR.
6430         * modules/unistd (Makefile.am): Substitute GNULIB_CHDIR.
6431         * tests/test-unistd-c++.cc: Check signature of chdir.
6432         * doc/posix-functions/chdir.texi: Mention problem on native Windows.
6433         * modules/chdir-long (Depends-on): Add chdir.
6434         * modules/fchdir (Depends-on): Likewise.
6435         * modules/rename (Depends-on): Likewise.
6436         * modules/savewd (Depends-on): Likewise.
6437
6438         rmdir: Support for mingw, MSVC 9.
6439         * lib/unistd.in.h: Include <io.h> and <direct.h> also for rmdir.
6440         * doc/posix-functions/getcwd.texi: Mention problem on native Windows.
6441
6442         getcwd: Tweak for MSVC 9.
6443         * lib/unistd.in.h: Update comments.
6444         * doc/posix-functions/getcwd.texi: Mention problem on MSVC 9.
6445
6446 2011-09-22  Bruno Haible  <bruno@clisp.org>
6447
6448         strerror_r-posix: Avoid a link error on MSVC.
6449         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Check for snprintf.
6450         * lib/strerror_r.c (snprintf): Define to _snprintf if it doesn't exist.
6451
6452 2011-09-22  Bruno Haible  <bruno@clisp.org>
6453
6454         select: Avoid link errors on MSVC.
6455         * m4/select.m4 (gl_FUNC_SELECT): Determine LIB_SELECT.
6456         * modules/select (Link): Replace $(LIBSOCKET) with $(LIB_SELECT).
6457         * modules/pselect (Link): Likewise.
6458         * NEWS: Mention the change.
6459         * modules/select-tests (Makefile.am): Link test-select, test-select-fd,
6460         test-select-stdin against $(LIB_SELECT).
6461         * modules/pselect-tests (Makefile.am): Link test-pselect against
6462         $(LIB_SELECT).
6463
6464 2011-09-22  Bruno Haible  <bruno@clisp.org>
6465
6466         select: Avoid compilation error on MSVC.
6467         * lib/select.c: Don't include <stdbool.h>.
6468
6469 2011-09-21  Bruno Haible  <bruno@clisp.org>
6470
6471         Consolidate all uses of PATH_MAX in *.m4 files.
6472         * m4/pathmax.m4 (gl_PATHMAX_SNIPPET, gl_PATHMAX_SNIPPET_PREREQ): New
6473         macros.
6474         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Use gl_PATHMAX_SNIPPET_PREREQ
6475         and gl_PATHMAX_SNIPPET.
6476         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
6477         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
6478         * modules/chdir-long (Files): Add m4/pathmax.m4.
6479         * modules/getcwd (Files): Likewise.
6480
6481 2011-09-21  Bruno Haible  <bruno@clisp.org>
6482
6483         ftruncate: Un-deprecate, concentrate on Win32 support.
6484         * modules/ftruncate (Status, Notice): Remove sections.
6485         (Depends-on): Add largefile.
6486         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Drop failure message on
6487         non-mingw platforms.
6488         * lib/ftruncate.c: Remove code for the older platforms. For Win32,
6489         include <io.h>.
6490         * modules/perror-tests (Depends-on): Add ftruncate.
6491         * doc/posix-functions/ftruncate.texi: Mention the MSVC problem and the
6492         'ftruncate' module.
6493
6494 2011-09-21  Bruno Haible  <bruno@clisp.org>
6495
6496         Add dependencies to new dirent related modules.
6497         * modules/opendir (Depends-on): Add closedir.
6498         * modules/getcwd (Depends-on): Add opendir, closedir.
6499         * modules/dirent-safer-tests (Depends-on): Likewise.
6500         * modules/fdopendir-tests (Depends-on): Likewise.
6501         * modules/rename-tests (Depends-on): Add opendir, readdir, closedir.
6502         * modules/renameat-tests (Depends-on): Likewise.
6503
6504 2011-09-21  Bruno Haible  <bruno@clisp.org>
6505
6506         opendir: Avoid compilation error on mingw.
6507         * lib/opendir.c: Include <stddef.h> always. Include <unistd.h> as well.
6508         * modules/opendir (Depends-on): Add unistd.
6509
6510 2011-09-21  Bruno Haible  <bruno@clisp.org>
6511
6512         ftruncate tests: Avoid a test failure on mingw.
6513         * tests/test-ftruncate.c (main): Allow a failure with EACCES.
6514
6515 2011-09-21  Bruno Haible  <bruno@clisp.org>
6516
6517         select tests: Avoid test failures on OSF/1 5.1 and mingw.
6518         * tests/test-select.h (test_bad_fd): Disable all tests on OSF/1 and
6519         native Windows.
6520
6521 2011-09-21  Bruno Haible  <bruno@clisp.org>
6522
6523         New module 'fdopen'.
6524         * lib/stdio.in.h (fdopen): New declaration.
6525         * lib/fdopen.c: New file.
6526         * m4/fdopen.m4: New file.
6527         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FDOPEN,
6528         REPLACE_FDOPEN.
6529         * modules/stdio (Makefile.am): Substitute GNULIB_FDOPEN,
6530         REPLACE_FDOPEN.
6531         * modules/fdopen: New file.
6532         * modules/stdio-tests (Depends-on): Remove fdopen-tests.
6533         * tests/test-stdio-c++.cc: Check signature of fdopen.
6534         * doc/posix-functions/fdopen.texi: Mention the new module.
6535
6536 2011-09-21  Bruno Haible  <bruno@clisp.org>
6537
6538         unlockpt tests: Avoid test failure on NetBSD 5.1.
6539         * tests/test-unlockpt.c (main): Skip the EBADF tests on NetBSD.
6540         * doc/posix-functions/unlockpt.texi: Mention the bug on NetBSD.
6541
6542 2011-09-21  Bruno Haible  <bruno@clisp.org>
6543
6544         getlogin, getlogin_r tests: Avoid test failure on Linux/SPARC.
6545         * tests/test-getlogin.c (main): Allow a failure with EINVAL.
6546         * tests/test-getlogin_r.c (main): Likewise.
6547
6548 2011-09-20  Bruno Haible  <bruno@clisp.org>
6549
6550         time tests: Don't require pid_t.
6551         * doc/posix-headers/time.texi: Revert last change.
6552         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Revert last change.
6553         * tests/test-time.c: Comment out the check for pid_t.
6554
6555 2011-09-20  Bruno Haible  <bruno@clisp.org>
6556
6557         fsync tests: Avoid a test failure on mingw.
6558         * tests/test-fsync.c (main): Allow a failure with EIO.
6559
6560 2011-09-20  Bruno Haible  <bruno@clisp.org>
6561
6562         euidaccess: Update comments.
6563         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Update comments.
6564
6565 2011-09-20  Bruno Haible  <bruno@clisp.org>
6566
6567         Ensure EBADF returns for socket functions on mingw.
6568         * lib/accept.c (rpl_accept): Fail with error EBADF if the file
6569         descriptor is invalid.
6570         * lib/bind.c (rpl_bind): Likewise.
6571         * lib/connect.c (rpl_connect): Likewise.
6572         * lib/getpeername.c (rpl_getpeername): Likewise.
6573         * lib/getsockname.c (rpl_getsockname): Likewise.
6574         * lib/getsockopt.c (rpl_getsockopt): Likewise.
6575         * lib/listen.c (rpl_listen): Likewise.
6576         * lib/recv.c (rpl_recv): Likewise.
6577         * lib/recvfrom.c (rpl_recvfrom): Likewise.
6578         * lib/send.c (rpl_send): Likewise.
6579         * lib/sendto.c (rpl_sendto): Likewise.
6580         * lib/setsockopt.c (rpl_setsockopt): Likewise.
6581         * lib/shutdown.c (rpl_shutdown): Likewise.
6582
6583 2011-09-20  Bruno Haible  <bruno@clisp.org>
6584
6585         select tests: EBADF tests.
6586         * tests/test-select.h (do_select_bad_fd, do_select_bad_fd_nowait,
6587         test_bad_fd): New functions.
6588         (test_function): Invoke also test_bad_fd.
6589
6590 2011-09-20  Bruno Haible  <bruno@clisp.org>
6591
6592         Tests for module 'posix_spawn_file_actions_addopen.
6593         * modules/posix_spawn_file_actions_addopen-tests: New file.
6594         * tests/test-posix_spawn_file_actions_addopen.c: New file.
6595
6596         Tests for module 'posix_spawn_file_actions_adddup2'.
6597         * modules/posix_spawn_file_actions_adddup2-tests: New file.
6598         * tests/test-posix_spawn_file_actions_adddup2.c: New file.
6599
6600         Tests for module 'posix_spawn_file_actions_addclose'.
6601         * modules/posix_spawn_file_actions_addclose-tests: New file.
6602         * tests/test-posix_spawn_file_actions_addclose.c: New file.
6603
6604 2011-09-20  Bruno Haible  <bruno@clisp.org>
6605
6606         Tests for module 'unlockpt'.
6607         * modules/unlockpt-tests: New file.
6608         * tests/test-unlockpt.c: New file.
6609         * doc/posix-functions/unlockpt.texi: Mention the Cygwin 1.7 problem.
6610
6611         Tests for module 'grantpt'.
6612         * modules/grantpt-tests: New file.
6613         * tests/test-grantpt.c: New file.
6614         * doc/posix-functions/grantpt.texi: Mention the Cygwin 1.7 problem.
6615
6616 2011-09-20  Bruno Haible  <bruno@clisp.org>
6617
6618         freopen tests: EBADF tests.
6619         * tests/test-freopen.c: Include errno.h, unistd.h.
6620         (main): Add tests for EBADF, commented out for the moment.
6621
6622         fclose tests: EBADF tests.
6623         * tests/test-fclose.c (main): Add tests for EBADF.
6624
6625         fflush tests: EBADF tests.
6626         * tests/test-fflush.c: Include errno.h, macros.h.
6627         (main): Add tests for EBADF.
6628
6629         ftello tests: EBADF tests.
6630         * tests/test-ftello4.sh: New file.
6631         * tests/test-ftello4.c: New file.
6632         * modules/ftello-tests (Files): Add them.
6633         (Makefile.am): Arrange to compile test-ftello4 and run test-ftello4.sh.
6634
6635         fseeko tests: EBADF tests.
6636         * tests/test-fseeko4.sh: New file.
6637         * tests/test-fseeko4.c: New file.
6638         * modules/fseeko-tests (Files): Add them.
6639         (Makefile.am): Arrange to compile test-fseeko4 and run test-fseeko4.sh.
6640
6641         Tests for function fputc().
6642         * modules/fputc-tests: New file.
6643         * tests/test-fputc.c: New file.
6644         * modules/stdio-tests (Depends-on): Add fputc-tests.
6645
6646         Tests for function fgetc().
6647         * modules/fgetc-tests: New file.
6648         * tests/test-fgetc.c: New file.
6649         * modules/stdio-tests (Depends-on): Add fgetc-tests.
6650
6651         Tests for function fdopen().
6652         * modules/fdopen-tests: New file.
6653         * tests/test-fdopen.c: New file.
6654         * modules/stdio-tests (Depends-on): Add fdopen-tests.
6655
6656         Tests for module 'vdprintf'.
6657         * modules/vdprintf-tests: New file.
6658         * tests/test-vdprintf.c: New file.
6659
6660         Tests for module 'dprintf'.
6661         * modules/dprintf-tests: New file.
6662         * tests/test-dprintf.c: New file.
6663
6664 2011-09-20  Bruno Haible  <bruno@clisp.org>
6665
6666         Tests for module 'ioctl'.
6667         * modules/ioctl-tests: New file.
6668         * tests/test-ioctl.c: New file.
6669
6670 2011-09-20  Bruno Haible  <bruno@clisp.org>
6671
6672         fcntl tests: EBADF tests.
6673         * tests/test-fcntl.c (main): Add more tests for EBADF.
6674
6675 2011-09-20  Bruno Haible  <bruno@clisp.org>
6676
6677         utimensat tests: EBADF tests.
6678         * tests/test-utimensat.c (main): Add tests for EBADF.
6679
6680         renameat tests: EBADF tests.
6681         * tests/test-renameat.c (main): Add tests for EBADF.
6682
6683         mkfifoat tests: EBADF tests.
6684         * tests/test-mkfifoat.c (main): Add tests for EBADF.
6685
6686         readlinkat tests: EBADF tests.
6687         * tests/test-readlinkat.c (main): Add tests for EBADF.
6688
6689         symlinkat tests: EBADF tests.
6690         * tests/test-symlinkat.c (main): Add tests for EBADF.
6691
6692         linkat tests: EBADF tests.
6693         * tests/test-linkat.c (main): Add tests for EBADF.
6694
6695         Tests for module 'faccessat'.
6696         * modules/faccessat-tests: New file.
6697         * tests/test-faccessat.c: New file.
6698
6699         fdopendir tests: EBADF tests.
6700         * tests/test-fdopendir.c (main): Add more tests for EBADF.
6701
6702         openat tests: EBADF tests.
6703         * tests/test-fchownat.c (main): Add tests for EBADF.
6704         * tests/test-fstatat.c (main): Likewise.
6705         * tests/test-mkdirat.c (main): Likewise.
6706         * tests/test-openat.c (main): Likewise.
6707         * tests/test-unlinkat.c (main): Likewise.
6708         * tests/test-fchmodat.c: New file.
6709         * modules/openat-tests (Files): Add tests/test-fchmodat.c.
6710         (Makefile.am): Also run 'test-fchmodat'.
6711
6712 2011-09-20  Bruno Haible  <bruno@clisp.org>
6713
6714         utimens, futimens, fdutimensat tests: EBADF tests.
6715         * tests/test-futimens.h (test_futimens): Add more tests for EBADF.
6716
6717         Tests for function fstat().
6718         * modules/fstat-tests: New file.
6719         * tests/test-fstat.c: New file.
6720         * modules/sys_stat-tests (Depends-on): Add fstat-tests.
6721
6722 2011-09-20  Bruno Haible  <bruno@clisp.org>
6723
6724         test-ttyname_r tests: EBADF tests.
6725         * tests/test-ttyname_r.c (main): Add tests for EBADF.
6726
6727         Tests for module 'isatty'.
6728         * modules/isatty-tests: New file.
6729         * tests/test-isatty.c: New file.
6730
6731         Tests for module 'write'.
6732         * modules/write-tests: New file.
6733         * tests/test-write.c: New file.
6734
6735         Tests for module 'read'.
6736         * modules/read-tests: New file.
6737         * tests/test-read.c: New file.
6738
6739         pwrite tests: EBADF tests.
6740         * tests/test-pwrite.c (main): Add tests for EBADF.
6741
6742         pread tests: EBADF tests.
6743         * tests/test-pread.c (main): Add tests for EBADF.
6744
6745         lseek tests: EBADF tests.
6746         * tests/test-lseek.c (main): Add more tests for EBADF.
6747
6748         Tests for module 'ftruncate'.
6749         * modules/ftruncate-tests: New file.
6750         * tests/test-ftruncate.sh: New file.
6751         * tests/test-ftruncate.c: New file.
6752
6753         fsync tests: EBADF tests.
6754         * tests/test-fsync.c (main): Add more tests for EBADF.
6755
6756         fdatasync tests: EBADF tests.
6757         * tests/test-fdatasync.c (main): Add more tests for EBADF.
6758
6759         Tests for module 'fchown'.
6760         * modules/fchown-tests: New file.
6761         * tests/test-fchown.c: New file.
6762
6763         Tests for module 'fchmod'.
6764         * modules/fchmod-tests: New file.
6765         * tests/test-fchmod.c: New file.
6766
6767         fchdir tests: EBADF tests.
6768         * tests/test-fchdir.c (main): Add more tests for EBADF.
6769
6770         dup2 tests: EBADF tests.
6771         * tests/test-dup2.c (main): Add more tests for EBADF.
6772
6773         Tests for module 'dup'.
6774         * modules/dup-tests: New file.
6775         * tests/test-dup.c: New file.
6776
6777         Tests for module 'close'.
6778         * modules/close-tests: New file.
6779         * tests/test-close.c: New file.
6780
6781 2011-09-20  Bruno Haible  <bruno@clisp.org>
6782
6783         Tests for module 'shutdown'.
6784         * modules/shutdown-tests: New file.
6785         * tests/test-shutdown.c: New file.
6786
6787         Tests for module 'setsockopt'.
6788         * modules/setsockopt-tests: New file.
6789         * tests/test-setsockopt.c: New file.
6790
6791         Tests for module 'sendto'.
6792         * modules/sendto-tests: New file.
6793         * tests/test-sendto.c: New file.
6794
6795         Tests for module 'send'.
6796         * modules/send-tests: New file.
6797         * tests/test-send.c: New file.
6798
6799         Tests for module 'recvfrom'.
6800         * modules/recvfrom-tests: New file.
6801         * tests/test-recvfrom.c: New file.
6802
6803         Tests for module 'recv'.
6804         * modules/recv-tests: New file.
6805         * tests/test-recv.c: New file.
6806
6807         Tests for module 'listen'.
6808         * modules/listen-tests: New file.
6809         * tests/test-listen.c: New file.
6810
6811         Tests for module 'getsockopt'.
6812         * modules/getsockopt-tests: New file.
6813         * tests/test-getsockopt.c: New file.
6814
6815         Tests for module 'getsockname'.
6816         * modules/getsockname-tests: New file.
6817         * tests/test-getsockname.c: New file.
6818
6819         Tests for module 'getpeername'.
6820         * modules/getpeername-tests: New file.
6821         * tests/test-getpeername.c: New file.
6822
6823         Tests for module 'connect'.
6824         * modules/connect-tests: New file.
6825         * tests/test-connect.c: New file.
6826
6827         Tests for module 'bind'.
6828         * modules/bind-tests: New file.
6829         * tests/test-bind.c: New file.
6830
6831         accept4 tests: Fix for native Windows.
6832         * tests/test-accept4.c: Include sockets.h.
6833         (main): Invoke gl_sockets_startup.
6834         * modules/accept4-tests (Depends-on): Add sockets.
6835
6836         accept tests: Fix for native Windows.
6837         * tests/test-accept.c: Include sockets.h.
6838         (main): Invoke gl_sockets_startup.
6839         * modules/accept-tests (Depends-on): Add sockets.
6840
6841 2011-09-19  Bruno Haible  <bruno@clisp.org>
6842
6843         msvc-inval: Require a semicolon after DONE_MSVC_INVAL.
6844         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Wrap in a
6845         do...while(0).
6846         * lib/dup2.c (rpl_dup2): Add a semicolon after DONE_MSVC_INVAL.
6847         Suggested by Paul Eggert.
6848
6849 2011-09-19  Bruno Haible  <bruno@clisp.org>
6850
6851         sched: Ensure pid_t is defined.
6852         * m4/sched_h.m4 (gl_SCHED_H): Arrange to override <sched.h> if it does
6853         not define pid_t.
6854         * lib/sched.in.h: Include <sys/types.h>.
6855         * doc/posix-headers/sched.texi: Mention the pid_t problem.
6856         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
6857
6858 2011-09-19  Bruno Haible  <bruno@clisp.org>
6859
6860         msvc-inval: Ensure the entire expansion is a single statement.
6861         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Add an extra pair
6862         of braces.
6863
6864 2011-09-19  Jim Meyering  <meyering@redhat.com>
6865
6866         tests: use printf, not echo in init.sh's warn_ function
6867         * tests/init.sh (warn_): Use printf, not echo.  The latter would
6868         misbehave when given strings containing a backslash or starting
6869         with e.g., -n.  James Youngman suggested setting IFS.
6870
6871 2011-09-19  Eric Blake  <eblake@redhat.com>
6872
6873         futimens: enhance test
6874         * tests/test-futimens.h (test_futimens): Also check for EBADF on
6875         closed non-negative fd.
6876
6877         date: accept 'hence' as opposite of 'ago'
6878         * lib/parse-datetime.y (relative_time_table): Add 'hence'.
6879         * tests/test-parse-datetime.c (main): Enhance test.
6880         Suggested by Jesse Wilson.
6881
6882 2011-09-19  Jim Meyering  <meyering@redhat.com>
6883
6884         getcwd: don't fail in a deep directory on a system without openat
6885         Before this change, getcwd would fail when called from a directory
6886         of depth PATH_MAX / 3 or greater.  That was due to the fact that
6887         the non-openat implementation used "..", "../..", "../../..", etc.
6888         to access ancestor directories.  With too many, that string would
6889         be longer than PATH_MAX.
6890         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Define also when we are
6891         using gnulib's openat replacement.
6892         * m4/openat.m4: Set GNULIB_OPENAT, so getcwd.c knows when
6893         we're using the replacement function.
6894
6895 2011-09-14  Martin von Gagern  <Martin.vGagern@gmx.net>
6896
6897         maint.mk: avoid warnings from perl about missing files
6898         * top/maint.mk (def_sym_regex): Ignore files listed in
6899         $(gl_other_headers_) that do not exist, say because a project
6900         does not use a corresponding module.
6901
6902 2011-09-18  Paul Eggert  <eggert@cs.ucla.edu>
6903
6904         stat: use pathmax.h only if needed
6905         * lib/stat.c: Include pathmax.h only if REPLACE_FUNC_STAT_DIR.
6906         This is better for Emacs, which does not have a mingw port and
6907         therefore can avoid the pathmax module.
6908
6909         utimens: remove dependency on dup2
6910         * lib/utimens.c (fdutimens): Don't invoke dup2; it's not needed
6911         to work around the Linux kernel bug.
6912         * modules/utimens (Depends-on): Remove dup2.
6913
6914 2011-09-18  Bruno Haible  <bruno@clisp.org>
6915
6916         inet_ntop, inet_pton: Look for it also in libresolv.
6917         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): If the function was not found in
6918         libnsl, search for it in libresolv.
6919         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
6920         Needed on Solaris 7.
6921
6922 2011-09-18  Bruno Haible  <bruno@clisp.org>
6923
6924         accept, accept4 tests: Avoid link error on Solaris.
6925         * modules/accept-tests (Makefile.am): Link test-accept against
6926         $(LIBSOCKET).
6927         * modules/accept4-tests (Makefile.am): Link test-accept4 against
6928         $(LIBSOCKET).
6929
6930         accept4: Avoid link error on Solaris.
6931         * modules/accept4 (Link): New section.
6932
6933         socket functions: Avoid link errors on Solaris.
6934         * modules/accept (Depends-on): Add socketlib.
6935         (Link): New section.
6936         * modules/bind (Depends-on): Add socketlib.
6937         (Link): New section.
6938         * modules/connect (Depends-on): Add socketlib.
6939         (Link): New section.
6940         * modules/getpeername (Depends-on): Add socketlib.
6941         (Link): New section.
6942         * modules/getsockname (Depends-on): Add socketlib.
6943         (Link): New section.
6944         * modules/getsockopt (Depends-on): Add socketlib.
6945         (Link): New section.
6946         * modules/listen (Depends-on): Add socketlib.
6947         (Link): New section.
6948         * modules/recv (Depends-on): Add socketlib.
6949         (Link): New section.
6950         * modules/recvfrom (Depends-on): Add socketlib.
6951         (Link): New section.
6952         * modules/send (Depends-on): Add socketlib.
6953         (Link): New section.
6954         * modules/sendto (Depends-on): Add socketlib.
6955         (Link): New section.
6956         * modules/setsockopt (Depends-on): Add socketlib.
6957         (Link): New section.
6958         * modules/shutdown (Depends-on): Add socketlib.
6959         (Link): New section.
6960         * modules/socket (Depends-on): Add socketlib.
6961         (Link): New section.
6962
6963 2011-09-18  Bruno Haible  <bruno@clisp.org>
6964
6965         ptsname tests: Let the test fail rather than hang (e.g. on AIX 5.1).
6966         * tests/test-ptsname.c (main): Terminate the test if it takes longer
6967         than 5 seconds.
6968         * modules/ptsname-tests (configure.ac): Test for alarm.
6969
6970 2011-09-18  Bruno Haible  <bruno@clisp.org>
6971
6972         posix_spawn_file_actions_add*: Fix module dependencies.
6973         * modules/posix_spawn_file_actions_addclose (Dependencies): Add
6974         posix_spawn_file_actions_init.
6975         * modules/posix_spawn_file_actions_adddup2 (Dependencies): Likewise.
6976         * modules/posix_spawn_file_actions_addopen (Dependencies): Likewise.
6977
6978 2011-09-18  Bruno Haible  <bruno@clisp.org>
6979
6980         rename, renameat tests: Avoid test failures on FreeBSD 6.4.
6981         * tests/test-rename.h (test_rename): Allow error code EEXIST.
6982         * tests/test-renameat.c (main): Likewise.
6983
6984 2011-09-18  Bruno Haible  <bruno@clisp.org>
6985
6986         Tests for module 'accept4'.
6987         * modules/accept4-tests: New file.
6988         * tests/test-accept4.c: New file.
6989
6990 2011-09-18  Bruno Haible  <bruno@clisp.org>
6991
6992         Tests for module 'accept'.
6993         * modules/accept-tests: New file.
6994         * tests/test-accept.c: New file.
6995
6996 2011-09-18  Bruno Haible  <bruno@clisp.org>
6997
6998         dup2: Support for MSVC.
6999         * lib/dup2.c: Include msvc-inval.h.
7000         (rpl_dup2): Handle invalid parameter notifications during dup2 and
7001         _get_osfhandle calls.
7002         * modules/dup2 (Depends-on): Add msvc-inval.
7003         * doc/posix-functions/dup2.texi: Mention problem on MSVC.
7004
7005         New module 'msvc-inval'.
7006         * lib/msvc-inval.h: New file.
7007         * lib/msvc-inval.c: New file.
7008         * m4/msvc-inval.m4: New file.
7009         * modules/msvc-inval: New file.
7010
7011 2011-09-17  Bruno Haible  <bruno@clisp.org>
7012
7013         Tests for module 'pclose'.
7014         * modules/pclose-tests: New file.
7015
7016         New module 'pclose'.
7017         * lib/stdio.in.h (pclose): New declaration.
7018         * lib/pclose.c: New file.
7019         * m4/pclose.m4: New file.
7020         * m4/stdio_h.m4 (gl_STDIO_H): Test whether pclose is declared.
7021         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PCLOSE, HAVE_PCLOSE.
7022         * modules/stdio (Makefile.am): Substitute GNULIB_PCLOSE, HAVE_PCLOSE.
7023         * modules/pclose: New file.
7024         * modules/popen-tests (Depends-on): Add pclose.
7025         * modules/popen-safer-tests (Depends-on): Likewise.
7026         * doc/posix-functions/pclose.texi: Mention the new module.
7027
7028 2011-09-17  Bruno Haible  <bruno@clisp.org>
7029
7030         popen: Support for MSVC.
7031         * lib/stdio.in.h (popen): Declare it if the system lacks this function.
7032         * lib/popen.c (popen): Provide alternate definition for native Windows.
7033         * m4/popen.m4 (gl_FUNC_POPEN): Test if popen exists. Set HAVE_POPEN.
7034         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_POPEN.
7035         * modules/popen (Depends-on, configure.ac): Update condition.
7036         * modules/stdio (Makefile.am): Substitute HAVE_POPEN.
7037         * doc/posix-functions/popen.texi: Mention that the MSVC problem is
7038         fixed.
7039
7040 2011-09-17  Bruno Haible  <bruno@clisp.org>
7041
7042         isnanl, isnand, isnanf: Work around MSVC bug.
7043         * lib/isnan.c (FUNC): Use alternate ways of computing NaN and Infinity.
7044
7045 2011-09-17  Bruno Haible  <bruno@clisp.org>
7046
7047         sys_socket tests: Fix recent mistake.
7048         * tests/test-sys_socket.c (t1): Avoid collision of identifiers.
7049
7050 2011-09-17  Bruno Haible  <bruno@clisp.org>
7051
7052         putenv: Support for MSVC.
7053         * modules/putenv (Depends-on): Add environ.
7054         * lib/putenv.c (environ): Disable declaration.
7055         * lib/unistd.in.h: Update comment.
7056
7057 2011-09-17  Bruno Haible  <bruno@clisp.org>
7058
7059         math: Avoid macro redefinition warnings on MSVC.
7060         * lib/math.in.h (ceilf, ceill, floorf, floorl, frexpl, ldexpl):
7061         Undefine before redefining.
7062
7063 2011-09-17  Bruno Haible  <bruno@clisp.org>
7064
7065         doc: Mention functions which are declared as macros.
7066         * doc/posix-functions/*[fl].texi: Mention that some functions are
7067         defined as macros with arguments only.
7068
7069 2011-09-17  Bruno Haible  <bruno@clisp.org>
7070
7071         Add dependencies to new dirent related modules.
7072         * modules/backupfile (Depends-on): Add opendir, readdir, closedir.
7073         * modules/fts (Depends-on): Likewise.
7074         * modules/glob (Depends-on): Likewise.
7075         * modules/savedir (Depends-on): Likewise.
7076         * modules/scandir (Depends-on): Likewise.
7077         * modules/dirent-safer (Depends-on): Add opendir, closedir.
7078         * modules/fdopendir (Depends-on): Add opendir.
7079
7080 2011-09-17  Bruno Haible  <bruno@clisp.org>
7081
7082         inet_pton: Support for MSVC on Windows Vista or newer.
7083         * lib/arpa_inet.in.h (inet_pton): Also consider REPLACE_INET_PTON.
7084         * lib/inet_pton.c (rpl_inet_pton): Use a simple wrapper if
7085         HAVE_DECL_INET_PTON is defined.
7086         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Invoke gl_PREREQ_SYS_H_WINSOCK2.
7087         On platforms with <winsock2.h>, test whether inet_pton is declared in
7088         <ws2tcpip.h>. If so, arrange to replace it.
7089         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
7090         REPLACE_INET_PTON.
7091         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_PTON.
7092         * modules/inet_pton (Files): Add m4/sys_socket_h.m4.
7093         (Depends-on, configure.ac): Update condition.
7094         * doc/posix-functions/inet_pton.texi: Mention the MSVC problem.
7095
7096 2011-09-17  Bruno Haible  <bruno@clisp.org>
7097
7098         inet_ntop: Support for MSVC on Windows Vista or newer.
7099         * lib/arpa_inet.in.h (inet_ntop): Also consider REPLACE_INET_NTOP.
7100         * lib/inet_ntop.c (rpl_inet_ntop): Use a simple wrapper if
7101         HAVE_DECL_INET_NTOP is defined.
7102         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Invoke gl_PREREQ_SYS_H_WINSOCK2.
7103         On platforms with <winsock2.h>, test whether inet_ntop is declared in
7104         <ws2tcpip.h>. If so, arrange to replace it.
7105         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
7106         REPLACE_INET_NTOP.
7107         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_NTOP.
7108         * modules/inet_ntop (Files): Add m4/sys_socket_h.m4.
7109         (Depends-on, configure.ac): Update condition.
7110         * doc/posix-functions/inet_ntop.texi: Mention the MSVC problem.
7111
7112 2011-09-16  Eric Blake  <eblake@redhat.com>
7113
7114         test-fsync: yet another enhancement
7115         * tests/test-fsync.c (main): Also test behavior on read-only text
7116         file.
7117
7118 2011-09-16  Bruno Haible  <bruno@clisp.org>
7119
7120         Enhance fsync, fdatasync tests.
7121         * tests/test-fsync.c (main): Test both STDIN_FILENO and STDOUT_FILENO.
7122         * tests/test-fdatasync.c (main): Likewise.
7123
7124 2011-09-16  Bruno Haible  <bruno@clisp.org>
7125
7126         Support for MSVC compiler: Ensure mode_t gets defined.
7127         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_MODE_T.
7128         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
7129         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
7130         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Likewise.
7131         * tests/test-fcntl-h.c: Check that mode_t is defined.
7132         * tests/test-sys_stat.c: Likewise.
7133         * tests/test-sys_types.c: Likewise.
7134         * doc/posix-headers/fcntl.texi: Mention the missing mode_t problem.
7135         * doc/posix-headers/sys_stat.texi: Likewise.
7136         * doc/posix-headers/sys_types.texi: Likewise.
7137
7138 2011-09-16  Bruno Haible  <bruno@clisp.org>
7139
7140         sys_stat: Support for MSVC.
7141         * lib/sys_stat.in.h (S_IFIFO): Define to _S_IFIFO if that exists.
7142         * tests/test-sys_stat.c: Don't assume that S_IFBLK exists.
7143         * doc/posix-headers/sys_stat.texi: Mention missing S_IFIFO, S_IFBLK on
7144         MSVC.
7145
7146 2011-09-16  Bruno Haible  <bruno@clisp.org>
7147
7148         Support for MSVC compiler: Ensure off_t gets defined.
7149         * lib/unistd.in.h: Include <sys/types.h>.
7150         * tests/test-fcntl-h.c: Check that off_t is defined.
7151         * tests/test-sys_stat.c: Likewise.
7152         * tests/test-sys_types.c: Likewise.
7153
7154 2011-09-16  Eric Blake  <eblake@redhat.com>
7155
7156         fdatasync: port to Solaris
7157         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Set LIB_FDATASYNC.
7158         * modules/fdatasync (Link): Document it.
7159         * modules/fdatasync-tests (test_fdatasync_LDADD): Link with it.
7160
7161         fdatasync: port to MacOS X 10.7
7162         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Check for present but not
7163         declared.
7164         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Another default.
7165         * modules/unistd (Makefile.am): Substitute it.
7166         * lib/unistd.in.h (fdatasync): Declare on MacOS.
7167         * doc/posix-functions/fdatasync.texi (fdatasync): Document it.
7168
7169         fdatasync: minor improvements
7170         * modules/fdatasync (Depends-on): Add condition for fsync.
7171         * lib/fdatasync.c (fdatasync): Add comment.
7172         * tests/test-unistd-c++.cc: Test fdatasync.
7173
7174         unistd: update refs to newer POSIX
7175         * lib/unistd.in.h: Prefer POSIX 2008 over 2001.
7176         Suggested by Bruno Haible.
7177
7178         fdatasync: new module
7179         * modules/fsync (Description): Document difference to fdatasync.
7180         * modules/fdatasync: New module.
7181         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): New file.
7182         * lib/fdatasync.c (fdatasync): Likewise.
7183         * m4/unistd_h.m4 (gl_UNISTD_H, gl_UNISTD_H_DEFAULTS): Set up
7184         defaults.
7185         * modules/unistd (Makefile.am): Set witnesses.
7186         * lib/unistd.in.h (fdatasync): Declare.
7187         * MODULES.html.sh: Document it.
7188         * doc/posix-functions/fdatasync.texi (fdatasync): Likewise.
7189         * modules/fdatasync-tests: New test.
7190         * tests/test-fdatasync.c: Likewise.
7191
7192 2011-09-16  Eric Blake  <eblake@redhat.com>
7193
7194         test-fsync: enhance tests
7195         * modules/fsync-tests (Depends-on): Add errno, for mingw.
7196         * tests/test-fsync.c (main): Enhance test.
7197
7198 2011-09-15  Bruno Haible  <bruno@clisp.org>
7199
7200         Support for MSVC compiler: Ensure ssize_t gets defined.
7201         * doc/posix-headers/sys_types.texi: Mention the missing ssize_t problem.
7202         * doc/posix-headers/stdio.texi: Likewise.
7203         * modules/stdio (Depends-on): Add ssize_t.
7204         * modules/sys_socket (Depends-on): Likewise.
7205         * modules/sys_types (Depends-on): Likewise.
7206         * modules/sys_uio (Depends-on): Likewise.
7207         * modules/unistd (Depends-on): Likewise.
7208         * tests/test-sys_socket.c: Check that size_t and ssize_t are defined.
7209         * tests/test-sys_types.c: Check that ssize_t is defined.
7210
7211 2011-09-14  Bruno Haible  <bruno@clisp.org>
7212
7213         Avoid using #, the m4 comment starter character, near brackets.
7214         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Use |, not #, as
7215         delimiter character in sed expressions.
7216         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
7217         Suggested by Eric Blake.
7218
7219         Properly quote AC_CHECK_DECLS' 4th argument.
7220         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Double-quote AC_CHECK_DECLS' 4th
7221         argument.
7222         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
7223         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
7224         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
7225         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
7226         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
7227         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Likewise.
7228         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Likewise.
7229         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Likewise.
7230         * m4/gethrxtime.m4 (gl_GETHRXTIME): Likewise.
7231         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
7232         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Likewise.
7233         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
7234         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
7235         * m4/isinf.m4 (gl_ISINF): Likewise.
7236         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
7237         * m4/readutmp.m4 (gl_READUTMP): Likewise.
7238         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
7239         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
7240         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
7241         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
7242         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
7243         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
7244         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Likewise.
7245         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
7246         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
7247         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
7248         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Likewise.
7249         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
7250         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
7251         Reported by Eric Blake.
7252
7253         Properly quote AC_CHECK_DECL's 4th argument.
7254         * m4/acosl.m4 (gl_FUNC_ACOSL): Double-quote AC_CHECK_DECL's 4th
7255         argument.
7256         * m4/argp.m4 (gl_ARGP): Likewise.
7257         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
7258         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
7259         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
7260         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
7261         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Likewise.
7262         * m4/getloadavg.m4 (gl_GETLOADAVG): Likewise.
7263         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
7264         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
7265         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
7266         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
7267         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
7268         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
7269         Reported by Eric Blake.
7270
7271 2011-09-14  Eric Blake  <eblake@redhat.com>
7272
7273         opendir: avoid compile warning
7274         * lib/opendir.c (includes): Always include errno.h.
7275         Reported by Tatsuro MATSUOKA.
7276
7277 2011-09-14  Jim Meyering  <meyering@redhat.com>
7278
7279         maint.mk: sc_tight_scope: propagate failure from sub-make
7280         * top/maint.mk (sc_tight_scope): Actually initialize and use $fail.
7281         Reported by Martin von Gagern.
7282
7283 2011-09-13  Bruno Haible  <bruno@clisp.org>
7284
7285         tempname: Support for MSVC.
7286         * doc/posix-headers/fcntl.texi: Document the problem with O_ACCMODE on
7287         MSVC.
7288         * modules/tempname (Depends-on): Add fcntl-h.
7289
7290 2011-09-13  Bruno Haible  <bruno@clisp.org>
7291
7292         sys_time: Support for MSVC.
7293         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Invoke
7294         gl_PREREQ_SYS_H_WINSOCK2. When testing for 'struct timeval', also
7295         include <winsock2.h>.
7296         * lib/sys_time.in.h: On MSVC, include <winsock2.h> and hide its
7297         function declarations that collide with POSIX.
7298         * modules/sys_time (Files): Add m4/sys_socket_h.m4.
7299         (Makefile.am): Substitute HAVE_WINSOCK2_H.
7300
7301 2011-09-13  Bruno Haible  <bruno@clisp.org>
7302
7303         stat: Support for MSVC.
7304         * lib/stat.c: Include pathmax.h.
7305         * modules/stat (Depends-on): Add pathmax.
7306
7307         pathmax: Support for native Windows.
7308         * lib/pathmax.h (PATH_MAX): Define to 260 on native Windows.
7309
7310 2011-09-12  Bruno Haible  <bruno@clisp.org>
7311
7312         New modules 'opendir', 'readdir', 'rewinddir', 'closedir'.
7313         * lib/dirent.in.h (struct dirent): New type.
7314         (DT_UNKNOWN, DT_FIFO, DT_CHR, DT_DIR, DT_BLK, DT_REG, DT_LNK, DT_SOCK,
7315         DT_WHT): New macros.
7316         (DIR): New type.
7317         (opendir, closedir): Declare only if the module 'opendir' is enabled.
7318         (readdir, rewinddir): New declarations.
7319         * lib/dirent-private.h: New file.
7320         * lib/opendir.c: New file.
7321         * lib/readdir.c: New file.
7322         * lib/rewinddir.c: New file.
7323         * lib/closedir.c: New file.
7324         * lib/fchdir.c (rpl_closedir, rpl_opendir): Remove functions.
7325         * m4/opendir.m4: New file.
7326         * m4/readdir.m4: New file.
7327         * m4/rewinddir.m4: New file.
7328         * m4/closedir.m4: New file.
7329         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_OPENDIR,
7330         REPLACE_CLOSEDIR here.
7331         * m4/dirent_h.m4 (gl_DIRENT_H): Also check whether closedir, opendir,
7332         readdir, rewinddir are declared.
7333         (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_OPENDIR, GNULIB_READDIR,
7334         GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR, HAVE_READDIR,
7335         HAVE_REWINDDIR, HAVE_CLOSEDIR.
7336         * modules/dirent (Makefile.am): Substitute GNULIB_OPENDIR,
7337         GNULIB_READDIR, GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR,
7338         HAVE_READDIR, HAVE_REWINDDIR, HAVE_CLOSEDIR.
7339         * modules/opendir: New file.
7340         * modules/readdir: New file.
7341         * modules/rewinddir: New file.
7342         * modules/closedir: New file.
7343         * doc/posix-functions/opendir.texi: Mention the 'opendir' module.
7344         * doc/posix-functions/readdir.texi: Mention the 'readdir' module.
7345         * doc/posix-functions/rewinddir.texi: Mention the 'rewinddir' module.
7346         * doc/posix-functions/closedir.texi: Mention the 'closedir' module.
7347         * NEWS: Mention the 'fchdir' change.
7348
7349 2011-09-11  Bruno Haible  <bruno@clisp.org>
7350
7351         asm-underscore.m4: Support for MSVC.
7352         * m4/asm-underscore.m4 (gl_C_ASM): New macro.
7353         (gl_ASM_SYMBOL_PREFIX): Require it. Use its results.
7354
7355 2011-09-11  Reuben Thomas  <rrt@sc3d.org>
7356
7357         Doc about crypt functions.
7358         * doc/posix-functions/crypt.texi: Expand range of glibc versions
7359         needing for _GNU_SOURCE to get crypt.
7360         * doc/posix-functions/encrypt.texi: Likewise.
7361         * doc/posix-functions/setkey.texi: Likewise.
7362
7363 2011-09-11  Bruno Haible  <bruno@clisp.org>
7364
7365         doc: Update regarding MSVC 9.
7366         * doc/gnulib-intro.texi (Target Platforms): Classify MSVC as "rarely
7367         tested".
7368         * doc/posix-functions/*.texi: Update with info about MSVC 9.
7369         * doc/posix-headers/*.texi: Likewise.
7370         * doc/pastposix-functions/*.texi: Likewise.
7371         * doc/glibc-functions/*.texi: Likewise.
7372         * doc/glibc-headers/*.texi: Likewise.
7373
7374 2011-09-11  Bruno Haible  <bruno@clisp.org>
7375
7376         unistd et al.: Don't assume <unistd.h> exists.
7377         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Don't include <unistd.h> if it
7378         does not exist.
7379         * m4/environ.m4 (gl_ENVIRON): Don't include <unistd.h> if it does not
7380         exist. But include <stdlib.h>.
7381         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): If <unistd.h> does not exist,
7382         include <io.h> and <stdlib.h> instead. Don't test symbolink links if
7383         symlink() does not exist.
7384         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): If <unistd.h> does not exist,
7385         include <io.h> instead.
7386         * m4/free.m4 (gl_FUNC_FREE): Assume free(NULL) works on native Windows.
7387         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): If <unistd.h> does not exist,
7388         include <direct.h> instead.
7389         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
7390         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
7391         * m4/lseek.m4 (gl_FUNC_LSEEK): If <unistd.h> does not exist, include
7392         <io.h> instead.
7393         * m4/rename.m4 (gl_FUNC_RENAME): Assume rename() manages hard links
7394         correctly if the system does not have hard links.
7395         * m4/rmdir.m4 (gl_FUNC_RMDIR): If <unistd.h> does not exist, include
7396         <direct.h> instead.
7397         * m4/unistd_h.m4 (gl_UNISTD_H): If <unistd.h> does not exist, bypass
7398         it when looking for function declarations.
7399         * m4/unlink.m4 (gl_FUNC_UNLINK): If <unistd.h> does not exist, include
7400         <direct.h> and <io.h> instead.
7401         * doc/posix-headers/unistd.texi: More details about MSVC problem.
7402
7403 2011-09-11  Bruno Haible  <bruno@clisp.org>
7404
7405         strcase: Support for MSVC.
7406         * modules/strcase (Status, Notice): Remove obsoletion mark.
7407         * doc/posix-functions/strcasecmp.texi: Mention MSVC problem.
7408         * doc/posix-functions/strncasecmp.texi: Likewise.
7409
7410         strings: Don't assume <strings.h> exists.
7411         * lib/strings.in.h: Include <strings.h> only if HAVE_STRINGS_H is 1.
7412         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Set HAVE_STRINGS_H.
7413         * modules/strings (Makefile.am): Substitute HAVE_STRINGS_H.
7414         * doc/posix-headers/strings.texi: Mention the MSVC problem.
7415
7416 2011-09-11  Bruno Haible  <bruno@clisp.org>
7417
7418         dirent: Don't assume <dirent.h> exists.
7419         * lib/dirent.in.h: Include <dirent.h> only if HAVE_DIRENT_H is 1.
7420         * m4/dirent_h.m4 (gl_DIRENT_H): Set HAVE_DIRENT_H.
7421         * modules/dirent (Makefile.am): Substitute HAVE_DIRENT_H.
7422         * doc/posix-headers/dirent.texi: Mention the MSVC problem.
7423
7424 2011-09-11  Bruno Haible  <bruno@clisp.org>
7425
7426         Fix wint_t on MSVC.
7427         * lib/wchar.in.h (wint_t): On MSVC, override it.
7428         * lib/wctype.in.h (wint_t): Likewise.
7429         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Override BITSIZEOF_WINT_T on
7430         MSVC.
7431         * doc/posix-headers/wchar.texi: Mention the problem with wint_t on MSVC.
7432         * doc/posix-headers/wctype.texi: Likewise.
7433
7434 2011-09-11  Bruno Haible  <bruno@clisp.org>
7435
7436         sys_types: Fix typo.
7437         * lib/sys_types.in.h: Fix typo in comment.
7438         Reported by Paul Eggert.
7439
7440         Support for MSVC compiler: Ensure size_t gets defined.
7441         * modules/strings (Depends-on): Add 'sys_types'.
7442         * modules/sys_uio (Depends-on): Likewise.
7443         * lib/sys_uio.in.h: Update comment.
7444
7445         C++ tests for module 'sys_types'.
7446         * modules/sys_types-c++-tests: New file.
7447         * tests/test-sys_types-c++.cc: New file.
7448
7449         Tests for module 'sys_types'.
7450         * modules/sys_types-tests: New file.
7451         * tests/test-sys_types.c: New file.
7452
7453         New module 'sys_types'.
7454         * lib/sys_types.in.h: New file.
7455         * m4/sys_types_h.m4: New file.
7456         * modules/sys_types: New file.
7457         * doc/posix-headers/sys_types.texi: Mention the new module and the
7458         size_t problem on MSVC 9.
7459
7460 2011-09-11  Bruno Haible  <bruno@clisp.org>
7461
7462         Support for MSVC compiler: Avoid division by a literal 0.
7463         * lib/math.in.h (NAN): Define through a function call also on MSVC.
7464         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Divide by 'zero' instead of 0.0.
7465         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_DIRECTIVE_A,
7466         gl_PRINTF_DIRECTIVE_F, gl_PRINTF_FLAG_ZERO): Likewise.
7467         (gl_PRINTF_INFINITE_LONG_DOUBLE): Divide by 'zeroL' instead of 0.0L.
7468         * tests/infinity.h: New file.
7469         * tests/nan.h (NaNf, NaNd, NaNl): Define through a function call also
7470         on MSVC.
7471         * tests/test-ceilf1.c: Include infinity.h.
7472         (main): Use Infinityf.
7473         * tests/test-ceil1.c: Include infinity.h.
7474         (main): Use Infinityd.
7475         * tests/test-ceill.c: Include infinity.h.
7476         (main): Use Infinityl.
7477         * tests/test-dprintf-posix.c: Include infinity.h.
7478         (test_function): Use Infinityd.
7479         * tests/test-floorf1.c: Include infinity.h.
7480         (main): Use Infinityf.
7481         * tests/test-floor1.c: Include infinity.h.
7482         (main): Use Infinityd.
7483         * tests/test-floorl.c: Include infinity.h.
7484         (main): Use Infinityl.
7485         * tests/test-fprintf-posix.c: Include infinity.h.
7486         (test_function): Use Infinityd.
7487         * tests/test-frexp.c: Include infinity.h.
7488         (main): Use Infinityd.
7489         * tests/test-frexpl.c: Include infinity.h.
7490         (main): Use Infinityl.
7491         * tests/test-isfinite.c: Include infinity.h.
7492         (test_isfinitef): Use Infinityf.
7493         (test_isfinited): Use Infinityd.
7494         (test_isfinitel): Use Infinityl.
7495         * tests/test-isinf.c: Include infinity.h.
7496         (test_isinff): Use Infinityf.
7497         (test_isinfd): Use Infinityd.
7498         (test_isinfl): Use Infinityl.
7499         * tests/test-isnan.c: Include infinity.h.
7500         (test_float): Use Infinityf.
7501         (test_double): Use Infinityd.
7502         (test_long_double): Use Infinityl.
7503         * tests/test-isnanf.h: Include infinity.h.
7504         (main): Use Infinityf.
7505         * tests/test-isnand.h: Include infinity.h.
7506         (main): Use Infinityd.
7507         * tests/test-isnanl.h: Include infinity.h.
7508         (main): Use Infinityl.
7509         * tests/test-ldexpl.c: Include infinity.h.
7510         (main): Use Infinityl.
7511         * tests/test-printf-posix.h: Include infinity.h.
7512         (test_function): Use Infinityd.
7513         * tests/test-roundf1.c: Include infinity.h.
7514         (main): Use Infinityf.
7515         * tests/test-round1.c: Include infinity.h.
7516         (main): Use Infinityd.
7517         * tests/test-roundl.c: Include infinity.h.
7518         (main): Use Infinityl.
7519         * tests/test-signbit.c: Include infinity.h.
7520         (test_signbitf): Use Infinityf.
7521         (test_signbitd): Use Infinityd.
7522         (test_signbitl): Use Infinityl.
7523         * tests/test-snprintf-posix.h: Include infinity.h.
7524         (test_function): Use Infinityd, Infinityl.
7525         * tests/test-sprintf-posix.h: Include infinity.h.
7526         (test_function): Use Infinityd, Infinityl.
7527         * tests/test-truncf1.c: Include infinity.h.
7528         (main): Use Infinityf.
7529         * tests/test-trunc1.c: Include infinity.h.
7530         (main): Use Infinityd.
7531         * tests/test-truncl.c: Include infinity.h.
7532         (main): Use Infinityl.
7533         * tests/test-vasnprintf-posix.c: Include infinity.h.
7534         (test_function): Use Infinityd, Infinityl.
7535         * tests/test-vasprintf-posix.c: Include infinity.h.
7536         (test_function): Use Infinityd, Infinityl.
7537         * modules/ceilf-tests (Files): Add tests/infinity.h.
7538         * modules/ceil-tests (Files): Likewise.
7539         * modules/ceill-tests (Files): Likewise.
7540         * modules/dprintf-posix-tests (Files): Likewise.
7541         * modules/floorf-tests (Files): Likewise.
7542         * modules/floor-tests (Files): Likewise.
7543         * modules/floorl-tests (Files): Likewise.
7544         * modules/fprintf-posix-tests (Files): Likewise.
7545         * modules/frexp-tests (Files): Likewise.
7546         * modules/frexp-nolibm-tests (Files): Likewise.
7547         * modules/frexpl-tests (Files): Likewise.
7548         * modules/frexpl-nolibm-tests (Files): Likewise.
7549         * modules/isfinite-tests (Files): Likewise.
7550         * modules/isinf-tests (Files): Likewise.
7551         * modules/isnan-tests (Files): Likewise.
7552         * modules/isnanf-tests (Files): Likewise.
7553         * modules/isnanf-nolibm-tests (Files): Likewise.
7554         * modules/isnand-tests (Files): Likewise.
7555         * modules/isnand-nolibm-tests (Files): Likewise.
7556         * modules/isnanl-tests (Files): Likewise.
7557         * modules/isnanl-nolibm-tests (Files): Likewise.
7558         * modules/ldexpl-tests (Files): Likewise.
7559         * modules/printf-posix-tests (Files): Likewise.
7560         * modules/roundf-tests (Files): Likewise.
7561         * modules/round-tests (Files): Likewise.
7562         * modules/roundl-tests (Files): Likewise.
7563         * modules/signbit-tests (Files): Likewise.
7564         * modules/snprintf-posix-tests (Files): Likewise.
7565         * modules/sprintf-posix-tests (Files): Likewise.
7566         * modules/truncf-tests (Files): Likewise.
7567         * modules/trunc-tests (Files): Likewise.
7568         * modules/truncl-tests (Files): Likewise.
7569         * modules/vasnprintf-posix-tests (Files): Likewise.
7570         * modules/vasprintf-posix-tests (Files): Likewise.
7571         * modules/vdprintf-posix-tests (Files): Likewise.
7572         * modules/vfprintf-posix-tests (Files): Likewise.
7573         * modules/vprintf-posix-tests (Files): Likewise.
7574         * modules/vsnprintf-posix-tests (Files): Likewise.
7575         * modules/vsprintf-posix-tests (Files): Likewise.
7576         * modules/xprintf-posix-tests (Files): Likewise.
7577
7578 2011-09-11  Bruno Haible  <bruno@clisp.org>
7579
7580         Ensure pid_t gets defined.
7581         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_PID_T.
7582         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
7583         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
7584         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
7585         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
7586         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
7587         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
7588         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
7589         * tests/test-fcntl-h.c: Check that pid_t is defined.
7590         * tests/test-sched.c: Likewise.
7591         * tests/test-termios.c: Likewise.
7592         * tests/test-time.c: Likewise.
7593         * doc/posix-headers/fcntl.texi: Mention lack of pid_t on MSVC platform.
7594         * doc/posix-headers/signal.texi: Likewise.
7595         * doc/posix-headers/sys_types.texi: Likewise.
7596         * doc/posix-headers/time.texi: Likewise.
7597
7598 2011-09-11  Bruno Haible  <bruno@clisp.org>
7599
7600         acl: Fix compilation on Solaris 10 (older version).
7601         * lib/file-has-acl.c (acl_ace_nontrivial): Use NEW_ACE_EVERYONE instead
7602         of ACE_EVERYONE.
7603         * lib/set-mode-acl.c (qset_acl): Likewise.
7604         Reported by Christian Jullien <eligis@orange.fr>.
7605
7606 2011-09-10  Bruno Haible  <bruno@clisp.org>
7607
7608         iconv, unsetenv: Add support for MSVC compiler.
7609         * m4/iconv.m4 (AM_ICONV): Use ISO C declaration syntax on MSVC.
7610         * m4/setenv.m4 (gl_FUNC_UNSETENV): Drop support for K&R C compilers.
7611
7612 2011-09-10  Bruno Haible  <bruno@clisp.org>
7613
7614         *printf: Add support for MSVC compiler.
7615         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N): On MSVC, install a handler that
7616         handles the exception caused by the %n directive. When cross-compiling,
7617         guess no on native Windows.
7618         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
7619         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): When snprintf is missing,
7620         emulate it through vsnprintf.
7621         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Update comment.
7622         * doc/posix-functions/dprintf.texi: Update documentation regarding
7623         MSVC 9.
7624         * doc/posix-functions/fprintf.texi: Likewise.
7625         * doc/posix-functions/printf.texi: Likewise.
7626         * doc/posix-functions/snprintf.texi: Likewise.
7627         * doc/posix-functions/sprintf.texi: Likewise.
7628         * doc/posix-functions/swprintf.texi: Likewise.
7629         * doc/posix-functions/vdprintf.texi: Likewise.
7630         * doc/posix-functions/vfprintf.texi: Likewise.
7631         * doc/posix-functions/vprintf.texi: Likewise.
7632         * doc/posix-functions/vsnprintf.texi: Likewise.
7633         * doc/posix-functions/vsprintf.texi: Likewise.
7634         * doc/glibc-functions/asprintf.texi: Likewise.
7635         * doc/glibc-functions/obstack_printf.texi: Likewise.
7636         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
7637         * doc/glibc-functions/vasprintf.texi: Likewise.
7638
7639 2011-09-10  Bruno Haible  <bruno@clisp.org>
7640
7641         nocrash: Add support for native Windows.
7642         * m4/nocrash.m4 (GL_NOCRASH): Avoid a crash also on native Windows.
7643
7644 2011-09-10  Michael Goffioul  <michael.goffioul@gmail.com>  (tiny change)
7645             Bruno Haible  <bruno@clisp.org>
7646
7647         absolute-header, include-next: Add support for MSVC compiler.
7648         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Require
7649         AC_CANONICAL_HOST. On native Windows, recognize also backslash as
7650         directory separator in #line directives.
7651         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): On native Windows,
7652         recognize also backslash as directory separator in #line directives.
7653
7654 2011-09-08  Jim Meyering  <meyering@redhat.com>
7655
7656         maint.mk: mark the post-release commit log with "maint: " prefix
7657         * top/maint.mk (emit-commit-log): Add "maint: " prefix to the
7658         one-line commit-log summary.
7659
7660 2011-09-08  Reuben Thomas  <rrt@sc3d.org>
7661             Bruno Haible  <bruno@clisp.org>
7662
7663         Doc about crypt functions.
7664         * doc/posix-functions/crypt.texi: Mention need for _GNU_SOURCE on glibc
7665         systems.
7666         * doc/posix-functions/encrypt.texi: Likewise.
7667         * doc/posix-functions/setkey.texi: Likewise.
7668
7669 2011-09-08  Simon Josefsson  <simon@josefsson.org>
7670
7671         * lib/gc.h: Fix copyright header.
7672
7673 2011-09-07  Bruno Haible  <bruno@clisp.org>
7674
7675         pthread: Determine $(LIB_PTHREAD) correctly on OSF/1 5.1.
7676         * m4/pthread.m4 (gl_PTHREAD_CHECK): Use AC_CACHE_CHECK and
7677         AC_LINK_IFELSE instead of AC_SEARCH_LIBS.
7678
7679 2011-09-07  Bruno Haible  <bruno@clisp.org>
7680
7681         openat: Work around compilation error with OSF/1 5.1 DTK cc.
7682         * lib/fopen.c: Use different syntax for include of <stdio.h>.
7683         * lib/freopen.c: Likewise.
7684         * lib/fstatat.c: Use different syntax for include of <sys/stat.h>.
7685         * lib/lstat.c: Likewise.
7686         * lib/stat.c: Likewise.
7687         * lib/open.c: Use different syntax for include of <fcntl.h>.
7688         * lib/openat.c: Include fcntl.h again, explicitly.
7689
7690 2011-09-04  J.T. Conklin  <jtc@acorntoolworks.com>
7691
7692         parse-datetime: document the newly accepted format
7693         * doc/parse-datetime.texi (Combined date and time of day items):
7694         New section.
7695
7696 2011-09-06  Bruno Haible  <bruno@clisp.org>
7697
7698         acl: Fix a test failure on newer Solaris 10 with ZFS.
7699         * tests/test-sameacls.c (main): Interpret acl GETACLCNT failure with
7700         ENOSYS as no ACL.
7701         Reported by Jim Meyering.
7702
7703 2011-09-06  Bruno Haible  <bruno@clisp.org>
7704
7705         acl: Update for AIX >= 5.3 with NFS.
7706         * lib/file-has-acl.c (file_has_acl): Interpret aclx_get failure with
7707         ENOSYS as no ACL.
7708
7709         acl: Fix a test failure on AIX >= 5.3 with NFS.
7710         * tests/test-sameacls.c (main): Interpret aclx_get failure with ENOSYS
7711         as no ACL.
7712
7713 2011-09-06  Bruno Haible  <bruno@clisp.org>
7714
7715         acl: Fix a test failure on IRIX 6.5 with NFS.
7716         * lib/acl-internal.h (MODE_INSIDE_ACL): Define to 0 on IRIX.
7717         * lib/set-mode-acl.c (qset_acl): Test !HAVE_ACL_TYPE_EXTENDED instead
7718         of MODE_INSIDE_ACL. If !MODE_INSIDE_ACL, do a chmod_or_fchmod always.
7719         * lib/copy-acl.c (qcopy_acl): Likewise.
7720
7721 2011-09-05  Paul Eggert  <eggert@cs.ucla.edu>
7722
7723         openat: port to AIX 7.1 with large files
7724         AIX 7.1 does a "#define openat open64at" if large files are in use,
7725         so we can't simply #undef openat.  Use the orig_openat trick (similar
7726         to orig_open in lib/open.c) to work around the problem.  Problem
7727         reported by Kevin Brott for GNU tar, in the thread containing
7728         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00032.html>.
7729         * lib/openat.c (__need_system_fcntl_h): Define first.
7730         Include <fcntl.h> and <sys/types.h> before undefining.
7731         (orig_openat) [HAVE_OPENAT]: New inline function.
7732         (openat) [HAVE_OPENAT]: Do not undef.
7733         (rpl_openat): Use orig_openat, not openat.
7734
7735 2011-09-05  Joachim Schmitz  <schmitz@hp.com>  (tiny change)
7736             Bruno Haible  <bruno@clisp.org>
7737
7738         acl: Avoid errors on NonStop Kernel.
7739         * lib/file-has-acl.c (file_has_acl) [NonStop Kernel]: Ignore ENOSYS and
7740         ENOTSUP errors.
7741
7742 2011-09-05  Bruno Haible  <bruno@clisp.org>
7743
7744         acl: Clean up Solaris code.
7745         * lib/acl-internal.h: Remove no-op #if.
7746         * lib/file-has-acl.c: Likewise.
7747         * lib/set-mode-acl.c (qset_acl): Remove unused Solaris code.
7748         * lib/copy-acl.c (qcopy_acl): Likewise.
7749
7750 2011-09-05  Bruno Haible  <bruno@clisp.org>
7751
7752         acl: Fix a bug with NFSv4 ACLs on Solaris 10 (newer version) in
7753         binaries built on the original Solaris 10.
7754         * lib/file-has-acl.c (file_has_acl): ACLs with 4..6 ACEs can be
7755         trivial.
7756
7757 2011-09-05  Bruno Haible  <bruno@clisp.org>
7758
7759         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
7760         * lib/acl-internal.h (acl_nontrivial): Declare also on newer Solaris
7761         10.
7762         * lib/file-has-acl.c (acl_nontrivial): Define also on newer Solaris 10.
7763         (acl_ace_nontrivial): Likewise. Recognize the trivial ACLs with 6 ACEs.
7764         * lib/copy-acl.c (qcopy_acl): On newer Solaris 10, use acl or facl
7765         instead of acl_get, facl_get, acl_set, facl_set.
7766
7767 2011-09-05  Bruno Haible  <bruno@clisp.org>
7768
7769         copy-file: Try unit tests on more file systems.
7770         * tests/test-copy-file-1.sh: New file.
7771         * tests/test-copy-file-2.sh: New file.
7772         * modules/copy-file-tests (Files): Add them.
7773         (Makefile.am): Add them to TESTS.
7774
7775         acl: Try unit tests on more file systems.
7776         * tests/test-file-has-acl-1.sh: New file.
7777         * tests/test-file-has-acl-2.sh: New file.
7778         * tests/test-set-mode-acl-1.sh: New file.
7779         * tests/test-set-mode-acl-2.sh: New file.
7780         * tests/test-copy-acl-1.sh: New file.
7781         * tests/test-copy-acl-2.sh: New file.
7782         * modules/acl-tests (Files): Add them.
7783         (Makefile.am): Add them to TESTS.
7784
7785 2011-09-04  Bruno Haible  <bruno@clisp.org>
7786
7787         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
7788         * lib/acl-internal.h (ACE_*, NEW_ACE_*): Define also on newer Solaris
7789         10.
7790         (OLD_ALLOW, OLD_DENY): New macros.
7791         (NEW_ACE_ACCESS_ALLOWED_ACE_TYPE): Renamed from
7792         ACE_ACCESS_ALLOWED_ACE_TYPE.
7793         (NEW_ACE_ACCESS_DENIED_ACE_TYPE): Renamed from
7794         ACE_ACCESS_DENIED_ACE_TYPE.
7795         (OLD_ACE_OWNER, OLD_ACE_GROUP, OLD_ACE_OTHER): New macros.
7796         (NEW_ACE_EXECUTE): Fix value.
7797         (NEW_ACE_APPEND_DATA, NEW_ACE_READ_NAMED_ATTRS,
7798         NEW_ACE_WRITE_NAMED_ATTRS, NEW_ACE_DELETE_CHILD,
7799         NEW_ACE_READ_ATTRIBUTES, NEW_ACE_WRITE_ATTRIBUTES, NEW_ACE_DELETE,
7800         NEW_ACE_READ_ACL, NEW_ACE_WRITE_ACL, NEW_ACE_WRITE_OWNER,
7801         NEW_ACE_SYNCHRONIZE): New macros.
7802         * lib/set-mode-acl.c (qset_acl): On newer Solaris 10, use acl or facl
7803         instead of acl_fromtext, acl_set, facl_set.
7804         Fixes a coreutils/tests/cp/perm failure.
7805
7806 2011-09-03  Paul Eggert  <eggert@cs.ucla.edu>
7807
7808         openat: test for fstatat (..., 0) bug
7809         Further testing with tar suggests that fstatat (..., 0)
7810         does not work in general, on AIX 7.1; see
7811         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00023.html>.
7812         So, give up entirely on AIX 7.1's fstatat, and fall back on our
7813         replacement fstatat (which is what older AIX releases were using
7814         anyway).
7815         * lib/fstatat.c (fstatat) [HAVE_FSTATAT]: Do not undef.  The only
7816         use is now changed to orig_fstatat.  This was probably the right
7817         thing to do anyway.
7818         (FSTATAT_AT_FDCWD_0_BROKEN): Remove; no longer used.
7819         (rpl_fstatat) [FSTATAT_ZERO_FLAG_BROKEN]: Remove.
7820         (rpl_fstatat): Simplify, assuming !FSTATAT_ZERO_FLAG_BROKEN.
7821         (AT_FUNC_NAME) [FSTATAT_ZERO_FLAG_BROKEN]: Now rpl_fstatat.
7822         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for the more-general bug
7823         and define FSTATAT_ZERO_FLAG_BROKEN, not FSTATAT_AT_FDCWD_0_BROKEN,
7824         if the bug is found.
7825
7826         openat: test for fstatat (AT_FDCWD, ..., 0) bug
7827         This tests for another fstatat bug on AIX 7.1:
7828         fstatat (AT_FDCWD, ..., 0) does not work.  See
7829         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00015.html>.
7830         * lib/fstatat.c (FSTATAT_AT_FDCWD_0_BROKEN)
7831         (LSTAT_FOLLOWS_SLASHED_SYMLINK): Default to 0.
7832         (rpl_fstatat): Adjust so that it works around either (or both)
7833         bugs if present.
7834         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for this fstatat bug.
7835
7836 2011-09-03  Karl Berry  <karl@gnu.org>
7837
7838         * doc/regex.texi (Character Class Operators): Avoid literal ":"
7839         in index entries.
7840
7841 2011-09-02  Bruno Haible  <bruno@clisp.org>
7842
7843         Allow the user to override the choice of AR, ARFLAGS, RANLIB.
7844         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Don't override the given
7845         values of AR, ARFLAGS, RANLIB.
7846         Reported by John W. Eaton <jwe@gnu.org> for Octave.
7847
7848 2011-09-02  Bruno Haible  <bruno@clisp.org>
7849
7850         Find 'ar' program that fits with --host argument.
7851         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Use AC_CHECK_TOOL.
7852
7853 2011-09-02  Bruno Haible  <bruno@clisp.org>
7854
7855         tests: init.sh: Support any non-GNU diff.
7856         * tests/init.sh (compare): If "diff -c" is supported but "diff -u" is
7857         not, use "diff -c". Useful on AIX 6.1, HP-UX 11.31, OSF/1 5.1,
7858         Solaris 8.
7859
7860 2011-09-02  Bruno Haible  <bruno@clisp.org>
7861
7862         tests: init.sh: work also with any non-GNU diff that supports -u
7863         * tests/init.sh: Relax check for diff -u support.
7864         Rather than checking for GNU diff via --version, simply check
7865         for support for -u itself.  Useful at least on OpenBSD 4.9,
7866         AIX 7.1, IRIX 6.5, and Solaris 10.
7867
7868 2011-09-01  Bruno Haible  <bruno@clisp.org>
7869
7870         strtoimax, strtoumax: Document problem on HP-UX 11.
7871         * doc/posix-functions/strtoimax.texi: Mention HP-UX 11.11 problem.
7872         * doc/posix-functions/strtoumax.texi: Likewise.
7873
7874 2011-09-01  Bruno Haible  <bruno@clisp.org>
7875
7876         strtoumax: Avoid link error on OSF/1 with DTK cc.
7877         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Always test whether strtoumax is
7878         defined as a function.
7879         * modules/strtoumax (Depends-on, configure.ac): Test only whether
7880         strtoumax is defined, not whether it is declared.
7881
7882 2011-09-01  Bruno Haible  <bruno@clisp.org>
7883
7884         strtoimax: Avoid link error on OSF/1 with DTK cc.
7885         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Always test whether strtoimax is
7886         defined as a function.
7887         * modules/strtoimax (Depends-on, configure.ac): Test only whether
7888         strtoimax is defined, not whether it is declared.
7889
7890 2011-09-01  Bruno Haible  <bruno@clisp.org>
7891
7892         imaxdiv: Avoid link error on OSF/1 with DTK cc.
7893         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Also test whether imaxdiv is defined
7894         as a function.
7895         * modules/imaxdiv (configure.ac): Test whether imaxdiv is defined, not
7896         whether it is declared.
7897
7898 2011-09-01  Bruno Haible  <bruno@clisp.org>
7899
7900         imaxabs: Avoid link error on OSF/1 with DTK cc.
7901         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Also test whether imaxabs is defined
7902         as a function.
7903         * modules/imaxabs (configure.ac): Test whether imaxabs is defined, not
7904         whether it is declared.
7905
7906 2011-09-01  Bruno Haible  <bruno@clisp.org>
7907
7908         Tests for module 'strtoumax'.
7909         * modules/strtoumax-tests: New file.
7910         * tests/test-strtoumax.c: New file.
7911
7912         Tests for module 'strtoimax'.
7913         * modules/strtoimax-tests: New file.
7914         * tests/test-strtoimax.c: New file.
7915
7916         Tests for module 'imaxdiv'.
7917         * modules/imaxdiv-tests: New file.
7918         * tests/test-imaxdiv.c: New file.
7919
7920         Tests for module 'imaxabs'.
7921         * modules/imaxabs-tests: New file.
7922         * tests/test-imaxabs.c: New file.
7923
7924 2011-09-01  Bruno Haible  <bruno@clisp.org>
7925
7926         pthread: Determine $(LIB_PTHREAD) correctly on IRIX 6.5.
7927         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_join, not
7928         pthread_create.
7929
7930 2011-09-01  Paul Eggert  <eggert@cs.ucla.edu>
7931
7932         openat: work around AIX 7.1 fstatat issue
7933         This should fix the problem that was not properly fixed
7934         in the previous change, dated 2011-08-30.
7935         * lib/fstatat.c: Include <sys/stat.h> twice, the first with
7936         __need_system_stat_h defined.
7937         (orig_fstatat) [HAVE_FSTATAT]: New function.
7938         (rpl_fstatat): Go back to the old way of doing things,
7939         except call orig_fstatat instead of fstatat.
7940         * m4/openat.m4 (gl_FUNC_FSTATAT): Remove unnecessary check for openat.
7941         Remove unnecessary check whether fstatat fills in st_size etc.
7942
7943 2011-09-01  Bruno Haible  <bruno@clisp.org>
7944
7945         sys_select: Avoid a syntax error regarding timespec_t on IRIX 6.5.
7946         * lib/sys_select.in.h [__sgi]: When included from <sys/bsd_types.h>,
7947         just include the system's header.
7948
7949 2011-08-31  Jim Meyering  <meyering@redhat.com>
7950
7951         tests: avoid spurious assertion failure in test-float.c on ppc64
7952         * tests/test-float.c (test_long_double): Comment out an assertion,
7953         LDBL_MIN_EXP <= DBL_MIN_EXP, that is failing at least on PowerPC-64
7954         with gcc-4.4.4.
7955
7956         maint: indent with spaces, not TABs
7957         I need to get in the habit of running gnulib's "make check".
7958         Both of these would have been caught.
7959         * m4/largefile.m4: Indent with spaces, not TABs.
7960         * lib/parse-datetime.y (iso_8601_time): Likewise.
7961         Spotted by Pádraig Brady.
7962
7963         test-parse-datetime.c: accommodate a relatively strict gcc warning
7964         * tests/test-parse-datetime.c (gmt_offset): Declare function "static",
7965         to avoid a warning from gcc's -Werror=missing-declarations.
7966         Insert a few spaces-before-funcall-parenthesis.
7967
7968 2011-08-17  J.T. Conklin  <jtc@acorntoolworks.com>
7969
7970         parse-datetime: accept ISO 8601 date and time rep with "T" separator
7971         The parser now accepts ISO 8601 date-time strings with "T" as the
7972         separator.  It has long parsed dates like "2004-02-29 16:21:42"
7973         with a space between the date and time strings.  Now it also parses
7974         "2004-02-29T16:21:42" and fractional-second and time-zone-annotated
7975         variants like "2004-02-29T16:21:42.333-07:00"
7976         * lib/parse-datetime.y: Parse ISO 8601 extended date and time
7977         of day representation using the 'T' separator character.
7978         * doc/parse-datetime.texi (General date syntax): replace use of
7979         deprecated --iso-8601 option with --rfc-3339 in example of date
7980         command output formats that can be parsed.
7981         * tests/test-parse-datetime.c (tm_diff): New function, taken from
7982         lib/parse-datetime.y.
7983         (gmt_offset): New function.
7984         (main): Add additional test cases to validate ISO8601 extended
7985         date and time of day parsing.
7986
7987 2011-08-31  Bruno Haible  <bruno@clisp.org>
7988
7989         freopen: Documentation.
7990         * doc/posix-functions/freopen.texi: Document the bug with the NULL file
7991         name.
7992         Reported by Claudio Bley <claudio.bley@gmail.com>.
7993
7994 2011-08-31  Claudio Bley  <claudio.bley@gmail.com>  (tiny change)
7995
7996         freopen: Don't crash if the filename argument is NULL.
7997         * lib/freopen.c (rpl_freopen): Don't compare the filename if it is
7998         NULL.
7999
8000 2011-08-30  Paul Eggert  <eggert@cs.ucla.edu>
8001
8002         openat: work around AIX 7.1 fstatat bug
8003         Problem reported by Kevin Brott for GNU tar, in the thread containing
8004         <http://lists.gnu.org/archive/html/bug-tar/2011-08/msg00015.html>.
8005         * lib/fstatat.c (rpl_fstatat): Do not invoke underlying fstatat if
8006         FSTATAT_ST_SIZE_ETC_BROKEN.
8007         (fstatat) [FSTATAT_ST_SIZE_ETC_BROKEN && HAVE_FSTATAT]: #define to
8008         rpl_fstatat.
8009         * m4/openat.m4 (gl_FUNC_FSTATAT): New macro, with the fstatat-relevant
8010         part of gl_FUNC_OPENAT.  Also, check for the AIX 7.1 bug, and use
8011         AC_CHECK_FUNCS_ONCE for fstatat.
8012         (gl_FUNC_OPENAT): Use it.  Use AC_CHECK_FUNCS_ONCE for
8013         fchmodat, mkdirat, openat and unlinkat.
8014
8015 2011-08-30  Bruno Haible  <bruno@clisp.org>
8016
8017         Avoid endless recursions if config.h includes some header files.
8018         * lib/fopen.c (__need_FILE): Define already before including config.h.
8019         * lib/freopen.c (__need_FILE): Likewise.
8020         * lib/open.c (__need_system_fcntl_h): Likewise.
8021         * lib/stat.c (__need_system_sys_stat_h): Likewise.
8022         * lib/lstat.c (__need_system_sys_stat_h): Likewise.
8023         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
8024
8025 2011-08-25  Karl Berry  <karl@gnu.org>
8026
8027         * config/srclist.txt (ylwrap): new try.
8028         * build-aux/ylwrap: new file.
8029
8030 2011-08-23  Bruno Haible  <bruno@clisp.org>
8031
8032         tmpdir: Use a good default directory on native Windows.
8033         * lib/tmpdir.c: Include <windows.h>, pathmax.h.
8034         (P_tmpdir): Default to _P_tmpdir on native Windows.
8035         (path_search): On native Windows, try the value returned by GetTempPath
8036         before trying P_tmpdir.
8037         * modules/tmpdir (Depends-on): Add pathmax.
8038         Suggested by John Darrington <john@darrington.wattle.id.au>.
8039
8040 2011-08-20  Reuben Thomas  <rrt@sc3d.org>
8041
8042         doc: fix typo in README-release
8043         * top/README-release: Capitalize first word of a sentence.
8044
8045 2011-08-19  Jim Meyering  <meyering@redhat.com>
8046
8047         fts: do not exhaust memory when processing million-entry directories
8048         Before this change, traversing (via rm -rf, find, du, etc.) an N-entry
8049         directory would require about 256*N bytes of memory.  Thus, it was
8050         easy to construct a directory too large to be processed by any of
8051         those tools.  With this change, fts' maximum memory utilization is
8052         now limited to around 30MB.
8053         * lib/fts.c (FTS_MAX_READDIR_ENTRIES): Define.
8054         (fts_read): When we've processed the final entry (i.e., when
8055         ->fts_link is NULL) and fts_dirp is non-NULL, call fts_build
8056         using the parent entry to read any remaining entries.  Dispatch
8057         depending on what fts_build returns:
8058         - NULL+stop, aka failure: stop
8059         - NULL otherwise: move up in the dir hierarchy
8060         - non-NULL: handle this new entry
8061         (fts_build): Declare and use new local, continue_readdir.
8062         Prepare to be called from fts_read, when the entries
8063         from a partially-read directory have just been exhausted.
8064         In that case, we'll skip the opendir and instead use the parent's
8065         fts_dirp and derive dir_fd from that.
8066         Finally, in the readdir loop, if we read max_entries entries,
8067         exit the loop ensuring *not* to call closedir.  This is required
8068         so that fts_dirp can be reused on a subsequent call.
8069         Prompted by Ben England's report of memory exhaustion in find
8070         and rm -rf vs. NFS: https://bugzilla.redhat.com/719749.
8071
8072         maint: fts: move decl of `dp' down into while loop; split a long line
8073         * lib/fts.c (fts_build): No semantic change.
8074
8075         fts: add/use new struct member, fts_dirp
8076         We are about to use this to manage any directory with
8077         too many entries to read all of them into memory at once.
8078         To do that, we'll need to save the DIR* pointer in each
8079         affected FTSENT struct.
8080         * lib/fts_.h: Include <dirent.h>.
8081         (struct FTSENT) [fts_dirp]: New member.
8082         * lib/fts.c (closedir_and_clear): Define.
8083         Use it in place of closedir so that we are sure to
8084         clear the new fts_dirp member when done with it.
8085         (fts_alloc): Initialize the new member.
8086         (fts_lfree): Free, if needed.
8087
8088         maint: fts: give __opendir2 a new parameter and rename
8089         * lib/fts.c (__opendir2): Give it a new parameter, Pdir_fd, rather
8090         than surreptitiously using sole caller's "dir_fd".
8091         (fts_opendir): Rename from __opendir2.
8092
8093         maint: fts.c: remove __opendir2's now-unused parameter, oflag
8094         * lib/fts.c (__opendir2): Remove unused parameter, oflag.
8095
8096         maint: fts.c: correct off-by-one indentation
8097         * lib/fts.c (fts_build): Correct indentation, change style
8098         of a couple of block comments, and bracing style.
8099
8100         maint: fts.c: move __opendir2 #define "up" out of function body
8101         * lib/fts.c (__opendir2): Move "up".  No semantic change.
8102
8103         maint: fts.c: remove #if-0'd FTS_WHITEOUT code
8104         * lib/fts.c: Remove #if-0'd FTS_WHITEOUT code.  It's been #if-0'd
8105         out for a long time and besides was useful only on BSD systems.
8106
8107 2011-08-18  Paul Eggert  <eggert@cs.ucla.edu>
8108
8109         regex: port to Stratus OpenVOS
8110         * lib/regex_internal.h (internal_function) [!_LIBC]: Simply
8111         define to empty, rather than attempting nonportable optimizations.
8112         Problem reported by Paul Green in:
8113         http://lists.gnu.org/archive/html/bug-diffutils/2011-08/msg00047.html
8114         and fix suggested by Eric Blake in:
8115         http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00143.html
8116
8117 2011-08-17  Eric Blake  <eblake@redhat.com>
8118
8119         getcwd: fix test failures on mingw
8120         * lib/getcwd.c (__getcwd): Early exit for ERANGE.
8121         * tests/test-getcwd.c (test_abort_bug, test_long_name): Don't fail
8122         test if long directory cannot be created, and allow mingw errno.
8123
8124         getcwd-lgpl: fix m4 to match relaxed test for BSD
8125         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Relax probe.
8126         (gl_FUNC_GETCWD_SIGNATURE): New macro.
8127         (gl_FUNC_GETCWD_LGPL, gl_FUNC_GETCWD): Use it.
8128         * doc/posix-functions/getcwd.texi (getcwd): Tweak mentions of
8129         signature problem.
8130
8131         getcwd: fix compilation on mingw64
8132         * lib/unistd.in.h (includes) [mingw]: Include <direct.h> for
8133         getcwd.
8134         Reported by Marc-André Lureau.
8135
8136         pipe2: silence compiler warning
8137         * lib/pipe2.c (pipe2): Hide label if it is not used.
8138
8139 2011-08-15  Ben Pfaff  <blp@cs.stanford.edu>
8140
8141         relocatable-prog: fix link error
8142         * modules/relocatable-prog (configure.ac) [RELOCATABLE]: Also
8143         invoke AC_LIBOBJ([relocatable]).  This invocation was previously
8144         in the gl_RELOCATABLE_LIBRARY macro.  That invocation was moved
8145         into modules/relocatable-lib without noticing that
8146         modules/relocatable-prog also invokes gl_RELOCATABLE_LIBRARY and
8147         also needs to build relocatable.c.
8148
8149 2011-08-12  Paul Eggert  <eggert@cs.ucla.edu>
8150
8151         getaddrinfo: fix sh typo in gai_strerrorA decl checking
8152         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix typo in the generated
8153         shell code: it contained a 'break' that was not in a loop.
8154         Apparently the macro assumed that AC_CHECK_DECLS is implemenented
8155         via a shell-language loop; this may have been true in old Autoconf
8156         versions, but it's not true in Autoconf 2.68.  I found this bug
8157         when testing coreutils git on Solaris 8, whose shell complains
8158         about the syntax error.
8159
8160 2011-08-12  Simon Josefsson  <simon@josefsson.org>
8161
8162         * lib/base64.c: Fix comment to reference RFC 4648.
8163         Suggested by Bruno Haible <bruno@clisp.org> and Gijs van Tulder
8164         <gvtulder@gmail.com>.
8165
8166 2011-08-11  Paul Eggert  <eggert@cs.ucla.edu>
8167
8168         * build-aux/bootstrap (slurp): Remove obsolescent gettext.m4 patch.
8169
8170         po/Makefile.in.in: fix make -q problem
8171         * build-aux/po/Makefile.in.in (check-macro-version): Remove this
8172         rule, since there's no file named 'check-macro-version' and its
8173         use as a file breaks make -q.
8174         (all): Don't depend on check-macro-version.
8175         (CHECK_MACRO_VERSION): New macro.
8176         (stamp-po): Use it.
8177
8178         configmake: fix make -q problem
8179         * modules/configmake (configmake.h): Update configmake.h's time stamp
8180         even if the file does not change.  Otherwise, 'make -q' fails.
8181         Problem reported by Simon Josefsson in
8182         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00088.html>.
8183
8184 2011-08-11  Jim Meyering  <meyering@redhat.com>
8185
8186         git-version-gen: correct the advice in a comment
8187         * build-aux/git-version-gen: Correct comment.
8188         Don't recommend to list .tarball-version in .gitignore.
8189
8190 2011-08-10  Paul Eggert  <eggert@cs.ucla.edu>
8191
8192         base64: fix off-by-one buffer size bug
8193         Problem and (trivial) fix reported by Gijs van Tulder in
8194         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00083.html>.
8195         * lib/base64.c (base64_decode_alloc_ctx): Allocate one more byte.
8196         * tests/test-base64.c (main): Catch the bug.
8197
8198 2011-08-10  Eric Blake  <eblake@redhat.com>
8199
8200         closein: correct comments
8201         * lib/closein.c (close_stdin): Improve comments.
8202
8203 2011-08-09  Bruno Haible  <bruno@clisp.org>
8204
8205         More tests for 'fseeko'.
8206         * tests/test-fseeko3.c: New file, from Eric Blake.
8207         * tests/test-fseeko3.sh: New file.
8208         * modules/fseeko-tests (Files): Add them.
8209         (TESTS): Add test-fseeko3.sh.
8210         (check_PROGRAMS): Add test-fseeko3.
8211
8212 2011-08-09  Eric Blake  <eblake@redhat.com>
8213
8214         fseeko: remove unneeded hack
8215         * lib/fseeko.c (fseeko): Don't special-case SEEK_END.
8216
8217         fseeko: fix bug on glibc
8218         * lib/fseeko.c (fseeko): Set stream offset to match fd offset.
8219         Reported by John W. Eaton.
8220
8221 2011-08-08  Bruno Haible  <bruno@clisp.org>
8222
8223         unictype/base: Fix interoperability with preinstalled libunistring.
8224         * modules/unictype/base (configure.ac): Bump minimum version to 0.9.4.
8225         Reported by Simon Josefsson.
8226
8227 2011-08-08  Bruno Haible  <bruno@clisp.org>
8228
8229         iswblank: Detect declaration correctly.
8230         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Use correct headers in
8231         AC_CHECK_DECLS invocation.
8232
8233 2011-08-08  Bruno Haible  <bruno@clisp.org>
8234
8235         tcgetsid: Detect declaration correctly.
8236         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Use correct headers in
8237         AC_CHECK_DECLS invocation.
8238         Reported by Simon Josefsson.
8239
8240 2011-08-08  Eric Blake  <eblake@redhat.com>
8241
8242         largefile: fix typo that regressed large file support
8243         * modules/largefile (configure.ac-early): Fix section name.
8244
8245 2011-08-06  Karl Berry  <karl@gnu.org>
8246
8247         * MODULES.html.sh (func_all_files): _Noreturn is no longer
8248         a separate module.
8249
8250 2011-08-05  Simon Josefsson  <simon@josefsson.org>
8251
8252         openat: Fix warnings and commens when building unlinkat.c on Hurd.
8253         * lib/unlinkat.c: Mention Hurd in comments.  Include stdlib.h to
8254         get prototype for free.
8255
8256 2011-08-04  Bruno Haible  <bruno@clisp.org>
8257
8258         Tests for module 'pathmax'.
8259         * modules/pathmax-tests: New file.
8260         * tests/test-pathmax.c: New file.
8261
8262         canonicalize-lgpl: Support larger filenames on the Hurd.
8263         * lib/canonicalize-lgpl.c (__realpath): Bump path_max fallback to 8192.
8264         Reported by Paul Eggert.
8265
8266         pathmax: Leave PATH_MAX undefined on the Hurd, and a constant otherwise.
8267         * lib/pathmax.h (PATH_MAX): Leave it undefined on GNU/Hurd.
8268         * lib/chdir-long.h: Include pathmax.h.
8269         * lib/clean-temp.c (PATH_MAX): Remove code that is done by pathmax.h.
8270         * lib/getcwd.c: Include pathmax.h instead of <limits.h>.
8271         (PATH_MAX): Remove code that is done by pathmax.h.
8272         * lib/canonicalize.c (PATH_MAX): Provide a fallback value.
8273         * lib/tmpfile.c: Add a comment.
8274         * m4/pathmax.m4 (gl_PATHMAX): Don't test for pathconf.
8275         * modules/chdir-long (Depends-on): Add pathmax.
8276         * modules/getcwd (Depends-on): Add pathmax.
8277         * tests/test-getcwd.c (test_abort_bug): Avoid syntax error when PATH_MAX
8278         is not defined.
8279         * doc/posix-headers/limits.texi: Mention the pathmax module.
8280         * NEWS: Mention the change.
8281
8282 2011-08-02  Bruno Haible  <bruno@clisp.org>
8283
8284         pthread_sigmask: Actually use results of gl_THREADLIB.
8285         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test and require
8286         gl_THREADLIB, not gl_[]THREADLIB.
8287         Reported by Eric Blake.
8288
8289 2011-08-02  Jim Meyering  <meyering@redhat.com>
8290
8291         maint.mk: relax the default _gl_TS_function_match regexp
8292         * top/maint.mk (_gl_TS_function_match): Don't require at least one
8293         space between function name and "(" in an "extern" declaration.
8294         That would fail to match a decl with no space there: extern void foo();
8295
8296 2011-07-31  Iain Nicol  <iain@thenicols.net>
8297
8298         git-version-gen: document that EXTRA_DIST must include .version
8299         * build-aux/git-version-gen: In the how-to-use comment, document
8300         that EXTRA_DIST must include .version.  Otherwise, "make distcheck"
8301         will fail when run from an unpacked distribution tarball.
8302
8303 2011-08-01  Bruno Haible  <bruno@clisp.org>
8304
8305         wctype-h: Fix last change.
8306         * m4/wctype_h.m4 (gl_WCTYPE_H): If towlower is defined, set
8307         REPLACE_TOWLOWER to 0.
8308         Reported by Sam Steingold <sds@gnu.org>.
8309
8310 2011-07-31  Bruno Haible  <bruno@clisp.org>
8311
8312         frexpl: Update autoconf test.
8313         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Update overrides of <float.h>,
8314         according to changes of 2011-06-20.
8315
8316 2011-07-31  Bruno Haible  <bruno@clisp.org>
8317
8318         sys_utsname: Add support for Minix.
8319         * lib/sys_utsname.in.h [Minix]: Include <stddef.h> before
8320         <sys/utsname.h>.
8321         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
8322         * doc/posix-headers/sys_utsname.texi: Document the Minix problem.
8323
8324 2011-07-31  Bruno Haible  <bruno@clisp.org>
8325
8326         strings: Add support for Minix.
8327         * lib/strings.in.h [Minix]: Include <sys/types.h> before <strings.h>.
8328         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
8329         * doc/posix-headers/strings.texi: Document the Minix problem.
8330
8331 2011-07-31  Bruno Haible  <bruno@clisp.org>
8332
8333         wctype-h: Add support for Minix.
8334         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towlower is declared. Set
8335         REPLACE_TOWLOWER.
8336         * modules/wctype-h (Makefile.am): Substitute REPLACE_TOWLOWER.
8337         * lib/wctype.in.h (towlower, towupper): Test REPLACE_TOWLOWER, not
8338         REPLACE_ISWCNTRL.
8339
8340 2011-07-31  Paul Eggert  <eggert@cs.ucla.edu>
8341
8342         * lib/xalloc.h (DEFAULT_MXFAST): Track 64-bit glibc.
8343         This is a performance improvement for 64-bit hosts: it causes the
8344         value of DEFAULT_MXFAST to track what's in glibc on such hosts.
8345
8346 2011-07-31  Bruno Haible  <bruno@clisp.org>
8347
8348         stdioext: Add support for Minix.
8349         * lib/fbufmode.c (fbufmode) [__minix]: Add conditional code.
8350         * lib/fpurge.c (fpurge): Likewise.
8351         * lib/freadahead.c (freadahead): Likewise.
8352         * lib/freadable.c (freadable): Likewise.
8353         * lib/freading.c (freading): Likewise.
8354         * lib/freadptr.c (freadptr): Likewise.
8355         * lib/freadseek.c (freadptrinc): Likewise.
8356         * lib/fseeko.c (rpl_fseeko): Likewise.
8357         * lib/fseterr.c (fseterr): Likewise.
8358         * lib/fwritable.c (fwritable): Likewise.
8359         * lib/fwriting.c (fwriting): Likewise.
8360         * lib/fflush.c (clear_ungetc_buffer): Update comment.
8361         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Minix.
8362
8363 2011-07-31  Bruno Haible  <bruno@clisp.org>
8364
8365         errno: Port to Minix.
8366         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also whether ENETRESET and
8367         ECONNABORTED are defined.
8368         * lib/errno.in.h (ENETRESET, GNULIB_defined_ENETRESET, ECONNABORTED,
8369         GNULIB_defined_ECONNABORTED): New macros.
8370         * lib/strerror-override.h (strerror_override): Test also
8371         GNULIB_defined_ENETRESET, GNULIB_defined_ECONNABORTED.
8372         * lib/strerror-override.c (strerror_override): Handle also ENETRESET,
8373         ECONNABORTED.
8374         * doc/posix-headers/errno.texi: Mention the Minix problem.
8375
8376 2011-07-31  Bruno Haible  <bruno@clisp.org>
8377
8378         Work around declaration collisions on Minix.
8379         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): If mbsinit is declared but not
8380         defined, set REPLACE_MBSINIT.
8381         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): If mbrtowc is declared but not
8382         defined, set REPLACE_MBRTOWC.
8383         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): If mbrlen is declared but not defined,
8384         set REPLACE_MBRLEN.
8385         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): If mbsrtowcs is declared but not
8386         defined, set REPLACE_MBSRTOWCS.
8387         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): If wcrtomb is declared but not
8388         defined, set REPLACE_WCRTOMB.
8389         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): If wcsrtombs is declared but not
8390         defined, set REPLACE_WCSRTOMBS.
8391
8392 2011-07-31  Bruno Haible  <bruno@clisp.org>
8393
8394         Add support for Minix with ACK compiler.
8395         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): New macro.
8396         * gnulib-tool (func_import, func_create_testdir): Emit invocation of
8397         gl_PROG_AR_RANLIB instead of AC_PROG_RANLIB.
8398
8399 2011-07-31  Bruno Haible  <bruno@clisp.org>
8400
8401         Documentation about Minix.
8402         * doc/posix-headers/*.texi: Add info about Minix 3.1.8.
8403         * doc/glibc-headers/*.texi: Likewise.
8404         * doc/posix-functions/*.texi: Likewise.
8405         * doc/glibc-functions/*.texi: Likewise.
8406
8407 2011-07-31  Bruno Haible  <bruno@clisp.org>
8408
8409         snippet/warn-on-use: Fix indentation.
8410         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix indentation.
8411
8412 2011-07-25  Jim Meyering  <meyering@redhat.com>
8413
8414         tests: test-update-copyright.sh: remove unnecessary "rm" commands
8415         * tests/test-update-copyright.sh: Remove unused rm -f $TMP.*.bak
8416         commands.
8417
8418 2011-07-27  Jim Meyering  <meyering@redhat.com>
8419
8420         maint.mk: avoid sc_prohibit_always-defined_macros failure in coreutils
8421         * top/maint.mk (gl_extract_significant_defines_): Now that
8422         SA_RESETHAND and SA_RESTART are #defined (albeit conditionally) in
8423         gnulib/lib/signal.in.h, and now that we recommend to
8424         define-if-undefined those two symbols in application code,
8425         we must filter them out of the "significant" list.
8426         This avoids a "make syntax-check" failure in coreutils.
8427
8428 2011-07-26  Eric Blake  <eblake@redhat.com>
8429
8430         warnings: add comments about previous patch
8431         * m4/absolute-header.m4: Document AS_VAR_PUSHDEF limitation.
8432         * m4/include_next.m4: Likewise.
8433         * m4/warn-on-use.m4: Likewise.
8434         * m4/warnings.m4: Likewise, and simplify use.
8435         Suggested by Stefano Lattarini.
8436
8437         include-next, warnings: support older autoconf
8438         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Use
8439         AS_VAR_PUSHDEF in a way that works with older autoconf.
8440         * m4/warnings.m4 (gl_WARN_ADD): Likewise.
8441         Reported by Daniel P. Berrange.
8442
8443 2011-07-25  Bruno Haible  <bruno@clisp.org>
8444
8445         fseek, ftell: Fix doc.
8446         * doc/posix-functions/fseek.texi: Reword statement about
8447         AC_SYS_LARGEFILE.
8448         * doc/posix-functions/ftell.texi: Likewise.
8449
8450 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
8451             Bruno Haible  <bruno@clisp.org>
8452
8453         Add dependencies to the 'largefile' module.
8454         * modules/fopen (Depends-on): Add 'largefile'.
8455         * modules/freopen (Depends-on): Likewise.
8456         * modules/fseeko (Depends-on): Likewise.
8457         * modules/ftello (Depends-on): Likewise.
8458         * modules/glob (Depends-on): Likewise.
8459         * modules/lseek (Depends-on): Likewise.
8460         * modules/lstat (Depends-on): Likewise.
8461         * modules/mkostemp (Depends-on): Likewise.
8462         * modules/mkostemps (Depends-on): Likewise.
8463         * modules/mkstemp (Depends-on): Likewise.
8464         * modules/mkstemps (Depends-on): Likewise.
8465         * modules/open (Depends-on): Likewise.
8466         * modules/openat (Depends-on): Likewise.
8467         * modules/pread (Depends-on): Likewise.
8468         * modules/pwrite (Depends-on): Likewise.
8469         * modules/scandir (Depends-on): Likewise.
8470         * modules/stat (Depends-on): Likewise.
8471         * modules/tmpfile (Depends-on): Likewise.
8472         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Do not require AC_SYS_LARGEFILE,
8473         since the containing module now depends on the largefile module.
8474         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Likewise.
8475         * doc/posix-functions/fopen.texi: Mention that the problem of 32-bit
8476         off_t is fixed by gnulib.
8477         * doc/posix-functions/freopen.texi: Likewise.
8478         * doc/posix-functions/fseeko.texi: Likewise.
8479         * doc/posix-functions/fstatat.texi: Likewise.
8480         * doc/posix-functions/ftello.texi: Likewise.
8481         * doc/posix-functions/glob.texi: Likewise.
8482         * doc/posix-functions/lseek.texi: Likewise.
8483         * doc/posix-functions/lstat.texi: Likewise.
8484         * doc/posix-functions/mkstemp.texi: Likewise.
8485         * doc/posix-functions/open.texi: Likewise.
8486         * doc/posix-functions/openat.texi: Likewise.
8487         * doc/posix-functions/pread.texi: Likewise.
8488         * doc/posix-functions/pwrite.texi: Likewise.
8489         * doc/posix-functions/scandir.texi: Likewise.
8490         * doc/posix-functions/stat.texi: Likewise.
8491         * doc/posix-functions/tmpfile.texi: Likewise.
8492         * doc/glibc-functions/mkostemp.texi: Likewise.
8493         * doc/glibc-functions/mkostemps.texi: Likewise.
8494         * doc/glibc-functions/mkstemps.texi: Likewise.
8495
8496 2011-07-25  Bruno Haible  <bruno@clisp.org>
8497
8498         fcntl: Move AC_LIBOBJ invocation to module description.
8499         * m4/fcntl.m4 (gl_REPLACE_FCNTL): Don't invoke AC_LIBOBJ.
8500         * modules/fcntl (configure.ac): Invoke AC_LIBOBJ.
8501
8502         fcntl: Remove call-in from fchdir.m4.
8503         * m4/fcntl.m4 (gl_FUNC_FCNTL): Conditionally invoke gl_TEST_FCHDIR.
8504         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_FCNTL.
8505
8506         dup3: Remove potential call-in from fchdir.m4.
8507         * m4/dup3.m4 (gl_FUNC_DUP3): Add comment about fchdir.
8508         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Remove comment about dup3.
8509
8510         dup2: Move AC_LIBOBJ invocation to module description.
8511         * m4/dup2.m4 (gl_REPLACE_DUP2): Remove macro.
8512         (gl_FUNC_DUP2): Instead of gl_REPLACE_DUP2, just set REPLACE_DUP2 to 1.
8513         Don't invoke AC_LIBOBJ.
8514         * modules/dup2 (configure.ac): Invoke AC_LIBOBJ.
8515
8516         dup2: Remove call-in from fchdir.m4.
8517         * m4/dup2.m4 (gl_FUNC_DUP2): Conditionally invoke gl_TEST_FCHDIR.
8518         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_DUP2.
8519
8520         fclose: Move AC_LIBOBJ invocation to module description.
8521         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Remove macro.
8522         (gl_FUNC_FCLOSE): Instead of gl_REPLACE_FCLOSE, just set REPLACE_FCLOSE
8523         to 1.
8524         * modules/fclose (configure.ac): Invoke AC_LIBOBJ.
8525
8526         fclose: Remove call-in from close.m4.
8527         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_CLOSE.
8528         * m4/close.m4 (gl_FUNC_CLOSE): Don't invoke gl_REPLACE_FCLOSE.
8529
8530         close: Move AC_LIBOBJ invocation to module description.
8531         * m4/close.m4 (gl_REPLACE_CLOSE): Remove macro.
8532         (gl_FUNC_CLOSE): Instead of gl_REPLACE_CLOSE, just set REPLACE_CLOSE to
8533         1.
8534         * modules/close (configure.ac): Invoke AC_LIBOBJ.
8535
8536         close: Remove call-in from fchdir.m4.
8537         * m4/close.m4 (gl_FUNC_CLOSE): Conditionally invoke gl_TEST_FCHDIR.
8538         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_CLOSE.
8539
8540         open: Move AC_LIBOBJ invocation to module description.
8541         * m4/open.m4 (gl_REPLACE_OPEN): Remove macro.
8542         (gl_FUNC_OPEN): Instead of gl_REPLACE_OPEN, just set REPLACE_OPEN to 1.
8543         * modules/open (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_OPEN.
8544
8545         open: Remove call-in from fchdir.m4.
8546         * m4/open.m4 (gl_FUNC_OPEN): Conditionally invoke gl_TEST_FCHDIR.
8547         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_OPEN.
8548
8549         fchdir: Start to remove gl_REPLACE_* idiom.
8550         * m4/fchdir.m4 (gl_TEST_FCHDIR): New macro.
8551         (gl_FUNC_FCHDIR): Invoke it.
8552
8553 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
8554
8555         * lib/ftell.c (ftell): Comment out cast.
8556
8557         close: use gl_REPLACE_FCLOSE only if defined
8558         * m4/close.m4 (gl_REPLACE_CLOSE): Use gl_REPLACE_FCLOSE only if it
8559         is defined.  The close module doesn't depend on the fclose module
8560         any more, so gl_REPLACE_CLOSE's existence cannot be assumed.  See
8561         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00392.html>.
8562         I reproduced the problem with "./gnulib-tool --test close sys_socket".
8563
8564 2011-07-24  Jim Meyering  <meyering@redhat.com>
8565
8566         test-select.h: avoid warning when using gcc's -Wmissing-declarations
8567         * tests/test-select.h (test_function): Declare as "static".
8568
8569 2011-07-24  Bruno Haible  <bruno@clisp.org>
8570
8571         doc: Mention the effects of AC_SYS_LARGEFILE.
8572         * doc/posix-functions/aio_cancel.texi: Mention the effects of AC_SYS_LARGEFILE
8573         on this function.
8574         * doc/posix-functions/aio_error.texi: Likewise.
8575         * doc/posix-functions/aio_fsync.texi: Likewise.
8576         * doc/posix-functions/aio_read.texi: Likewise.
8577         * doc/posix-functions/aio_return.texi: Likewise.
8578         * doc/posix-functions/aio_suspend.texi: Likewise.
8579         * doc/posix-functions/aio_write.texi: Likewise.
8580         * doc/posix-functions/fgetpos.texi: Likewise.
8581         * doc/posix-functions/fopen.texi: Likewise.
8582         * doc/posix-functions/freopen.texi: Likewise.
8583         * doc/posix-functions/fsetpos.texi: Likewise.
8584         * doc/posix-functions/fstatvfs.texi: Likewise.
8585         * doc/posix-functions/ftruncate.texi: Likewise.
8586         * doc/posix-functions/ftw.texi: Likewise.
8587         * doc/posix-functions/getrlimit.texi: Likewise.
8588         * doc/posix-functions/glob.texi: Likewise.
8589         * doc/posix-functions/lio_listio.texi: Likewise.
8590         * doc/posix-functions/lockf.texi: Likewise.
8591         * doc/posix-functions/mkstemp.texi: Likewise.
8592         * doc/posix-functions/mmap.texi: Likewise.
8593         * doc/posix-functions/nftw.texi: Likewise.
8594         * doc/posix-functions/openat.texi: Likewise.
8595         * doc/posix-functions/opendir.texi: Likewise.
8596         * doc/posix-functions/posix_fadvise.texi: Likewise.
8597         * doc/posix-functions/posix_fallocate.texi: Likewise.
8598         * doc/posix-functions/pread.texi: Likewise.
8599         * doc/posix-functions/pwrite.texi: Likewise.
8600         * doc/posix-functions/readdir.texi: Likewise.
8601         * doc/posix-functions/readdir_r.texi: Likewise.
8602         * doc/posix-functions/rewinddir.texi: Likewise.
8603         * doc/posix-functions/scandir.texi: Likewise.
8604         * doc/posix-functions/seekdir.texi: Likewise.
8605         * doc/posix-functions/setrlimit.texi: Likewise.
8606         * doc/posix-functions/statvfs.texi: Likewise.
8607         * doc/posix-functions/telldir.texi: Likewise.
8608         * doc/posix-functions/tmpfile.texi: Likewise.
8609         * doc/posix-functions/truncate.texi: Likewise.
8610         * doc/glibc-functions/fallocate.texi: Likewise.
8611         * doc/glibc-functions/fstatfs.texi: Likewise.
8612         * doc/glibc-functions/fts_children.texi: Likewise.
8613         * doc/glibc-functions/fts_read.texi: Likewise.
8614         * doc/glibc-functions/getdirentries.texi: Likewise.
8615         * doc/glibc-functions/mkostemp.texi: Likewise.
8616         * doc/glibc-functions/mkostemps.texi: Likewise.
8617         * doc/glibc-functions/mkstemps.texi: Likewise.
8618         * doc/glibc-functions/preadv.texi: Likewise.
8619         * doc/glibc-functions/pwritev.texi: Likewise.
8620         * doc/glibc-functions/sendfile.texi: Likewise.
8621         * doc/glibc-functions/statfs.texi: Likewise.
8622
8623 2011-07-24  Bruno Haible  <bruno@clisp.org>
8624
8625         doc: Fix typo.
8626         * doc/posix-functions/fstat.texi: Talk about fstat, not stat.
8627
8628 2011-07-24  Bruno Haible  <bruno@clisp.org>
8629
8630         doc: Mention fsusage.
8631         * doc/posix-functions/statvfs.texi: Mention the fsusage module.
8632
8633 2011-07-24  Bruno Haible  <bruno@clisp.org>
8634
8635         doc: Mention new glibc headers and functions.
8636         * doc/glibc-headers/gshadow.texi: New file.
8637         * doc/glibc-functions/endsgent.texi: New file.
8638         * doc/glibc-functions/fgetsgent.texi: New file.
8639         * doc/glibc-functions/fgetsgent_r.texi: New file.
8640         * doc/glibc-functions/getsgent.texi: New file.
8641         * doc/glibc-functions/getsgent_r.texi: New file.
8642         * doc/glibc-functions/getsgnam.texi: New file.
8643         * doc/glibc-functions/getsgnam_r.texi: New file.
8644         * doc/glibc-functions/putsgent.texi: New file.
8645         * doc/glibc-functions/setsgent.texi: New file.
8646         * doc/glibc-functions/sgetsgent.texi: New file.
8647         * doc/glibc-functions/sgetsgent_r.texi: New file.
8648         * doc/glibc-functions/malloc_info.texi: New file.
8649         * doc/glibc-functions/preadv.texi: New file.
8650         * doc/glibc-functions/pwritev.texi: New file.
8651         * doc/glibc-functions/register_printf_modifier.texi: New file.
8652         * doc/glibc-functions/register_printf_specifier.texi: New file.
8653         * doc/glibc-functions/register_printf_type.texi: New file.
8654         * doc/glibc-functions/pthread_attr_getaffinity_np.texi: New file.
8655         * doc/glibc-functions/pthread_attr_setaffinity_np.texi: New file.
8656         * doc/glibc-functions/pthread_getaffinity_np.texi: New file.
8657         * doc/glibc-functions/pthread_getname_np.texi: New file.
8658         * doc/glibc-functions/pthread_mutex_consistent_np.texi: New file.
8659         * doc/glibc-functions/pthread_mutexattr_getrobust_np.texi: New file.
8660         * doc/glibc-functions/pthread_mutexattr_setrobust_np.texi: New file.
8661         * doc/glibc-functions/pthread_setaffinity_np.texi: New file.
8662         * doc/glibc-functions/pthread_setname_np.texi: New file.
8663         * doc/glibc-functions/pthread_sigqueue.texi: New file.
8664         * doc/glibc-functions/pthread_timedjoin_np.texi: New file.
8665         * doc/glibc-functions/pthread_tryjoin_np.texi: New file.
8666         * doc/glibc-functions/qsort_r.texi: New file.
8667         * doc/glibc-functions/quick_exit.texi: New file.
8668         * doc/glibc-functions/syncfs.texi: New file.
8669         * doc/gnulib.texi: Include them.
8670         (Glibc gshadow.h, Glibc sys/uio.h): New sections.
8671         * doc/posix-functions/psiginfo.texi: Fix info about glibc version.
8672         * doc/posix-functions/pthread_mutex_consistent.texi: Likewise.
8673         * doc/posix-functions/pthread_mutexattr_getrobust.texi: Likewise.
8674         * doc/posix-functions/pthread_mutexattr_setrobust.texi: Likewise.
8675         * doc/glibc-functions/execvpe.texi: Likewise.
8676
8677 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
8678
8679         ftell: don't include <unistd.h>
8680         * lib/ftell.c: Don't include <unistd.h>.  <stdio.h> is now
8681         guaranteed to define off_t, and the ftell module depends on the
8682         stdio module.
8683
8684         ftell: do not assume wraparound signed arithmetic
8685         * lib/ftell.c: Include <limits.h>.
8686         (ftell): Don't assume wraparound signed arithmetic.
8687
8688 2011-07-24  Bruno Haible  <bruno@clisp.org>
8689
8690         close: No longer depend on module 'fclose'.
8691         * modules/close (Depends-on): Remove fclose.
8692         * NEWS: Mention the change.
8693         Suggested by Sam Steingold <sds@gnu.org>.
8694
8695 2011-07-24  Bruno Haible  <bruno@clisp.org>
8696
8697         fsusage: Enable large volume support on AIX >= 5.2.
8698         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): If 'struct statvfs64' has a
8699         larger f_blocks field than 'struct statvfs', define STAT_STATVFS64
8700         instead of STAT_STATVFS.
8701         * lib/fsusage.c (get_fs_usage) [STAT_STATVFS64]: Use statvfs64.
8702
8703         fsusage: Restore previous behaviour on AIX, Cygwin, Interix.
8704         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Enforce a 64-bit struct statvfs
8705         f_blocks field only on MacOS X.
8706
8707         fsusage: Support large volumes on glibc/Hurd, HP-UX, Solaris, MacOS X.
8708         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Require AC_SYS_LARGEFILE.
8709         * modules/fsusage (Depends-on): Add largefile.
8710
8711 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
8712
8713         * README: Modernize discussion of signed integers.
8714         Assuming overflow wraparound is no longer safe.
8715         Mention ones' complement and signed magnitude.
8716
8717 2011-07-22  Bruno Haible  <bruno@clisp.org>
8718
8719         select tests, pselect tests: Refactor.
8720         * tests/test-select.h: New file, extracted from tests/test-select.c.
8721         (select_fn): New type.
8722         (test, do_select, do_select_nowait, do_select_wait, test_tty,
8723         test_connect_first, test_accept_first, test_pair, test_socket_pair,
8724         test_pipe): Add my_select argument.
8725         (test_function): Renamed from main. Add my_select argument.
8726         * tests/test-select.c: Move most code to tests/test-select.h. Include
8727         test-select.h.
8728         * modules/select-tests (Files): Add tests/test-select.h.
8729         * tests/test-pselect.c: Include test-select.h instead of test-select.c.
8730         (my_select, main): New functions.
8731         * modules/pselect-tests (Files): Add tests/test-select.h,
8732         tests/macros.h, tests/signature.h.
8733         (Depends-on): Remove select-tests. Add dependencies of test-select.h.
8734         (configure.ac): Check for <sys/wait.h>.
8735
8736 2011-07-22  Bruno Haible  <bruno@clisp.org>
8737
8738         sys_select tests: Check the signature of FD_*.
8739         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Move
8740         signature tests from here...
8741         * tests/test-sys_select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): ... to
8742         here.
8743         * modules/sys_select-tests (Files): Add tests/signature.h.
8744
8745 2011-07-22  Paul Eggert  <eggert@cs.ucla.edu>
8746
8747         largefile: new module, replacing large-inode
8748         Pádraig Brady suggested this in        <http://debbugs.gnu.org/9140#20>.
8749         * MODULES.html.sh: Add largefile, remove large-inode.
8750         * modules/largefile, m4/largefile.m4: New files.
8751         * modules/large-inode, m4/large-inode.m4: Remove.
8752
8753         fsusage: port to MacOS X 10.7 with 4 TiB file systems
8754         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Reject statvfs
8755         implementations that use only 32 bits to count blocks.
8756         On typical hosts with 1024-byte blocks, this fails with file
8757         systems as small as 4 TiB.  Problem reported by Herb Wartens
8758         <http://debbugs.gnu.org/9140> and this should also fix a similar
8759         problem reported by Tim Spriggs <http://debbugs.gnu.org/7355>.
8760
8761         large-inode: New module
8762         * MODULES.html.sh: Add it.
8763         * modules/large-inode, m4/large-inode.m4: New files.
8764
8765         extensions: Enable extensions on MacOS X 10.5 and later.
8766         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _DARWIN_C_SOURCE.
8767
8768 2011-07-22  Kamil Dudka  <kdudka@redhat.com>
8769
8770         file-has-acl: use acl_extended_file_nofollow if available
8771         * lib/acl-internal.h (HAVE_ACL_EXTENDED_FILE): New macro.
8772         (acl_extended_file): New macro.
8773         * lib/file-has-acl.c (file_has_acl): Use acl_extended_file_nofollow.
8774         * m4/acl.m4 (gl_FUNC_ACL): Check for acl_extended_file_nofollow.
8775
8776 2011-07-21  Bruno Haible  <bruno@clisp.org>
8777
8778         Declare system functions in a way that works with C++.
8779         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR) [C++]: In the test program,
8780         declare fdopendir as extern "C".
8781         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS) [C++]: In the test program,
8782         declare frexpl as extern "C".
8783         * m4/getaddrinfo.m4 (gl_GETADDRINFO) [C++]: In the test program,
8784         declare gai_strerror as extern "C".
8785         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME) [C++]: In the test
8786         programs, declare gai_strerror as extern "C".
8787         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R) [C++]: In the test program,
8788         declare getlogin_r as extern "C".
8789         * m4/ioctl.m4 (gl_FUNC_IOCTL) [C++]: In the test program, declare ioctl
8790         as extern "C".
8791         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS) [C++]: In the test program,
8792         declare ldexpl as extern "C".
8793         * m4/logb.m4 (gl_FUNC_LOGB) [C++]: In the test programs, declare logb
8794         as extern "C".
8795         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS) [C++]: In the test
8796         program, declare getmntinfo as extern "C".
8797         * m4/stpncpy.m4 (gl_FUNC_STPNCPY) [C++]: In the test program, declare
8798         stpncpy as extern "C".
8799         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS) [C++]: In the test
8800         program, declare __xpg_strerror_r as extern "C".
8801         * m4/strndup.m4 (gl_FUNC_STRNDUP) [C++]: In the test program, declare
8802         strndup as extern "C".
8803         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT) [C++]: In the test program,
8804         declare memset and bzero as extern "C".
8805         Reported by Sam Steingold <sds@gnu.org>.
8806
8807 2011-07-12  Jim Meyering  <meyering@redhat.com>
8808
8809         maint.mk: prohibit inclusion of "verify.h" without use
8810         * top/maint.mk (sc_prohibit_verify_without_use): New rule.
8811
8812 2011-07-19  Pádraig Brady  <P@draigBrady.com>
8813
8814         timer-time: A new module to check for timer_settime()
8815         * m4/timer_time.m4: Check for the posix function.
8816         * modules/timer-time: Add the new module.
8817         * MODULES.html.sh (Compat checks for POSIX:2008 functions):
8818         Mention it.
8819
8820 2011-07-19  Paul Eggert  <eggert@cs.ucla.edu>
8821             Bruno Haible  <bruno@clisp.org>
8822
8823         pthread_sigmask: assume POSIX threads if --avoid=threadlib
8824         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): If gl_THREADLIB is
8825         not defined, assume POSIX threads and look for pthread_sigmask in
8826         $LIBS, without changing $CPPFLAGS.
8827
8828 2011-07-19  Bruno Haible  <bruno@clisp.org>
8829
8830         strstr: Update cross-compilation guess.
8831         * m4/strstr.m4 (gl_FUNC_STRSTR): On glibc > 2.12 with x86 or x86_64
8832         CPUs, guess no, in view of glibc
8833         BZ #12100 <http://sourceware.org/bugzilla/show_bug.cgi?id=12100>.
8834         Suggested by Eric Blake. Reported by Reuben Thomas.
8835
8836 2011-07-19  Pádraig Brady  <P@draigBrady.com>
8837
8838         getopt-gnu: suppress core dumps from detection code
8839         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Use the nocrash module
8840         to suppress core dumps that may well occur on glibc systems.
8841         * modules/getopt-gnu: Depend on nocrash.
8842
8843 2011-07-16  Paul Eggert  <eggert@cs.ucla.edu>
8844
8845         pthread_sigmask: ensure usleep is declared
8846         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_UNBLOCK_BUG]:
8847         Include <unistd.h>, to declare usleep.  Needed on Solaris 8,
8848
8849 2011-07-15  Paul Eggert  <eggert@cs.ucla.edu>
8850
8851         doc: Document NonStop portability issues.
8852         * doc/posix-functions/sigaction.texi (sigaction):
8853         * doc/posix-headers/signal.texi (signal.h):
8854         Document NonStop.  See Joachim Schmitz in
8855         http://lists.gnu.org/archive/html/bug-coreutils/2011-07/msg00062.html
8856
8857 2011-07-15  Bruno Haible  <bruno@clisp.org>
8858
8859         ffsl, ffsll: Avoid unportable behaviour.
8860         * lib/ffsl.h (FUNC): Use 'unsigned int' instead of 'int'.
8861
8862 2011-07-15  Bruno Haible  <bruno@clisp.org>
8863
8864         ffs: More tests.
8865         * tests/test-ffs.c (NBITS): New macro.
8866         (main): Add more tests.
8867         * tests/test-ffsl.c (NBITS): New macro.
8868         (main): Add more tests.
8869         * tests/test-ffsll.c (NBITS): New macro.
8870         (main): Add more tests.
8871
8872 2011-07-15  Eric Blake  <eblake@redhat.com>
8873
8874         ffsl, ffsll: new modules
8875         * modules/ffsl: New file.
8876         * modules/ffsll: Likewise.
8877         * m4/ffsl.m4: Likewise.
8878         * m4/ffsll.m4: Likewise.
8879         * lib/ffsl.c: Likewise.
8880         * lib/ffsl.h: Likewise.
8881         * lib/ffsll.c: Likewise.
8882         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY)
8883         (gl_HEADER_STRING_H_DEFAULTS): Add defaults.
8884         * modules/string (Makefile.am): Substitute witnesses.
8885         * lib/strings.in.h (ffsl, ffsll): Declare.
8886         * modules/ffsl-tests: New test file.
8887         * modules/ffsll-tests: Likewise.
8888         * tests/test-ffsl.c: Likewise.
8889         * tests/test-ffsll.c: Likewise.
8890         * MODULES.html.sh (Integer arithmetic functions): Mention it.
8891         * doc/glibc-functions/ffsl.texi (ffsl): Likewise.
8892         * doc/glibc-functions/ffsll.texi (ffsll): Likewise.
8893
8894         ffs: fix m4 prerequisite
8895         * m4/ffs.m4 (gl_FUNC_FFS): Require strings.h defaults.
8896
8897         ffs: avoid undefined behavior
8898         * lib/ffs.c (ffs): Provide fallback for non-32-bit int.
8899         * tests/test-ffs.c (naive, main): Avoid signed shifts.
8900         Reported by Bruno Haible.
8901
8902 2011-07-12  Bruno Haible  <bruno@clisp.org>
8903
8904         pthread_sigmask: Rely on module 'threadlib'.
8905         * modules/pthread_sigmask (Depends-on): Add threadlib.
8906         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Assume gl_THREADLIB
8907         is defined.
8908
8909 2011-07-12  Bruno Haible  <bruno@clisp.org>
8910
8911         regex: Depend on module 'strcase'.
8912         * modules/regex (Depends-on): Add strcase, for strcasecmp().
8913
8914 2011-07-12  Jim Meyering  <meyering@redhat.com>
8915
8916         warn-on-use: fix typo in file name
8917         * modules/snippet/warn-on-use (Files): Correct file name:
8918         include /snippet/ component in "build-aux/snippet/warn-on-use.h".
8919
8920 2011-07-12  Bruno Haible  <bruno@clisp.org>
8921
8922         strings: Document module.
8923         * doc/posix-headers/strings.texi: Mention module 'strings'.
8924
8925 2011-07-12  Bruno Haible  <bruno@clisp.org>
8926
8927         Rename module '_Noreturn' to 'snippet/_Noreturn'.
8928         * modules/snippet/_Noreturn: Renamed from modules/_Noreturn.
8929         (Files, Makefile.am): Update.
8930         * build-aux/snippet/_Noreturn.h: Renamed from build-aux/_Noreturn.h.
8931         * modules/stdlib (Depends-on): Update.
8932
8933 2011-07-12  Bruno Haible  <bruno@clisp.org>
8934
8935         * NEWS: Mention the changes.
8936
8937         Rename module 'warn-on-use' to 'snippet/warn-on-use'.
8938         * modules/snippet/warn-on-use: Renamed from modules/warn-on-use.
8939         (Files, Makefile.am): Update.
8940         * build-aux/snippet/warn-on-use.h: Renamed from build-aux/warn-on-use.h.
8941         * modules/arpa_inet (Depends-on): Update.
8942         * modules/ctype (Depends-on): Update.
8943         * modules/dirent (Depends-on): Update.
8944         * modules/fcntl-h (Depends-on): Update.
8945         * modules/glob (Depends-on): Update.
8946         * modules/iconv-h (Depends-on): Update.
8947         * modules/inttypes-incomplete (Depends-on): Update.
8948         * modules/langinfo (Depends-on): Update.
8949         * modules/locale (Depends-on): Update.
8950         * modules/math (Depends-on): Update.
8951         * modules/netdb (Depends-on): Update.
8952         * modules/poll-h (Depends-on): Update.
8953         * modules/pty (Depends-on): Update.
8954         * modules/search (Depends-on): Update.
8955         * modules/signal (Depends-on): Update.
8956         * modules/spawn (Depends-on): Update.
8957         * modules/stdio (Depends-on): Update.
8958         * modules/stdlib (Depends-on): Update.
8959         * modules/string (Depends-on): Update.
8960         * modules/strings (Depends-on): Update.
8961         * modules/sys_file (Depends-on): Update.
8962         * modules/sys_ioctl (Depends-on): Update.
8963         * modules/sys_select (Depends-on): Update.
8964         * modules/sys_socket (Depends-on): Update.
8965         * modules/sys_stat (Depends-on): Update.
8966         * modules/sys_time (Depends-on): Update.
8967         * modules/sys_times (Depends-on): Update.
8968         * modules/sys_utsname (Depends-on): Update.
8969         * modules/sys_wait (Depends-on): Update.
8970         * modules/termios (Depends-on): Update.
8971         * modules/time (Depends-on): Update.
8972         * modules/unistd (Depends-on): Update.
8973         * modules/wchar (Depends-on): Update.
8974         * modules/wctype-h (Depends-on): Update.
8975         * MODULES.html.sh (Support for building libraries and executables):
8976         Update.
8977
8978         Rename module 'unused-parameter' to 'snippet/unused-parameter'.
8979         * modules/snippet/unused-parameter: Renamed from
8980         modules/unused-parameter.
8981         (Files, Makefile.am): Update.
8982         * build-aux/snippet/unused-parameter.h: Renamed from
8983         build-aux/unused-parameter.h.
8984         * modules/selinux-h (Depends-on): Update.
8985         * modules/unistr/base (Depends-on): Update.
8986         * MODULES.html.sh (Core language properties): Update.
8987
8988         Rename module 'link-warning' to 'snippet/link-warning'.
8989         * modules/snippet/link-warning: Renamed from modules/link-warning.
8990         (Files, Makefile.am): Update.
8991         * build-aux/snippet/link-warning.h: Renamed from
8992         build-aux/link-warning.h.
8993         * MODULES.html.sh (Support for building libraries and executables):
8994         Update.
8995
8996         Rename module 'c++defs' to 'snippet/c++defs'.
8997         * modules/snippet/c++defs: Renamed from modules/c++defs.
8998         (Files, Makefile.am): Update.
8999         * build-aux/snippet/c++defs.h: Renamed from build-aux/c++defs.h.
9000         * modules/arpa_inet (Depends-on): Update.
9001         * modules/ctype (Depends-on): Update.
9002         * modules/dirent (Depends-on): Update.
9003         * modules/fcntl-h (Depends-on): Update.
9004         * modules/glob (Depends-on): Update.
9005         * modules/iconv-h (Depends-on): Update.
9006         * modules/langinfo (Depends-on): Update.
9007         * modules/locale (Depends-on): Update.
9008         * modules/math (Depends-on): Update.
9009         * modules/netdb (Depends-on): Update.
9010         * modules/poll-h (Depends-on): Update.
9011         * modules/pty (Depends-on): Update.
9012         * modules/search (Depends-on): Update.
9013         * modules/signal (Depends-on): Update.
9014         * modules/spawn (Depends-on): Update.
9015         * modules/stdio (Depends-on): Update.
9016         * modules/stdlib (Depends-on): Update.
9017         * modules/string (Depends-on): Update.
9018         * modules/strings (Depends-on): Update.
9019         * modules/sys_ioctl (Depends-on): Update.
9020         * modules/sys_select (Depends-on): Update.
9021         * modules/sys_socket (Depends-on): Update.
9022         * modules/sys_stat (Depends-on): Update.
9023         * modules/sys_time (Depends-on): Update.
9024         * modules/sys_wait (Depends-on): Update.
9025         * modules/termios (Depends-on): Update.
9026         * modules/time (Depends-on): Update.
9027         * modules/unistd (Depends-on): Update.
9028         * modules/wchar (Depends-on): Update.
9029         * modules/wctype-h (Depends-on): Update.
9030
9031         Rename module 'arg-nonnull' to 'snippet/arg-nonnull'.
9032         * modules/snippet/arg-nonnull: Renamed from modules/arg-nonnull.
9033         (Files, Makefile.am): Update.
9034         * build-aux/snippet/arg-nonnull.h: Renamed from build-aux/arg-nonnull.h.
9035         * modules/argv-iter (Depends-on): Update.
9036         * modules/arpa_inet (Depends-on): Update.
9037         * modules/dirent (Depends-on): Update.
9038         * modules/fcntl-h (Depends-on): Update.
9039         * modules/fnmatch (Depends-on): Update.
9040         * modules/getopt-posix (Depends-on): Update.
9041         * modules/glob (Depends-on): Update.
9042         * modules/iconv-h (Depends-on): Update.
9043         * modules/inttypes-incomplete (Depends-on): Update.
9044         * modules/locale (Depends-on): Update.
9045         * modules/math (Depends-on): Update.
9046         * modules/netdb (Depends-on): Update.
9047         * modules/search (Depends-on): Update.
9048         * modules/signal (Depends-on): Update.
9049         * modules/spawn (Depends-on): Update.
9050         * modules/stdio (Depends-on): Update.
9051         * modules/stdlib (Depends-on): Update.
9052         * modules/string (Depends-on): Update.
9053         * modules/strings (Depends-on): Update.
9054         * modules/sys_socket (Depends-on): Update.
9055         * modules/sys_stat (Depends-on): Update.
9056         * modules/sys_time (Depends-on): Update.
9057         * modules/sys_times (Depends-on): Update.
9058         * modules/sys_utsname (Depends-on): Update.
9059         * modules/time (Depends-on): Update.
9060         * modules/unistd (Depends-on): Update.
9061         * modules/wchar (Depends-on): Update.
9062         * MODULES.html.sh (Support for building libraries and executables):
9063         Update.
9064
9065 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
9066
9067         Improvements on _Noreturn and related modules.
9068
9069         modules/_Exit-tests: test _Noreturn too
9070         * tests/test-_Exit.c (MTA, Charlie): New functions, taken from the
9071         old tests/test-stdnoreturn.c.  This tests the _Noreturn keyword a bit.
9072         (main): Use them.
9073
9074         stdnoreturn, stdnoreturn-tests: remove modules
9075         They're not needed here and a bit premature for use elsewhere.  See
9076         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00209.html>.
9077         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
9078         * tests/test-stdnoreturn.c: Remove files.
9079         * MODULES.html.sh (_Noreturn <stdnoreturn.h>): Remove section.
9080         * lib/openat.h, lib/sigpipe-die.h, lib/xalloc.h, lib/xmemdup0.h:
9081         * lib/xstrtol.h: Use _Noreturn rather than including <stdnoreturn.h>
9082         and using noreturn.
9083         * modules/openat, modules/sigpipe-die, modules/xalloc:
9084         * modules/xmemdup0, modules/xstrtol:
9085         Remove dependency on stdnoreturn.
9086
9087         _Noreturn: Ignore __STDC_VERSION__; observe _MSC_VER.
9088         * build-aux/_Noreturn.h (_Noreturn): Ignore __STDC_VERSION__.
9089         Reparenthesize to avoid GCC warning.
9090         Support Microsoft's syntax.
9091         * m4/gnulib-common.m4 (gl_COMMON_BODY): Likewise.
9092
9093         _Noreturn-tests: remove module
9094         * modules/_Noreturn-tests: Remove.
9095         * modules/stdnoreturn-tests (Files): Remove tests/test-_Noreturn.c.
9096         * tests/test-_Noreturn.c: Remove.
9097         * tests/test-stdnoreturn.c: Merge from the old
9098         tests/test-_Noreturn.c, testing both noreturn and _Noreturn.
9099
9100 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
9101
9102         _Noreturn, stdnoreturn, and related modules.
9103
9104         * top/maint.mk: Adjust to new noreturn support.
9105         (gl_extract_significant_defines_): Omit pattern ATTRIBUTE_NORETURN.
9106         (def_sym_regex): Do not remove ATTRIBUTE_NORETURN.
9107
9108         xalloc: use stdnoreturn.h
9109         * lib/xalloc.h: Include <stdnoreturn.h>.
9110         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
9111         * modules/xalloc (Depends-on): Add stdnoreturn.
9112
9113         xstrtol: use stdnoreturn.h
9114         * lib/xstrtol.h: Include <stdnoreturn.h>.
9115         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
9116         * modules/xstrtol (Depends-on): Add stdnoreturn.
9117
9118         xmemdup0: use stdnoreturn.h
9119         * lib/xmemdup0.h: Include <stdnoreturn.h>.
9120         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
9121         * modules/xmemdup0 (Depends-on): Add stdnoreturn.
9122
9123         sigpipe-die: use stdnoreturn.h
9124         * lib/sigpipe-die.h: Include <stdnoreturn.h>.
9125         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
9126         * modules/sigpipe-die (Depends-on): Add stdnoreturn.
9127
9128         openat: use stdnoreturn.h
9129         * lib/openat.h: Include <stdnoreturn.h>.
9130         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
9131         * modules/openat (Depends-on): Add stdnoreturn.
9132
9133         * lib/openat-die.c (openat_save_fail): Modernize comment.
9134
9135         * lib/xalloc-die.c (xalloc_die): Modernize comment.
9136
9137         * lib/glthread/thread.h: Modernize comment.
9138
9139         obstack: use _Noreturn
9140         * lib/obstack.c (__attribute__): Remove macro.
9141         (print_and_abort): Use _Noreturn.
9142
9143         c-stack: use _Noreturn
9144         * lib/c-stack.c (die, overflow_handler, segv_handler):
9145         Use _Noreturn rather than __attribute__((noreturn)).
9146
9147         argmatch-tests, exclude_tests: use _Noreturn
9148         * tests/test-argmatch.c, tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN):
9149         Remove.
9150         (ARGMATCH_DIE_DECL): Use _Noreturn instead.
9151
9152         stdlib: use _Noreturn
9153         * lib/stdlib.in.h (_GL_ATTRIBUTE_NORETURN): Remove.
9154         (_Exit): Use _Noreturn rather than _GL_ATTRIBUTE_NORETURN.
9155         * modules/stdlib (Depends-on): Add _Noreturn.
9156         (stdlib.h): Depend on $(_NORETURN_H), and copy it in.
9157
9158         stdnoreturn-tests: new module
9159         * modules/stdnoreturn-tests, tests/test-stdnoreturn.c: New files.
9160
9161         stdnoreturn: new module
9162         * MODULES.html.sh (Noreturn <stdnoreturn.h>): New section.
9163         * m4/stdnoreturn.m4, modules/stdnoreturn: New files.
9164
9165         _Noreturn-tests: new module
9166         * modules/_Noreturn-tests, tests/test-_Noreturn.c: New files.
9167
9168         _Noreturn: new module
9169         * MODULES.html.sh (Support for systems lacking draft ISO C 1X):
9170         New section, mentioning it.
9171         * build-aux/_Noreturn.h, modules/_Noreturn: New files.
9172
9173         * m4/gnulib-common.m4 (gl_COMMON_BODY): Add _Noreturn.
9174
9175 2011-07-11  Eric Blake  <eblake@redhat.com>
9176
9177         ffs: new module
9178         * modules/ffs: New file.
9179         * m4/ffs.m4: Likewise.
9180         * lib/ffs.c: Likewise.
9181         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_DEFAULTS): Add default.
9182         * modules/strings (Makefile.am): Substitute witness.
9183         (Depends-on): Add c++defs.
9184         * lib/strings.in.h (ffs): Declare.
9185         * modules/ffs-tests: New test file.
9186         * tests/test-ffs.c: Test new module.
9187         * MODULES.html.sh (Integer arithmetic functions): Mention it.
9188         * doc/posix-functions/ffs.texi (ffs): Likewise.
9189
9190         regex: avoid compiler warning
9191         * lib/regex.c (includes): Include <strings.h>, for use of
9192         strcasecmp in regcomp.c.
9193         Reported by Joachim Schmitz.
9194
9195 2011-07-09  Paul Eggert  <eggert@cs.ucla.edu>
9196
9197         stdint: respect system's intmax_t if INTMAX_MAX
9198         * lib/stdint.in.h (intmax_t, uintmax_t): If the system defines
9199         INTMAX_MAX, assume its intmax_t is OK.  Similarly for and
9200         uintmax_t.  This is for some Mac OS X builds, where intmax_t is
9201         long but int64_t is long long, and where we will clash with the
9202         system intmax_t if we override it.  See
9203         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00160.html>.
9204         (INTMAX_C, UINTMAX_C): For consistency, respect the system's
9205         INTMAX_C if INTMAX_MAX and INTMAX_C are both defined, and
9206         similarly for UINTMAX_C.
9207
9208 2011-07-08  Bruno Haible  <bruno@clisp.org>
9209
9210         pthread_sigmask tests: Avoid a compiler warning.
9211         * tests/test-pthread_sigmask1.c (main): Complain if system() returns
9212         non-zero.
9213
9214         sigprocmask tests: A better way to avoid a compiler warning.
9215         * tests/test-sigprocmask.c: Don't include "ignore-value.h".
9216         (main): Complain if system() returns non-zero.
9217         * modules/sigprocmask-tests (Depends-on): Remove ignore-value.
9218
9219 2011-07-08  Bruno Haible  <bruno@clisp.org>
9220
9221         pthread_sigmask: Work around IRIX bug.
9222         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the IRIX
9223         bug.
9224         * lib/pthread_sigmask.c (pthread_sigmask): usleep for some time when
9225         there may be unblocked pending signals.
9226         * doc/posix-functions/pthread_sigmask.texi: Mention the IRIX bug.
9227
9228 2011-07-08  Bruno Haible  <bruno@clisp.org>
9229
9230         pthread_sigmask: Work around Cygwin bug.
9231         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the Cygwin
9232         bug.
9233         * lib/pthread_sigmask.c (pthread_sigmask): Fix the return value from
9234         the system's pthread_sigmask function.
9235         * doc/posix-functions/pthread_sigmask.texi: Mention the Cygwin bug.
9236
9237 2011-07-08  Bruno Haible  <bruno@clisp.org>
9238
9239         pthread_sigmask: Work around bug in single-threaded implementation.
9240         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the
9241         FreeBSD, HP-UX, Solaris bug.
9242         (gl_PREREQ_PTHREAD_SIGMASK): New macro.
9243         * lib/pthread_sigmask.c: Include <stddef.h>.
9244         (pthread_sigmask): If HAVE_PTHREAD_SIGMASK, define as a wrapper around
9245         the system's pthread_sigmask function.
9246         * modules/pthread_sigmask (configure.ac): Invoke
9247         gl_PREREQ_PTHREAD_SIGMASK.
9248         * doc/posix-functions/pthread_sigmask.texi: Mention bug on FreeBSD,
9249         HP-UX, Solaris.
9250
9251 2011-07-08  Eric Blake  <eblake@redhat.com>
9252
9253         test-sigprocmask: avoid compiler warning
9254         * modules/sigprocmask-tests (Depends-on): Add ignore-value.
9255         * tests/test-sigprocmask.c (main): Use it to silence warning.
9256         Reported by Jim Meyering.
9257
9258         test-snprintf: avoid compiler warning
9259         * tests/test-snprintf.c (main): Avoid shadowed declaration.
9260         * tests/test-vsnprintf.c (main): Likewise.
9261         Reported by Jim Meyering.
9262
9263 2011-07-08  Bruno Haible  <bruno@clisp.org>
9264
9265         Tests for module 'pthread_sigmask'.
9266         * modules/pthread_sigmask-tests: New file.
9267         * tests/test-pthread_sigmask1.c: New file, based on
9268         tests/test-sigprocmask.c.
9269         * tests/test-pthread_sigmask2.c: New file.
9270
9271 2011-07-08  Jim Meyering  <meyering@redhat.com>
9272
9273         test-getopt.h: avoid warning about an unused variable
9274         * tests/test-getopt.h (test_getopt): Remove unused variable, "c".
9275
9276 2011-07-07  Jim Meyering  <meyering@redhat.com>
9277
9278         maint: reduce list of files exempt from sc_prohibit_leading_TABs
9279         * Makefile (sc_prohibit_leading_TABs): Don't exempt m4/po.m4,
9280         now that it no longer contains leading TABs.
9281         Remove unused "url=FIXME" statement.
9282
9283 2011-07-08  Paul Eggert  <eggert@cs.ucla.edu>
9284
9285         pthread_sigmask: Assume POSIX when not gl_THREADLIB.
9286         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
9287         When gl_THREADLIB is not in use, assume that the POSIX sematics
9288         are desired.  This is better for Emacs, which uses POSIX semantics
9289         on GNUish and/or POSIXish platforms, and does not use threads at
9290         all otherwise.
9291
9292         pthread_sigmask: fix typo when testing for libraries
9293         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
9294         AC_LINK_IFELSE, not AC_COMPILE_IFELSE.
9295
9296 2011-07-08  Eric Blake  <eblake@redhat.com>
9297
9298         fts: introduce FTS_NOATIME
9299         * lib/fts_.h (FTS_NOATIME): New bit flag.
9300         (FTS_OPTIONMASK): Adjust.
9301         * lib/fts.c (diropen, fts_open, fts_build): Honor it.
9302         (fd_ring_check): Debug code unconditionally uses O_NOATIME.
9303
9304 2011-07-08  Bruno Haible  <bruno@clisp.org>
9305
9306         Tests for module 'thread'.
9307         * modules/thread-tests: New file.
9308         * tests/test-thread_self.c: New file.
9309         * tests/test-thread_create.cc: New file.
9310
9311 2011-07-08  Bruno Haible  <bruno@clisp.org>
9312
9313         thread: Avoid gcc warnings when using gl_thread_self().
9314         * lib/glthread/thread.h (gl_thread_self): Return a pthread_t, not a
9315         'void *'.
9316         (gl_thread_self_pointer): Update.
9317
9318 2011-07-07  Bruno Haible  <bruno@clisp.org>
9319
9320         signal-c++-tests: Check declaration of pthread_sigmask.
9321         * tests/test-signal-c++.cc: Check declaration of pthread_sigmask.
9322         * modules/signal-c++-tests (Makefile.am): Link test-signal-c++ against
9323         $(LIB_PTHREAD_SIGMASK).
9324
9325 2011-07-07  Bruno Haible  <bruno@clisp.org>
9326
9327         pthread_sigmask: Fix link requirements on OSF/1 5.1 and with pth.
9328         * lib/signal.in.h (pthread_sigmask): Override if
9329         REPLACE_PTHREAD_SIGMASK is 1.
9330         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
9331         REPLACE_PTHREAD_SIGMASK.
9332         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Set also
9333         REPLACE_PTHREAD_SIGMASK. Set and substitute LIB_PTHREAD_SIGMASK.
9334         * modules/signal (Makefile.am): Substitute REPLACE_PTHREAD_SIGMASK.
9335         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
9336         (Link): Set to $(LIB_PTHREAD_SIGMASK), not $(LIBMULTITHREAD).
9337
9338 2011-07-07  Bruno Haible  <bruno@clisp.org>
9339
9340         pthread_sigmask: Ensure declaration in <signal.h>.
9341         * lib/signal.in.h: On MacOS X, FreeBSD, OpenBSD, OSF/1, Solaris 2.6,
9342         include <pthread.h>.
9343         * doc/posix-functions/pthread_sigmask.texi: Mention the header file
9344         problem.
9345
9346 2011-07-07  Bruno Haible  <bruno@clisp.org>
9347
9348         pthread_sigmask: Document the module.
9349         * doc/posix-functions/pthread_sigmask.texi: Mention the new module.
9350
9351 2011-07-07  Bruno Haible  <bruno@clisp.org>
9352
9353         pthread_sigmask: Follow gnulib conventions.
9354         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Renamed from
9355         gl_PTHREAD_SIGMASK.
9356         * modules/pthread_sigmask (configure.ac): Update.
9357
9358 2011-07-07  Bruno Haible  <bruno@clisp.org>
9359
9360         pthread_sigmask: Make declaration C++ safe.
9361         * lib/signal.in.h: In two special conditions, just do an #include_next.
9362         (pthread_sigmask): Test HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
9363         Invoke _GL_CXXALIAS_SYS and _GL_CXXALIASWARN.
9364         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
9365         HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
9366         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Set HAVE_PTHREAD_SIGMASK,
9367         not REPLACE_PTHREAD_MASK.
9368         * modules/signal (Makefile.am): Substitute HAVE_PTHREAD_SIGMASK,
9369         not REPLACE_PTHREAD_MASK.
9370         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
9371
9372 2011-07-07  Bruno Haible  <bruno@clisp.org>
9373
9374         pthread_sigmask: Fix return value.
9375         * lib/signal.in.h (pthread_sigmask): Declare. Don't define as a macro.
9376         * lib/pthread_sigmask.c: New file.
9377         * modules/pthread_sigmask (Files): Add it.
9378         (configure.ac): Invoke AC_LIBOBJ.
9379
9380 2011-07-07  Eric Blake  <eblake@redhat.com>
9381
9382         getopt: more portable argv creation
9383         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Rather than casting away
9384         const, use char arrays rather than strings.
9385         Suggested by Paul Eggert.
9386
9387 2011-07-07  Bruno Haible  <bruno@clisp.org>
9388
9389         Tests for module 'sigprocmask'.
9390         * modules/sigprocmask-tests: New file.
9391         * tests/test-sigprocmask.c: New file.
9392
9393 2011-07-07  Bruno Haible  <bruno@clisp.org>
9394
9395         float tests: Tweak.
9396         * tests/test-float.c (main): Tweak skip message.
9397
9398 2011-07-07  Eric Blake  <eblake@redhat.com>
9399
9400         getopt: avoid compiler warning during configure
9401         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Avoid problems with
9402         assigning string literals to non-const pointer.
9403
9404         getopt-gnu: avoid crash in glibc getopt
9405         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Detect the problem.
9406         * tests/test-getopt.h (test_getopt): Enhance test.
9407         * tests/test-getopt_long.h (test_getopt_long): Likewise.
9408         * doc/posix-functions/getopt.texi (getopt): Document it.
9409         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
9410         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
9411         Likewise.
9412
9413 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
9414
9415         getopt: handle W; without long options in getopt [BZ #12922]
9416         * lib/getopt.c (_getopt_internal_r): When "W;" is in short options
9417         but no long options are defined, just return 'W'.
9418
9419 2011-07-07  Bruno Haible  <bruno@clisp.org>
9420
9421         Avoid literal tabs.
9422         * m4/po,m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Use a shell
9423         variable containing a tab instead of a literal tab.
9424         Reported by Jim Meyering.
9425
9426 2011-07-07  Bruno Haible  <bruno@clisp.org>
9427
9428         Comments.
9429         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Update comments about mingw.
9430
9431 2011-07-06  Bruno Haible  <bruno@clisp.org>
9432
9433         sys_select: Fix compilation error on mingw, introduced on 2011-06-30.
9434         * lib/sys_select.in.h: Don't include <sys/socket.h>. Instead, include
9435         <winsock2.h>.
9436         (rpl_fd_isset, FD_ISSET): New definitions, copied from
9437         lib/sys_socket.in.h.
9438         (close, gethostname): Hide declarations from <winsock2.h>.
9439         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
9440         listen, recv, send, recvfrom, sendto, setsockopt, shutdown): Likewise.
9441         * lib/sys_socket.in.h (close, gethostname): Tweak indentation.
9442         (select): Don't override if gnulib's <sys/select.h> was already
9443         included.
9444         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
9445         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
9446         setsockopt, shutdown, select): Tweak indentation.
9447
9448 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
9449
9450         * modules/pthread_sigmask (configure.ac): gl_SIGNAL_MODULE_INDICATOR
9451         and not gl_SYS_SELECT_MODULE_INDICATOR, fixing a typo exposed
9452         in an application that does not use the sys_select module.
9453
9454 2011-07-06  Erik Faye-Lund  <kusmabite@gmail.com>
9455
9456         poll: do not return 0 on timeout=-1
9457         * lib/poll.c: Loop with yield if no events occured
9458
9459 2011-07-06  Eric Blake  <eblake@redhat.com>
9460
9461         pthread_sigmask: always replace when not using pthread
9462         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Force sigprocmask
9463         replacement when using some threading other than pthread.  Fix
9464         logic bug.
9465
9466 2011-07-06  Bruno Haible  <bruno@clisp.org>
9467
9468         Comments.
9469         * m4/printf.m4: Update comments about mingw.
9470
9471 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
9472
9473         sys_select: define sigset_t more portably
9474         * lib/sys_select.in.h: Always include <sys/types.h>, since
9475         we now need sigset_t and mingw defines it there.
9476         Include <signal.h> before split inclusion guard, to avoid
9477         mishaps on Solaris, whose <signal.h> eventually includes us.
9478         * m4/signal_h.m4 (gl_SIGNAL_H): Require gl_CHECK_TYPE_SIGSET_T.
9479         (gl_CHECK_TYPE_SIGSET_T): New macro, most of the contents of
9480         which come from ...
9481         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
9482         gl_CHECK_TYPE_SIGSET_T.
9483         (gl_PREREQ_SIGPROCMASK): Now a no-op, since gl_CHECK_TYPE_SIGSET_T
9484         does the real work.
9485         * modules/sys_select (Depends-on): Add 'signal'.
9486
9487         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Poison pselect.
9488         Suggested by Bruno Haible.
9489
9490         pselect: Use pthread_sigmask, not sigprocmask.
9491         * lib/pselect.c (pselect): Use pthread_sigmask, as it supports
9492         multithreaded apps better than sigprocmask does.
9493         * modules/pselect (Depends-on): Depend on pthread_sigmask, not
9494         sigprocmask directly.
9495
9496 2011-07-05  Paul Eggert  <eggert@cs.ucla.edu>
9497
9498         * lib/pselect.c (pselect): Use plain name, without "rpl_".
9499         Don't #undef,  since we don't need any underlying pselect.
9500         * modules/pselect (configure.ac): Use our pselect.o if !HAVE_PSELECT.
9501         (Depends-on): Add select.
9502         (Link): Add $(LIBSOCKET).
9503         These changes suggested by Bruno Haible.
9504
9505         pselect: document better
9506         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
9507         * doc/posix-functions/pselect.texi (pselect): Document new module.
9508
9509         pthread_sigmask: new module
9510         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
9511         * doc/posix-functions/pthread_sigmask.texi: Document new module.
9512         * lib/signal.in.h (pthread_sigmask): Arrange for replacement.
9513         This is done only as a macro; I don't know how well that'll
9514         work for C++.  Move <sys/types.h> include before the include_next,
9515         to avoid mishap on Solaris.
9516         * m4/signal_h.m4 (gl_SIGNAL_H, gl_SIGNAL_H_DEFAULTS): Check for it.
9517         * modules/signal (Makefile.am): Substitute the check's results.
9518         * modules/pthread_sigmask, m4/pthread_sigmask.m4: New files.
9519
9520         test-pselect: new module
9521         * modules/pselect-tests, tests/test-pselect.c: New files.
9522         * tests/test-select.c, tests/test-sys_select-c++.cc:
9523         If TEST_PSELECT is defined, test pselect instead of testing select.
9524
9525         * tests/test-sys_select.c (sigset_t): Test for it, too.
9526         Suggested by Bruno Haible.
9527
9528 2011-07-05  Eric Blake  <eblake@redhat.com>
9529
9530         snprintf: guarantee %1$d, for libintl
9531         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require %1$d support.
9532         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
9533         * doc/posix-functions/snprintf.texi (snprintf): Update.
9534         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
9535         * tests/test-snprintf.c (main): Enhance test.
9536         * tests/test-vsnprintf.c (main): Likewise.
9537
9538 2011-07-05  Jim Meyering  <meyering@redhat.com>
9539
9540         maint: exempt stdio-read.c and stdio-write.c from the cppi check
9541         * Makefile (sc_cpp_indent_check): Exempt stdio-read.c and stdio-write.c
9542         per Bruno's request, to accommodate this idiom (no space after "#")
9543         even when the function is inside an #if block:
9544         char *
9545         gets (char *s)
9546         #undef gets
9547         {
9548           ...
9549         }
9550
9551 2011-07-04  Jim Meyering  <meyering@redhat.com>
9552
9553         maint: indent with spaces, not TABs, and add a rule to check this
9554         * tests/test-userspec.c: Indent with spaces, not TABs.
9555         * tests/test-argp.c: Likewise.
9556         * tests/test-c-stack2.sh: Likewise.
9557         * tests/test-parse-duration.sh: Likewise
9558         * m4/strtod.m4: Likewise.
9559         * m4/alloca.m4: Likewise.
9560         * m4/pselect.m4: Likewise.
9561         * Makefile (sc_prohibit_leading_TABs): Prohibit leading TABs.
9562
9563 2011-07-03  Jim Meyering  <meyering@redhat.com>
9564
9565         maint.mk: correct omissions in prohibit_argmatch_without_use check
9566         This rule would mistakenly report that argmatch.h is included without
9567         use even when both the argmatch and invalid_arg macro were used.
9568         * top/maint.mk (sc_prohibit_argmatch_without_use): Also detect uses
9569         of argmatch and invalid_arg.
9570
9571 2011-07-03  Bruno Haible  <bruno@clisp.org>
9572
9573         Comments about EINTR.
9574         * lib/safe-read.h: Explain the purpose of this module.
9575         * lib/safe-write.h: Likewise.
9576         * doc/posix-functions/read.texi: Mention EINTR and the 'safe-read'
9577         module.
9578         * doc/posix-functions/write.texi: Mention EINTR and the 'safe-write'
9579         module.
9580         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
9581
9582 2011-06-30  Paul Eggert  <eggert@cs.ucla.edu>
9583
9584         xnanosleep: Rewrite to use new dtotimespec module.
9585         It has the conversion code that used to be in xnanosleep.
9586         * lib/xnanosleep.c: Do not include limits.h, stdbool.h, stdio.h,
9587         assert.h, sys/types.h, or intprops.h.  Include timespec.h instead.
9588         (TIME_T_MAX): Remove.
9589         (xnanosleep): Rewrite in terms of dtotimespec.
9590         * modules/xnanosleep (Depends-on): Add dtotimespec.
9591         Remove intprops, stdbool.
9592
9593         timespec-add, timespec-sub: new modules
9594         * lib/timespec.h (timespec_add, timespec_sub): New decls.
9595         * lib/timespec-add.c, lib/timespec-sub.c:
9596         * modules/timespec-add, modules/timespec-sub: New files.
9597
9598         dtotimespec: new module
9599         * lib/timespec.h (dtotimespec): New decl.
9600         * lib/dtotimespec.c, modules/dtotimespec: New files.
9601
9602         * lib/timespec.h (timespec_sign, timespectod): New inline functions.
9603
9604         pselect: new module
9605         * lib/sys_select.in.h: Include <signal.h>, for 'sigset_t'.
9606         (pselect): New decls.
9607         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Require AC_C_RESTRICT,
9608         since the standard pselect decl uses 'restrict'.
9609         (gl_SYS_SELECT_H_DEFAULTS): Add defaults for GNULIB_PSELECT,
9610         HAVE_PSELECT, REPLACE_PSELECT.
9611         * modules/sys_select (sys/select.h): Substitute GNULIB_PSELECT,
9612         HAVE_PSELECT, REPLACE_PSELECT.
9613         * lib/pselect.c, m4/pselect.m4, modules/pselect: New files.
9614
9615         sys_select: don't depend on sys_socket
9616         This is so that Emacs doesn't have to drag in m4/sockpfaf.m4 etc; see
9617         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00358.html>.
9618         This fix works on GNU and GNU-like platforms, but has not been tested
9619         on native Windows.
9620         * lib/sys_select.in.h: Include <sys/socket.h> only if native Windows.
9621         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Do not require
9622         gl_HEADER_SYS_SOCKET.
9623         * modules/sys_select (Files): Add m4/sys_socket_h.m4, for
9624         gl_PREREQ_SYS_H_WINSOCK2.
9625
9626 2011-06-29  Eric Blake  <eblake@redhat.com>
9627
9628         pipe2: fix C89 compile problem
9629         * lib/pipe2.c (pipe2): Avoid C99 array initialization.
9630         Reported by Bruno Haible.
9631
9632         pipe, pipe2: don't corrupt fd on error
9633         * lib/pipe.c (pipe): Leave fd unchanged on error.
9634         * lib/pipe2.c (pipe2): Likewise.
9635         * doc/posix-functions/pipe.texi (pipe): Document cygwin issue.
9636         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
9637
9638 2011-06-27  Paolo Bonzini  <bonzini@gnu.org>
9639
9640         mmap-anon: do not use regular expressions inadvertently
9641         * m4/mmap-anon.m4: Remove trailing period from strings sought
9642         in the output.
9643
9644 2011-06-25  Paul Eggert  <eggert@cs.ucla.edu>
9645
9646         nanosleep: fix integer overflow problem
9647         * lib/nanosleep.c (my_usleep): Don't assume signed integer
9648         arithmetic wraps around on overflow.
9649
9650         nanosleep: simplify carrying
9651         * lib/nanosleep.c (nanosleep): Use the requested tv_nsec for the
9652         first call to the underyling nanosleep, not for the last one.
9653         This doesn't fix any bugs, but it simplifies the computation of
9654         the remaining delay.  Found while auditing integer overflow issues.
9655
9656         dup2: remove test for existence of fcntl
9657         * m4/dup2.m4 (gl_FUNC_DUP2): Use "#ifdef FD_CLOEXEC", not
9658         "#if HAVE_FCNTL", in the configure-time test program.
9659         This removes the need for the AC_CHECK_FUNCS_ONCE([fcntl]),
9660         and therefore speeds up "configure" a bit.  Found while
9661         adding the dup2 module to Emacs.
9662
9663 2011-06-24  Eric Blake  <eblake@redhat.com>
9664
9665         maint.mk: enhance useless header checks
9666         * top/maint.mk (_sc_header_without_use): Check both include
9667         styles.
9668         (sc_prohibit_assert_without_use)
9669         (sc_prohibit_close_stream_without_use)
9670         (sc_prohibit_getopt_without_use)
9671         (sc_prohibit_quotearg_without_use)
9672         (sc_prohibit_quote_without_use)
9673         (sc_prohibit_long_options_without_use)
9674         (sc_prohibit_inttostr_without_use)
9675         (sc_prohibit_ignore_value_without_use)
9676         (sc_prohibit_error_without_use, sc_prohibit_xalloc_without_use)
9677         (sc_prohibit_hash_without_use, sc_prohibit_cloexec_without_use)
9678         (sc_prohibit_posixver_without_use, sc_prohibit_same_without_use)
9679         (sc_prohibit_hash_pjw_without_use)
9680         (sc_prohibit_safe_read_without_use)
9681         (sc_prohibit_argmatch_without_use)
9682         (sc_prohibit_canonicalize_without_use)
9683         (sc_prohibit_root_dev_ino_without_use)
9684         (sc_prohibit_openat_without_use)
9685         (sc_prohibit_c_ctype_without_use)
9686         (sc_prohibit_signal_without_use)
9687         (sc_prohibit_stdio--_without_use)
9688         (sc_prohibit_stdio-safer_without_use)
9689         (sc_prohibit_strings_without_use)
9690         (sc_prohibit_intprops_without_use)
9691         (sc_prohibit_stddef_without_use)
9692         (sc_prohibit_xfreopen_without_use): Update clients.
9693
9694 2011-06-24  Jim Meyering  <meyering@redhat.com>
9695
9696         syntax-check: keep one maint.mk rule in sync with its header
9697         * Makefile (sc_check_sym_list): Add a rule to prevent a repeat
9698         of the bug Eric has just fixed, with today's commit 25e4c2ec.
9699         I prefer to avoid temporary files here, so use <(...), but that
9700         is not supported by /bin/sh, so...
9701         (SHELL): Define to /bin/bash.
9702
9703 2011-06-24  Eric Blake  <eblake@redhat.com>
9704
9705         maint.mk: update sc_prohibit_intprops_without_use
9706         * top/maint.mk (_intprops_names): Match recent changes.
9707
9708 2011-06-24  Bruno Haible  <bruno@clisp.org>
9709
9710         strerror-override: No-op tweak.
9711         * lib/strerror-override.h (strerror_override): Reorder conditions,
9712         for consistency with lib/strerror-override.c.
9713
9714 2011-06-23  Eric Blake  <eblake@redhat.com>
9715
9716         maint.mk: test further PATH_MAX issues
9717         * top/maint.mk (sc_prohibit_path_max_array): Rename...
9718         (sc_prohibit_path_max_allocation): ...and also test alloca.
9719         Suggested by Jim Meyering.
9720
9721 2011-06-22  Eric Blake  <eblake@redhat.com>
9722
9723         maint.mk: add syntax-check to avoid char[PATH_MAX]
9724         * top/maint.mk (sc_prohibit_path_max_array): New rule.
9725
9726         stat: be robust to PATH_MAX definition
9727         * lib/stat.c (rpl_stat): Require reasonable PATH_MAX.
9728         * modules/stat (Depends-on): Add verify.
9729
9730         link: work around IRIX bug
9731         * m4/link.m4 (gl_FUNC_LINK): Expose the bug.
9732         * lib/link.c (rpl_link): Work around it.
9733         * tests/test-link.h (test_link): Enhance test.
9734         * doc/posix-functions/link.texi (link): Document the bug.
9735
9736         getopt: silence clang warning
9737         * lib/getopt.c (_getopt_internal_r): Avoid unlikely NULL
9738         dereference.
9739         Reported by Gustavo Martin Domato.
9740
9741 2011-06-22  Jim Meyering  <meyering@redhat.com>
9742
9743         bootstrap: do not insert a blank line into each .gitignore file
9744         * build-aux/bootstrap (sort_patterns): Filter out blank lines.
9745
9746 2011-06-21  Eric Blake  <eblake@redhat.com>
9747
9748         perror: test for output mismatch
9749         * m4/perror.m4 (gl_FUNC_PERROR): Add test, in order to replace
9750         perror on IRIX.
9751
9752         strerror_r: fix OpenBSD behavior on out-of-range
9753         * lib/strerror_r.c (strerror_r): Always use maximal string.
9754         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
9755
9756         strerror_r: fix OpenBSD behavior on 0
9757         * lib/strerror-override.c (strerror_override): Also override 0
9758         when needed.
9759         * lib/strerror-override.h (strerror_override): Likewise.
9760         * lib/strerror.c (strerror): Simplify, now that 0 override is done
9761         earlier.
9762         * lib/strerror_r.c (strerror_r): Likewise.
9763         * m4/strerror.m4 (gl_FUNC_STRERROR): Split detection of 0
9764         behavior...
9765         (gl_FUNC_STRERROR_0): ...into new macro.
9766         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Replace strerror_r if 0
9767         is overridden.
9768         (gl_FUNC_STRERROR_R_WORKS): Avoid extra tests if 0 is broken.
9769         * modules/strerror-override (Files): Add strerror.m4.
9770         (configure.ac): Also provide override for 0 when needed.
9771         * doc/posix-functions/strerror.texi (strerror): Document this.
9772         * doc/posix-functions/perror.texi (perror): Likewise.
9773
9774         perror: adjust array size
9775         * modules/perror (Depends-on): Add strerror-override.
9776         * lib/perror.c (perror): Use it to avoid magic number.
9777
9778         strerror-override: reduce size
9779         * lib/strerror-override.c (strerror_override): Use fewer lines.
9780
9781 2011-06-20  Bruno Haible  <bruno@clisp.org>
9782
9783         pathmax: Ensure correct value for PATH_MAX on HP-UX.
9784         * lib/pathmax.h (PATH_MAX) [HP-UX]: Define to 1024.
9785
9786 2011-06-20  Paul Eggert  <eggert@cs.ucla.edu>
9787
9788         alloca: port to compilers that can optimize like GCC 4.6.0
9789         * lib/alloca.c (find_stack_direction): New signature, taken from
9790         Autoconf git.  This works with GCC 4.6.0.  This code should never
9791         be used with GCC 4.6.0 itself, as GCC has alloca, but it might
9792         be used with other compilers that optimize as well as GCC 4.6.0 does.
9793         (alloca): Adjust to new signature.
9794         * m4/alloca.m4 (__AC_LIBOBJ_ALLOCA) [Autoconf version < 2.69]:
9795         New macro, which patches Autoconf in a similar way.
9796
9797         c-stack: stop worrying about stack direction
9798         * lib/c-stack.c (find_stack_direction): Remove.
9799         (segv_handler): Don't worry about stack direction growth, as it's
9800         too much of a pain to configure this correctly, given how compilers
9801         are optimizing-away our stack-growth detection code.  Instead, assume
9802         that any access to just before or just after the stack is OK.
9803         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
9804         Don't require AC_FUNC_ALLOCA; no longer needed.
9805
9806 2011-06-20  Eric Blake  <eblake@redhat.com>
9807
9808         test-stat: don't allocate PATH_MAX bytes
9809         * tests/test-stat.h (test_stat_func): Don't stack-allocate a
9810         PATH_MAX-sized buffer.
9811         * modules/openat-tests (Depends-on): Add getcwd-lgpl, drop pathmax.
9812         * modules/stat-tests (Depends-on): Likewise.
9813         * tests/test-fstatat.c (includes): Drop pathmax.h.
9814         * tests/test-stat.c (includes): Likewise.
9815         Reported by Bruno Haible.
9816
9817 2011-06-20  Bruno Haible  <bruno@clisp.org>
9818
9819         float: Work around <float.h> bugs on FreeBSD/x86, AIX with GCC, IRIX.
9820         * lib/float.in.h: Add workarounds for FreeBSD/x86, AIX with GCC, IRIX.
9821         * lib/float.c: New file.
9822         * m4/float_h.m4 (gl_FLOAT_H): Also handle FreeBSD, AIX, IRIX. Set
9823         REPLACE_FLOAT_LDBL.
9824         * modules/float (Files): Add lib/float.c.
9825         (configure.ac): Invoke AC_LIBOBJ.
9826         * doc/posix-headers/float.texi: Mention problems on FreeBSD, AIX, IRIX.
9827
9828 2011-06-20  Bruno Haible  <bruno@clisp.org>
9829
9830         Tests for module 'float'.
9831         * modules/float-tests: New file.
9832         * tests/test-float.c: New file.
9833
9834 2011-06-19  Bruno Haible  <bruno@clisp.org>
9835
9836         isinf: Coding style.
9837         * lib/isinf.c: Use GNU coding style.
9838
9839 2011-06-19  Bruno Haible  <bruno@clisp.org>
9840
9841         linkat test: Avoid test failure on AIX 7.1.
9842         * tests/test-linkat.c (main): Allow EINVAL as alternate error value.
9843         * tests/test-link.h (test_link): Likewise.
9844
9845 2011-06-19  Bruno Haible  <bruno@clisp.org>
9846
9847         pread test: Avoid test failure on OpenBSD 4.9.
9848         * tests/test-pread.c (main): Allow EFBIG instead of EINBAL.
9849
9850 2011-06-19  Bruno Haible  <bruno@clisp.org>
9851
9852         sprintf-posix: Fix test failure on AIX 7.1.
9853         * m4/printf.m4 (gl_PRINTF_PRECISION): Test against AIX bug.
9854         * doc/posix-functions/dprintf.texi: Mention limited precision problem
9855         on AIX.
9856         * doc/posix-functions/fprintf.texi: Likewise.
9857         * doc/posix-functions/printf.texi: Likewise.
9858         * doc/posix-functions/snprintf.texi: Likewise.
9859         * doc/posix-functions/sprintf.texi: Likewise.
9860         * doc/posix-functions/vdprintf.texi: Likewise.
9861         * doc/posix-functions/vfprintf.texi: Likewise.
9862         * doc/posix-functions/vprintf.texi: Likewise.
9863         * doc/posix-functions/vsnprintf.texi: Likewise.
9864         * doc/posix-functions/vsprintf.texi: Likewise.
9865
9866 2011-06-19  Bruno Haible  <bruno@clisp.org>
9867
9868         roundl-ieee: Fix test failure on AIX 7.1.
9869         * m4/roundl.m4 (gl_FUNC_ROUNDL): Test also the sign of roundl (-0.3L).
9870         * doc/posix-functions/roundl.texi: Mention problem with negative
9871         arguments.
9872
9873 2011-06-19  Bruno Haible  <bruno@clisp.org>
9874
9875         round-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
9876         * modules/round-ieee (Depends-on): Add floor-ieee, ceil-ieee.
9877         * doc/posix-functions/round.texi: Mention problem with negative
9878         arguments.
9879         * doc/posix-functions/ceil.texi: Mention problem on OSF/1 5.1.
9880
9881 2011-06-19  Bruno Haible  <bruno@clisp.org>
9882
9883         roundf-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
9884         * m4/roundf.m4 (gl_FUNC_ROUNDF): Test also the sign of roundf (-0.3f).
9885         * modules/roundf-ieee (Depends-on): Add floorf-ieee, ceilf-ieee.
9886         * doc/posix-functions/roundf.texi: Mention problem with negative
9887         arguments.
9888         * doc/posix-functions/ceilf.texi: Mention problem on OSF/1 5.1.
9889
9890 2011-06-19  Bruno Haible  <bruno@clisp.org>
9891
9892         ceilf-ieee: Work around bug on MacOS X 10.5.
9893         * doc/posix-functions/ceilf.texi: Mention the MacOS X 10.5 problem.
9894
9895         floor*-ieee, ceil*-ieee, trunc*-ieee, round*-ieee: More robust checks.
9896         * m4/floorf.m4 (gl_FUNC_FLOORF): In the test whether the function is
9897         IEEE compliant, avoid compiler optimizations.
9898         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
9899         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
9900         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
9901         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
9902         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
9903         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
9904         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
9905         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
9906         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
9907         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
9908
9909 2011-06-19  Bruno Haible  <bruno@clisp.org>
9910
9911         ceilf-ieee: Work around bug on AIX 7.1.
9912         * m4/ceilf.m4 (gl_FUNC_CEILF): Test also the sign of ceilf (-0.3f).
9913         * doc/posix-functions/ceilf.texi: Mention the AIX 7.1 problem.
9914
9915 2011-06-19  Bruno Haible  <bruno@clisp.org>
9916
9917         ceil-ieee: Work around bug on AIX 7.1.
9918         * m4/ceil.m4 (gl_FUNC_CEIL): Test also the sign of ceil (-0.3).
9919         * doc/posix-functions/ceil.texi: Mention the AIX 7.1 problem.
9920
9921 2011-06-18  Bruno Haible  <bruno@clisp.org>
9922
9923         fsync test: Avoid test failure on MacOS X and AIX.
9924         * tests/test-fsync.c (fsync): Allow ENOTSUP and EBADF instead of
9925         EINVAL.
9926
9927 2011-06-18  Bruno Haible  <bruno@clisp.org>
9928
9929         openat, fdopendir tests: Fix link errors.
9930         * modules/openat-tests (Depends-on): Add progname.
9931         * modules/fdopendir-tests (Depends-on): Likewise.
9932         * tests/test-fchownat.c: Include progname.h.
9933         (main): Call set_program_name.
9934         * tests/test-fstatat.c: Include progname.h.
9935         (main): Call set_program_name.
9936         * tests/test-mkdirat.c: Include progname.h.
9937         (main): Call set_program_name.
9938         * tests/test-openat.c: Include progname.h.
9939         (main): Call set_program_name.
9940         * tests/test-unlinkat.c: Include progname.h.
9941         (main): Call set_program_name.
9942         * tests/test-fdopendir.c: Include progname.h.
9943         (main): Call set_program_name.
9944
9945 2011-06-18  Bruno Haible  <bruno@clisp.org>
9946
9947         Doc update.
9948         * doc/posix-functions/pthread_attr_getstack.texi: Update info regarding
9949         HP-UX.
9950         * doc/posix-functions/pthread_attr_setstack.texi: Likewise.
9951
9952 2011-06-18  Bruno Haible  <bruno@clisp.org>
9953
9954         getcwd tests: Avoid compilation error on HP-UX 11.31.
9955         * modules/getcwd-tests (Depends-on): Add pathmax.
9956         * tests/test-getcwd.c: Include pathmax.h.
9957
9958 2011-06-18  Bruno Haible  <bruno@clisp.org>
9959
9960         isfinite, isinf: Fix link error on AIX 6 and 7.
9961         * m4/isfinite.m4 (gl_ISFINITE): When determining whether libm is
9962         needed, also test the macro with a 'float' argument.
9963         * m4/isinf.m4 (gl_ISINF): Likewise.
9964
9965 2011-06-18  Bruno Haible  <bruno@clisp.org>
9966
9967         getloadavg: Don't clobber LIBS. Regression from previous commit.
9968         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Move tests that use
9969         AC_CHECK_LIB from here...
9970         (gl_GETLOADAVG): ... to here, inside the experiment with LIBS.
9971         (gl_GETLOADAVG, gl_PREREQ_GETLOADAVG): Rename gl_have_func to
9972         gl_func_getloadavg_done.
9973         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
9974
9975 2011-06-18  Bruno Haible  <bruno@clisp.org>
9976
9977         clean-temp: Improve documentation.
9978         * lib/clean-temp.h: Explain better how to use this module.
9979         Reported by John Darrington <john@darrington.wattle.id.au>.
9980
9981 2011-06-17  Bruno Haible  <bruno@clisp.org>
9982
9983         pread, pwrite: Avoid cc warning on AIX.
9984         * lib/unistd.in.h (pread): Undefine before defining as a macro.
9985         (pwrite): Likewise.
9986
9987 2011-06-17  Bruno Haible  <bruno@clisp.org>
9988
9989         spawn-pipe tests: Fix link error.
9990         * tests/test-spawn-pipe-child.c: Undefine fprintf.
9991         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
9992
9993 2011-06-17  Bruno Haible  <bruno@clisp.org>
9994
9995         Tests: Remove unnecessary dependency.
9996         * modules/canonicalize-tests (Depends-on): Remove progname.
9997         * modules/chown-tests (Depends-on): Likewise.
9998         * modules/dirname-tests (Depends-on): Likewise.
9999         * modules/fdopendir-tests (Depends-on): Likewise.
10000         * modules/fdutimensat-tests (Depends-on): Likewise.
10001         * modules/hash-tests (Depends-on): Likewise.
10002         * modules/lchown-tests (Depends-on): Likewise.
10003         * modules/linkat-tests (Depends-on): Likewise.
10004         * modules/renameat-tests (Depends-on): Likewise.
10005         * modules/spawn-pipe-tests (Depends-on): Likewise.
10006         * modules/utimensat-tests (Depends-on): Likewise.
10007
10008 2011-06-17  Bruno Haible  <bruno@clisp.org>
10009
10010         spawn-pipe tests: Fix link error.
10011         * tests/test-spawn-pipe-child.c: Undefine fflush.
10012
10013 2011-06-17  Bruno Haible  <bruno@clisp.org>
10014
10015         Fix tests link errors.
10016         * modules/ceil-ieee-tests (Makefile.am): Use CEIL_LIBM, not FLOOR_LIBM.
10017         * modules/chown-tests (Makefile.am): Don't link test-chown with
10018         LIBINTL.
10019         * modules/lchown-tests (Makefile.am): Don't link test-lchown with
10020         LIBINTL.
10021         * modules/utimens-tests (Makefile.am): Don't link test-utimens with
10022         LIBINTL.
10023         * modules/futimens-tests (Makefile.am): Don't link test-futimens with
10024         LIBINTL.
10025
10026 2011-06-16  Bruno Haible  <bruno@clisp.org>
10027
10028         crypto/gc-sha1: Fix recent regression.
10029         * modules/crypto/gc-sha1 (configure.ac): Invoke AC_LIBOBJ here.
10030         * m4/gc-sha1.m4 (gl_GC_SHA1): Don't invoke gl_SHA1.
10031
10032         crypto/gc-md5: Fix recent regression.
10033         * modules/crypto/gc-md5 (configure.ac): Invoke AC_LIBOBJ here.
10034
10035         crypto/gc-md4: Fix recent regression.
10036         * modules/crypto/gc-md4 (configure.ac): Invoke AC_LIBOBJ here.
10037         * m4/md4.m4 (gl_MD4): Ensure the expansion is non-empty.
10038
10039         crypto/gc-arctwo: Fix recent regression.
10040         * modules/crypto/gc-arctwo (configure.ac): Invoke AC_LIBOBJ here.
10041         * m4/arctwo.m4 (gl_ARCTWO): Ensure the expansion is non-empty.
10042
10043         crypto/gc-rijndael: Fix recent regression.
10044         * modules/crypto/gc-rijndael (Files): Remove m4/rijndael.m4.
10045         (configure.ac): Invoke AC_LIBOBJ here.
10046         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Don't invoke gl_RIJNDAEL.
10047         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
10048
10049         crypto/gc-hmac-sha1: Fix recent regression.
10050         * modules/crypto/gc-hmac-sha1 (Files): Remove m4/hmac-sha1.m4.
10051         (configure.ac): Invoke AC_LIBOBJ here.
10052         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Don't invoke gl_HMAC_SHA1.
10053         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
10054
10055         crypto/gc-hmac-md5: Fix recent regression.
10056         * modules/crypto/gc-hmac-md5 (Files): Remove m4/hmac-md5.m4.
10057         (configure.ac): Invoke AC_LIBOBJ here.
10058         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Don't invoke gl_HMAC_MD5.
10059         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
10060
10061         crypto/gc-des: Fix recent regression.
10062         * modules/crypto/gc-des (Files): Remove m4/des.m4.
10063         (configure.ac): Invoke AC_LIBOBJ here.
10064         * m4/gc-des.m4 (gl_GC_DES): Don't invoke gl_DES.
10065         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
10066
10067         crypto/gc-arcfour: Fix recent regression.
10068         * modules/crypto/gc-arcfour (Files): Remove m4/arcfour.m4.
10069         (configure.ac): Invoke AC_LIBOBJ here.
10070         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Don't invoke gl_ARCFOUR.
10071         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
10072
10073 2011-06-16  Paul Eggert  <eggert@cs.ucla.edu>
10074
10075         * m4/lstat.m4 (gl_FUNC_LSTAT): Fix typo in prerequisite.
10076         After the 2011-05-21 change, this macro requires
10077         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, not
10078         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
10079
10080 2011-06-16  Bruno Haible  <bruno@clisp.org>
10081
10082         fprintftime: Move AC_LIBOBJ invocations to module description.
10083         * m4/fprintftime.m4: Remove file.
10084         * modules/fprintftime (Files): Remove m4/fprintftime.m4.
10085         (configure.ac): Remove gl_FPRINTFTIME call.
10086         (Makefile.am): Augment lib_SOURCES.
10087         Reported by Jim Meyering.
10088
10089 2011-06-16  Bruno Haible  <bruno@clisp.org>
10090
10091         tmpfile-safer: Finish 2011-05-23 commit.
10092         * m4/stdio-safer.m4: Really remove file.
10093         Reported by Jim Meyering.
10094
10095 2011-06-16  Bruno Haible  <bruno@clisp.org>
10096
10097         syntax-check: Fix typo.
10098         * Makefile (allow_AC_LIBOBJ): Mention printf-posix-rpl.m4, not
10099         printf-posix.m4.
10100         Reported by Jim Meyering.
10101
10102 2011-06-13  Jim Meyering  <meyering@redhat.com>
10103
10104         syntax-check: add a rule to help enforce the no-AC_LIBOBJ-in-m4/ policy
10105         * Makefile (sc_prohibit_AC_LIBOBJ_in_m4): New rule.
10106
10107 2011-05-23  Bruno Haible  <bruno@clisp.org>
10108
10109         yesno: Move AC_LIBOBJ invocations to module description.
10110         * m4/yesno.m4 (gl_YESNO): Remove AC_LIBOBJ invocation.
10111         * modules/yesno (Makefile.am): Augment lib_SOURCES.
10112
10113 2011-05-23  Bruno Haible  <bruno@clisp.org>
10114
10115         xstrtol: Move AC_LIBOBJ invocations to module description.
10116         * m4/xstrtol.m4 (gl_XSTRTOL): Remove AC_LIBOBJ invocations.
10117         * modules/xstrtol (Makefile.am): Augment lib_SOURCES.
10118
10119 2011-05-23  Bruno Haible  <bruno@clisp.org>
10120
10121         xstrtold: Move AC_LIBOBJ invocations to module description.
10122         * m4/xstrtod.m4 (gl_XSTRTOLD): Remove AC_LIBOBJ invocation.
10123         * modules/xstrtold (Makefile.am): Augment lib_SOURCES.
10124
10125 2011-05-23  Bruno Haible  <bruno@clisp.org>
10126
10127         xstrtod: Move AC_LIBOBJ invocations to module description.
10128         * m4/xstrtod.m4 (gl_XSTRTOD): Remove AC_LIBOBJ invocation.
10129         * modules/xstrtod (Makefile.am): Augment lib_SOURCES.
10130
10131 2011-05-23  Bruno Haible  <bruno@clisp.org>
10132
10133         xnanosleep: Move AC_LIBOBJ invocations to module description.
10134         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove AC_LIBOBJ invocation.
10135         * modules/xnanosleep (Makefile.am): Augment lib_SOURCES.
10136
10137 2011-05-23  Bruno Haible  <bruno@clisp.org>
10138
10139         xgetcwd: Move AC_LIBOBJ invocations to module description.
10140         * m4/xgetcwd.m4 (gl_XGETCWD): Remove AC_LIBOBJ invocation.
10141         * modules/xgetcwd (Makefile.am): Augment lib_SOURCES.
10142
10143 2011-05-23  Bruno Haible  <bruno@clisp.org>
10144
10145         xalloc: Move AC_LIBOBJ invocations to module description.
10146         * m4/xalloc.m4 (gl_XALLOC): Remove AC_LIBOBJ invocation.
10147         * modules/xalloc (Makefile.am): Augment lib_SOURCES.
10148
10149 2011-05-23  Bruno Haible  <bruno@clisp.org>
10150
10151         write-any-file: Move AC_LIBOBJ invocations to module description.
10152         * m4/write-any-file.m4 (gl_WRITE_ANY_FILE): Remove AC_LIBOBJ
10153         invocation.
10154         * modules/write-any-file (Makefile.am): Augment lib_SOURCES.
10155
10156 2011-05-23  Bruno Haible  <bruno@clisp.org>
10157
10158         utimens: Move AC_LIBOBJ invocations to module description.
10159         * m4/utimens.m4 (gl_UTIMENS): Remove AC_LIBOBJ invocation.
10160         * modules/utimens (Makefile.am): Augment lib_SOURCES.
10161
10162 2011-05-23  Bruno Haible  <bruno@clisp.org>
10163
10164         utimecmp: Move AC_LIBOBJ invocations to module description.
10165         * m4/utimecmp.m4 (gl_UTIMECMP): Remove AC_LIBOBJ invocation.
10166         * modules/utimecmp (Makefile.am): Augment lib_SOURCES.
10167
10168 2011-05-23  Bruno Haible  <bruno@clisp.org>
10169
10170         userspec: Move AC_LIBOBJ invocations to module description.
10171         * m4/userspec.m4 (gl_USERSPEC): Remove AC_LIBOBJ invocation.
10172         * modules/userspec (Makefile.am): Augment lib_SOURCES.
10173
10174 2011-05-23  Bruno Haible  <bruno@clisp.org>
10175
10176         unlinkdir: Move AC_LIBOBJ invocations to module description.
10177         * m4/unlinkdir.m4 (gl_UNLINKDIR): Remove AC_LIBOBJ invocation.
10178         * modules/unlinkdir (Makefile.am): Augment lib_SOURCES.
10179
10180 2011-05-23  Bruno Haible  <bruno@clisp.org>
10181
10182         unistd-safer: Move AC_LIBOBJ invocations to module description.
10183         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Remove AC_LIBOBJ invocations.
10184         * modules/unistd-safer (Makefile.am): Augment lib_SOURCES.
10185
10186 2011-05-23  Bruno Haible  <bruno@clisp.org>
10187
10188         tempname: Move AC_LIBOBJ invocations to module description.
10189         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Remove AC_LIBOBJ invocation.
10190         * modules/tempname (Makefile.am): Augment lib_SOURCES.
10191
10192 2011-05-23  Bruno Haible  <bruno@clisp.org>
10193
10194         strftime: Move AC_LIBOBJ invocations to module description.
10195         * m4/strftime.m4 (gl_FUNC_STRFTIME): Remove AC_LIBOBJ invocation.
10196         * modules/strftime (Makefile.am): Augment lib_SOURCES.
10197
10198 2011-05-23  Bruno Haible  <bruno@clisp.org>
10199
10200         stdlib-safer: Move AC_LIBOBJ invocations to module description.
10201         * m4/stdlib-safer.m4: Remove file.
10202         * modules/stdlib-safer (Files): Remove m4/stdlib-safer.m4.
10203         (configure.ac): Remove gl_STDLIB_SAFER call.
10204         (Makefile.am): Augment lib_SOURCES.
10205
10206 2011-05-23  Bruno Haible  <bruno@clisp.org>
10207
10208         tmpfile-safer: Move AC_LIBOBJ invocations to module description.
10209         * m4/stdio-safer.m4: Remove file.
10210         * modules/tmpfile-safer (Files): Remove m4/stdio-safer.m4.
10211         (configure.ac): Remove gl_TMPFILE_SAFER call.
10212         (Makefile.am): Augment lib_SOURCES.
10213
10214 2011-05-23  Bruno Haible  <bruno@clisp.org>
10215
10216         popen-safer: Move AC_LIBOBJ invocations to module description.
10217         * m4/stdio-safer.m4 (gl_POPEN_SAFER): Remove macro.
10218         * modules/popen-safer (Files): Remove m4/stdio-safer.m4.
10219         (configure.ac): Remove gl_POPEN_SAFER call.
10220         (Makefile.am): Augment lib_SOURCES.
10221
10222 2011-05-23  Bruno Haible  <bruno@clisp.org>
10223
10224         freopen-safer: Move AC_LIBOBJ invocations to module description.
10225         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): Remove macro.
10226         * modules/freopen-safer (Files): Remove m4/stdio-safer.m4.
10227         (configure.ac): Remove gl_FREOPEN_SAFER call.
10228         (Makefile.am): Augment lib_SOURCES.
10229
10230 2011-05-23  Bruno Haible  <bruno@clisp.org>
10231
10232         fopen-safer: Move AC_LIBOBJ invocations to module description.
10233         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove macro.
10234         * modules/fopen-safer (Files): Remove m4/stdio-safer.m4.
10235         (configure.ac): Remove gl_FOPEN_SAFER call.
10236         (Makefile.am): Augment lib_SOURCES.
10237
10238 2011-05-23  Bruno Haible  <bruno@clisp.org>
10239
10240         crypto/sha512: Move AC_LIBOBJ invocations to module description.
10241         * m4/sha512.m4 (gl_SHA512): Remove AC_LIBOBJ invocation.
10242         * modules/crypto/sha512 (Makefile.am): Augment lib_SOURCES.
10243
10244 2011-05-23  Bruno Haible  <bruno@clisp.org>
10245
10246         crypto/sha256: Move AC_LIBOBJ invocations to module description.
10247         * m4/sha256.m4 (gl_SHA256): Remove AC_LIBOBJ invocation.
10248         * modules/crypto/sha256 (Makefile.am): Augment lib_SOURCES.
10249
10250 2011-05-23  Bruno Haible  <bruno@clisp.org>
10251
10252         crypto/sha1: Move AC_LIBOBJ invocations to module description.
10253         * m4/sha1.m4 (gl_SHA1): Remove AC_LIBOBJ invocation.
10254         * modules/crypto/sha1 (Makefile.am): Augment lib_SOURCES.
10255
10256 2011-05-23  Bruno Haible  <bruno@clisp.org>
10257
10258         settime: Move AC_LIBOBJ invocations to module description.
10259         * m4/settime.m4 (gl_SETTIME): Remove AC_LIBOBJ invocation.
10260         * modules/settime (Makefile.am): Augment lib_SOURCES.
10261
10262 2011-05-23  Bruno Haible  <bruno@clisp.org>
10263
10264         savedir: Move AC_LIBOBJ invocations to module description.
10265         * m4/savedir.m4 (gl_SAVEDIR): Remove AC_LIBOBJ invocation.
10266         * modules/savedir (Makefile.am): Augment lib_SOURCES.
10267
10268 2011-05-23  Bruno Haible  <bruno@clisp.org>
10269
10270         save-cwd: Move AC_LIBOBJ invocations to module description.
10271         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove AC_LIBOBJ invocation.
10272         * modules/save-cwd (Makefile.am): Augment lib_SOURCES.
10273
10274 2011-05-23  Bruno Haible  <bruno@clisp.org>
10275
10276         same: Move AC_LIBOBJ invocations to module description.
10277         * m4/same.m4 (gl_SAME): Remove AC_LIBOBJ invocation.
10278         * modules/same (Makefile.am): Augment lib_SOURCES.
10279
10280 2011-05-23  Bruno Haible  <bruno@clisp.org>
10281
10282         safe-write: Move AC_LIBOBJ invocations to module description.
10283         * m4/safe-write.m4 (gl_SAFE_WRITE): Remove macro.
10284         * modules/safe-write (configure.ac): Invoke gl_PREREQ_SAFE_WRITE
10285         instead of gl_SAFE_WRITE.
10286         (Makefile.am): Augment lib_SOURCES.
10287
10288 2011-05-23  Bruno Haible  <bruno@clisp.org>
10289
10290         safe-read: Move AC_LIBOBJ invocations to module description.
10291         * m4/safe-read.m4 (gl_SAFE_READ): Remove macro.
10292         * modules/safe-read (configure.ac): Invoke gl_PREREQ_SAFE_READ instead
10293         of gl_SAFE_READ.
10294         (Makefile.am): Augment lib_SOURCES.
10295
10296 2011-05-23  Bruno Haible  <bruno@clisp.org>
10297
10298         safe-alloc: Move AC_LIBOBJ invocations to module description.
10299         * m4/safe-alloc.m4 (gl_SAFE_ALLOC): Remove AC_LIBOBJ invocation.
10300         * modules/safe-alloc (Makefile.am): Augment lib_SOURCES.
10301
10302 2011-05-23  Bruno Haible  <bruno@clisp.org>
10303
10304         crypto/rijndael: Move AC_LIBOBJ invocations to module description.
10305         * m4/rijndael.m4: Remove file.
10306         * modules/crypto/rijndael (Files): Remove it.
10307         (configure.ac): Remove gl_RIJNDAEL call.
10308         (Makefile.am): Augment lib_SOURCES.
10309
10310 2011-05-23  Bruno Haible  <bruno@clisp.org>
10311
10312         readtokens: Move AC_LIBOBJ invocations to module description.
10313         * m4/readtokens.m4 (gl_READTOKENS): Remove AC_LIBOBJ invocation.
10314         * modules/readtokens (Makefile.am): Augment lib_SOURCES.
10315
10316 2011-05-23  Bruno Haible  <bruno@clisp.org>
10317
10318         read-file: Move AC_LIBOBJ invocations to module description.
10319         * m4/read-file.m4 (gl_FUNC_READ_FILE): Remove macro.
10320         * modules/read-file (configure.ac): Invoke gl_PREREQ_READ_FILE instead
10321         of gl_FUNC_READ_FILE.
10322         (Makefile.am): Augment lib_SOURCES.
10323
10324 2011-05-23  Bruno Haible  <bruno@clisp.org>
10325
10326         quotearg: Move AC_LIBOBJ invocations to module description.
10327         * m4/quotearg.m4 (gl_QUOTEARG): Remove AC_LIBOBJ invocation.
10328         * modules/quotearg (Makefile.am): Augment lib_SOURCES.
10329
10330 2011-05-23  Bruno Haible  <bruno@clisp.org>
10331
10332         quote: Move AC_LIBOBJ invocations to module description.
10333         * m4/quote.m4 (gl_QUOTE): Remove AC_LIBOBJ invocation.
10334         * modules/quote (Makefile.am): Augment lib_SOURCES.
10335
10336 2011-05-23  Bruno Haible  <bruno@clisp.org>
10337
10338         posixver: Move AC_LIBOBJ invocations to module description.
10339         * m4/posixver.m4 (gl_POSIXVER): Remove AC_LIBOBJ invocation.
10340         * modules/posixver (Makefile.am): Augment lib_SOURCES.
10341
10342 2011-05-23  Bruno Haible  <bruno@clisp.org>
10343
10344         posixtm: Move AC_LIBOBJ invocations to module description.
10345         * m4/posixtm.m4 (gl_POSIXTM): Remove AC_LIBOBJ invocation.
10346         * modules/posixtm (Makefile.am): Augment lib_SOURCES.
10347
10348 2011-05-23  Bruno Haible  <bruno@clisp.org>
10349
10350         physmem: Move AC_LIBOBJ invocations to module description.
10351         * m4/physmem.m4 (gl_PHYSMEM): Remove AC_LIBOBJ invocation.
10352         * modules/physmem (Makefile.am): Augment lib_SOURCES.
10353
10354 2011-05-23  Bruno Haible  <bruno@clisp.org>
10355
10356         pagealign_alloc: Move AC_LIBOBJ invocations to module description.
10357         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Remove AC_LIBOBJ
10358         invocation.
10359         * modules/pagealign_alloc (Makefile.am): Augment lib_SOURCES.
10360
10361 2011-05-23  Bruno Haible  <bruno@clisp.org>
10362
10363         mpsort: Move AC_LIBOBJ invocations to module description.
10364         * m4/mpsort.m4 (gl_MPSORT): Remove AC_LIBOBJ invocation.
10365         * modules/mpsort (Makefile.am): Augment lib_SOURCES.
10366
10367 2011-05-23  Bruno Haible  <bruno@clisp.org>
10368
10369         modechange: Move AC_LIBOBJ invocations to module description.
10370         * m4/modechange.m4 (gl_MODECHANGE): Remove AC_LIBOBJ invocation.
10371         * modules/modechange (Makefile.am): Augment lib_SOURCES.
10372
10373 2011-05-23  Bruno Haible  <bruno@clisp.org>
10374
10375         mkdir-p: Move AC_LIBOBJ invocations to module description.
10376         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Remove AC_LIBOBJ invocations.
10377         * modules/mkdir-p (Makefile.am): Augment lib_SOURCES.
10378
10379 2011-05-23  Bruno Haible  <bruno@clisp.org>
10380
10381         mkancesdirs: Move AC_LIBOBJ invocations to module description.
10382         * m4/mkancesdirs.m4 (gl_MKANCESDIRS): Remove AC_LIBOBJ invocation.
10383         * modules/mkancesdirs (Makefile.am): Augment lib_SOURCES.
10384
10385 2011-05-23  Bruno Haible  <bruno@clisp.org>
10386
10387         mgetgroups: Move AC_LIBOBJ invocations to module description.
10388         * m4/mgetgroups.m4 (gl_MGETGROUPS): Remove AC_LIBOBJ invocation.
10389         * modules/mgetgroups (Makefile.am): Augment lib_SOURCES.
10390
10391 2011-05-23  Bruno Haible  <bruno@clisp.org>
10392
10393         memxor: Move AC_LIBOBJ invocations to module description.
10394         * m4/memxor.m4 (gl_MEMXOR): Remove AC_LIBOBJ invocation.
10395         * modules/memxor (Makefile.am): Augment lib_SOURCES.
10396
10397 2011-05-23  Bruno Haible  <bruno@clisp.org>
10398
10399         memcoll: Move AC_LIBOBJ invocations to module description.
10400         * m4/memcoll.m4 (gl_MEMCOLL): Remove AC_LIBOBJ invocation.
10401         * modules/memcoll (Makefile.am): Augment lib_SOURCES.
10402
10403 2011-05-23  Bruno Haible  <bruno@clisp.org>
10404
10405         memcasecmp: Move AC_LIBOBJ invocations to module description.
10406         * m4/memcasecmp.m4 (gl_MEMCASECMP): Remove AC_LIBOBJ invocation.
10407         * modules/memcasecmp (Makefile.am): Augment lib_SOURCES.
10408
10409 2011-05-23  Bruno Haible  <bruno@clisp.org>
10410
10411         crypto/md5: Move AC_LIBOBJ invocations to module description.
10412         * m4/md5.m4 (gl_MD5): Remove AC_LIBOBJ invocation.
10413         * modules/crypto/md5 (Makefile.am): Augment lib_SOURCES.
10414
10415 2011-05-23  Bruno Haible  <bruno@clisp.org>
10416
10417         crypto/md4: Move AC_LIBOBJ invocations to module description.
10418         * m4/md4.m4 (gl_MD4): Remove AC_LIBOBJ invocation.
10419         * modules/crypto/md4 (Makefile.am): Augment lib_SOURCES.
10420
10421 2011-05-23  Bruno Haible  <bruno@clisp.org>
10422
10423         crypto/md2: Move AC_LIBOBJ invocations to module description.
10424         * m4/md2.m4: Remove file.
10425         * modules/crypto/md2 (Files): Remove it.
10426         (configure.ac): Remove gl_MD2 call.
10427         (Makefile.am): Augment lib_SOURCES.
10428
10429 2011-05-23  Bruno Haible  <bruno@clisp.org>
10430
10431         long-options: Move AC_LIBOBJ invocations to module description.
10432         * m4/long-options.m4: Remove file.
10433         * modules/long-options (Files): Remove it.
10434         (configure.ac): Remove gl_LONG_OPTIONS call.
10435         (Makefile.am): Augment lib_SOURCES.
10436
10437 2011-05-23  Bruno Haible  <bruno@clisp.org>
10438
10439         i-ring: Move AC_LIBOBJ invocations to module description.
10440         * m4/i-ring.m4 (gl_I_RING): Remove AC_LIBOBJ invocation.
10441         * modules/i-ring (Makefile.am): Augment lib_SOURCES.
10442
10443 2011-05-23  Bruno Haible  <bruno@clisp.org>
10444
10445         idcache: Move AC_LIBOBJ invocations to module description.
10446         * m4/idcache.m4 (gl_IDCACHE): Remove AC_LIBOBJ invocation.
10447         * modules/idcache (Makefile.am): Augment lib_SOURCES.
10448
10449 2011-05-23  Bruno Haible  <bruno@clisp.org>
10450
10451         human: Move AC_LIBOBJ invocations to module description.
10452         * m4/human.m4 (gl_HUMAN): Remove AC_LIBOBJ invocation.
10453         * modules/human (Makefile.am): Augment lib_SOURCES.
10454
10455 2011-05-23  Bruno Haible  <bruno@clisp.org>
10456
10457         crypto/hmac-sha1: Move AC_LIBOBJ invocations to module description.
10458         * m4/hmac-sha1.m4: Remove file.
10459         * modules/crypto/hmac-sha1 (Files): Remove it.
10460         (configure.ac): Remove gl_HMAC_SHA1 call.
10461         (Makefile.am): Augment lib_SOURCES.
10462
10463 2011-05-23  Bruno Haible  <bruno@clisp.org>
10464
10465         crypto/hmac-md5: Move AC_LIBOBJ invocations to module description.
10466         * m4/hmac-md5.m4: Remove file.
10467         * modules/crypto/hmac-md5 (Files): Remove it.
10468         (configure.ac): Remove gl_HMAC_MD5 call.
10469         (Makefile.am): Augment lib_SOURCES.
10470
10471 2011-05-23  Bruno Haible  <bruno@clisp.org>
10472
10473         hash: Move AC_LIBOBJ invocations to module description.
10474         * m4/hash.m4: Remove file.
10475         * modules/hash (Files): Remove it.
10476         (configure.ac): Remove gl_HASH call.
10477         (Makefile.am): Augment lib_SOURCES.
10478
10479 2011-05-23  Bruno Haible  <bruno@clisp.org>
10480
10481         hard-locale: Move AC_LIBOBJ invocations to module description.
10482         * m4/hard-locale.m4 (gl_HARD_LOCALE): Remove AC_LIBOBJ invocation.
10483         * modules/hard-locale (Makefile.am): Augment lib_SOURCES.
10484
10485 2011-05-23  Bruno Haible  <bruno@clisp.org>
10486
10487         getugroups: Move AC_LIBOBJ invocations to module description.
10488         * m4/getugroups.m4 (gl_GETUGROUPS): Remove AC_LIBOBJ invocation.
10489         * modules/getugroups (Makefile.am): Augment lib_SOURCES.
10490
10491 2011-05-23  Bruno Haible  <bruno@clisp.org>
10492
10493         gettime: Move AC_LIBOBJ invocations to module description.
10494         * m4/gettime.m4 (gl_GETTIME): Remove AC_LIBOBJ invocation.
10495         * modules/gettime (Makefile.am): Augment lib_SOURCES.
10496
10497 2011-05-23  Bruno Haible  <bruno@clisp.org>
10498
10499         getndelim2: Move AC_LIBOBJ invocations to module description.
10500         * m4/getndelim2.m4 (gl_GETNDELIM2): Remove AC_LIBOBJ invocation.
10501         * modules/getndelim2 (Makefile.am): Augment lib_SOURCES.
10502
10503 2011-05-23  Bruno Haible  <bruno@clisp.org>
10504
10505         crypto/gc-pbkdf2-sha1: Move AC_LIBOBJ invocations to module description.
10506         * m4/gc-pbkdf2-sha1.m4: Remove file.
10507         * modules/crypto/gc-pbkdf2-sha1 (Files): Remove it.
10508         (configure.ac): Remove gl_GC_PBKDF2_SHA1 call.
10509         (Makefile.am): Augment lib_SOURCES.
10510
10511 2011-05-23  Bruno Haible  <bruno@clisp.org>
10512
10513         fts: Move AC_LIBOBJ invocations to module description.
10514         * m4/fts.m4 (gl_FUNC_FTS_CORE): Move AC_LIBOBJ invocation from here...
10515         * modules/fts (configure.ac): ... to here.
10516
10517 2011-05-23  Bruno Haible  <bruno@clisp.org>
10518
10519         file-type: Move AC_LIBOBJ invocations to module description.
10520         * m4/file-type.m4: Remove file.
10521         * modules/file-type (Files): Remove it.
10522         (configure.ac): Remove gl_FILE_TYPE call.
10523         (Makefile.am): Augment lib_SOURCES.
10524
10525 2011-05-23  Bruno Haible  <bruno@clisp.org>
10526
10527         filenamecat*: Respect rules for use of AC_LIBOBJ.
10528         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT, gl_FILE_NAME_CONCAT_LGPL):
10529         Remove AC_LIBOBJ invocation.
10530         * modules/filenamecat (Makefile.am): Augment lib_SOURCES.
10531         * modules/filenamecat-lgpl (Makefile.am): Augment lib_SOURCES.
10532
10533 2011-05-23  Bruno Haible  <bruno@clisp.org>
10534
10535         filemode: Move AC_LIBOBJ invocations to module description.
10536         * m4/filemode.m4 (gl_FILEMODE): Remove AC_LIBOBJ invocation.
10537         * modules/filemode (Makefile.am): Augment lib_SOURCES.
10538
10539 2011-05-23  Bruno Haible  <bruno@clisp.org>
10540
10541         openat-safer: Move AC_LIBOBJ invocations to module description.
10542         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): Remove AC_LIBOBJ invocation.
10543         * modules/openat-safer (Makefile.am): Augment lib_SOURCES.
10544
10545 2011-05-23  Bruno Haible  <bruno@clisp.org>
10546
10547         fcntl-safer: Move AC_LIBOBJ invocations to module description.
10548         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove AC_LIBOBJ invocations.
10549         * modules/fcntl-safer (Makefile.am): Augment lib_SOURCES.
10550
10551 2011-05-23  Bruno Haible  <bruno@clisp.org>
10552
10553         exclude: Move AC_LIBOBJ invocations to module description.
10554         * m4/exclude.m4: Remove file.
10555         * modules/exclude (Files): Remove it.
10556         (configure.ac): Remove gl_EXCLUDE call.
10557         (Makefile.am): Augment lib_SOURCES.
10558
10559 2011-05-23  Bruno Haible  <bruno@clisp.org>
10560
10561         dirname*: Respect rules for use of AC_LIBOBJ.
10562         * m4/dirname.m4 (gl_DIRNAME, gl_DIRNAME_LGPL): Remove AC_LIBOBJ
10563         invocations.
10564         * modules/dirname (Makefile.am): Augment lib_SOURCES.
10565         * modules/dirname-lgpl (Makefile.am): Augment lib_SOURCES.
10566
10567 2011-05-23  Bruno Haible  <bruno@clisp.org>
10568
10569         dirent-safer: Move AC_LIBOBJ invocations to module description.
10570         * m4/dirent-safer.m4 (gl_DIRENT_SAFER): Remove AC_LIBOBJ invocation.
10571         * modules/dirent-safer (Makefile.am): Augment lib_SOURCES.
10572
10573 2011-05-23  Bruno Haible  <bruno@clisp.org>
10574
10575         crypto/des: Move AC_LIBOBJ invocations to module description.
10576         * m4/des.m4: Remove file.
10577         * modules/crypto/des (Files): Remove it.
10578         (configure.ac): Remove gl_DES call.
10579         (Makefile.am): Augment lib_SOURCES.
10580
10581 2011-05-23  Bruno Haible  <bruno@clisp.org>
10582
10583         cycle-check: Move AC_LIBOBJ invocations to module description.
10584         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Remove AC_LIBOBJ invocation.
10585         * modules/cycle-check (Makefile.am): Augment lib_SOURCES.
10586
10587 2011-05-23  Bruno Haible  <bruno@clisp.org>
10588
10589         c-strtold: Move AC_LIBOBJ invocations to module description.
10590         * m4/c-strtod.m4 (gl_C_STRTOLD): Remove AC_LIBOBJ invocation.
10591         * modules/c-strtold (Makefile.am): Augment lib_SOURCES.
10592
10593 2011-05-23  Bruno Haible  <bruno@clisp.org>
10594
10595         c-strtod: Move AC_LIBOBJ invocations to module description.
10596         * m4/c-strtod.m4 (gl_C_STRTOD): Remove AC_LIBOBJ invocation.
10597         * modules/c-strtod (Makefile.am): Augment lib_SOURCES.
10598
10599 2011-05-23  Bruno Haible  <bruno@clisp.org>
10600
10601         crc: Move AC_LIBOBJ invocations to module description.
10602         * m4/crc.m4: Remove file.
10603         * modules/crc (Files): Remove it.
10604         (configure.ac): Remove gl_CRC call.
10605         (Makefile.am): Augment lib_SOURCES.
10606
10607 2011-05-23  Bruno Haible  <bruno@clisp.org>
10608
10609         close-stream: Move AC_LIBOBJ invocations to module description.
10610         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove AC_LIBOBJ invocation.
10611         * modules/close-stream (Makefile.am): Augment lib_SOURCES.
10612
10613 2011-05-23  Bruno Haible  <bruno@clisp.org>
10614
10615         closeout: Move AC_LIBOBJ invocations to module description.
10616         * m4/closeout.m4 (gl_CLOSEOUT): Remove AC_LIBOBJ invocation.
10617         * modules/closeout (Makefile.am): Augment lib_SOURCES.
10618
10619 2011-05-23  Bruno Haible  <bruno@clisp.org>
10620
10621         closein: Move AC_LIBOBJ invocations to module description.
10622         * m4/closein.m4 (gl_CLOSEIN): Remove AC_LIBOBJ invocation.
10623         * modules/closein (Makefile.am): Augment lib_SOURCES.
10624
10625 2011-05-23  Bruno Haible  <bruno@clisp.org>
10626
10627         cloexec: Move AC_LIBOBJ invocations to module description.
10628         * m4/cloexec.m4: Remove file.
10629         * modules/cloexec (Files): Remove it.
10630         (configure.ac): Remove gl_CLOEXEC call.
10631         (Makefile.am): Augment lib_SOURCES.
10632
10633 2011-05-23  Bruno Haible  <bruno@clisp.org>
10634
10635         check-version: Move AC_LIBOBJ invocations to module description.
10636         * m4/check-version.m4: Remove file.
10637         * modules/check-version (Files): Remove it.
10638         (configure.ac): Remove gl_CHECK_VERSION call.
10639         (Makefile.am): Augment lib_SOURCES.
10640
10641 2011-05-23  Bruno Haible  <bruno@clisp.org>
10642
10643         chdir-safer: Move AC_LIBOBJ invocations to module description.
10644         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Remove AC_LIBOBJ invocation.
10645         * modules/chdir-safer (Makefile.am): Augment lib_SOURCES.
10646
10647 2011-05-23  Bruno Haible  <bruno@clisp.org>
10648
10649         canonicalize: Move AC_LIBOBJ invocations to module description.
10650         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Remove
10651         AC_LIBOBJ invocation.
10652         * modules/canonicalize (Makefile.am): Augment lib_SOURCES.
10653
10654 2011-05-23  Bruno Haible  <bruno@clisp.org>
10655
10656         canon-host: Move AC_LIBOBJ invocations to module description.
10657         * m4/canon-host.m4 (gl_CANON_HOST): Remove macro.
10658         * modules/canon-host (configure.ac): Invoke gl_PREREQ_CANON_HOST
10659         instead of gl_CANON_HOST.
10660         (Makefile.am): Augment lib_SOURCES.
10661
10662 2011-05-23  Bruno Haible  <bruno@clisp.org>
10663
10664         backupfile: Move AC_LIBOBJ invocations to module description.
10665         * m4/backupfile.m4 (gl_BACKUPFILE): Remove AC_LIBOBJ invocation.
10666         * modules/backupfile (Makefile.am): Augment lib_SOURCES.
10667
10668 2011-05-23  Bruno Haible  <bruno@clisp.org>
10669
10670         argmatch: Move AC_LIBOBJ invocations to module description.
10671         * m4/argmatch.m4: Remove file.
10672         * modules/argmatch (Files): Remove it.
10673         (configure.ac): Remove gl_ARGMATCH call.
10674         (Makefile.am): Augment lib_SOURCES.
10675
10676 2011-05-23  Bruno Haible  <bruno@clisp.org>
10677
10678         crypto/arctwo: Move AC_LIBOBJ invocations to module description.
10679         * m4/arctwo.m4 (gl_ARCTWO): Remove AC_LIBOBJ invocation.
10680         * modules/crypto/arctwo (Makefile.am): Augment lib_SOURCES.
10681
10682 2011-05-23  Bruno Haible  <bruno@clisp.org>
10683
10684         crypto/arcfour: Move AC_LIBOBJ invocations to module description.
10685         * m4/arcfour.m4: Remove file.
10686         * modules/crypto/arcfour (Files): Remove it.
10687         (configure.ac): Remove gl_ARCFOUR call.
10688         (Makefile.am): Augment lib_SOURCES.
10689
10690 2011-05-22  Bruno Haible  <bruno@clisp.org>
10691
10692         write: Move AC_LIBOBJ invocations to module description.
10693         * m4/write.m4 (gl_FUNC_WRITE): Move AC_LIBOBJ invocation from here...
10694         * modules/write (configure.ac): ... to here.
10695
10696 2011-05-22  Bruno Haible  <bruno@clisp.org>
10697
10698         wmemset: Move AC_LIBOBJ invocations to module description.
10699         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Move AC_LIBOBJ invocation from
10700         here...
10701         * modules/wmemset (configure.ac): ... to here.
10702
10703 2011-05-22  Bruno Haible  <bruno@clisp.org>
10704
10705         wmemmove: Move AC_LIBOBJ invocations to module description.
10706         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Move AC_LIBOBJ invocation from
10707         here...
10708         * modules/wmemmove (configure.ac): ... to here.
10709
10710 2011-05-22  Bruno Haible  <bruno@clisp.org>
10711
10712         wmemcpy: Move AC_LIBOBJ invocations to module description.
10713         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Move AC_LIBOBJ invocation from
10714         here...
10715         * modules/wmemcpy (configure.ac): ... to here.
10716
10717 2011-05-22  Bruno Haible  <bruno@clisp.org>
10718
10719         wmemcmp: Move AC_LIBOBJ invocations to module description.
10720         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Move AC_LIBOBJ invocation from
10721         here...
10722         * modules/wmemcmp (configure.ac): ... to here.
10723
10724 2011-05-22  Bruno Haible  <bruno@clisp.org>
10725
10726         wmemchr: Move AC_LIBOBJ invocations to module description.
10727         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Move AC_LIBOBJ invocation from
10728         here...
10729         * modules/wmemchr (configure.ac): ... to here.
10730
10731 2011-05-22  Bruno Haible  <bruno@clisp.org>
10732
10733         wcswidth: Move AC_LIBOBJ invocations to module description.
10734         * m4/wcswidth.m4 (gl_FUNC_WCSWIDTH): Move AC_LIBOBJ invocation from
10735         here...
10736         * modules/wcswidth (configure.ac): ... to here.
10737
10738 2011-05-22  Bruno Haible  <bruno@clisp.org>
10739
10740         wcwidth: Respect rules for use of AC_LIBOBJ.
10741         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Set HAVE_WCWIDTH. Move AC_LIBOBJ
10742         invocation from here...
10743         * modules/wcwidth (configure.ac): ... to here.
10744         (Depends-on): Update conditions.
10745
10746 2011-05-22  Bruno Haible  <bruno@clisp.org>
10747
10748         wctype: Move AC_LIBOBJ invocations to module description.
10749         * m4/wctype.m4 (gl_FUNC_WCTYPE): Set HAVE_WCTYPE. Move AC_LIBOBJ
10750         invocation from here...
10751         * modules/wctype (configure.ac): ... to here.
10752         (Depends-on): Update conditions.
10753
10754 2011-05-22  Bruno Haible  <bruno@clisp.org>
10755
10756         wctrans: Move AC_LIBOBJ invocations to module description.
10757         * m4/wctrans.m4 (gl_FUNC_WCTRANS): Set HAVE_WCTRANS. Move AC_LIBOBJ
10758         invocation from here...
10759         * modules/wctrans (configure.ac): ... to here.
10760
10761 2011-05-22  Bruno Haible  <bruno@clisp.org>
10762
10763         wctomb: Move AC_LIBOBJ invocations to module description.
10764         * m4/wctomb.m4 (gl_FUNC_WCTOMB): Move AC_LIBOBJ and gl_PREREQ_WCTOMB
10765         invocations from here...
10766         * modules/wctomb (configure.ac): ... to here.
10767
10768 2011-05-22  Bruno Haible  <bruno@clisp.org>
10769
10770         wctob: Move AC_LIBOBJ invocations to module description.
10771         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_WCTOB. Move AC_LIBOBJ and
10772         gl_PREREQ_WCTOB invocations from here...
10773         * modules/wctob (configure.ac): ... to here.
10774         (Depends-on): Update conditions.
10775
10776 2011-05-22  Bruno Haible  <bruno@clisp.org>
10777
10778         wcsxfrm: Move AC_LIBOBJ invocations to module description.
10779         * m4/wcsxfrm.m4 (gl_FUNC_WCSXFRM): Move AC_LIBOBJ invocation from
10780         here...
10781         * modules/wcsxfrm (configure.ac): ... to here.
10782
10783 2011-05-22  Bruno Haible  <bruno@clisp.org>
10784
10785         wcstok: Move AC_LIBOBJ invocations to module description.
10786         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Move AC_LIBOBJ invocation from here...
10787         * modules/wcstok (configure.ac): ... to here.
10788
10789 2011-05-22  Bruno Haible  <bruno@clisp.org>
10790
10791         wcsstr: Move AC_LIBOBJ invocations to module description.
10792         * m4/wcsstr.m4 (gl_FUNC_WCSSTR): Move AC_LIBOBJ invocation from here...
10793         * modules/wcsstr (configure.ac): ... to here.
10794
10795 2011-05-22  Bruno Haible  <bruno@clisp.org>
10796
10797         wcsspn: Move AC_LIBOBJ invocations to module description.
10798         * m4/wcsspn.m4 (gl_FUNC_WCSSPN): Move AC_LIBOBJ invocation from here...
10799         * modules/wcsspn (configure.ac): ... to here.
10800
10801 2011-05-22  Bruno Haible  <bruno@clisp.org>
10802
10803         wcsrtombs: Move AC_LIBOBJ invocations to module description.
10804         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Move AC_LIBOBJ and
10805         gl_PREREQ_WCSRTOMBS invocations from here...
10806         * modules/wcsrtombs (configure.ac): ... to here.
10807
10808 2011-05-22  Bruno Haible  <bruno@clisp.org>
10809
10810         wcsrchr: Move AC_LIBOBJ invocations to module description.
10811         * m4/wcsrchr.m4 (gl_FUNC_WCSRCHR): Move AC_LIBOBJ invocation from
10812         here...
10813         * modules/wcsrchr (configure.ac): ... to here.
10814
10815 2011-05-22  Bruno Haible  <bruno@clisp.org>
10816
10817         wcspbrk: Move AC_LIBOBJ invocations to module description.
10818         * m4/wcspbrk.m4 (gl_FUNC_WCSPBRK): Move AC_LIBOBJ invocation from
10819         here...
10820         * modules/wcspbrk (configure.ac): ... to here.
10821
10822 2011-05-22  Bruno Haible  <bruno@clisp.org>
10823
10824         wcsnrtombs: Move AC_LIBOBJ invocations to module description.
10825         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): Move AC_LIBOBJ and
10826         gl_PREREQ_WCSNRTOMBS invocations from here...
10827         * modules/wcsnrtombs (configure.ac): ... to here.
10828
10829 2011-05-22  Bruno Haible  <bruno@clisp.org>
10830
10831         wcsnlen: Move AC_LIBOBJ invocations to module description.
10832         * m4/wcsnlen.m4 (gl_FUNC_WCSNLEN): Move AC_LIBOBJ invocation from
10833         here...
10834         * modules/wcsnlen (configure.ac): ... to here.
10835
10836 2011-05-22  Bruno Haible  <bruno@clisp.org>
10837
10838         wcsncpy: Move AC_LIBOBJ invocations to module description.
10839         * m4/wcsncpy.m4 (gl_FUNC_WCSNCPY): Move AC_LIBOBJ invocation from
10840         here...
10841         * modules/wcsncpy (configure.ac): ... to here.
10842
10843 2011-05-22  Bruno Haible  <bruno@clisp.org>
10844
10845         wcsncmp: Move AC_LIBOBJ invocations to module description.
10846         * m4/wcsncmp.m4 (gl_FUNC_WCSNCMP): Move AC_LIBOBJ invocation from
10847         here...
10848         * modules/wcsncmp (configure.ac): ... to here.
10849
10850 2011-05-22  Bruno Haible  <bruno@clisp.org>
10851
10852         wcsncat: Move AC_LIBOBJ invocations to module description.
10853         * m4/wcsncat.m4 (gl_FUNC_WCSNCAT): Move AC_LIBOBJ invocation from
10854         here...
10855         * modules/wcsncat (configure.ac): ... to here.
10856
10857 2011-05-22  Bruno Haible  <bruno@clisp.org>
10858
10859         wcsncasecmp: Move AC_LIBOBJ invocations to module description.
10860         * m4/wcsncasecmp.m4 (gl_FUNC_WCSNCASECMP): Move AC_LIBOBJ invocation
10861         from here...
10862         * modules/wcsncasecmp (configure.ac): ... to here.
10863
10864 2011-05-22  Bruno Haible  <bruno@clisp.org>
10865
10866         wcslen: Move AC_LIBOBJ invocations to module description.
10867         * m4/wcslen.m4 (gl_FUNC_WCSLEN): Move AC_LIBOBJ invocation from here...
10868         * modules/wcslen (configure.ac): ... to here.
10869
10870 2011-05-22  Bruno Haible  <bruno@clisp.org>
10871
10872         wcsdup: Move AC_LIBOBJ invocations to module description.
10873         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): Move AC_LIBOBJ invocation from here...
10874         * modules/wcsdup (configure.ac): ... to here.
10875
10876 2011-05-22  Bruno Haible  <bruno@clisp.org>
10877
10878         wcscspn: Move AC_LIBOBJ invocations to module description.
10879         * m4/wcscspn.m4 (gl_FUNC_WCSCSPN): Move AC_LIBOBJ invocation from
10880         here...
10881         * modules/wcscspn (configure.ac): ... to here.
10882
10883 2011-05-22  Bruno Haible  <bruno@clisp.org>
10884
10885         wcscpy: Move AC_LIBOBJ invocations to module description.
10886         * m4/wcscpy.m4 (gl_FUNC_WCSCPY): Move AC_LIBOBJ invocation from here...
10887         * modules/wcscpy (configure.ac): ... to here.
10888
10889 2011-05-22  Bruno Haible  <bruno@clisp.org>
10890
10891         wcscoll: Move AC_LIBOBJ invocations to module description.
10892         * m4/wcscoll.m4 (gl_FUNC_WCSCOLL): Move AC_LIBOBJ invocation from
10893         here...
10894         * modules/wcscoll (configure.ac): ... to here.
10895
10896 2011-05-22  Bruno Haible  <bruno@clisp.org>
10897
10898         wcscmp: Move AC_LIBOBJ invocations to module description.
10899         * m4/wcscmp.m4 (gl_FUNC_WCSCMP): Move AC_LIBOBJ invocation from here...
10900         * modules/wcscmp (configure.ac): ... to here.
10901
10902 2011-05-22  Bruno Haible  <bruno@clisp.org>
10903
10904         wcschr: Move AC_LIBOBJ invocations to module description.
10905         * m4/wcschr.m4 (gl_FUNC_WCSCHR): Move AC_LIBOBJ invocation from here...
10906         * modules/wcschr (configure.ac): ... to here.
10907
10908 2011-05-22  Bruno Haible  <bruno@clisp.org>
10909
10910         wcscat: Move AC_LIBOBJ invocations to module description.
10911         * m4/wcscat.m4 (gl_FUNC_WCSCAT): Move AC_LIBOBJ invocation from here...
10912         * modules/wcscat (configure.ac): ... to here.
10913
10914 2011-05-22  Bruno Haible  <bruno@clisp.org>
10915
10916         wcscasecmp: Move AC_LIBOBJ invocations to module description.
10917         * m4/wcscasecmp.m4 (gl_FUNC_WCSCASECMP): Move AC_LIBOBJ invocation from
10918         here...
10919         * modules/wcscasecmp (configure.ac): ... to here.
10920
10921 2011-05-22  Bruno Haible  <bruno@clisp.org>
10922
10923         wcrtomb: Move AC_LIBOBJ invocations to module description.
10924         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Move AC_LIBOBJ and gl_PREREQ_WCRTOMB
10925         invocations from here...
10926         * modules/wcrtomb (configure.ac): ... to here.
10927
10928 2011-05-22  Bruno Haible  <bruno@clisp.org>
10929
10930         wcpncpy: Move AC_LIBOBJ invocations to module description.
10931         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Move AC_LIBOBJ invocation from
10932         here...
10933         * modules/wcpncpy (configure.ac): ... to here.
10934
10935 2011-05-22  Bruno Haible  <bruno@clisp.org>
10936
10937         wcpcpy: Move AC_LIBOBJ invocations to module description.
10938         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Move AC_LIBOBJ invocation from here...
10939         * modules/wcpcpy (configure.ac): ... to here.
10940
10941 2011-05-22  Bruno Haible  <bruno@clisp.org>
10942
10943         waitpid: Move AC_LIBOBJ invocations to module description.
10944         * m4/waitpid.m4 (gl_FUNC_WAITPID): Set HAVE_WAITPID. Move AC_LIBOBJ
10945         invocation from here...
10946         * modules/waitpid (configure.ac): ... to here.
10947
10948 2011-05-22  Bruno Haible  <bruno@clisp.org>
10949
10950         utimensat: Move AC_LIBOBJ invocations to module description.
10951         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Move AC_LIBOBJ invocations from
10952         here...
10953         * modules/utimensat (configure.ac): ... to here.
10954
10955 2011-05-22  Bruno Haible  <bruno@clisp.org>
10956
10957         usleep: Move AC_LIBOBJ invocations to module description.
10958         * m4/usleep.m4 (gl_FUNC_USLEEP): Move AC_LIBOBJ invocations from
10959         here...
10960         * modules/usleep (configure.ac): ... to here.
10961
10962 2011-05-22  Bruno Haible  <bruno@clisp.org>
10963
10964         unlockpt: Move AC_LIBOBJ invocations to module description.
10965         * m4/unlockpt.m4 (gl_FUNC_UNLOCKPT): Move AC_LIBOBJ and
10966         gl_PREREQ_UNLOCKPT invocations from here...
10967         * modules/unlockpt (configure.ac): ... to here.
10968
10969 2011-05-22  Bruno Haible  <bruno@clisp.org>
10970
10971         unlink: Respect rules for use of AC_LIBOBJ.
10972         * m4/unlink.m4 (gl_FUNC_UNLINK): Move AC_LIBOBJ invocation from here...
10973         * modules/unlink (configure.ac): ... to here.
10974
10975 2011-05-22  Bruno Haible  <bruno@clisp.org>
10976
10977         uname: Move AC_LIBOBJ invocations to module description.
10978         * m4/uname.m4 (gl_FUNC_UNAME): Call AC_CHECK_FUNCS instead of
10979         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_UNAME invocations from
10980         here...
10981         * modules/uname (configure.ac): ... to here.
10982
10983 2011-05-22  Bruno Haible  <bruno@clisp.org>
10984
10985         ttyname_r: Move AC_LIBOBJ invocations to module description.
10986         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Move AC_LIBOBJ and
10987         gl_PREREQ_TTYNAME_R invocations from here...
10988         * modules/ttyname_r (configure.ac): ... to here.
10989
10990 2011-05-22  Bruno Haible  <bruno@clisp.org>
10991
10992         tsearch: Move AC_LIBOBJ invocations to module description.
10993         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Move AC_LIBOBJ and gl_PREREQ_TSEARCH
10994         invocations from here...
10995         * modules/tsearch (configure.ac): ... to here.
10996
10997 2011-05-22  Bruno Haible  <bruno@clisp.org>
10998
10999         towctrans: Move AC_LIBOBJ invocations to module description.
11000         * m4/towctrans.m4 (gl_FUNC_TOWCTRANS): Set HAVE_TOWCTRANS. Move
11001         AC_LIBOBJ invocation from here...
11002         * modules/towctrans (configure.ac): ... to here.
11003
11004 2011-05-22  Bruno Haible  <bruno@clisp.org>
11005
11006         tmpfile: Move AC_LIBOBJ invocations to module description.
11007         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Move AC_LIBOBJ and gl_PREREQ_TMPFILE
11008         invocations from here...
11009         * modules/tmpfile (configure.ac): ... to here.
11010
11011 2011-05-22  Bruno Haible  <bruno@clisp.org>
11012
11013         times: Move AC_LIBOBJ invocations to module description.
11014         * m4/times.m4 (gl_FUNC_TIMES): Move AC_LIBOBJ invocation from here...
11015         * modules/times (configure.ac): ... to here.
11016
11017 2011-05-22  Bruno Haible  <bruno@clisp.org>
11018
11019         time_r: Move AC_LIBOBJ invocations to module description.
11020         * m4/time_r.m4 (gl_TIME_R): Move AC_LIBOBJ and gl_PREREQ_TIME_R
11021         invocations from here...
11022         * modules/time_r (configure.ac): ... to here.
11023
11024 2011-05-22  Bruno Haible  <bruno@clisp.org>
11025
11026         timegm: Move AC_LIBOBJ invocations to module description.
11027         * m4/timegm.m4 (gl_FUNC_TIMEGM): Move AC_LIBOBJ and gl_PREREQ_TIMEGM
11028         invocations from here...
11029         * modules/timegm (configure.ac): ... to here.
11030
11031 2011-05-22  Bruno Haible  <bruno@clisp.org>
11032
11033         tcgetsid: Move AC_LIBOBJ invocations to module description.
11034         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Set HAVE_TCGETSID. Move AC_LIBOBJ
11035         and gl_PREREQ_TCGETSID invocations from here...
11036         * modules/tcgetsid (configure.ac): ... to here.
11037         (Depends-on): Update conditions.
11038
11039 2011-05-22  Bruno Haible  <bruno@clisp.org>
11040
11041         symlinkat: Move AC_LIBOBJ invocations to module description.
11042         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move AC_LIBOBJ invocation from
11043         here...
11044         * modules/symlinkat (configure.ac): ... to here.
11045
11046 2011-05-22  Bruno Haible  <bruno@clisp.org>
11047
11048         symlink: Move AC_LIBOBJ invocations to module description.
11049         * m4/symlink.m4 (gl_FUNC_SYMLINK): Move AC_LIBOBJ invocations from
11050         here...
11051         * modules/symlink (configure.ac): ... to here.
11052
11053 2011-05-22  Bruno Haible  <bruno@clisp.org>
11054
11055         strverscmp: Move AC_LIBOBJ invocations to module description.
11056         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Call AC_CHECK_FUNCS instead of
11057         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRVERSCMP invocations
11058         from here...
11059         * modules/strverscmp (configure.ac): ... to here.
11060
11061 2011-05-22  Bruno Haible  <bruno@clisp.org>
11062
11063         strtok_r: Move AC_LIBOBJ invocations to module description.
11064         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_STRTOK_R. Move AC_LIBOBJ
11065         and gl_PREREQ_STRTOK_R invocations from here...
11066         * modules/strtok_r (configure.ac): ... to here.
11067         (Depends-on): Update conditions.
11068
11069 2011-05-22  Bruno Haible  <bruno@clisp.org>
11070
11071         strtoumax: Move AC_LIBOBJ invocations to module description.
11072         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Call AC_CHECK_FUNCS instead of
11073         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOUMAX invocations
11074         from here...
11075         * modules/strtoumax (configure.ac): ... to here.
11076
11077 2011-05-22  Bruno Haible  <bruno@clisp.org>
11078
11079         strtoimax: Move AC_LIBOBJ invocations to module description.
11080         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Call AC_CHECK_FUNCS instead of
11081         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOIMAX invocations
11082         from here...
11083         * modules/strtoimax (configure.ac): ... to here.
11084
11085 2011-05-22  Bruno Haible  <bruno@clisp.org>
11086
11087         strtoull: Move AC_LIBOBJ invocations to module description.
11088         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Call AC_CHECK_FUNCS instead of
11089         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOULL invocations
11090         from here...
11091         * modules/strtoull (configure.ac): ... to here.
11092
11093 2011-05-22  Bruno Haible  <bruno@clisp.org>
11094
11095         strtoll: Move AC_LIBOBJ invocations to module description.
11096         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Call AC_CHECK_FUNCS instead of
11097         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOLL invocations from
11098         here...
11099         * modules/strtoll (configure.ac): ... to here.
11100
11101 2011-05-22  Bruno Haible  <bruno@clisp.org>
11102
11103         strtoul: Move AC_LIBOBJ invocations to module description.
11104         * m4/strtoul.m4 (gl_FUNC_STRTOUL): Call AC_CHECK_FUNCS instead of
11105         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
11106         * modules/strtoul (configure.ac): ... to here.
11107
11108 2011-05-22  Bruno Haible  <bruno@clisp.org>
11109
11110         strtol: Move AC_LIBOBJ invocations to module description.
11111         * m4/strtol.m4 (gl_FUNC_STRTOL): Call AC_CHECK_FUNCS instead of
11112         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
11113         * modules/strtol (configure.ac): ... to here.
11114
11115 2011-05-22  Bruno Haible  <bruno@clisp.org>
11116
11117         strtod: Move AC_LIBOBJ invocations to module description.
11118         * m4/strtod.m4 (gl_FUNC_STRTOD): Move AC_LIBOBJ and gl_PREREQ_STRTOD
11119         invocations from here...
11120         * modules/strtod (configure.ac): ... to here.
11121
11122 2011-05-22  Bruno Haible  <bruno@clisp.org>
11123
11124         strstr*: Move AC_LIBOBJ invocations to module description.
11125         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Move AC_LIBOBJ
11126         invocations from here...
11127         * modules/strstr-simple (configure.ac): ... to here.
11128         * modules/strstr (configure.ac): ... and here.
11129
11130 2011-05-22  Bruno Haible  <bruno@clisp.org>
11131
11132         strsignal: Move AC_LIBOBJ invocations to module description.
11133         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Set HAVE_STRSIGNAL. Move
11134         AC_LIBOBJ and gl_PREREQ_STRSIGNAL invocations from here...
11135         * modules/strsignal (configure.ac): ... to here.
11136         (Depends-on): Update conditions.
11137
11138 2011-05-22  Bruno Haible  <bruno@clisp.org>
11139
11140         strsep: Move AC_LIBOBJ invocations to module description.
11141         * m4/strsep.m4 (gl_FUNC_STRSEP): Call AC_CHECK_FUNCS instead of
11142         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRSEP invocations from
11143         here...
11144         * modules/strsep (configure.ac): ... to here.
11145
11146 2011-05-22  Bruno Haible  <bruno@clisp.org>
11147
11148         strptime: Move AC_LIBOBJ invocations to module description.
11149         * m4/strptime.m4 (gl_FUNC_STRPTIME): Move AC_LIBOBJ and
11150         gl_PREREQ_STRPTIME invocations from here...
11151         * modules/strptime (configure.ac): ... to here.
11152
11153 2011-05-22  Bruno Haible  <bruno@clisp.org>
11154
11155         strpbrk: Move AC_LIBOBJ invocations to module description.
11156         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Call AC_CHECK_FUNCS instead of
11157         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRPBRK invocations from
11158         here...
11159         * modules/strpbrk (configure.ac): ... to here.
11160
11161 2011-05-22  Bruno Haible  <bruno@clisp.org>
11162
11163         strnlen: Move AC_LIBOBJ invocations to module description.
11164         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Move AC_LIBOBJ and gl_PREREQ_STRNLEN
11165         invocations from here...
11166         * modules/strnlen (configure.ac): ... to here.
11167
11168 2011-05-22  Bruno Haible  <bruno@clisp.org>
11169
11170         strndup: Move AC_LIBOBJ invocations to module description.
11171         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_STRNDUP. Move AC_LIBOBJ
11172         invocations from here...
11173         * modules/strndup (configure.ac): ... to here.
11174         (Depends-on): Update conditions.
11175
11176 2011-05-22  Bruno Haible  <bruno@clisp.org>
11177
11178         strncat: Move AC_LIBOBJ invocations to module description.
11179         * m4/strncat.m4 (gl_FUNC_STRNCAT): Move AC_LIBOBJ and gl_PREREQ_STRNCAT
11180         invocations from here...
11181         * modules/strncat (configure.ac): ... to here.
11182
11183 2011-05-22  Bruno Haible  <bruno@clisp.org>
11184
11185         strdup, strdup-posix: Move AC_LIBOBJ invocations to module description.
11186         * m4/strdup.m4 (gl_FUNC_STRDUP): Move AC_LIBOBJ and gl_PREREQ_STRDUP
11187         invocations from here...
11188         * modules/strdup (configure.ac): ... to here.
11189         * modules/strdup-posix (configure.ac): ... and here.
11190
11191 2011-05-22  Bruno Haible  <bruno@clisp.org>
11192
11193         strcspn: Move AC_LIBOBJ invocations to module description.
11194         * m4/strcspn.m4 (gl_FUNC_STRCSPN): Call AC_CHECK_FUNCS instead of
11195         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRCSPN invocations from
11196         here...
11197         * modules/strcspn (configure.ac): ... to here.
11198
11199 2011-05-22  Bruno Haible  <bruno@clisp.org>
11200
11201         strchrnul: Move AC_LIBOBJ invocations to module description.
11202         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Move AC_LIBOBJ and
11203         gl_PREREQ_STRCHRNUL invocations from here...
11204         * modules/strchrnul (configure.ac): ... to here.
11205
11206 2011-05-22  Bruno Haible  <bruno@clisp.org>
11207
11208         strcasestr*: Move AC_LIBOBJ invocations to module description.
11209         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
11210         Move AC_LIBOBJ and gl_PREREQ_STRCASESTR invocations from here...
11211         * modules/strcasestr-simple (configure.ac): ... to here.
11212         * modules/strcasestr (configure.ac): ... and here.
11213
11214 2011-05-22  Bruno Haible  <bruno@clisp.org>
11215
11216         strcase: Move AC_LIBOBJ invocations to module description.
11217         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Set HAVE_STRNCASECMP.
11218         (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Call AC_CHECK_FUNCS instead
11219         of AC_REPLACE_FUNCS. Move AC_LIBOBJ, gl_PREREQ_STRCASECMP,
11220         gl_PREREQ_STRNCASECMP invocations from here...
11221         * modules/strcase (configure.ac): ... to here.
11222
11223 2011-05-22  Bruno Haible  <bruno@clisp.org>
11224
11225         stpncpy: Move AC_LIBOBJ invocations to module description.
11226         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Move AC_LIBOBJ invocations from
11227         here...
11228         * modules/stpncpy (configure.ac): ... to here.
11229
11230 2011-05-22  Bruno Haible  <bruno@clisp.org>
11231
11232         stpcpy: Move AC_LIBOBJ invocations to module description.
11233         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Call AC_CHECK_FUNCS instead of
11234         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STPCPY invocations from
11235         here...
11236         * modules/stpcpy (configure.ac): ... to here.
11237
11238 2011-05-21  Bruno Haible  <bruno@clisp.org>
11239
11240         stat: Move AC_LIBOBJ invocations to module description.
11241         * m4/stat.m4 (gl_PREREQ_STAT): New macro, extracted from gl_FUNC_STAT.
11242         (gl_FUNC_STAT): Move AC_LIBOBJ and gl_PREREQ_STAT invocations from
11243         here...
11244         * modules/stat (configure.ac): ... to here.
11245
11246 2011-05-21  Bruno Haible  <bruno@clisp.org>
11247
11248         sleep: Move AC_LIBOBJ invocations to module description.
11249         * m4/sleep.m4 (gl_FUNC_SLEEP): Move AC_LIBOBJ invocations from here...
11250         * modules/sleep (configure.ac): ... to here.
11251
11252 2011-05-21  Bruno Haible  <bruno@clisp.org>
11253
11254         signbit: Move AC_LIBOBJ invocations to module description.
11255         * m4/signbit.m4 (gl_SIGNBIT): Move AC_LIBOBJ invocations from here...
11256         * modules/signbit (configure.ac): ... to here.
11257
11258 2011-05-21  Bruno Haible  <bruno@clisp.org>
11259
11260         sigprocmask: Move AC_LIBOBJ invocations to module description.
11261         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Move AC_LIBOBJ and
11262         gl_PREREQ_SIGPROMASK invocations from here...
11263         * modules/sigprocmask (configure.ac): ... to here.
11264
11265 2011-05-21  Bruno Haible  <bruno@clisp.org>
11266
11267         sigaction: Move AC_LIBOBJ invocations to module description.
11268         * m4/sigaction.m4 (gl_SIGACTION): Move AC_LIBOBJ and
11269         gl_PREREQ_SIGACTION invocations from here...
11270         * modules/sigaction (configure.ac): ... to here.
11271
11272 2011-05-21  Bruno Haible  <bruno@clisp.org>
11273
11274         sig2str: Move AC_LIBOBJ invocations to module description.
11275         * m4/sig2str.m4 (gl_FUNC_SIG2STR): Call AC_CHECK_FUNCS instead of
11276         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_SIG2STR invocations from
11277         here...
11278         * modules/sig2str (configure.ac): ... to here.
11279
11280 2011-05-21  Bruno Haible  <bruno@clisp.org>
11281
11282         setlocale: Move AC_LIBOBJ invocations to module description.
11283         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Move AC_LIBOBJ and
11284         gl_PREREQ_SETLOCALE invocations from here...
11285         * modules/setlocale (configure.ac): ... to here.
11286
11287 2011-05-21  Bruno Haible  <bruno@clisp.org>
11288
11289         unsetenv: Move AC_LIBOBJ invocations to module description.
11290         * m4/setenv.m4 (gl_FUNC_UNSETENV): Set HAVE_UNSETENV. Move AC_LIBOBJ
11291         and gl_PREREQ_UNSETENV invocations from here...
11292         * modules/unsetenv (configure.ac): ... to here.
11293         (Depends-on): Update.
11294
11295 2011-05-21  Bruno Haible  <bruno@clisp.org>
11296
11297         setenv: Move AC_LIBOBJ invocations to module description.
11298         * m4/setenv.m4 (gl_FUNC_SETENV): Move AC_LIBOBJ invocations from
11299         here...
11300         * modules/setenv (configure.ac): ... to here.
11301
11302 2011-05-21  Bruno Haible  <bruno@clisp.org>
11303
11304         selinux-h: Move AC_LIBOBJ invocations to module description.
11305         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Move
11306         AC_LIBOBJ invocation from here...
11307         * modules/selinux-h (configure.ac): ... to here.
11308
11309 2011-05-21  Bruno Haible  <bruno@clisp.org>
11310
11311         select: Respect rules for use of AC_LIBOBJ.
11312         * m4/select.m4 (gl_FUNC_SELECT): Move AC_LIBOBJ invocations from
11313         here...
11314         * modules/select (configure.ac): ... to here.
11315
11316 2011-05-21  Bruno Haible  <bruno@clisp.org>
11317
11318         scandir: Move AC_LIBOBJ invocations to module description.
11319         * m4/scandir.m4 (gl_FUNC_SCANDIR): Move AC_LIBOBJ and gl_PREREQ_SCANDIR
11320         invocations from here...
11321         * modules/scandir (configure.ac): ... to here.
11322
11323 2011-05-21  Bruno Haible  <bruno@clisp.org>
11324
11325         rpmatch: Move AC_LIBOBJ invocations to module description.
11326         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Call AC_CHECK_FUNCS instead of
11327         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RPMATCH invocations from
11328         here...
11329         * modules/rpmatch (configure.ac): ... to here.
11330
11331 2011-05-21  Bruno Haible  <bruno@clisp.org>
11332
11333         rmdir: Respect rules for use of AC_LIBOBJ.
11334         * m4/rmdir.m4 (gl_FUNC_RMDIR): Move AC_LIBOBJ invocation from here...
11335         * modules/rmdir (configure.ac): ... to here.
11336
11337 2011-05-21  Bruno Haible  <bruno@clisp.org>
11338
11339         renameat: Move AC_LIBOBJ invocations to module description.
11340         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Move AC_LIBOBJ invocations from
11341         here...
11342         * modules/renameat (configure.ac): ... to here.
11343
11344 2011-05-21  Bruno Haible  <bruno@clisp.org>
11345
11346         rename: Respect rules for use of AC_LIBOBJ.
11347         * m4/rename.m4 (gl_FUNC_RENAME): Move AC_LIBOBJ invocations from
11348         here...
11349         * modules/rename (configure.ac): ... to here.
11350
11351 2011-05-21  Bruno Haible  <bruno@clisp.org>
11352
11353         remove: Move AC_LIBOBJ invocations to module description.
11354         * m4/remove.m4 (gl_FUNC_REMOVE): Move AC_LIBOBJ invocations from
11355         here...
11356         * modules/remove (configure.ac): ... to here.
11357
11358 2011-05-21  Bruno Haible  <bruno@clisp.org>
11359
11360         relocatable-lib: Move AC_LIBOBJ invocations to module description.
11361         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_SEPARATE): Remove
11362         macro.
11363         (gl_RELOCATABLE_LIBRARY): Move AC_LIBOBJ invocation from here...
11364         * modules/relocatable-lib (configure.ac): ... to here.
11365         * modules/relocatable-prog-wrapper (configure.ac): Invoke
11366         gl_RELOCATABLE_LIBRARY instead of gl_RELOCATABLE_LIBRARY_SEPARATE.
11367
11368 2011-05-21  Bruno Haible  <bruno@clisp.org>
11369
11370         relocatable-prog: Move AC_LIBOBJ invocations to module description.
11371         * m4/relocatable.m4 (gl_RELOCATABLE): Move AC_LIBOBJ invocation from
11372         here...
11373         * modules/relocatable-prog (configure.ac): ... to here.
11374
11375 2011-05-21  Bruno Haible  <bruno@clisp.org>
11376
11377         regex: Move AC_LIBOBJ invocations to module description.
11378         * m4/regex.m4 (gl_REGEX): Move AC_LIBOBJ and gl_PREREQ_REGEX
11379         invocations from here...
11380         * modules/regex (configure.ac): ... to here.
11381
11382 2011-05-21  Bruno Haible  <bruno@clisp.org>
11383
11384         realloc-*: Move AC_LIBOBJ invocations to module description.
11385         * m4/realloc.m4 (gl_REPLACE_REALLOC): Remove macro.
11386         (gl_FUNC_REALLOC_GNU, gl_FUNC_REALLOC_POSIX): Inline it here. Move
11387         AC_LIBOBJ invocations from here...
11388         * modules/realloc-gnu (configure.ac): ... to here.
11389         * modules/realloc-posix (configure.ac): ... and here.
11390
11391 2011-05-21  Bruno Haible  <bruno@clisp.org>
11392
11393         readutmp: Move AC_LIBOBJ invocations to module description.
11394         * m4/readutmp.m4 (gl_READUTMP): Move AC_LIBOBJ invocation from here...
11395         * modules/readutmp (configure.ac): ... to here.
11396
11397 2011-05-21  Bruno Haible  <bruno@clisp.org>
11398
11399         readlinkat: Move AC_LIBOBJ invocations to module description.
11400         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Move AC_LIBOBJ invocation from
11401         here...
11402         * modules/readlinkat (configure.ac): ... to here.
11403
11404 2011-05-21  Bruno Haible  <bruno@clisp.org>
11405
11406         readlink: Move AC_LIBOBJ invocations to module description.
11407         * m4/readlink.m4 (gl_FUNC_READLINK): Move AC_LIBOBJ and
11408         gl_PREREQ_READLINK invocations from here...
11409         * modules/readlink (configure.ac): ... to here.
11410
11411 2011-05-21  Bruno Haible  <bruno@clisp.org>
11412
11413         readline: Move AC_LIBOBJ invocations to module description.
11414         * m4/readline.m4 (gl_FUNC_READLINE): Move AC_LIBOBJ and
11415         gl_PREREQ_READLINE invocations from here...
11416         * modules/readline (configure.ac): ... to here.
11417
11418 2011-05-21  Bruno Haible  <bruno@clisp.org>
11419
11420         read: Move AC_LIBOBJ invocations to module description.
11421         * m4/read.m4 (gl_FUNC_READ): Move AC_LIBOBJ invocation from here...
11422         * modules/read (configure.ac): ... to here.
11423
11424 2011-05-21  Bruno Haible  <bruno@clisp.org>
11425
11426         rawmemchr: Move AC_LIBOBJ invocations to module description.
11427         * m4/rawmemchr.m4 (gl_FUNC_RAWMEMCHR): Call AC_CHECK_FUNCS instead of
11428         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RAWMEMCHR invocations
11429         from here...
11430         * modules/rawmemchr (configure.ac): ... to here.
11431
11432 2011-05-21  Bruno Haible  <bruno@clisp.org>
11433
11434         random_r: Move AC_LIBOBJ invocations to module description.
11435         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move AC_LIBOBJ and
11436         gl_PREREQ_RANDOM_R invocations from here...
11437         * modules/random_r (configure.ac): ... to here.
11438
11439 2011-05-21  Bruno Haible  <bruno@clisp.org>
11440
11441         pwrite: Move AC_LIBOBJ invocations to module description.
11442         * m4/pwrite.m4 (gl_FUNC_PWRITE): Move AC_LIBOBJ invocation from here...
11443         * modules/pwrite (configure.ac): ... to here.
11444
11445 2011-05-21  Bruno Haible  <bruno@clisp.org>
11446
11447         putenv: Move AC_LIBOBJ invocations to module description.
11448         * m4/putenv.m4 (gl_FUNC_PUTENV): Move AC_LIBOBJ invocation from here...
11449         * modules/putenv (configure.ac): ... to here.
11450
11451 2011-05-21  Bruno Haible  <bruno@clisp.org>
11452
11453         login_tty: Move AC_LIBOBJ invocations to module description.
11454         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Move AC_LIBOBJ invocation from here...
11455         * modules/login_tty (configure.ac): ... to here.
11456
11457 2011-05-21  Bruno Haible  <bruno@clisp.org>
11458
11459         openpty: Move AC_LIBOBJ invocations to module description.
11460         * m4/pty.m4 (gl_FUNC_OPENPTY): Move AC_LIBOBJ invocations from here...
11461         * modules/openpty (configure.ac): ... to here.
11462
11463 2011-05-21  Bruno Haible  <bruno@clisp.org>
11464
11465         forkpty: Move AC_LIBOBJ invocations to module description.
11466         * m4/pty.m4 (gl_FUNC_FORKPTY): Move AC_LIBOBJ invocations from here...
11467         * modules/forkpty (configure.ac): ... to here.
11468
11469 2011-05-21  Bruno Haible  <bruno@clisp.org>
11470
11471         ptsname: Move AC_LIBOBJ invocations to module description.
11472         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Move AC_LIBOBJ and gl_PREREQ_PTSNAME
11473         invocations from here...
11474         * modules/ptsname (configure.ac): ... to here.
11475
11476 2011-05-21  Bruno Haible  <bruno@clisp.org>
11477
11478         pread: Move AC_LIBOBJ invocations to module description.
11479         * m4/pread.m4 (gl_FUNC_PREAD): Move AC_LIBOBJ invocation from here...
11480         * modules/pread (configure.ac): ... to here.
11481
11482 2011-05-21  Bruno Haible  <bruno@clisp.org>
11483
11484         posix_spawn*: Move AC_LIBOBJ invocations to module description.
11485         * m4/posix_spawn.m4 (gl_PREREQ_POSIX_SPAWN_INTERNAL): Renamed from
11486         gl_POSIX_SPAWN_INTERNAL. Move AC_LIBOBJ invocation from here...
11487         * modules/posix_spawn (configure.ac): ... to here.
11488         * modules/posix_spawnp (configure.ac): ... and here.
11489
11490 2011-05-21  Bruno Haible  <bruno@clisp.org>
11491
11492         popen: Move AC_LIBOBJ invocations to module description.
11493         * m4/popen.m4 (gl_FUNC_POPEN): Move AC_LIBOBJ and gl_PREREQ_POPEN
11494         invocations from here...
11495         * modules/popen (configure.ac): ... to here.
11496
11497 2011-05-21  Bruno Haible  <bruno@clisp.org>
11498
11499         poll: Move AC_LIBOBJ invocations to module description.
11500         * m4/poll.m4 (gl_FUNC_POLL): Move AC_LIBOBJ and gl_PREREQ_POLL
11501         invocations from here...
11502         * modules/poll (configure.ac): ... to here.
11503
11504 2011-05-21  Bruno Haible  <bruno@clisp.org>
11505
11506         pipe-posix: Move AC_LIBOBJ invocations to module description.
11507         * m4/pipe.m4 (gl_FUNC_PIPE): Move AC_LIBOBJ invocation from here...
11508         * modules/pipe-posix (configure.ac): ... to here.
11509
11510 2011-05-21  Bruno Haible  <bruno@clisp.org>
11511
11512         openat: Respect rules for use of AC_LIBOBJ.
11513         * m4/openat.m4 (gl_FUNC_OPENAT): Call AC_CHECK_FUNCS instead of
11514         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
11515         * modules/openat (configure.ac): ... to here.
11516
11517 2011-05-21  Bruno Haible  <bruno@clisp.org>
11518
11519         obstack-printf*: Move AC_LIBOBJ invocations to module description.
11520         * m4/obstack-printf.m4 (gl_REPLACE_OBSTACK_PRINTF): Move AC_LIBOBJ
11521         invocation from here...
11522         * modules/obstack-printf (configure.ac): ... to here.
11523         * modules/obstack-printf-posix (configure.ac): ... and here.
11524
11525 2011-05-21  Bruno Haible  <bruno@clisp.org>
11526
11527         nl_langinfo: Move AC_LIBOBJ invocations to module description.
11528         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Move AC_LIBOBJ invocations
11529         from here...
11530         * modules/nl_langinfo (configure.ac): ... to here.
11531
11532 2011-05-21  Bruno Haible  <bruno@clisp.org>
11533
11534         nanosleep: Move AC_LIBOBJ invocations to module description.
11535         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Move AC_LIBOBJ and
11536         gl_PREREQ_NANOSLEEP invocations from here...
11537         * modules/nanosleep (configure.ac): ... to here.
11538
11539 2011-05-21  Bruno Haible  <bruno@clisp.org>
11540
11541         mountlist: Move AC_LIBOBJ invocations to module description.
11542         * m4/mountlist.m4 (gl_MOUNTLIST): Move AC_LIBOBJ and
11543         gl_PREREQ_MOUNTLIST_EXTRA invocations from here...
11544         * modules/mountlist (configure.ac): ... to here.
11545
11546 2011-05-21  Bruno Haible  <bruno@clisp.org>
11547
11548         mktime: Respect rules for use of AC_LIBOBJ.
11549         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove macro.
11550         (gl_FUNC_MKTIME): Inline it here. Set gl_cv_func_working_mktime. Move
11551         AC_LIBOBJ and gl_PREREQ_MKTIME invocations from here...
11552         (gl_FUNC_MKTIME_INTERNAL): ... and here...
11553         * modules/mktime (configure.ac): ... to here.
11554         * modules/mktime-internal (configure.ac): ... and here.
11555         * m4/timegm.m4 (gl_FUNC_TIMEGM): Update.
11556
11557 2011-05-21  Bruno Haible  <bruno@clisp.org>
11558
11559         mkstemps: Move AC_LIBOBJ invocations to module description.
11560         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Move AC_LIBOBJ invocation from
11561         here...
11562         * modules/mkstemps (configure.ac): ... to here.
11563
11564 2011-05-21  Bruno Haible  <bruno@clisp.org>
11565
11566         mkstemp: Move AC_LIBOBJ invocations to module description.
11567         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Move AC_LIBOBJ and
11568         gl_PREREQ_MKSTEMP invocations from here...
11569         * modules/mkstemp (configure.ac): ... to here.
11570
11571 2011-05-21  Bruno Haible  <bruno@clisp.org>
11572
11573         mkostemps: Move AC_LIBOBJ invocations to module description.
11574         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Move AC_LIBOBJ invocation from
11575         here...
11576         * modules/mkostemps (configure.ac): ... to here.
11577
11578 2011-05-21  Bruno Haible  <bruno@clisp.org>
11579
11580         mkostemp: Move AC_LIBOBJ invocations to module description.
11581         * m4/mkostemp.m4 (gl_FUNC_MKOSTEMP): Move AC_LIBOBJ and
11582         gl_PREREQ_MKOSTEMP invocations from here...
11583         * modules/mkostemp (configure.ac): ... to here.
11584
11585 2011-05-21  Bruno Haible  <bruno@clisp.org>
11586
11587         mknod: Move AC_LIBOBJ invocations to module description.
11588         * m4/mknod.m4 (gl_FUNC_MKNOD): Move AC_LIBOBJ invocations from here...
11589         * modules/mknod (configure.ac): ... to here.
11590
11591 2011-05-21  Bruno Haible  <bruno@clisp.org>
11592
11593         mkfifoat: Move AC_LIBOBJ invocations to module description.
11594         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Move AC_LIBOBJ invocations from
11595         here...
11596         * modules/mkfifoat (configure.ac): ... to here.
11597
11598 2011-05-21  Bruno Haible  <bruno@clisp.org>
11599
11600         mkfifo: Respect rules for use of AC_LIBOBJ.
11601         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Move AC_LIBOBJ invocations from
11602         here...
11603         * modules/mkfifo (configure.ac): ... to here.
11604
11605 2011-05-21  Bruno Haible  <bruno@clisp.org>
11606
11607         mkdtemp: Move AC_LIBOBJ invocations to module description.
11608         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Move AC_LIBOBJ and gl_PREREQ_MKDTEMP
11609         invocations from here...
11610         * modules/mkdtemp (configure.ac): ... to here.
11611
11612 2011-05-21  Bruno Haible  <bruno@clisp.org>
11613
11614         mkdir: Move AC_LIBOBJ invocations to module description.
11615         * m4/mkdir.m4 (gl_FUNC_MKDIR): Move AC_LIBOBJ invocations from here...
11616         * modules/mkdir (configure.ac): ... to here.
11617
11618 2011-05-21  Bruno Haible  <bruno@clisp.org>
11619
11620         memset: Move AC_LIBOBJ invocations to module description.
11621         * m4/memset.m4 (gl_FUNC_MEMSET): Call AC_CHECK_FUNCS instead of
11622         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMSET invocations from
11623         here...
11624         * modules/memset (configure.ac): ... to here.
11625
11626 2011-05-21  Bruno Haible  <bruno@clisp.org>
11627
11628         memrchr: Move AC_LIBOBJ invocations to module description.
11629         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Call AC_CHECK_FUNCS instead of
11630         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMRCHR invocations from
11631         here...
11632         * modules/memrchr (configure.ac): ... to here.
11633
11634 2011-05-21  Bruno Haible  <bruno@clisp.org>
11635
11636         mempcpy: Move AC_LIBOBJ invocations to module description.
11637         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Call AC_CHECK_FUNCS instead of
11638         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMPCPY invocations from
11639         here...
11640         * modules/mempcpy (configure.ac): ... to here.
11641
11642 2011-05-21  Bruno Haible  <bruno@clisp.org>
11643
11644         memmove: Move AC_LIBOBJ invocations to module description.
11645         * m4/memmove.m4 (gl_FUNC_MEMMOVE): Call AC_CHECK_FUNCS instead of
11646         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMMOVE invocations from
11647         here...
11648         * modules/memmove (configure.ac): ... to here.
11649
11650 2011-05-21  Bruno Haible  <bruno@clisp.org>
11651
11652         memmem*: Move AC_LIBOBJ invocations to module description.
11653         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Call AC_CHECK_FUNCS instead of
11654         AC_REPLACE_FUNCS. Set HAVE_MEMMEM. Move AC_LIBOBJ invocations from
11655         here...
11656         (gl_FUNC_MEMMEM): ... and here...
11657         * modules/memmem-simple (configure.ac): ... to here.
11658         * modules/memmem (configure.ac): ... and here.
11659
11660 2011-05-21  Bruno Haible  <bruno@clisp.org>
11661
11662         memcpy: Move AC_LIBOBJ invocations to module description.
11663         * m4/memcpy.m4 (gl_FUNC_MEMCPY): Call AC_CHECK_FUNCS instead of
11664         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMCPY invocations from
11665         here...
11666         * modules/memcpy (configure.ac): ... to here.
11667
11668 2011-05-21  Bruno Haible  <bruno@clisp.org>
11669
11670         memcmp: Simplify autoconf macro.
11671         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Merge the cross-compilation code into
11672         the AC_RUN_IFELSE invocation. Set gl_func_memcmp.
11673         * modules/memcmp (Depends-on, configure.ac): Test gl_func_memcmp.
11674
11675 2011-05-21  Bruno Haible  <bruno@clisp.org>
11676
11677         memcmp: Move AC_LIBOBJ invocations to module description.
11678         * m4/memcmp.m4 (AC_FUNC_MEMCMP): Remove macro.
11679         (gl_FUNC_MEMCMP): Inline it here. Set gl_cv_func_memcmp_working. Move
11680         AC_LIBOBJ and gl_PREREQ_MEMCMP invocations from here...
11681         * modules/memcmp (configure.ac): ... to here.
11682         (Depends-on): Update conditions.
11683
11684 2011-05-21  Bruno Haible  <bruno@clisp.org>
11685
11686         memchr: Respect rules for use of AC_LIBOBJ.
11687         * m4/memchr.m4 (gl_FUNC_MEMCHR): Move AC_LIBOBJ and gl_PREREQ_MEMCHR
11688         invocations from here...
11689         * modules/memchr (configure.ac): ... to here.
11690
11691 2011-05-21  Bruno Haible  <bruno@clisp.org>
11692
11693         mbtowc: Move AC_LIBOBJ invocations to module description.
11694         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Move AC_LIBOBJ and gl_PREREQ_MBTOWC
11695         invocations from here...
11696         * modules/mbtowc (configure.ac): ... to here.
11697
11698 2011-05-21  Bruno Haible  <bruno@clisp.org>
11699
11700         mbsrtowcs: Move AC_LIBOBJ invocations to module description.
11701         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Move AC_LIBOBJ and
11702         gl_PREREQ_MBSRTOWCS invocations from here...
11703         * modules/mbsrtowcs (configure.ac): ... to here.
11704
11705 2011-05-21  Bruno Haible  <bruno@clisp.org>
11706
11707         mbsnrtowcs: Move AC_LIBOBJ invocations to module description.
11708         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): Move AC_LIBOBJ and
11709         gl_PREREQ_MBSNRTOWCS invocations from here...
11710         * modules/mbsnrtowcs (configure.ac): ... to here.
11711
11712 2011-05-21  Bruno Haible  <bruno@clisp.org>
11713
11714         mbsinit: Move AC_LIBOBJ invocations to module description.
11715         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Move AC_LIBOBJ and gl_PREREQ_MBSINIT
11716         invocations from here...
11717         * modules/mbsinit (configure.ac): ... to here.
11718
11719 2011-05-21  Bruno Haible  <bruno@clisp.org>
11720
11721         mbrlen: Move AC_LIBOBJ invocations to module description.
11722         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Move AC_LIBOBJ and gl_PREREQ_MBRLEN
11723         invocations from here...
11724         * modules/mbrlen (configure.ac): ... to here.
11725
11726 2011-05-21  Bruno Haible  <bruno@clisp.org>
11727
11728         mbrtowc: Respect rules for use of AC_LIBOBJ.
11729         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Move AC_LIBOBJ and gl_PREREQ_MBRTOWC
11730         invocations from here...
11731         * modules/mbrtowc (configure.ac): ... to here.
11732
11733 2011-05-21  Bruno Haible  <bruno@clisp.org>
11734
11735         malloc-*: Move AC_LIBOBJ invocations to module description.
11736         * m4/malloc.m4 (gl_REPLACE_MALLOC): Remove macro.
11737         (gl_FUNC_MALLOC_GNU, gl_FUNC_MALLOC_POSIX): Inline it here. Move
11738         AC_LIBOBJ invocations from here...
11739         * modules/malloc-gnu (configure.ac): ... to here.
11740         * modules/malloc-posix (configure.ac): ... and here.
11741
11742 2011-05-21  Bruno Haible  <bruno@clisp.org>
11743
11744         lstat, openat: Respect rules for use of AC_LIBOBJ.
11745         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Renamed from
11746         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Set variable
11747         gl_cv_func_lstat_dereferences_slashed_symlink. Don't invoke AC_LIBOBJ.
11748         (gl_PREREQ_LSTAT): New macro, extracted from gl_FUNC_LSTAT.
11749         (gl_FUNC_LSTAT): Update. Remove gl_PREREQ_LSTAT code.
11750         * modules/lstat (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_LSTAT
11751         here.
11752         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
11753
11754 2011-05-21  Bruno Haible  <bruno@clisp.org>
11755
11756         lseek: Move AC_LIBOBJ invocations to module description.
11757         * m4/lseek.m4 (gl_REPLACE_LSEEK): Remove macro.
11758         (gl_FUNC_LSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
11759         * modules/lseek (configure.ac): ... to here.
11760
11761 2011-05-21  Bruno Haible  <bruno@clisp.org>
11762
11763         linkat: Move AC_LIBOBJ invocations to module description.
11764         * m4/linkat.m4 (gl_FUNC_LINKAT): Move AC_LIBOBJ invocations from
11765         here...
11766         * modules/linkat (configure.ac): ... to here.
11767
11768 2011-05-21  Bruno Haible  <bruno@clisp.org>
11769
11770         link: Respect rules for use of AC_LIBOBJ.
11771         * m4/link.m4 (gl_FUNC_LINK): Move AC_LIBOBJ invocations from here...
11772         * modules/link (configure.ac): ... to here.
11773
11774 2011-05-21  Bruno Haible  <bruno@clisp.org>
11775
11776         lchown: Move AC_LIBOBJ invocations to module description.
11777         * m4/lchown.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
11778         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
11779         * modules/lchown (configure.ac): ... to here.
11780
11781 2011-05-21  Bruno Haible  <bruno@clisp.org>
11782
11783         iswctype: Move AC_LIBOBJ invocations to module description.
11784         * m4/iswctype.m4 (gl_FUNC_ISWCTYPE): Move AC_LIBOBJ invocation from
11785         here...
11786         * modules/iswctype (configure.ac): ... to here.
11787
11788 2011-05-21  Bruno Haible  <bruno@clisp.org>
11789
11790         iswblank: Move AC_LIBOBJ invocations to module description.
11791         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Move AC_LIBOBJ invocation from
11792         here...
11793         * modules/iswblank (configure.ac): ... to here.
11794
11795 2011-05-21  Bruno Haible  <bruno@clisp.org>
11796
11797         atanl: Move AC_LIBOBJ invocations to module description.
11798         * m4/atanl.m4 (gl_FUNC_ATANL): Move AC_LIBOBJ invocation from here...
11799         * modules/atanl (configure.ac): ... to here.
11800
11801 2011-05-21  Bruno Haible  <bruno@clisp.org>
11802
11803         acosl: Move AC_LIBOBJ invocations to module description.
11804         * m4/acosl.m4 (gl_FUNC_ACOSL): Move AC_LIBOBJ invocation from here...
11805         * modules/acosl (configure.ac): ... to here.
11806
11807 2011-05-21  Bruno Haible  <bruno@clisp.org>
11808
11809         asinl: Respect rules for use of AC_LIBOBJ.
11810         * m4/asinl.m4 (gl_FUNC_ASINL): Move AC_LIBOBJ invocation from here...
11811         * modules/asinl (configure.ac): ... to here.
11812
11813 2011-05-21  Bruno Haible  <bruno@clisp.org>
11814
11815         tanl: Move AC_LIBOBJ invocations to module description.
11816         * m4/tanl.m4 (gl_FUNC_TANL): Move AC_LIBOBJ invocations from here...
11817         * modules/tanl (configure.ac): ... to here.
11818
11819 2011-05-21  Bruno Haible  <bruno@clisp.org>
11820
11821         cosl: Move AC_LIBOBJ invocations to module description.
11822         * m4/cosl.m4 (gl_FUNC_COSL): Move AC_LIBOBJ invocations from here...
11823         * modules/cosl (configure.ac): ... to here.
11824
11825 2011-05-21  Bruno Haible  <bruno@clisp.org>
11826
11827         sinl: Move AC_LIBOBJ invocations to module description.
11828         * m4/sinl.m4 (gl_FUNC_SINL): Move AC_LIBOBJ invocations from here...
11829         * modules/sinl (configure.ac): ... to here.
11830
11831 2011-05-21  Bruno Haible  <bruno@clisp.org>
11832
11833         logl: Move AC_LIBOBJ invocations to module description.
11834         * m4/logl.m4 (gl_FUNC_LOGL): Move AC_LIBOBJ invocation from here...
11835         * modules/logl (configure.ac): ... to here.
11836
11837 2011-05-21  Bruno Haible  <bruno@clisp.org>
11838
11839         expl: Move AC_LIBOBJ invocations to module description.
11840         * m4/expl.m4 (gl_FUNC_EXPL): Move AC_LIBOBJ invocation from here...
11841         * modules/expl (configure.ac): ... to here.
11842
11843 2011-05-21  Bruno Haible  <bruno@clisp.org>
11844
11845         roundl: Move AC_LIBOBJ invocations to module description.
11846         * m4/roundl.m4 (gl_FUNC_ROUNDL): Move AC_LIBOBJ invocation from here...
11847         * modules/roundl (configure.ac): ... to here.
11848
11849 2011-05-21  Bruno Haible  <bruno@clisp.org>
11850
11851         round: Move AC_LIBOBJ invocations to module description.
11852         * m4/round.m4 (gl_FUNC_ROUND): Move AC_LIBOBJ invocation from here...
11853         * modules/round (configure.ac): ... to here.
11854
11855 2011-05-21  Bruno Haible  <bruno@clisp.org>
11856
11857         roundf: Move AC_LIBOBJ invocations to module description.
11858         * m4/roundf.m4 (gl_FUNC_ROUNDF): Move AC_LIBOBJ invocation from here...
11859         * modules/roundf (configure.ac): ... to here.
11860
11861 2011-05-21  Bruno Haible  <bruno@clisp.org>
11862
11863         truncl: Move AC_LIBOBJ invocations to module description.
11864         * m4/truncl.m4 (gl_FUNC_TRUNCL): Move AC_LIBOBJ invocation from here...
11865         * modules/truncl (configure.ac): ... to here.
11866
11867 2011-05-21  Bruno Haible  <bruno@clisp.org>
11868
11869         trunc: Move AC_LIBOBJ invocations to module description.
11870         * m4/trunc.m4 (gl_FUNC_TRUNC): Move AC_LIBOBJ invocation from here...
11871         * modules/trunc (configure.ac): ... to here.
11872
11873 2011-05-21  Bruno Haible  <bruno@clisp.org>
11874
11875         truncf: Move AC_LIBOBJ invocations to module description.
11876         * m4/truncf.m4 (gl_FUNC_TRUNCF): Move AC_LIBOBJ invocation from here...
11877         * modules/truncf (configure.ac): ... to here.
11878
11879 2011-05-21  Bruno Haible  <bruno@clisp.org>
11880
11881         ceill: Move AC_LIBOBJ invocations to module description.
11882         * m4/ceill.m4 (gl_FUNC_CEILL): Move AC_LIBOBJ invocation from here...
11883         * modules/ceill (configure.ac): ... to here.
11884
11885 2011-05-21  Bruno Haible  <bruno@clisp.org>
11886
11887         ceil: Move AC_LIBOBJ invocations to module description.
11888         * m4/ceil.m4 (gl_FUNC_CEIL): Move AC_LIBOBJ invocation from here...
11889         * modules/ceil (configure.ac): ... to here.
11890
11891 2011-05-21  Bruno Haible  <bruno@clisp.org>
11892
11893         ceilf: Move AC_LIBOBJ invocations to module description.
11894         * m4/ceilf.m4 (gl_FUNC_CEILF): Move AC_LIBOBJ invocation from here...
11895         * modules/ceilf (configure.ac): ... to here.
11896
11897 2011-05-21  Bruno Haible  <bruno@clisp.org>
11898
11899         floorl: Respect rules for use of AC_LIBOBJ.
11900         * m4/floorl.m4 (gl_FUNC_FLOORL): Move AC_LIBOBJ invocation from here...
11901         * modules/floorl (configure.ac): ... to here.
11902
11903 2011-05-21  Bruno Haible  <bruno@clisp.org>
11904
11905         floor: Respect rules for use of AC_LIBOBJ.
11906         * m4/floor.m4 (gl_FUNC_FLOOR): Move AC_LIBOBJ invocation from here...
11907         * modules/floor (configure.ac): ... to here.
11908
11909 2011-05-21  Bruno Haible  <bruno@clisp.org>
11910
11911         floorf: Move AC_LIBOBJ invocations to module description.
11912         * m4/floorf.m4 (gl_FUNC_FLOORF): Move AC_LIBOBJ invocation from here...
11913         * modules/floorf (configure.ac): ... to here.
11914
11915 2011-05-20  Bruno Haible  <bruno@clisp.org>
11916
11917         sqrtl: Respect rules for use of AC_LIBOBJ.
11918         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Move AC_LIBOBJ invocation from here...
11919         * modules/sqrtl (configure.ac): ... to here.
11920
11921 2011-05-20  Bruno Haible  <bruno@clisp.org>
11922
11923         ldexpl: Respect rules for use of AC_LIBOBJ.
11924         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Move AC_LIBOBJ invocation from here...
11925         * modules/ldexpl (configure.ac): ... to here.
11926
11927 2011-05-20  Bruno Haible  <bruno@clisp.org>
11928
11929         frexpl*: Respect rules for use of AC_LIBOBJ.
11930         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Move AC_LIBOBJ
11931         invocation from here...
11932         * modules/frexpl (configure.ac): ... to here.
11933         * modules/frexpl-nolibm (configure.ac): ... and here.
11934
11935 2011-05-20  Bruno Haible  <bruno@clisp.org>
11936
11937         frexp, frexp-nolibm: Move AC_LIBOBJ invocations to module description.
11938         * m4/frexp.m4 (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Move AC_LIBOBJ
11939         invocation from here...
11940         * modules/frexp (configure.ac): ... to here.
11941         * modules/frexp-nolibm (configure.ac): ... and here.
11942
11943 2011-05-20  Bruno Haible  <bruno@clisp.org>
11944
11945         isnan: Respect rules for use of AC_LIBOBJ.
11946         * m4/isnan.m4 (gl_ISNAN): Don't do the AC_LIBOBJ and gl_PREREQ_ISNAN*
11947         invocations here.
11948         * modules/isnanf (configure.ac): Require gl_ISNAN if it exists. Test
11949         REPLACE_ISNAN.
11950         * modules/isnand (configure.ac): Likewise.
11951         * modules/isnanl (configure.ac): Likewise.
11952
11953 2011-05-20  Bruno Haible  <bruno@clisp.org>
11954
11955         isnanl*: Respect rules for use of AC_LIBOBJ.
11956         * m4/isnanl.m4 (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Move AC_LIBOBJ
11957         invocation from here...
11958         * modules/isnanl (configure.ac): ... to here.
11959         * modules/isnanl-nolibm (configure.ac): ... and here.
11960
11961 2011-05-20  Bruno Haible  <bruno@clisp.org>
11962
11963         isnand*: Move AC_LIBOBJ invocations to module description.
11964         * m4/isnand.m4 (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Move AC_LIBOBJ
11965         invocation from here...
11966         * modules/isnand (configure.ac): ... to here.
11967         * modules/isnand-nolibm (configure.ac): ... and here.
11968
11969 2011-05-20  Bruno Haible  <bruno@clisp.org>
11970
11971         isnanf*: Move AC_LIBOBJ invocations to module description.
11972         * m4/isnanf.m4 (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Move AC_LIBOBJ
11973         invocation from here...
11974         * modules/isnanf (configure.ac): ... to here.
11975         * modules/isnanf-nolibm (configure.ac): ... and here.
11976
11977 2011-05-20  Bruno Haible  <bruno@clisp.org>
11978
11979         isnan*: Separate the AC_LIBOBJ invocations.
11980         * m4/isnanf.m4 (gl_PREREQ_ISNANF): Renamed from gl_BUILD_ISNANF. Remove
11981         AC_LIBOBJ invocation.
11982         (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Update. Invoke AC_LIBOBJ
11983         here.
11984         * m4/isnand.m4 (gl_PREREQ_ISNAND): Renamed from gl_BUILD_ISNAND. Remove
11985         AC_LIBOBJ invocation.
11986         (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Update. Invoke AC_LIBOBJ
11987         here.
11988         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Renamed from gl_BUILD_ISNANL. Remove
11989         AC_LIBOBJ invocation.
11990         (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Update. Invoke AC_LIBOBJ
11991         here.
11992         * m4/isnan.m4 (gl_ISNAN): Update. Invoke AC_LIBOBJ here.
11993
11994 2011-05-08  Bruno Haible  <bruno@clisp.org>
11995
11996         isinf: Move AC_LIBOBJ invocations to module description.
11997         * m4/isinf.m4 (gl_ISINF): Move AC_LIBOBJ invocation from here...
11998         * modules/isinf (configure.ac): ... to here.
11999
12000 2011-05-08  Bruno Haible  <bruno@clisp.org>
12001
12002         isfinite: Move AC_LIBOBJ invocations to module description.
12003         * m4/isfinite.m4 (gl_ISFINITE): Move AC_LIBOBJ invocation from here...
12004         * modules/isfinite (configure.ac): ... to here.
12005
12006 2011-05-08  Bruno Haible  <bruno@clisp.org>
12007
12008         isblank: Move AC_LIBOBJ invocations to module description.
12009         * m4/isblank.m4 (gl_FUNC_ISBLANK): Move AC_LIBOBJ invocation from
12010         here...
12011         * modules/isblank (configure.ac): ... to here.
12012
12013 2011-05-08  Bruno Haible  <bruno@clisp.org>
12014
12015         isapipe: Move AC_LIBOBJ invocations to module description.
12016         * m4/isapipe.m4 (gl_ISAPIPE): Set HAVE_ISAPIPE. Move AC_LIBOBJ and
12017         gl_PREREQ_ISAPIPE invocations from here...
12018         * modules/isapipe (configure.ac): ... to here.
12019         (Depends-on): Update condition.
12020
12021 2011-05-08  Bruno Haible  <bruno@clisp.org>
12022
12023         ioctl: Move AC_LIBOBJ invocations to module description.
12024         * m4/ioctl.m4 (gl_FUNC_IOCTL): Set HAVE_IOCTL. Move AC_LIBOBJ
12025         invocations from here...
12026         * modules/ioctl (configure.ac): ... to here.
12027         (Depends-on): Update condition.
12028
12029 2011-05-08  Bruno Haible  <bruno@clisp.org>
12030
12031         imaxdiv: Move AC_LIBOBJ invocations to module description.
12032         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Move AC_LIBOBJ and gl_PREREQ_IMAXDIV
12033         invocations from here...
12034         * modules/imaxdiv (configure.ac): ... to here.
12035
12036 2011-05-08  Bruno Haible  <bruno@clisp.org>
12037
12038         imaxabs: Move AC_LIBOBJ invocations to module description.
12039         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Move AC_LIBOBJ and gl_PREREQ_IMAXABS
12040         invocations from here...
12041         * modules/imaxabs (configure.ac): ... to here.
12042
12043 2011-05-08  Bruno Haible  <bruno@clisp.org>
12044
12045         getaddrinfo: Move AC_LIBOBJ invocations to module description.
12046         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Set HAVE_GETADDRINFO, Move
12047         AC_LIBOBJ invocations from here...
12048         * modules/getaddrinfo (configure.ac): ... to here.
12049         (Depends-on): Add conditions.
12050
12051 2011-05-08  Bruno Haible  <bruno@clisp.org>
12052
12053         inet_pton. getaddrinfo: Respect rules for use of AC_LIBOBJ.
12054         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Set HAVE_INET_PTON. Call
12055         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
12056         gl_PREREQ_INET_PTON. Move tests for declaration of inet_pton here...
12057         (gl_PREREQ_INET_PTON): ... from here.
12058         * modules/inet_pton (configure.ac): Invoke AC_LIBOBJ and
12059         gl_PREREQ_INET_PTON here.
12060         (Depends-on): Update condition.
12061
12062 2011-05-08  Bruno Haible  <bruno@clisp.org>
12063
12064         inet_ntop. getaddrinfo: Respect rules for use of AC_LIBOBJ.
12065         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Set HAVE_INET_NTOP. Call
12066         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
12067         gl_PREREQ_INET_NTOP. Move tests for declaration of inet_ntop here...
12068         (gl_PREREQ_INET_NTOP): ... from here.
12069         * modules/inet_ntop (configure.ac): Invoke AC_LIBOBJ and
12070         gl_PREREQ_INET_NTOP here.
12071         (Depends-on): Update condition.
12072
12073 2011-05-08  Bruno Haible  <bruno@clisp.org>
12074
12075         iconv_open: Move AC_LIBOBJ invocations to module description.
12076         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN, gl_REPLACE_ICONV_OPEN): Move
12077         AC_LIBOBJ invocations from here...
12078         * modules/iconv_open (configure.ac): ... to here.
12079
12080 2011-05-08  Bruno Haible  <bruno@clisp.org>
12081
12082         iconv_open, iconv_open-utf: Respect rules for use of AC_LIBOBJ.
12083         If module 'iconv_open' is among the main modules and module
12084         'iconv_open-utf' is among the tests dependencies, then
12085         REPLACE_ICONV_UTF will be defined to 1, hence iconv_open() in lib may
12086         return the special iconv_t values. Therefore iconv() and iconv_close()
12087         must support these special iconv_t values, already in lib, not only in
12088         tests.
12089         * m4/iconv_open-utf.m4: New file, extracted from m4/iconv_open.m4.
12090         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke
12091         gl_FUNC_ICONV_OPEN_UTF_SUPPORT if present.
12092         (gl_FUNC_ICONV_OPEN_UTF): Remove macro.
12093         * modules/iconv_open (Files): Add lib/iconv.c, lib/iconv_close.c.
12094         (Depends-on): Add the dependencies of iconv_open-utf.
12095         * modules/iconv_open-utf (Files): Add m4/iconv_open-utf.m4. Remove
12096         m4/iconv_open.m4, lib/iconv.c, lib/iconv_close.c.
12097         (Depends-on): Remove modules needed by lib/iconv.c, lib/iconv_close.c.
12098
12099 2011-05-08  Bruno Haible  <bruno@clisp.org>
12100
12101         group-member: Move AC_LIBOBJ invocations to module description.
12102         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Move AC_LIBOBJ and
12103         gl_PREREQ_GROUP_MEMBER invocations from here...
12104         * modules/group-member (configure.ac): ... to here.
12105
12106 2011-05-08  Bruno Haible  <bruno@clisp.org>
12107
12108         grantpt: Move AC_LIBOBJ invocations to module description.
12109         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Move AC_LIBOBJ and gl_PREREQ_GRANTPT
12110         invocations from here...
12111         * modules/grantpt (configure.ac): ... to here.
12112
12113 2011-05-08  Bruno Haible  <bruno@clisp.org>
12114
12115         glob: Move AC_LIBOBJ invocations to module description.
12116         * m4/glob.m4 (gl_GLOB): Move AC_LIBOBJ and gl_PREREQ_GLOB invocations
12117         from here...
12118         * modules/glob (configure.ac): ... to here.
12119
12120 2011-05-08  Bruno Haible  <bruno@clisp.org>
12121
12122         getusershell: Move AC_LIBOBJ invocations to module description.
12123         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Set HAVE_GETUSERSHELL.
12124         Move AC_LIBOBJ invocation from here...
12125         * modules/getusershell (configure.ac): ... to here.
12126         (Depends-on): Update condition.
12127
12128 2011-05-08  Bruno Haible  <bruno@clisp.org>
12129
12130         gettimeofday: Move AC_LIBOBJ invocations to module description.
12131         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
12132         gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Move AC_LIBOBJ and
12133         gl_PREREQ_GETTIMEOFDAY invocations from here...
12134         * modules/gettimeofday (configure.ac): ... to here.
12135
12136 2011-05-08  Bruno Haible  <bruno@clisp.org>
12137
12138         gettimeofday, tzset: Respect rules for use of AC_LIBOBJ.
12139         * modules/tzset (configure.ac): Don't invoke gl_FUNC_TZSET_CLOBBER,
12140         just gl_FUNC_TZSET.
12141         * m4/tzset.m4 (gl_FUNC_TZSET): New macro.
12142         (gl_FUNC_TZSET_CLOBBER): Remove actions.
12143         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Invoke
12144         gl_FUNC_TZSET_CLOBBER and its actions here, if present.
12145
12146 2011-05-08  Bruno Haible  <bruno@clisp.org>
12147
12148         getsubopt: Move AC_LIBOBJ invocations to module description.
12149         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Move AC_LIBOBJ and
12150         gl_PREREQ_GETSUBOPT invocations from here...
12151         * modules/getsubopt (configure.ac): ... to here.
12152
12153 2011-05-08  Bruno Haible  <bruno@clisp.org>
12154
12155         getpass-gnu: Move AC_LIBOBJ invocations to module description.
12156         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): Set REPLACE_GETPASS. Move
12157         AC_LIBOBJ and gl_PREREQ_GETPASS invocations from here...
12158         * modules/getpass-gnu (configure.ac): ... to here.
12159
12160 2011-05-08  Bruno Haible  <bruno@clisp.org>
12161
12162         getpass: Move AC_LIBOBJ invocations to module description.
12163         * m4/getpass.m4 (gl_FUNC_GETPASS): Set HAVE_GETPASS. Move AC_LIBOBJ and
12164         gl_PREREQ_GETPASS invocations from here...
12165         * modules/getpass (configure.ac): ... to here.
12166
12167 2011-05-08  Bruno Haible  <bruno@clisp.org>
12168
12169         getpagesize: Move AC_LIBOBJ invocations to module description.
12170         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Move AC_LIBOBJ invocation
12171         from here...
12172         * modules/getpagesize (configure.ac): ... to here.
12173
12174 2011-05-08  Bruno Haible  <bruno@clisp.org>
12175
12176         getopt: Move AC_LIBOBJ invocations to module description.
12177         * m4/getopt.m4 (gl_REPLACE_GETOPT): Remove macro.
12178         (gl_FUNC_GETOPT): Inline it here. Move AC_LIBOBJ and gl_PREREQ_GETOPT
12179         invocations from here...
12180         * modules/getopt-gnu (configure.ac): ... to here.
12181         * modules/getopt-posix (configure.ac): ... and here.
12182         (Depends-on): Update condition.
12183
12184 2011-05-08  Bruno Haible  <bruno@clisp.org>
12185
12186         getopt, argp: Respect rules for use of AC_LIBOBJ.
12187         * m4/argp.m4 (gl_ARGP): Don't invoke gl_REPLACE_GETOPT.
12188         (gl_REPLACE_GETOPT_ALWAYS): New macro.
12189         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Test whether
12190         gl_REPLACE_GETOPT_ALWAYS is defined. Set REPLACE_GETOPT.
12191
12192 2011-05-08  Bruno Haible  <bruno@clisp.org>
12193
12194         getlogin_r: Move AC_LIBOBJ invocations to module description.
12195         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Move AC_LIBOBJ and
12196         gl_PREREQ_GETLOGIN_R invocations from here...
12197         * modules/getlogin_r (configure.ac): ... to here.
12198
12199 2011-05-08  Bruno Haible  <bruno@clisp.org>
12200
12201         getlogin: Move AC_LIBOBJ invocations to module description.
12202         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Move AC_LIBOBJ invocation from
12203         here...
12204         * modules/getlogin (configure.ac): ... to here.
12205
12206 2011-05-08  Bruno Haible  <bruno@clisp.org>
12207
12208         getloadavg: Move AC_LIBOBJ invocations to module description.
12209         * m4/getloadavg.m4 (gl_FUNC_GETDELIM): Set HAVE_GETLOADAVG. Move
12210         AC_LIBOBJ and gl_PREREQ_GETLOADAVG invocations from here...
12211         * modules/getloadavg (configure.ac): ... to here.
12212
12213 2011-05-08  Bruno Haible  <bruno@clisp.org>
12214
12215         gethrxtime: Move AC_LIBOBJ invocations to module description.
12216         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Move code that determines
12217         LIB_GETHRXTIME from here...
12218         (gl_GETHRXTIME): ... to here. Move AC_LIBOBJ and gl_PREREQ_GETHRXTIME
12219         invocations from here...
12220         * modules/gethrxtime (configure.ac): ... to here.
12221
12222 2011-05-08  Bruno Haible  <bruno@clisp.org>
12223
12224         gethostname: Move AC_LIBOBJ invocations to module description.
12225         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Move AC_LIBOBJ and
12226         gl_PREREQ_GETHOSTNAME invocations from here...
12227         * modules/gethostname (configure.ac): ... to here.
12228
12229 2011-05-08  Bruno Haible  <bruno@clisp.org>
12230
12231         getgroups: Move AC_LIBOBJ invocations to module description.
12232         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Move AC_LIBOBJ invocations from
12233         here...
12234         * modules/getgroups (configure.ac): ... to here.
12235
12236 2011-05-08  Bruno Haible  <bruno@clisp.org>
12237
12238         getdtablesize: Move AC_LIBOBJ invocations to module description.
12239         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Move AC_LIBOBJ
12240         invocation from here...
12241         * modules/getdtablesize (configure.ac): ... to here.
12242
12243 2011-05-08  Bruno Haible  <bruno@clisp.org>
12244
12245         getdomainname: Move AC_LIBOBJ invocations to module description.
12246         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Move AC_LIBOBJ and
12247         gl_PREREQ_GETDOMAINNAME invocations from here...
12248         * modules/getdomainname (configure.ac): ... to here.
12249
12250 2011-05-08  Bruno Haible  <bruno@clisp.org>
12251
12252         getline: Move AC_LIBOBJ invocations to module description.
12253         * m4/getline.m4 (gl_FUNC_GETLINE): Move AC_LIBOBJ and gl_PREREQ_GETLINE
12254         invocations from here...
12255         * modules/getline (configure.ac): ... to here.
12256
12257 2011-05-08  Bruno Haible  <bruno@clisp.org>
12258
12259         getline: Simplify.
12260         * m4/getline.m4 (gl_PREREQ_GETLINE): Don't invoke gl_FUNC_GETDELIM.
12261         It's already handled through the module dependency.
12262
12263 2011-05-08  Bruno Haible  <bruno@clisp.org>
12264
12265         getdelim: Move AC_LIBOBJ invocations to module description.
12266         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Set HAVE_GETDELIM. Move AC_LIBOBJ
12267         and gl_PREREQ_GETDELIM invocations from here...
12268         * modules/getdelim (configure.ac): ... to here.
12269         (Depends-on): Fix condition.
12270
12271 2011-05-08  Bruno Haible  <bruno@clisp.org>
12272
12273         getcwd: Move AC_LIBOBJ invocations to module description.
12274         * m4/getcwd.m4 (gl_FUNC_GETCWD): Move AC_LIBOBJ and gl_PREREQ_GETCWD
12275         invocations from here...
12276         * modules/getcwd (configure.ac): ... to here.
12277
12278 2011-05-08  Bruno Haible  <bruno@clisp.org>
12279
12280         getcwd-lgpl: Move AC_LIBOBJ invocations to module description.
12281         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): Move AC_LIBOBJ invocation from
12282         here...
12283         * modules/getcwd-lgpl (configure.ac): ... to here.
12284
12285 2011-05-07  Bruno Haible  <bruno@clisp.org>
12286
12287         crypto/gc: Move AC_LIBOBJ invocations to module description.
12288         * m4/gc.m4 (gl_GC): Move AC_LIBOBJ invocations from here...
12289         * modules/crypto/gc (configure.ac): ... to here.
12290
12291 2011-05-07  Bruno Haible  <bruno@clisp.org>
12292
12293         fwriting: Move AC_LIBOBJ invocations to module description.
12294         * m4/fwriting.m4 (gl_FUNC_FWRITINT): Move AC_LIBOBJ invocation from
12295         here...
12296         * modules/fwriting (configure.ac): ... to here.
12297
12298 2011-05-07  Bruno Haible  <bruno@clisp.org>
12299
12300         fwritable: Move AC_LIBOBJ invocations to module description.
12301         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Move AC_LIBOBJ invocation from
12302         here...
12303         * modules/fwritable (configure.ac): ... to here.
12304
12305 2011-05-07  Bruno Haible  <bruno@clisp.org>
12306
12307         futimens: Move AC_LIBOBJ invocations to module description.
12308         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Move AC_LIBOBJ invocations from
12309         here...
12310         * modules/futimens (configure.ac): ... to here.
12311
12312 2011-05-07  Bruno Haible  <bruno@clisp.org>
12313
12314         ftruncate: Move AC_LIBOBJ invocations to module description.
12315         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Move AC_LIBOBJ and
12316         gl_PREREQ_FTRUNCATE invocations from here...
12317         * modules/ftruncate (configure.ac): ... to here.
12318
12319 2011-05-07  Bruno Haible  <bruno@clisp.org>
12320
12321         fsync: Move AC_LIBOBJ invocations to module description.
12322         * m4/fsync.m4 (gl_FUNC_FSYNC): Move AC_LIBOBJ and gl_PREREQ_FSYNC
12323         invocations from here...
12324         * modules/fsync (configure.ac): ... to here.
12325
12326 2011-05-07  Bruno Haible  <bruno@clisp.org>
12327
12328         fsusage: Move AC_LIBOBJ invocations to module description.
12329         * m4/fsusage.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and
12330         gl_PREREQ_FSUSAGE_EXTRA invocations from here...
12331         * modules/fsusage (configure.ac): ... to here.
12332
12333 2011-05-07  Bruno Haible  <bruno@clisp.org>
12334
12335         freopen: Move AC_LIBOBJ invocations to module description.
12336         * m4/freopen.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and gl_PREREQ_FREOPEN
12337         invocations from here...
12338         * modules/freopen (configure.ac): ... to here.
12339
12340 2011-05-07  Bruno Haible  <bruno@clisp.org>
12341
12342         free: Move AC_LIBOBJ invocations to module description.
12343         * m4/free.m4 (gl_FUNC_FREE): Move AC_LIBOBJ and missing gl_PREREQ_FREE
12344         invocations from here...
12345         * modules/free (configure.ac): ... to here.
12346
12347 2011-05-07  Bruno Haible  <bruno@clisp.org>
12348
12349         freadable: Move AC_LIBOBJ invocations to module description.
12350         * m4/freadable.m4 (gl_FUNC_FREADABLE): Move AC_LIBOBJ invocation from
12351         here...
12352         * modules/freadable (configure.ac): ... to here.
12353
12354 2011-05-07  Bruno Haible  <bruno@clisp.org>
12355
12356         fpurge: Move AC_LIBOBJ invocations to module description.
12357         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set HAVE_FPURGE. Move AC_LIBOBJ
12358         invocations from here...
12359         * modules/fpurge (configure.ac): ... to here.
12360
12361 2011-05-07  Bruno Haible  <bruno@clisp.org>
12362
12363         fpending: Move AC_LIBOBJ invocations to module description.
12364         * m4/fpending.m4 (gl_PREREQ_FPENDING): New macro, extracted from
12365         gl_FUNC_FPENDING.
12366         (gl_FUNC_FPENDING): Move AC_LIBOBJ and gl_PREREQ_FPENDING
12367         invocations from here...
12368         * modules/fpending (configure.ac): ... to here.
12369
12370 2011-05-07  Bruno Haible  <bruno@clisp.org>
12371
12372         fopen: Move AC_LIBOBJ invocations to module description.
12373         * m4/fopen.m4 (gl_FUNC_FOPEN): Move AC_LIBOBJ and gl_PREREQ_FOPEN
12374         invocations from here...
12375         * modules/fopen (configure.ac): ... to here.
12376
12377 2011-05-07  Bruno Haible  <bruno@clisp.org>
12378
12379         fnmatch, fnmatch-gnu: Move AC_LIBOBJ invocations to module description.
12380         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): New macro, extracted from
12381         gl_FUNC_FNMATCH_POSIX.
12382         (gl_FUNC_FNMATCH_POSIX): Move AC_LIBOBJ and gl_PREREQ_FNMATCH
12383         invocations from here...
12384         * modules/fnmatch (configure.ac): ... to here.
12385         * modules/fnmatch-gnu (configure.ac): ... and here.
12386
12387 2011-05-07  Bruno Haible  <bruno@clisp.org>
12388
12389         flock: Move AC_LIBOBJ invocations to module description.
12390         * m4/flock.m4 (gl_FUNC_FLOCK): Move AC_LIBOBJ and gl_PREREQ_FLOCK
12391         invocations from here...
12392         * modules/flock (configure.ac): ... to here.
12393
12394 2011-05-07  Bruno Haible  <bruno@clisp.org>
12395
12396         fileblocks: Move AC_LIBOBJ invocations to module description.
12397         * m4/fileblocks.m4 (gl_FILEBLOCKS): Move AC_LIBOBJ and
12398         gl_PREREQ_FILEBLOCKS invocations from here...
12399         * modules/fileblocks (configure.ac): ... to here.
12400
12401 2011-05-06  Bruno Haible  <bruno@clisp.org>
12402
12403         fflush: Move AC_LIBOBJ invocations to module description.
12404         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Remove macro.
12405         (gl_FUNC_FFLUSH): Inline it here. Move AC_LIBOBJ and gl_PREREQ_FFLUSH
12406         invocations from here...
12407         * modules/fflush (configure.ac): ... to here.
12408
12409 2011-05-06  Bruno Haible  <bruno@clisp.org>
12410
12411         fdopendir: Move AC_LIBOBJ invocations to module description.
12412         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Move AC_LIBOBJ invocations from
12413         here...
12414         * modules/fdopendir (configure.ac): ... to here.
12415         (Depends-on): Improve conditions.
12416
12417 2011-05-06  Bruno Haible  <bruno@clisp.org>
12418
12419         _Exit: Move AC_LIBOBJ invocations to module description.
12420         * m4/_Exit.m4 (gl_FUNC__EXIT): Move AC_LIBOBJ and gl_PREREQ__EXIT
12421         invocations from here...
12422         * modules/_Exit (configure.ac): ... to here.
12423
12424 2011-05-21  Bruno Haible  <bruno@clisp.org>
12425
12426         euidaccess: Respect rules for use of AC_LIBOBJ.
12427         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
12428         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_EUIDACCESS invocations
12429         from here...
12430         * modules/euidaccess (configure.ac): ... to here.
12431
12432 2011-05-06  Bruno Haible  <bruno@clisp.org>
12433
12434         error: Move AC_LIBOBJ invocations to module description.
12435         * m4/error.m4 (gl_ERROR): Inline AC_FUNC_ERROR_AT_LINE. Remove
12436         AC_LIBSOURCES invocation. Move AC_LIBOBJ and gl_PREREQ_ERROR
12437         invocations from here...
12438         * modules/error (configure.ac): ... to here.
12439
12440 2011-05-06  Bruno Haible  <bruno@clisp.org>
12441
12442         duplocale: Move AC_LIBOBJ invocations to module description.
12443         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Move AC_LIBOBJ and
12444         gl_PREREQ_DUPLOCALE invocations from here...
12445         * modules/duplocale (configure.ac): ... to here.
12446
12447 2011-05-05  Bruno Haible  <bruno@clisp.org>
12448
12449         dirfd: Move AC_LIBOBJ invocations to module description.
12450         * m4/dirfd.m4 (gl_PREREQ_DIRFD): New macro, extracted from
12451         gl_FUNC_DIRFD.
12452         (gl_FUNC_DIRFD): Move AC_LIBOBJ and gl_PREREQ_DIRFD invocations from
12453         here...
12454         * modules/dirfd (configure.ac): ... to here.
12455         (Depends-on): Fix condition.
12456
12457 2011-05-05  Bruno Haible  <bruno@clisp.org>
12458
12459         chown: Respect rules for use of AC_LIBOBJ.
12460         * m4/chown.m4 (gl_FUNC_CHOWN): Move AC_LIBOBJ invocations from here...
12461         * modules/chown (configure.ac): ... to here.
12462
12463 2011-05-05  Bruno Haible  <bruno@clisp.org>
12464
12465         chdir-long: Move AC_LIBOBJ invocations to module description.
12466         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Move AC_LIBOBJ and
12467         gl_PREREQ_CHDIR_LONG invocations from here...
12468         * modules/chdir-long (configure.ac): ... to here.
12469
12470 2011-05-05  Bruno Haible  <bruno@clisp.org>
12471
12472         canonicalize-lgpl: Move AC_LIBOBJ invocations to module description.
12473         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Move AC_LIBOBJ invocation
12474         from here...
12475         * modules/canonicalize-lgpl (configure.ac): ... to here.
12476
12477 2011-05-05  Bruno Haible  <bruno@clisp.org>
12478
12479         calloc-posix, calloc-gnu: Move AC_LIBOBJs to module description.
12480         * m4/calloc.m4 (gl_REPLACE_CALLOC): Remove macro.
12481         (gl_FUNC_CALLOC_GNU, gl_FUNC_CALLOC_POSIX): Instead, just set
12482         REPLACE_CALLOC.
12483         * modules/calloc-posix (configure.ac): Invoke AC_LIBOBJ here.
12484         * modules/calloc-gnu (configure.ac): Likewise.
12485
12486 2011-05-05  Bruno Haible  <bruno@clisp.org>
12487
12488         btowc: Move AC_LIBOBJ invocations to module description.
12489         * m4/btowc.m4 (gl_FUNC_BTOWC): Move AC_LIBOBJ and gl_PREREQ_BTOWC
12490         invocations from here...
12491         * modules/btowc (configure.ac): ... to here.
12492
12493 2011-05-21  Bruno Haible  <bruno@clisp.org>
12494
12495         atexit: Move AC_LIBOBJ invocations to module description.
12496         * m4/atexit.m4 (gl_FUNC_ATEXIT): Call AC_CHECK_FUNCS instead of
12497         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_ATEXIT invocations from
12498         here...
12499         * modules/atexit (configure.ac): ... to here.
12500
12501 2011-05-05  Bruno Haible  <bruno@clisp.org>
12502
12503         atoll: Move AC_LIBOBJ invocations to module description.
12504         * m4/atoll.m4 (gl_FUNC_ATOLL): Move AC_LIBOBJ and gl_PREREQ_ATOLL
12505         invocations from here...
12506         * modules/atoll (configure.ac): ... to here.
12507
12508 2011-05-05  Bruno Haible  <bruno@clisp.org>
12509
12510         argz: Move AC_LIBOBJ invocations to module description.
12511         * m4/argz.m4 (gl_FUNC_ARGZ): Move AC_LIBOBJ invocation from here...
12512         * modules/argz (configure.ac): ... to here.
12513
12514 2011-05-05  Bruno Haible  <bruno@clisp.org>
12515
12516         alphasort: Move AC_LIBOBJ invocations to module description.
12517         * m4/alphasort.m4 (gl_FUNC_ALPHASORT): Move AC_LIBOBJ and
12518         gl_PREREQ_ALPHASORT invocations from here...
12519         * modules/alphasort (configure.ac): ... to here.
12520
12521 2011-06-15  Paul Eggert  <eggert@cs.ucla.edu>
12522
12523         verify: new macro verify_expr; verify_true deprecated
12524         * NEWS: Mention this.
12525         * doc/verify.texi (Compile-time Assertions): Document this.
12526         * lib/verify.h (verify_true): Deprecate.
12527         (verify_expr): New macro.
12528         * tests/test-verify.c (function): Test verify_expr.
12529
12530 2011-06-14  Jim Meyering  <meyering@redhat.com>
12531
12532         init.sh: give more portable redirection-related advice in a comment
12533         * tests/init.sh (stderr_fileno_): Update the advice in comments.
12534         See http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/22488
12535         for lots of discussion.  Stefano Lattarini suggested the solution
12536         of putting "9>&2" after the command.  Reported by Bruno Haible.
12537
12538 2011-06-13  Bruno Haible  <bruno@clisp.org>
12539
12540         locale-zh: Reject zh_CN.GB18030 locale on Solaris 8.
12541         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On Solaris 8, set LOCALE_ZH_CN to
12542         'none'.
12543
12544 2011-06-13  Paul Eggert  <eggert@cs.ucla.edu>
12545
12546         ftoastr: use strtof only if HAVE_STRTOF
12547         This is needed on HP-UX 11.11 with GCC 4.2.4; see Bruno Haible's report
12548         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00154.html>.
12549         * lib/ftoastr.c (STRTOF) [LENGTH == 1]: Use strtof only if HAVE_STRTOF.
12550         * modules/ftoastr (configure.ac): Check for strtof.
12551
12552 2011-06-13  Bruno Haible  <bruno@clisp.org>
12553
12554         gnulib-tool: Addendum to 2011-06-08 commit.
12555         * gnulib-tool (func_emit_lib_Makefile_am): If options --makefile-name
12556         and --witness-c-macro have been given, augment AM_CPPFLAGS.
12557
12558 2011-06-13  Bruno Haible  <bruno@clisp.org>
12559
12560         fseeko: Provide a non-inline replacement of fseek().
12561         * lib/stdio.in.h (fseek): Don't provide if module 'fseek' is not used.
12562         * modules/fseeko (Depends-on): Add fseek.
12563         * modules/fseek (License): Change to LGPLv2+.
12564
12565 2011-06-13  Bruno Haible  <bruno@clisp.org>
12566
12567         ftello: Provide a non-inline replacement of ftell().
12568         * lib/stdio.in.h (ftell): Don't provide if module 'ftell' is not used.
12569         * m4/ftell.m4 (gl_FUNC_FTELL): Replace ftell also if the system does
12570         not have ftello() (such as on mingw).
12571         * modules/ftello (Depends-on): Add ftell.
12572         * modules/ftell (License): Change to LGPLv2+.
12573
12574 2011-05-07  Bruno Haible  <bruno@clisp.org>
12575
12576         ftell: Move AC_LIBOBJ invocations to module description.
12577         * m4/ftell.m4 (gl_FUNC_FTELL): Move AC_LIBOBJ invocation from here...
12578         * modules/ftell (configure.ac): ... to here.
12579
12580 2011-05-07  Bruno Haible  <bruno@clisp.org>
12581
12582         ftello: Respect rules for use of AC_LIBOBJ.
12583         * m4/ftello.m4 (gl_REPLACE_FTELLO): Remove macro.
12584         (gl_FUNC_FTELLO): Inline it here. Move AC_LIBOBJ invocation from
12585         here...
12586         * modules/ftello (configure.ac): ... to here.
12587
12588 2011-05-07  Bruno Haible  <bruno@clisp.org>
12589
12590         fseeko: Simplify.
12591         * m4/fseeko.m4 (gl_HAVE_FSEEKO): Remove macro.
12592         (gl_FUNC_FSEEKO): Inline it here.
12593
12594 2011-05-07  Bruno Haible  <bruno@clisp.org>
12595
12596         fseek: Move AC_LIBOBJ invocations to module description.
12597         * m4/fseek.m4 (gl_REPLACE_FSEEK): Remove macro.
12598         (gl_FUNC_FSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
12599         * modules/fseek (configure.ac): ... to here.
12600
12601 2011-05-07  Bruno Haible  <bruno@clisp.org>
12602
12603         fseek: Respect rules for use of AC_LIBOBJ.
12604         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Move gl_REPLACE_FSEEK invocation from
12605         here...
12606         * m4/fseek.m4 (gl_FUNC_FSEEK): ... to here.
12607
12608 2011-05-07  Bruno Haible  <bruno@clisp.org>
12609
12610         fseeko: Respect rules for use of AC_LIBOBJ.
12611         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Remove macro.
12612         (gl_FUNC_FSEEKO): Inline it here. Move AC_LIBOBJ invocation from
12613         here...
12614         * modules/fseeko (configure.ac): ... to here.
12615
12616 2011-06-13  Bruno Haible  <bruno@clisp.org>
12617
12618         gnulib-tool: Allow comments in the 'Depends-on' section.
12619         * doc/gnulib.texi (Module description): Mention comment syntax in the
12620         Depends-on section.
12621         * gnulib-tool (func_get_dependencies): Filter out comment lines.
12622
12623 2011-06-13  Bruno Haible  <bruno@clisp.org>
12624
12625         file-set.h: guard __attibute__ use, now that it's not always defined
12626         * lib/file-set.h (record_file): Use __attribute__ only with compiler
12627         versions that support it.  This fixes a coreutils build failure with
12628         the vendor cc on HP-UX 11.31.
12629
12630 2011-06-12  Bruno Haible  <bruno@clisp.org>
12631
12632         acl: Add support for HP-UX >= 11.11 JFS ACLs.
12633         * doc/acl-resources.txt: Add info about the ACL APIs on HP-UX.
12634         * m4/acl.m4 (gl_FUNC_ACL): Also test for HP-UX 11.11 API.
12635         * lib/acl-internal.h [HP-UX 11.11]: Include <aclv.h>.
12636         (acl, aclsort): New declarations.
12637         (aclv_nontrivial): New declaration.
12638         * lib/file-has-acl.c (aclv_nontrivial) [HP-UX 11.11]: New function.
12639         (file_has_acl): Read also the second kind of HP-UX ACLs.
12640         * lib/set-mode-acl.c (qset_acl) [HP-UX 11.11]: Try to set the second
12641         kind of HP-UX ACLs if the first kind fails.
12642         * lib/copy-acl.c (qcopy_acl) [HP-UX 11.11]: Read and set also the
12643         second kind of HP-UX ACLs.
12644         * tests/test-sameacls.c [HP-UX 11.11]: Include <aclv.h>.
12645         (main) [HP-UX 11.11]: Test also whether the second kind of HP-UX ACLs
12646         agree.
12647         * tests/test-file-has-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
12648         hpuxjfs.
12649         Handle hpuxjfs.
12650         * tests/test-set-mode-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
12651         hpuxjfs.
12652         Handle hpuxjfs.
12653         * tests/test-copy-acl.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
12654         (func_test_same_acls): Use both lsacl and getacl.
12655         Handle hpuxjfs.
12656         * tests/test-copy-file.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
12657         (func_test_same_acls): Use both lsacl and getacl.
12658         Handle hpuxjfs.
12659
12660 2011-06-12  Bruno Haible  <bruno@clisp.org>
12661
12662         acl: Complete the 2010-08-10 fix.
12663         * lib/file-has-acl.c (file_has_acl) [HP-UX]: Also test against ENOTSUP.
12664         * lib/set-mode-acl.c (qset_acl) [HP-UX]: Likewise.
12665         * lib/copy-acl.c (qcopy_acl) [HP-UX]: Test for the errno values
12666         explicitly.
12667         * tests/test-sameacls.c (main) [HP-UX]: Also test against ENOTSUP.
12668         Reported in <http://debbugs.gnu.org/db/60/6053.html>.
12669
12670 2011-06-12  Bruno Haible  <bruno@clisp.org>
12671
12672         spawn-pipe tests: Comments.
12673         * tests/test-spawn-pipe-child.c (main): Update comment.
12674         Reported by James Youngman <jay@gnu.org>.
12675
12676 2011-06-11  James Youngman  <jay@gnu.org>
12677
12678         New module 'stat-size'.
12679         * modules/stat-size: New module.  Provides macros for accessing
12680         file size information in instances of struct stat.  Depends on the
12681         fileblocks module because it calls st_blocks.
12682         * lib/stat-size.h: New file, adapted from coreutils' system.h.
12683         * doc/gnulib.texi: Include stat-size.texi.
12684         * doc/stat-size.texi: Documentation for this module.
12685         * m4/stat-size.m4: New file; defines gl_STAT_SIZE.
12686         * m4/fileblocks.m4: Mention that stat-size depends on the call to
12687         AC_STRUCT_ST_BLOCKS.
12688
12689 2011-06-09  Bruno Haible  <bruno@clisp.org>
12690
12691         thread: Support pthreads-win32.
12692         * lib/glthread/thread.h (gl_thread_self): Define differently on
12693         pthreads-win32.
12694         (gl_null_thread): New declaration.
12695         (gl_thread_self_pointer): New macro.
12696         * lib/glthread/thread.c (gl_null_thread): New constant.
12697         * tests/test-lock.c: Use gl_thread_self_pointer instead of
12698         gl_thread_self.
12699         * tests/test-tls.c: Likewise.
12700         Suggested by Paul Eggert. Reported by Eric Blake.
12701
12702 2011-06-09  Bruno Haible  <bruno@clisp.org>
12703
12704         thread: Fix confusion between NULL and 0.
12705         * lib/glthread/thread.h (gl_thread_self): Use NULL and 0 appropriately.
12706         Reported by Paul Eggert.
12707
12708 2011-06-09  Bruno Haible  <bruno@clisp.org>
12709
12710         spawn-pipe tests: Avoid test failure on HP-UX 11.
12711         * tests/test-spawn-pipe-child.c (main) [HP-UX]: Don't assert that fd 2
12712         is closed.
12713
12714 2011-06-09  Bruno Haible  <bruno@clisp.org>
12715
12716         acl tests: Fix compilation error on HP-UX 11.
12717         * tests/test-sameacls.c: Include <sys/acl.h> also on HP-UX.
12718
12719 2011-06-09  Bruno Haible  <bruno@clisp.org>
12720
12721         rmdir: Avoid test failure on HP-UX 10.20.
12722         * tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like
12723         EEXIST.
12724
12725 2011-06-08  Eric Blake  <eblake@redhat.com>
12726
12727         perror: fix test on mingw
12728         * modules/perror-tests (Depends-on): Add dup2.
12729
12730         strerror_r-posix: fix on MacOS
12731         * m4/strerror.m4 (gl_FUNC_STRERROR): Flush out MacOS bug.
12732         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Likewise, and fix
12733         logic bug.
12734         * lib/strerror_r.c (strerror_r): Fix the bug.
12735         * lib/strerror.c (strerror): Likewise.
12736         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
12737         problem.
12738         * doc/posix-functions/strerror.texi (strerror): Likewise.
12739         * doc/posix-functions/perror.texi (perror): Likewise.
12740         * tests/test-strerror.c (main): Enhance test.
12741         * tests/test-strerror_r.c (main): Likewise.
12742
12743 2011-06-08  Bruno Haible  <bruno@clisp.org>
12744
12745         gnulib-tool: Better isolation between different gnulib-tool invocations.
12746         * gnulib-tool: New option --witness-c-macro.
12747         (witness_c_macro): New variable.
12748         (func_emit_lib_Makefile_am): If --witness-c-macro was specified, let
12749         AM_CPPFLAGS define it as a C macro.
12750         (func_emit_tests_Makefile_am): Likewise.
12751         (func_import): Store witness_c_macro setting in gnulib-cache.m4 and
12752         read it from there.
12753         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): Define through
12754         m4_define, not AC_DEFUN.
12755         (gl_MODULE_INDICATOR_SET_VARIABLE_AUX,
12756         gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR): New macros.
12757         (gl_MODULE_INDICATOR_SET_VARIABLE): Use them.
12758         * modules/arpa_inet (Makefile.am): Use sed expression s/.../.../, not
12759         s|...|...|, to substitute the values of the GNULIB_* module indicator
12760         variables.
12761         * modules/dirent (Makefile.am): Likewise.
12762         * modules/fcntl-h (Makefile.am): Likewise.
12763         * modules/iconv-h (Makefile.am): Likewise.
12764         * modules/langinfo (Makefile.am): Likewise.
12765         * modules/locale (Makefile.am): Likewise.
12766         * modules/math (Makefile.am): Likewise.
12767         * modules/netdb (Makefile.am): Likewise.
12768         * modules/poll-h (Makefile.am): Likewise.
12769         * modules/pty (Makefile.am): Likewise.
12770         * modules/search (Makefile.am): Likewise.
12771         * modules/signal (Makefile.am): Likewise.
12772         * modules/spawn (Makefile.am): Likewise.
12773         * modules/stdio (Makefile.am): Likewise.
12774         * modules/stdlib (Makefile.am): Likewise.
12775         * modules/string (Makefile.am): Likewise.
12776         * modules/sys_ioctl (Makefile.am): Likewise.
12777         * modules/sys_select (Makefile.am): Likewise.
12778         * modules/sys_socket (Makefile.am): Likewise.
12779         * modules/sys_stat (Makefile.am): Likewise.
12780         * modules/sys_times (Makefile.am): Likewise.
12781         * modules/sys_utsname (Makefile.am): Likewise.
12782         * modules/sys_wait (Makefile.am): Likewise.
12783         * modules/termios (Makefile.am): Likewise.
12784         * modules/time (Makefile.am): Likewise.
12785         * modules/unistd (Makefile.am): Likewise.
12786         * modules/wchar (Makefile.am): Likewise.
12787
12788 2011-06-08  Eric Blake  <eblake@redhat.com>
12789
12790         strerror: simplify replacement
12791         * m4/strerror.m4 (gl_PREREQ_STRERROR): Delete.
12792         * modules/strerror (configure.ac): No prereqs needed here...
12793         * modules/strerror-override (configure.ac): ...but this needs it.
12794         (Files): Add file for needed prereq macro.
12795
12796 2011-06-08  Bruno Haible  <bruno@clisp.org>
12797
12798         strerror_r-posix: Tweaks.
12799         * m4/strerror.m4 (gl_FUNC_STRERROR): Omit the code that tests
12800         gl_cv_func_strerror_r_works if gl_FUNC_STRERROR_R_WORKS is not present.
12801         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Fix AC_CACHE_CHECK
12802         message. Move gl_HEADER_STRING_H_DEFAULTS invocation from here...
12803         (gl_FUNC_STRERROR_R): ... to here.
12804         (gl_PREREQ_STRERROR_R): Test for __xpg_strerror_r.
12805
12806 2011-06-07  Eric Blake  <eblake@redhat.com>
12807
12808         perror: document fixed bugs
12809         * doc/posix-functions/perror.texi (perror): Document recent
12810         patches.
12811
12812 2011-06-07  Paul Eggert  <eggert@cs.ucla.edu>
12813
12814         stat-time: get_stat_birthtime failure is better-defined
12815         * lib/stat-time.h (get_stat_birthtime): If the time is not available,
12816         return a timestamp whose tv_sec and tv_nsec values are both -1.
12817         Previously, the spec said only that the tv_nsec value was negative.
12818         This upward-compatible change simplifies GNU tar a bit.
12819
12820 2011-06-07  Eric Blake  <eblake@redhat.com>
12821
12822         strerror_r-posix: work around cygwin 1.7.9
12823         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Split...
12824         (gl_FUNC_STRERROR_R_WORKS): ...into new macro, to detect Cygwin
12825         bug without replacing strerror_r.
12826         * m4/strerror.m4 (gl_FUNC_STRERROR): Replace strerror if
12827         strerror_r is buggy, but without requiring strerror_r compilation.
12828         * doc/posix-functions/strerror_r.texi (strerror_r): Fix docs.
12829
12830         test-perror: relax test to ignore cygwin bug
12831         * tests/test-perror2.c (main): Relax test on requiring detection
12832         of stream errors, and use unbuffered stream.
12833         * doc/posix-functions/dprintf.texi (dprintf): Document bug.
12834         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
12835         * doc/posix-functions/fputc.texi (fputc): Likewise.
12836         * doc/posix-functions/fputs.texi (fputs): Likewise.
12837         * doc/posix-functions/fputws.texi (fputws): Likewise.
12838         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
12839         * doc/posix-functions/fwrite.texi (fwrite): Likewise.
12840         * doc/posix-functions/getopt.texi (getopt): Likewise.
12841         * doc/posix-functions/perror.texi (perror): Likewise.
12842         * doc/posix-functions/printf.texi (printf): Likewise.
12843         * doc/posix-functions/psiginfo.texi (psiginfo): Likewise.
12844         * doc/posix-functions/psignal.texi (psignal): Likewise.
12845         * doc/posix-functions/putc.texi (putc): Likewise.
12846         * doc/posix-functions/putc_unlocked.texi (putc_unlocked):
12847         Likewise.
12848         * doc/posix-functions/putchar.texi (putchar): Likewise.
12849         * doc/posix-functions/putchar_unlocked.texi (putchar_unlocked):
12850         Likewise.
12851         * doc/posix-functions/puts.texi (puts): Likewise.
12852         * doc/posix-functions/putwc.texi (putwc): Likewise.
12853         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
12854         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
12855         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
12856         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
12857         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
12858         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
12859         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
12860         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
12861
12862 2011-05-22  Bruno Haible  <bruno@clisp.org>
12863
12864         strerror: Move AC_LIBOBJ invocations to module description.
12865         * m4/strerror.m4 (gl_FUNC_STRERROR): Move AC_LIBOBJ and
12866         gl_PREREQ_STRERROR invocations from here...
12867         * modules/strerror (configure.ac): ... to here.
12868
12869 2011-05-21  Bruno Haible  <bruno@clisp.org>
12870
12871         perror: Use common idiom.
12872         * modules/perror (configure.ac): Reorder statements.
12873
12874 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
12875
12876         tests: fix usage message in 'mktempd_'
12877         * tests/init.sh (mktempd_): In the usage message, use literal
12878         'mktempd_', not '$ME' (which is even undefined), as the name of
12879         the subroutine.
12880
12881 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
12882
12883         tests init: new function 'fatal_', for hard errors
12884         Before this patch, the only way offered by tests/init.sh to
12885         properly signal a hard error was the `framework_failure_'
12886         function.  But the error message issued by that function,
12887         as its name would suggest, refers to a set-up failure in the
12888         testsuite, while hard errors can obviously also be due to
12889         other reasons.  The best way to fix this inconsistency is to
12890         introduce a new function with a more general error message.
12891         * tests/init.sh (fatal_): New function.
12892
12893 2011-06-06  Eric Blake  <eblake@redhat.com>
12894
12895         canonicalize-lgpl: use common idiom
12896         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
12897         over newer POSIX -Rf.
12898         Reported by Bruno Haible.
12899
12900         canonicalize-lgpl: work around AIX realpath bug
12901         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
12902         * doc/posix-functions/realpath.texi (realpath): Document it.
12903         Reported by Bruno Haible.
12904
12905         strerror: work around FreeBSD bug
12906         * lib/strerror.c (strerror): Special case 0.
12907         Reported by Bruno Haible.
12908
12909         strerror-override: avoid bloating errno module
12910         * modules/errno (Files, configure.ac): Move replacement strings...
12911         * modules/strerror-override: ...to new module.
12912         * modules/strerror (Depends-on): Add strerror-override.
12913         * modules/strerror_r-posix (Depends-on): Likewise.
12914         * MODULES.html.sh: Document new module.
12915         Reported by Bruno Haible.
12916
12917 2011-06-06  Bruno Haible  <bruno@clisp.org>
12918
12919         spawn-pipe tests: Rename program.
12920         * tests/test-spawn-pipe-main.c: Renamed from tests/test-spawn-pipe.c.
12921         * tests/test-spawn-pipe-child.c: Update comment.
12922         * tests/test-spawn-pipe.sh: Update.
12923         * modules/spawn-pipe-tests (Files, Makefile.am): Update.
12924
12925         spawn-pipe tests: Link the child program only against libc.
12926         * tests/test-spawn-pipe-child.c: New file, extracted from
12927         tests/test-spawn-pipe.c.
12928         (main): Expect only one argument.
12929         (is_open): New function, copied from tests/test-pipe.c.
12930         * tests/test-spawn-pipe.c: Don't include <errno.h>.
12931         (child_main): Remove function.
12932         (test_pipe): Pass only one argument to the child program.
12933         (main): Remove child process code. Expect the child program's name as
12934         first argument.
12935         * tests/test-spawn-pipe.sh: Pass the child program's name as first
12936         argument.
12937         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-child.c.
12938         (Makefile.am): Add test-spawn-pipe-child to check_PROGRAMS. Link
12939         test-spawn-pipe-child against no libraries.
12940
12941 2011-06-06  Bruno Haible  <bruno@clisp.org>
12942
12943         careadlinkat: Avoid mismatch between ssize_t and int.
12944         * lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
12945         * lib/careadlinkat.c (careadlinkatcwd): Define always.
12946
12947 2011-06-06  Jim Meyering  <meyering@redhat.com>
12948
12949         gnulib-common.m4: add _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE
12950         * m4/gnulib-common.m4 (gl_COMMON): Emit definitions of
12951         _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE.
12952
12953 2011-06-05  Bruno Haible  <bruno@clisp.org>
12954
12955         ansi-c++-opt: Interoperability with libtool.
12956         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
12957         set the variable to "no", not to ":".
12958         * NEWS: Mention the change.
12959
12960 2011-06-05  Bruno Haible  <bruno@clisp.org>
12961
12962         acl: Fix test failure on AIX 7.
12963         * tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
12964         Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
12965
12966 2011-06-05  Bruno Haible  <bruno@clisp.org>
12967
12968         pipe-filter-ii: Fix test failure on AIX and IRIX.
12969         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
12970         with EAGAIN, retry with a smaller buffer size.
12971
12972 2011-06-05  Bruno Haible  <bruno@clisp.org>
12973
12974         localename: Fix link dependencies.
12975         * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
12976         * modules/localename-tests (Makefile.am): Link test-localename with
12977         $(LIBTHREAD).
12978
12979 2011-06-05  Bruno Haible  <bruno@clisp.org>
12980
12981         error: Avoid gcc warning.
12982         * lib/error.c (strerror_r): Declare also when its return type is 'int'.
12983
12984 2011-06-05  Bruno Haible  <bruno@clisp.org>
12985
12986         unsetenv: Avoid gcc warning.
12987         * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
12988
12989 2011-06-05  Bruno Haible  <bruno@clisp.org>
12990
12991         setenv: Avoid gcc warning.
12992         * lib/setenv.c (setenv): Provide declaration if system lacks it.
12993
12994 2011-06-05  Bruno Haible  <bruno@clisp.org>
12995
12996         sys_select: Ensure memset is declared also on AIX 7.
12997         * lib/sys_select.in.h: Include <string.h> also on AIX.
12998         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
12999         self-contained also on AIX 7.1.
13000
13001 2011-06-04  Jim Meyering  <meyering@redhat.com>
13002
13003         maint.mk: sc_unmarked_diagnostics: don't hard-code "error"
13004         * top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the
13005         function name, "error".
13006         (_gl_translatable_diag_func_re): New configurable variable.
13007
13008 2011-06-04  Bruno Haible  <bruno@clisp.org>
13009
13010         getopt: Avoid gcc warning.
13011         * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
13012
13013 2011-06-04  Bruno Haible  <bruno@clisp.org>
13014
13015         strerror_r: Fix comments.
13016         * lib/strerror_r.c (strerror_r): Update comments after 2011-06-01
13017         commit.
13018
13019 2011-06-04  Bruno Haible  <bruno@clisp.org>
13020
13021         perror: Fix compilation error.
13022         * lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h.
13023         Undefine fprintf, not sprintf.
13024         * modules/perror (Depends-on): Remove intprops, verify.
13025
13026 2011-06-04  Bruno Haible  <bruno@clisp.org>
13027
13028         setlocale: Enable replacement on Cygwin 1.5.
13029         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
13030         Cygwin 1.5.x.
13031         * doc/posix-functions/setlocale.texi: Mention that the problem with the
13032         LC_CTYPE category also exists on Cygwin 1.5.x.
13033
13034 2011-06-04  Bruno Haible  <bruno@clisp.org>
13035
13036         strerror-override: Don't disable symbol renamings.
13037         * lib/strerror-override.h: Include errno.h and stddef.h, not string.h.
13038         * lib/strerror-override.c: Include config.h.
13039         (strerror_override): Don't undefine.
13040
13041 2011-06-03  Bruno Haible  <bruno@clisp.org>
13042
13043         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
13044         * lib/localename.h: Update copyright header.
13045         * lib/localename.c: Likewise.
13046         * lib/relocatable.h: Likewise.
13047         * lib/relocatable.c: Likewise.
13048
13049 2011-06-02  Bruno Haible  <bruno@clisp.org>
13050
13051         doc: Fix a module name.
13052         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
13053
13054 2011-06-02  Bruno Haible  <bruno@clisp.org>
13055
13056         pipe2: Remove dependency on 'nonblocking' module.
13057         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
13058         O_NONBLOCK is defined by gnulib.
13059         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
13060         is zero.
13061         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
13062         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
13063         defined by gnulib.
13064         (get_nonblocking_flag): New function.
13065         (main): Test O_NONBLOCK flag only if it is nonzero.
13066         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
13067
13068 2011-06-03  Jim Meyering  <meyering@redhat.com>
13069
13070         maint: three new prohibit-header-without-use rules
13071         Prohibit use of cloexec.h, posixver.h, same.h without use.
13072         * top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
13073         (sc_prohibit_posixver_without_use): Likewise.
13074         (sc_prohibit_same_without_use): Likewise.
13075
13076 2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>
13077
13078         allocator: 'die' routine is now given requested size
13079         * lib/allocator.h (struct allocator.die): New size arg.
13080         * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
13081         If the actual problem is an ssize_t limitation, not a size_t or
13082         malloc failure, fail with errno==ENAMETOOLONG instead of calling 'die'.
13083
13084 2011-06-01  Eric Blake  <eblake@redhat.com>
13085
13086         strerror: drop strerror_r dependency
13087         * lib/strerror_r.c (strerror_r): Move gnulib replacement strings...
13088         * lib/strerror-override.c (strerror_override): ...to new file.
13089         * lib/strerror-override.h: Add prototype.
13090         * lib/strerror-impl.h: Delete.
13091         * lib/strerror.c (strerror): New implementation.
13092         * modules/errno (Files): Add new files.
13093         (configure.ac): Compile new file as appropriate.
13094         * modules/strerror (Files): Drop unused file.
13095         (Depends-on): Drop strerror_r-posix.
13096         * MODULES.html.sh: Document strerror_r-posix.
13097         Requested by Sam Steingold.
13098
13099         perror: call strerror_r directly
13100         * modules/perror (Files): Drop strerror-impl.h.
13101         * lib/perror.c (perror): Use our own stack buffer, rather than
13102         calling a wrapper that uses static storage.
13103         * doc/posix-functions/perror.texi (perror): Document a limitation
13104         of our replacement.
13105
13106         strerror_r: fix includes for FreeBSD
13107         * lib/strerror_r.c (includes): Use <stdlib.h> unconditionally,
13108         since we use abort on some platforms.
13109         Reported by Matthias Bolte.
13110
13111 2011-05-31  Bruno Haible  <bruno@clisp.org>
13112
13113         Fix link errors in tests: openat-die uses gettext-h.
13114         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
13115         against $(LIBINTL).
13116         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
13117         against $(LIBINTL).
13118         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
13119         $(LIBINTL).
13120         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
13121         against $(LIBINTL).
13122         * modules/linkat-tests (Makefile.am): Link test-linkat against
13123         $(LIBINTL).
13124         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
13125         $(LIBINTL).
13126         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
13127         against $(LIBINTL).
13128         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
13129         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
13130         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
13131         $(LIBINTL).
13132         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
13133         $(LIBINTL).
13134         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
13135         $(LIBINTL).
13136         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
13137
13138 2011-05-31  Bruno Haible  <bruno@clisp.org>
13139
13140         Fix link errors in tests: wait-process uses gettext-h.
13141         * modules/nonblocking-pipe-tests (Makefile.am): Set
13142         test_nonblocking_pipe_main_LDADD.
13143         * modules/nonblocking-socket-tests (Makefile.am): Link
13144         test-nonblocking-socket-main against $(LIBINTL).
13145         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
13146
13147 2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>
13148
13149         assert-h: work around 'verify' incompatibility
13150         * lib/verify.h: Use @...@ directives, not ifdef.
13151         * modules/assert-h (assert.h): Implement the directives.
13152         (assert.h): Substitute the symbol-prefix more consistently.
13153
13154 2011-05-29  Jim Meyering  <meyering@redhat.com>
13155
13156         trim: remove three superfluous assignments
13157         * lib/trim.c (trim2): Remove three superfluous assignments
13158         and correct brace positioning.
13159
13160 2011-05-29  Bruno Haible  <bruno@clisp.org>
13161
13162         wctype-h: Avoid namespace pollution on Solaris 2.6.
13163         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
13164         identifiers.
13165         * doc/posix-headers/wctype.texi: Mention the problem.
13166         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
13167
13168 2011-05-28  Jim Meyering  <meyering@redhat.com>
13169
13170         parse-datetime.y: accommodate -Wstrict-overflow
13171         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
13172         placate -Wstrict-overflow.
13173
13174         trim: avoid a warning from -O2 -Wstrict-overflow
13175         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
13176
13177 2011-05-29  Bruno Haible  <bruno@clisp.org>
13178
13179         gnulib-tool: Fix bug in yesterday's commit.
13180         * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
13181         twice.
13182
13183 2011-05-29  Bruno Haible  <bruno@clisp.org>
13184
13185         Allow multiple gnulib generated include files to be combined.
13186         * gnulib-tool (func_compute_include_guard_prefix): New function.
13187         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
13188         ${gl_include_guard_prefix} references.
13189         (func_import, func_create_testdir): Invoke
13190         func_compute_include_guard_prefix.
13191         * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
13192         * lib/ctype.in.h: Likewise.
13193         * lib/dirent.in.h: Likewise.
13194         * lib/errno.in.h: Likewise.
13195         * lib/fcntl.in.h: Likewise.
13196         * lib/float.in.h: Likewise.
13197         * lib/getopt.in.h: Likewise.
13198         * lib/iconv.in.h: Likewise.
13199         * lib/langinfo.in.h: Likewise.
13200         * lib/locale.in.h: Likewise.
13201         * lib/math.in.h: Likewise.
13202         * lib/netdb.in.h: Likewise.
13203         * lib/netinet_in.in.h: Likewise.
13204         * lib/poll.in.h: Likewise.
13205         * lib/pthread.in.h: Likewise.
13206         * lib/pty.in.h: Likewise.
13207         * lib/sched.in.h: Likewise.
13208         * lib/se-selinux.in.h: Likewise.
13209         * lib/search.in.h: Likewise.
13210         * lib/signal.in.h: Likewise.
13211         * lib/spawn.in.h: Likewise.
13212         * lib/stdarg.in.h: Likewise.
13213         * lib/stddef.in.h: Likewise.
13214         * lib/stdint.in.h: Likewise.
13215         * lib/stdio.in.h: Likewise.
13216         * lib/stdlib.in.h: Likewise.
13217         * lib/string.in.h: Likewise.
13218         * lib/strings.in.h: Likewise.
13219         * lib/sys_file.in.h: Likewise.
13220         * lib/sys_ioctl.in.h: Likewise.
13221         * lib/sys_select.in.h: Likewise.
13222         * lib/sys_socket.in.h: Likewise.
13223         * lib/sys_stat.in.h: Likewise.
13224         * lib/sys_time.in.h: Likewise.
13225         * lib/sys_times.in.h: Likewise.
13226         * lib/sys_uio.in.h: Likewise.
13227         * lib/sys_utsname.in.h: Likewise.
13228         * lib/sys_wait.in.h: Likewise.
13229         * lib/sysexits.in.h: Likewise.
13230         * lib/termios.in.h: Likewise.
13231         * lib/time.in.h: Likewise.
13232         * lib/unistd.in.h: Likewise.
13233         * lib/wchar.in.h: Likewise.
13234         * lib/wctype.in.h: Likewise.
13235         * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
13236         * modules/ctype (Makefile.am): Likewise.
13237         * modules/dirent (Makefile.am): Likewise.
13238         * modules/errno (Makefile.am): Likewise.
13239         * modules/fcntl-h (Makefile.am): Likewise.
13240         * modules/float (Makefile.am): Likewise.
13241         * modules/getopt-posix (Makefile.am): Likewise.
13242         * modules/iconv-h (Makefile.am): Likewise.
13243         * modules/langinfo (Makefile.am): Likewise.
13244         * modules/locale (Makefile.am): Likewise.
13245         * modules/math (Makefile.am): Likewise.
13246         * modules/netdb (Makefile.am): Likewise.
13247         * modules/netinet_in (Makefile.am): Likewise.
13248         * modules/poll-h (Makefile.am): Likewise.
13249         * modules/pthread (Makefile.am): Likewise.
13250         * modules/pty (Makefile.am): Likewise.
13251         * modules/sched (Makefile.am): Likewise.
13252         * modules/search (Makefile.am): Likewise.
13253         * modules/selinux-h (Makefile.am): Likewise.
13254         * modules/signal (Makefile.am): Likewise.
13255         * modules/spawn (Makefile.am): Likewise.
13256         * modules/stdarg (Makefile.am): Likewise.
13257         * modules/stddef (Makefile.am): Likewise.
13258         * modules/stdint (Makefile.am): Likewise.
13259         * modules/stdio (Makefile.am): Likewise.
13260         * modules/stdlib (Makefile.am): Likewise.
13261         * modules/string (Makefile.am): Likewise.
13262         * modules/strings (Makefile.am): Likewise.
13263         * modules/sys_file (Makefile.am): Likewise.
13264         * modules/sys_ioctl (Makefile.am): Likewise.
13265         * modules/sys_select (Makefile.am): Likewise.
13266         * modules/sys_socket (Makefile.am): Likewise.
13267         * modules/sys_stat (Makefile.am): Likewise.
13268         * modules/sys_time (Makefile.am): Likewise.
13269         * modules/sys_times (Makefile.am): Likewise.
13270         * modules/sys_uio (Makefile.am): Likewise.
13271         * modules/sys_utsname (Makefile.am): Likewise.
13272         * modules/sys_wait (Makefile.am): Likewise.
13273         * modules/sysexits (Makefile.am): Likewise.
13274         * modules/termios (Makefile.am): Likewise.
13275         * modules/time (Makefile.am): Likewise.
13276         * modules/unistd (Makefile.am): Likewise.
13277         * modules/wchar (Makefile.am): Likewise.
13278         * modules/wctype-h (Makefile.am): Likewise.
13279         * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
13280
13281 2011-05-29  Bruno Haible  <bruno@clisp.org>
13282
13283         assert-h: Allow multiple gnulib generated replacements to coexist.
13284         * lib/verify.h (struct _gl_verify_type): Avoid identical redefinition.
13285
13286 2011-05-29  Bruno Haible  <bruno@clisp.org>
13287
13288         argp: Allow coexistence with strerror_r-posix module.
13289         * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
13290         (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
13291         by gnulib's <string.h> replacement), assume it has the POSIX signature,
13292         not the glibc signature.
13293
13294 2011-05-28  Bruno Haible  <bruno@clisp.org>
13295
13296         gnulib-tool: Alternative structure of testdirs, similar to --import.
13297         * gnulib-tool: New option --single-configure.
13298         (func_usage): Document it.
13299         (single_configure): New variable.
13300         (func_modules_transitive_closure_separately,
13301         func_modules_transitive_closure_separately,
13302         func_determine_use_libtests, func_modules_add_dummy_separately,
13303         func_modules_to_filelist_separately): New functions, extracted from
13304         func_import.
13305         (func_emit_tests_Makefile_am): Handle $single_configure = true case.
13306         (func_import): Use the new functions.
13307         (func_create_testdir): Set final_modules. Handle $single_configure =
13308         true case.
13309
13310 2011-05-28  Bruno Haible  <bruno@clisp.org>
13311
13312         getloadavg: Remove an unreliable safety check.
13313         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
13314         getloadavg.c is in place.
13315         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
13316         Reported by Sam Steingold <sds@gnu.org>.
13317
13318 2011-05-28  Bruno Haible  <bruno@clisp.org>
13319
13320         doc: Cleanup yet another file produced by texinfo.tex.
13321         * doc/Makefile (mostlyclean): Remove also gnulib.cn.
13322
13323 2011-05-28  Bruno Haible  <bruno@clisp.org>
13324
13325         Finish the conditional dependencies mechanism.
13326         * gnulib-tool: New option --no-conditional-dependencies.
13327         (func_usage): Document it. Don't mark --conditional-dependencies as
13328         experimental.
13329         (cond_dependencies): The possible values can now be true, false, empty.
13330         (func_modules_transitive_closure, func_emit_autoconf_snippets): Update.
13331         (func_import): Store setting in gnulib-cache.m4 and read it from there.
13332         * doc/gnulib-tool.texi (Conditional dependencies): New section.
13333
13334 2011-05-28  Bruno Haible  <bruno@clisp.org>
13335
13336         doc: Use a recent texinfo.tex.
13337         * doc/Makefile (tex_opts): New variable.
13338         (%.dvi, %.pdf): Pass it to texi2dvi and texi2pdf.
13339
13340 2011-05-28  Jim Meyering  <meyering@redhat.com>
13341
13342         intprops.h: adjust comment to match code change
13343         * lib/intprops.h (_GL_INT_CONVERT): Adjust comment: now that E is used
13344         only once, it *may* have side effects.  Also fix an unrelated typo.
13345         (_GL_INT_SIGNED): Likewise.
13346
13347 2011-05-26  Simon Josefsson  <simon@josefsson.org>
13348
13349         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
13350
13351 2011-05-26  Bruno Haible  <bruno@clisp.org>
13352
13353         mbsrchr: Avoid collision with system function on Interix.
13354         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
13355         Reported by Markus Duft <mduft@gentoo.org>.
13356
13357 2011-05-15  James Youngman  <jay@gnu.org>
13358
13359         getopt: for ambiguous options, enumerate the possibilities.
13360         * lib/getopt.c (_getopt_internal_r): Merge glibc change printing
13361         the ambiguous options when an ambiguous prefix is given. This was
13362         http://sourceware.org/bugzilla/show_bug.cgi?id=7101.  The merged
13363         glibc change was
13364         http://sourceware.org/git/?p=glibc.git;a=commit;h=bd25564e1e98910ed69043ed6a6f884ce60e5780.
13365
13366 2011-05-25  Eric Blake  <eblake@redhat.com>
13367
13368         getcwd: work around mingw bug
13369         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
13370         * doc/posix-functions/getcwd.texi (getcwd): Document it.
13371         Reported by Matthias Bolte.
13372
13373 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
13374
13375         test-intprops: disable -Wtype-limits diagnostics
13376         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
13377         diagnostics.  Otherwise, the integer overflow macros generate many
13378         diagnostics.  Reported by Jim Meyering in
13379         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
13380
13381         intprops: shorten, to pacify gcc -Woverlength-strings
13382         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
13383         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
13384         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
13385         likely to run afoul of C compiler limits for string constant lengths.
13386         See <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
13387
13388 2011-05-24  Eric Blake  <eblake@redhat.com>
13389
13390         docs: document recently fixed glibc printf bug
13391         * doc/posix-functions/fprintf.texi (fprintf): Document it.
13392         * doc/posix-functions/printf.texi (printf): Likewise.
13393         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
13394         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
13395
13396         closein-tests: convert to init.sh
13397         * modules/closein-tests (Files): Add init.sh
13398         * tests/test-closein.sh Use it.
13399
13400         yesno-tests: convert to init.sh
13401         * modules/yesno-tests (Files): Add init.sh.
13402         * tests/test-yesno.sh: Use it.
13403
13404         atexit-tests: ensure reliable exit status
13405         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
13406         Reported by Bruno Haible.
13407
13408 2011-05-24  Bruno Haible  <bruno@clisp.org>
13409
13410         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
13411         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
13412         gl_PREREQ_STRERROR_R invocations from here...
13413         * modules/strerror_r-posix (configure.ac): ... to here.
13414
13415 2011-05-24  Eric Blake  <eblake@redhat.com>
13416
13417         strerror_r: fix missing header
13418         * lib/strerror_r.c: Avoid compiler warning about snprintf.
13419
13420         strerror_r: fix AIX test failures
13421         * lib/strerror_r.c (strerror_r): Convert silent truncation to
13422         ERANGE failure.
13423
13424         strerror_r: fix Solaris test failures
13425         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
13426         failures.
13427         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
13428
13429         strerror_r: enforce POSIX recommendations
13430         * lib/strerror_r.c (safe_copy): New helper method.
13431         (strerror_r): Guarantee a non-empty string.
13432         * tests/test-strerror_r.c (main): Enhance tests to incorporate
13433         recent POSIX rulings and to match our strerror guarantees.
13434         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
13435
13436 2011-05-24  Jim Meyering  <meyering@redhat.com>
13437
13438         test-perror2.c: avoid warning about unused variable
13439         * tests/test-perror2.c (main): Remove declaration of unused "fp".
13440
13441 2011-05-24  Eric Blake  <eblake@redhat.com>
13442
13443         perror: avoid spurious test failure on HP-UX
13444         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
13445
13446         tests: fix logic bug in init.sh
13447         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
13448         shell.
13449
13450 2011-05-24  Jim Meyering  <meyering@redhat.com>
13451
13452         utimensat: do not reference an out-of-scope buffer
13453         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
13454         declared in an inner scope, yet "times" would be dereferenced outside
13455         the scope in which "ts" was valid.
13456         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
13457         of ts[2] "out/up", so that the use of aliased "times" (via
13458         "times = ts;") does not end up referencing an out-of-scope "ts"
13459
13460         opendir-safer.c: don't clobber errno; don't close negative FD
13461         * lib/opendir-safer.c (opendir_safer):
13462         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
13463         file descriptor, and more importantly, don't clobber the
13464         offending errno value with EINVAL.  Before, upon failure
13465         of dup_safer, we would pass the negative file descriptor to
13466         fdopendir, which would clobber errno.
13467
13468 2011-05-23  Bruno Haible  <bruno@clisp.org>
13469
13470         idcache: Fix module description.
13471         * modules/idcache (Include): Set to "idcache.h".
13472
13473 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
13474
13475         gnulib-tool: fix portability problem with MacOS sed
13476         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
13477         before the "}".  Problem reported by Leo in
13478         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00717.html>.
13479         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
13480         sed_extract_condition1, sed_extract_condition2.
13481
13482 2011-05-23  Bruno Haible  <bruno@clisp.org>
13483
13484         hash: Simplify autoconf macro.
13485         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
13486
13487 2011-05-23  Bruno Haible  <bruno@clisp.org>
13488
13489         getugroups: Fix module description.
13490         * modules/getugroups (Include): Set to "getugroups.h".
13491
13492 2011-05-23  Bruno Haible  <bruno@clisp.org>
13493
13494         linkat: Simplify autoconf macro.
13495         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
13496
13497 2011-05-23  Bruno Haible  <bruno@clisp.org>
13498             Eric Blake  <eblake@redhat.com>
13499
13500         linkat, renameat: Update dependencies.
13501         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
13502         * modules/linkat (Depends-on): Likewise. Remove also readlink,
13503         symlinkat.
13504
13505 2011-05-23  Jim Meyering  <meyering@redhat.com>
13506
13507         maint.mk: more tight_scope improvements
13508         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
13509         (_gl_TS_headers): Define only in if-0'd block.
13510         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
13511         sometimes we must *not* use it.  Adjust uses accordingly.
13512         (sc_tight_scope): Use much simpler grep-based test to determine
13513         whether we skip this rule.
13514
13515         maint.mk: generalize/improve the tight-scope rule
13516         * top/maint.mk: Emit a warning when the test is skipped.
13517         (_gl_TS_dir): Add $(srcdir)/ prefix.
13518         (_gl_TS_function_match): Simplify, rather than trying
13519         to enumerate common types.  Otherwise, it would fail to match an
13520         "extern unsigned char const *" declaration in idutils.
13521         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
13522         a way to support use of that type of macro.
13523         (_gl_TS_var_match): Simplify regexp.
13524         (_gl_TS_obj_files): New configurable variable.
13525         (_gl_TS_headers): Likewise.
13526
13527 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
13528
13529         verify: fix bug when gnulib <assert.h> is also included
13530         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
13531         is defined, not if _GL_STATIC_ASSERT_H is not defined.
13532         Perhaps there's a better way, but this fixes the immediate problem.
13533         Problem reported by Bruno Haible in
13534         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00478.html>.
13535
13536 2011-05-22  Bruno Haible  <bruno@clisp.org>
13537
13538         xgetcwd: Simplify autoconf macro.
13539         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
13540
13541 2011-05-22  Bruno Haible  <bruno@clisp.org>
13542
13543         New module 'mktime-internal'.
13544         * modules/mktime-internal: New file.
13545         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
13546         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
13547         mktime_internal as a C macro if libc has __mktime_internal.
13548         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
13549         conditions.
13550         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
13551
13552 2011-05-22  Bruno Haible  <bruno@clisp.org>
13553
13554         timegm: Correct mktime replacement statements.
13555         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
13556         defining mktime as a C macro. This completes a 2009-07-28 commit.
13557
13558 2011-05-22  Bruno Haible  <bruno@clisp.org>
13559
13560         timegm: Simplify autoconf macro.
13561         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
13562
13563 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
13564
13565         clock-time: change to LGPLv2+.
13566         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
13567         BSD-like but we have no mark for that; this is good enough for now.
13568
13569 2011-05-21  Bruno Haible  <bruno@clisp.org>
13570
13571         strerror_r: Fix comments.
13572         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
13573
13574 2011-05-21  Bruno Haible  <bruno@clisp.org>
13575
13576         relocatable-prog-wrapper: Fix possible link error.
13577         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
13578         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
13579         (gl_FUNC_SETENV): ... to here.
13580         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
13581         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
13582
13583 2011-05-21  Bruno Haible  <bruno@clisp.org>
13584
13585         relocatable-prog-wrapper: Assume strerror() exists.
13586         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
13587         m4/strerror.m4.
13588         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
13589         * lib/relocwrapper.c: Remove mention of strerror module.
13590         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
13591         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
13592         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
13593         C macro.
13594
13595 2011-05-21  Bruno Haible  <bruno@clisp.org>
13596
13597         select: Simplify replacement idiom.
13598         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
13599         Win32 platforms.
13600         * lib/sys_select.in.h (select): Simplify accordingly.
13601         * modules/select (Depends-on): Likewise.
13602
13603 2011-05-21  Bruno Haible  <bruno@clisp.org>
13604
13605         mkdir-p: Simplify autoconf macro.
13606         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
13607         gl_FUNC_LCHOWN.
13608
13609 2011-05-21  Eric Blake  <eblake@redhat.com>
13610
13611         strerror_r: avoid clobbering strerror on cygwin
13612         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
13613         fall back instead to sys_errlist.
13614         * modules/strerror (configure.ac): Add witness.
13615         * tests/test-strerror_r.c (main): Enhance test.
13616         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
13617         * tests/test-perror2.c (main): Free memory before exit.
13618
13619 2011-05-21  Bruno Haible  <bruno@clisp.org>
13620
13621         mkdtemp: Use gnulib naming conventions.
13622         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
13623         * modules/mkdtemp (configure.ac): Update.
13624
13625 2011-05-20  Eric Blake  <eblake@redhat.com>
13626
13627         strerror_r: avoid corrupting errno on Solaris
13628         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
13629         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
13630
13631         strerror_r: avoid compiler warning
13632         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
13633
13634         strerror_r: simplify AIX code
13635         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
13636
13637         test-perror: avoid spurious failure on FreeBSD
13638         * modules/perror-tests (Depends-on): Add strerror, now that
13639         strerror_r no longer pulls it in.
13640
13641 2011-05-20  Bruno Haible  <bruno@clisp.org>
13642
13643         strerror_r-posix: Remove unused dependencies.
13644         * modules/strerror_r-posix (Depends-on): Remove strerror.
13645         Reported by Eric Blake.
13646
13647 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
13648
13649         intprops: remove assumption about A|B representation
13650         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
13651         is a valid integer if both A and B are.  Although this is true for
13652         all known practical hosts, the C standard doesn't guarantee it,
13653         and the code need not assume it.  Also, this change may work around
13654         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
13655         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00426.html>.
13656
13657 2011-05-20  Eric Blake  <eblake@redhat.com>
13658
13659         perror: work around FreeBSD bug
13660         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
13661         is broken.  Move AC_LIBOBJ...
13662         * modules/perror (configure.ac): Here.
13663         * doc/posix-functions/perror.texi (perror): Document this.
13664         * tests/test-perror2.c (main): Enhance test.
13665
13666         test-perror: check for strerror interactions
13667         * tests/macros.h (STREQ): Add macro.
13668         * modules/perror-tests (Files): Add second test.
13669         * tests/test-perror2.c (main): New file.
13670         * doc/posix-functions/perror.texi (perror): Document glibc bug.
13671
13672         test-perror: rewrite to use init script
13673         * modules/perror-tests (Files): Add init.sh.
13674         * tests/test-perror.sh: Use temporary directory.
13675
13676 2011-05-20  Jim Meyering  <meyering@redhat.com>
13677
13678         maint: replace misused "a" with "an"
13679         * doc/intprops.texi: "a integer"
13680         * doc/regex.texi: "a explanation"
13681         * lib/alignof.h: "a object"
13682         * lib/argmatch.h: "a explanation"
13683         * lib/argp-help.c: "a option" and "a OPTION_DOC"
13684         * lib/stdint.in.h: "a integer"
13685         * lib/userspec.c: "a owner"
13686         * doc/gnulib.texi: Fix "a idea", and reword.
13687
13688 2011-05-19  Jim Meyering  <meyering@redhat.com>
13689
13690         maint: correct misuse of "a" and "an"
13691         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
13692         * lib/argp-help.c: "an docum...": s/an/a/
13693         * lib/argp-parse.c: "An vector": s/An/A/
13694         * lib/execute.c: "an native": s/an/a/
13695         * lib/spawn-pipe.c: Likewise.
13696         * lib/gc.h: "an Gc_rc": s/an/a/
13697         * lib/unigbrk.in.h: "an grapheme": s/an/a/
13698         * lib/fts.c: "an stat.st_dev": s/an/a/
13699
13700 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
13701
13702         intprops-tests: work around HP-UX 11.23 cc bug with constants
13703         * tests/test-intprops.c (VERIFY): New macro.
13704         (main): Use it, instead of verify, to work around the compiler bug; see
13705         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
13706
13707         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
13708         See http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html
13709         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
13710         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
13711         (_GL_REMAINDER_OVERFLOW): Use it.
13712
13713         intprops-tests: revert unsigned part of previous change
13714         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
13715         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
13716         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
13717         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html>.
13718
13719 2011-05-19  Bruno Haible  <bruno@clisp.org>
13720
13721         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
13722         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
13723         strerror_r() returned without filling the buffer.
13724         Reported by Eric Blake.
13725
13726 2011-05-19  Eric Blake  <eblake@redhat.com>
13727
13728         strerror_r: guarantee unchanged errno
13729         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
13730         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
13731         failure.
13732         * tests/test-strerror_r.c (main): Enhance test.
13733
13734 2011-05-19  Bruno Haible  <bruno@clisp.org>
13735
13736         strerror_r: Reorder #if blocks.
13737         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
13738         for consistency with the previous commit.
13739
13740 2011-05-19  Bruno Haible  <bruno@clisp.org>
13741
13742         perror: Avoid clobbering the strerror buffer when possible.
13743         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
13744         * lib/strerror.c: Include it.
13745         * modules/strerror (Files): Add lib/strerror-impl.h.
13746         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
13747         (my_strerror): New function, defined through lib/strerror-impl.h.
13748         (perror): Use it instead of strerror.
13749         * modules/perror (Files): Add lib/strerror-impl.h.
13750         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
13751
13752 2011-05-19  Eric Blake  <eblake@redhat.com>
13753
13754         strerror_r: fix on newer cygwin
13755         * lib/strerror_r.c (strerror_r): Cygwin now has
13756         __xpg_strerror_r, use it.
13757
13758 2011-05-19  Bruno Haible  <bruno@clisp.org>
13759
13760         strerror_r: Avoid clobbering the strerror buffer when possible.
13761         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
13762         (sys_nerr, sys_errlist): New declarations.
13763         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
13764         HP-UX, native Win32, IRIX, and 32-bit Solaris.
13765         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
13766
13767 2011-05-19  Bruno Haible  <bruno@clisp.org>
13768
13769         strerror_r: Fix test failure on mingw.
13770         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
13771         EXTEND_STRERROR_R.
13772         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
13773         macros from errno.in.h instead.
13774
13775 2011-05-19  Eric Blake  <eblake@redhat.com>
13776
13777         strerror: relax test for Solaris
13778         * tests/test-strerror.c (main): Permit Solaris behavior.
13779         * tests/test-strerror_r.c (main): Likewise.
13780
13781         strerror: enforce POSIX ruling on strerror(0)
13782         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
13783         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
13784         * lib/strerror_r.c (rpl_strerror_r): Work around it.
13785         * doc/posix-functions/strerror.texi (strerror): Document it.
13786         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
13787         * tests/test-strerror.c (main): Strengthen test.
13788         * tests/test-strerror_r.c (main): Likewise.
13789
13790 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
13791
13792         intprop-tests: port to older and more-pedantic compilers
13793         * modules/intprops-tests (Files): Add tests/macros.h.
13794         * tests/test-intprops.c: Include macros.h.
13795         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
13796         it's no longer documented to expand to an integer constant expression.
13797         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
13798         argument is floating point, as it's no longer documented to expand
13799         to an integer constant expression in that case.
13800         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
13801         compiler bugs reported by Bruno Haible.  See
13802         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
13803         (U0, U1): New constants, to work around the same bugs.  Also,
13804         in tests, use e.g., "(unsigned int) 39" rather than "39u".
13805
13806         intprops: work around C compiler bugs
13807         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
13808         bug in Sun C 5.11 2010/08/13 and other compilers; see
13809         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
13810
13811         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
13812         * doc/intprops.texi (Integer Type Determination): Fix
13813         documentation for TYPE_IS_INTEGER: it returns an constant
13814         expression, not an integer constant expression.  Fix doc for
13815         TYPE_SIGNED: it returns an integer constant expression only if its
13816         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
13817         hardly worth documented that way....)
13818
13819 2011-05-18  Bruno Haible  <bruno@clisp.org>
13820
13821         strerror_r: Avoid clobbering the strerror buffer when possible.
13822         * lib/strerror_r.c (strerror_r): Merge the three implementations.
13823         Handle gnulib defined errno values here. When strerror() returns NULL
13824         or an empty string, return EINVAL.
13825         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
13826         gnulib defined errno values here.
13827         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
13828
13829 2011-05-18  Eric Blake  <eblake@redhat.com>
13830
13831         fnmatch: avoid compiler warning
13832         * lib/fnmatch_loop.c (FCT): Use correct type.
13833         Reported by Matthias Bolte.
13834
13835 2011-05-13  Jim Meyering  <meyering@redhat.com>
13836
13837         maint.mk: three new prohibit_<HDR>_without_use rules
13838         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
13839         (sc_prohibit_stdio-safer_without_use): Likewise.
13840         (sc_prohibit_xfreopen_without_use): Likewise.
13841
13842 2011-05-17  Jim Meyering  <meyering@redhat.com>
13843
13844         announce-gen: fail if the NEWS delta is empty
13845         If there's nothing noteworthy in NEWS, then either you forgot
13846         or you shouldn't be releasing.
13847         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
13848
13849 2011-05-17  Pádraig Brady <P@draigBrady.com>
13850
13851         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
13852         reserved symbols starting with double underscore from the check.
13853
13854 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
13855
13856         intprops: add doc
13857         * doc/intprops.texi: New file, documenting intprops.
13858         * doc/gnulib.texi (Particular Modules): Include it.
13859
13860         verify: add doc to gnulib manual and fix example
13861         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
13862         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
13863         (Compile-time Assertions): Fix example so it can't overflow.
13864
13865 2011-05-17  Jim Meyering  <meyering@redhat.com>
13866
13867         warnings.m4: don't usurp save_CPPFLAGS variable name
13868         * m4/warnings.m4: Prefix local temporary variable name with gl_.
13869
13870         doc: fix typo
13871         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
13872
13873 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
13874             Bruno Haible  <bruno@clisp.org>
13875
13876         doc: Tweak recent change.
13877         * README (Portability guidelines): Tweak new text.
13878         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
13879         Interix 6.1.
13880
13881 2011-05-16  Eric Blake  <eblake@redhat.com>
13882
13883         inttypes: avoid autoconf warning
13884         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
13885         * m4/stdint.m4 (gl_STDINT_H): Likewise.
13886
13887 2011-05-16  Sam Steingold <sds@gnu.org>
13888         and Eric Blake  <eblake@redhat.com>
13889
13890         vc-list-files: accept multiple directory operands
13891         * build-aux/vc-list-files: Iterate over all remaining operands.
13892
13893 2011-05-16  Bruno Haible  <bruno@clisp.org>
13894
13895         Fix confusion regarding deprecated modules.
13896         * modules/calloc (Status, Notice): Mark module as deprecated, not
13897         obsolete.
13898         * modules/fnmatch-posix (Status, Notice): Likewise.
13899         * modules/getdate (Status, Notice): Likewise.
13900         * modules/getopt (Status, Notice): Likewise.
13901         * modules/malloc (Status, Notice): Likewise.
13902         * modules/pipe (Status, Notice): Likewise.
13903         * modules/realloc (Status, Notice): Likewise.
13904         * modules/rename-dest-slash (Status, Notice): Likewise.
13905         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
13906         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
13907         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
13908         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
13909         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
13910
13911 2011-05-16  Bruno Haible  <bruno@clisp.org>
13912
13913         doc: List the target platforms.
13914         * doc/gnulib-intro.texi (Target Platforms): New section.
13915         * doc/gnulib.texi (Introduction): Update menu.
13916         * README (Portability guidelines): Refer to the new section. Update
13917         statement about oldest supported environment. Remove rationale why
13918         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
13919         unportable C89 function.
13920         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
13921         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
13922
13923 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
13924
13925         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
13926
13927 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
13928
13929         intprops-tests: new module
13930         * modules/intprops-tests, tests/test-intprops.c: New files.
13931
13932         intprops: add safe, portable integer overflow checking
13933         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
13934         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
13935         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
13936         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
13937         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
13938         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
13939         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
13940         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
13941         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
13942         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
13943         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
13944
13945 2011-05-12  James Youngman  <jay@gnu.org>
13946
13947         Add a test for glibc's Bugzilla bug #12378.
13948         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
13949         doesn't allow the literal matching of a lone "[" (which is
13950         required by POSIX).
13951         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
13952
13953 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
13954
13955         Sync glibc change fixing Bugzilla bug #12378.
13956         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
13957         beginning and fall back to matching as normal character if the
13958         string ends before the matching ']' is found.  This is what POSIX
13959         requires.
13960
13961 2011-05-13  Eric Blake  <eblake@redhat.com>
13962
13963         getcwd-lgpl: relax test for FreeBSD
13964         * doc/posix-functions/getcwd.texi (getcwd): Document portability
13965         issue.
13966         * tests/test-getcwd-lgpl.c (main): Relax test.
13967         Reported by Matthias Bolte.
13968
13969 2011-05-11  Eric Blake  <eblake@redhat.com>
13970
13971         test-fflush: silence compiler warning
13972         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
13973
13974 2011-05-11  Bruno Haible  <bruno@clisp.org>
13975
13976         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
13977         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
13978         * modules/canonicalize (Depends-on): Add 'nocrash'.
13979         * modules/canonicalize-lgpl (Depends-on): Likewise.
13980         * doc/posix-functions/realpath.texi: Update platforms list.
13981         Reported by Ryan Schmidt <ryandesign@macports.org>.
13982
13983 2011-05-11  Bruno Haible  <bruno@clisp.org>
13984
13985         group-member: Declare function in <unistd.h>.
13986         * lib/unistd.in.h (group_member): New declaration.
13987         * lib/group-member.h: Remove file.
13988         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
13989         * tests/test-unistd-c++.cc: Check signature of group_member.
13990         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
13991         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
13992         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
13993         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
13994         HAVE_GROUP_MEMBER.
13995         * modules/group-member (Files): Remove lib/group-member.h.
13996         (Depends-on): Add unistd. Specify conditions.
13997         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
13998         (Include): Change to <unistd.h>.
13999         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
14000         HAVE_GROUP_MEMBER.
14001         * NEWS: Mention the change.
14002         * lib/euidaccess.c: Don't include group-member.h.
14003
14004 2011-05-11  Bruno Haible  <bruno@clisp.org>
14005
14006         group-member: Document module.
14007         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
14008         module.
14009
14010 2011-05-11  Bruno Haible  <bruno@clisp.org>
14011
14012         fclose: Fix mistake earlier today.
14013         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
14014
14015 2011-05-11  Eric Blake  <eblake@redhat.com>
14016
14017         fclose: preserve fflush errors
14018         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
14019         Reported by Jim Meyering.
14020
14021         bootstrap: support a prereq of 'rpcgen -' on RHEL5
14022         * build-aux/bootstrap (check_versions): When no specific version
14023         is required, merely check that the app produces an exit status
14024         that indicates its existence.
14025
14026         maint.mk: drop redundant check
14027         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
14028         the same but better.
14029
14030 2011-05-11  Bruno Haible  <bruno@clisp.org>
14031
14032         fclose: Fix possible link error.
14033         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
14034         unregister_shadow_fd. Improve comments.
14035         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
14036         Eric Blake.
14037
14038 2011-05-11  Jim Meyering  <meyering@redhat.com>
14039
14040         maint.mk: improve "can not" detection and generalize rule name
14041         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
14042         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
14043         Use the same technique as in sc_prohibit_doubled_word, so that
14044         we recognize "can not" also when the words are separated by a newline.
14045         Suggested by Eric Blake.
14046         (perl_filename_lineno_text_): Define.  Factored out of...
14047         (prohibit_doubled_word_): ...here.  Use the new definition.
14048         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
14049         (prohibit_undesirable_word_seq_RE_): New overridable variable.
14050         (ignore_undesirable_word_sequence_RE_): New overridable variable.
14051
14052 2011-05-10  Eric Blake  <eblake@redhat.com>
14053
14054         fclose: avoid double close race when possible
14055         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
14056         all but WINDOWS_SOCKETS.
14057
14058 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
14059
14060         openat: correct new comment
14061         * lib/openat-proc.c (openat_proc_name): Correct the comment.
14062
14063 2011-05-10  Jim Meyering  <meyering@redhat.com>
14064
14065         openat: add comments
14066         * lib/openat-proc.c (openat_proc_name): Add comments,
14067         mostly from Eric Blake.
14068
14069 2011-05-09  Eric Blake  <eblake@redhat.com>
14070
14071         openat: reduce syscalls in first probe of /proc
14072         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
14073         be a directory.  Simplify the probe for .. bugs.
14074         * modules/openat (Depends-on): Drop same-inode.
14075         Reported by Bastien ROUCARIES.
14076
14077 2011-05-09  Jim Meyering  <meyering@redhat.com>
14078
14079         maint.mk: change semantics/name of tight_scope variables
14080         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
14081         Rename variables to align with semantics that make them more useful.
14082
14083         maint.mk: tweak new rule's name not to impinge
14084         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
14085         (sc_tight_scope): Use new rule name rather than $@-0.
14086
14087         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
14088         * top/maint.mk (sc_tight_scope): New rule.
14089         (sc_tight_scope-0): New rule, ifdef'd out.
14090         (_gl_TS_dir): Default.
14091         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
14092         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
14093
14094 2011-05-09  Simon Josefsson  <simon@josefsson.org>
14095
14096         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
14097         Haible <bruno@clisp.org>.
14098
14099 2011-05-08  Bruno Haible  <bruno@clisp.org>
14100
14101         Comments.
14102         * m4/isnanf.m4: Add comment.
14103         * m4/isnanl.m4: Likewise.
14104
14105 2011-05-08  Bruno Haible  <bruno@clisp.org>
14106
14107         glob: Remove obsolete macro.
14108         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
14109
14110 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
14111
14112         intprops: Sun C 5.11 supports __typeof__
14113         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
14114         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
14115         which is new.
14116         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
14117
14118         intprops: switch to usual gnulib indenting and naming
14119         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
14120         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
14121
14122         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
14123
14124 2011-05-08  Jim Meyering  <meyering@redhat.com>
14125
14126         maint.mk: suppress "Entering/Leaving directory" diag in announcement
14127         * top/maint.mk (release-prep): Use make's --no-print-directory
14128         option when generating the announcement.  This eliminates the
14129         pesky "make[2]: Entering/Leaving directory" diagnostics in the
14130         generated announcement template.
14131
14132 2011-05-08  Bruno Haible  <bruno@clisp.org>
14133
14134         tzset: Fix gettimeofday wrapper on Solaris 2.6.
14135         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
14136         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
14137
14138 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
14139
14140         ignore-value, verify: Omit include files from lib_SOURCES.
14141         * modules/ignore-value, modules/verify (Makefile.am):
14142         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
14143         that leads Automake to duplicate use of am__objects_... variables
14144         in Makefile.in.  See
14145         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00257.html>.
14146
14147 2011-05-07  Bruno Haible  <bruno@clisp.org>
14148
14149         fclose: Simplify autoconf macro.
14150         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
14151         defined.
14152
14153 2011-05-07  Bruno Haible  <bruno@clisp.org>
14154
14155         canonicalize-lgpl: Fix autoconf macro ordering bug.
14156         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
14157         gl_STDLIB_H_DEFAULTS.
14158
14159 2011-05-06  Eric Blake  <eblake@redhat.com>
14160
14161         maintainer-makefile: make sc_po_check easier to tune
14162         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
14163         to probe for strings, such as an alternate location for gnulib.
14164
14165         fclose: guarantee behavior on seekable stdin
14166         * modules/fclose (Depends-on): Add fflush.
14167         * doc/posix-functions/fclose.texi (fclose): Document this.
14168         * tests/test-fclose.c (main): Make test for this unconditional.
14169
14170 2011-05-06  Bruno Haible  <bruno@clisp.org>
14171
14172         fflush, fpurge: Relicense under LGPLv2+.
14173         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
14174         * modules/fpurge (License): Likewise.
14175         With permission from Eric Blake and Jim Meyering.
14176         Suggested by Eric Blake.
14177
14178 2011-05-06  Karl Berry  <karl@gnu.org>
14179
14180         * MODULES.html.sh (func_all_modules): remove exit.
14181
14182 2011-05-06  Jim Meyering  <meyering@redhat.com>
14183
14184         maint.mk: use info-gnu@ as the default only for a stable release
14185         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
14186         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
14187         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
14188         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
14189
14190 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
14191
14192         assert-h: new module, which supports C1X-style static_assert
14193         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
14194         * lib/verify.h: Revamp so that this can be copied into assert.h,
14195         while retaining the ability to use it standalone as before.
14196         Rename private identifiers so as not to encroach on the
14197         standard C namespace, since this is now used by assert.h.
14198         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
14199         the old verify_true.
14200         (_GL_VERIFY_TRUE): New macro, with much of the contents of
14201         the old verify_true.  Use _GL_VERIFY_TYPE.
14202         (_GL_VERIFY): New macro, with much of the contents of the old verify.
14203         (static_assert): New macro, if _GL_STATIC_ASSERT_H
14204         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
14205         defined when this file is copied into the replacement assert.h.
14206         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
14207         and _Static_assert is not built in.
14208         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
14209         defined, and use the new macros mentioned above.
14210         * doc/posix-headers/assert.texi: Document this.
14211
14212 2011-05-05  Bruno Haible  <bruno@clisp.org>
14213
14214         fclose, fflush: Respect rules for use of AC_LIBOBJ.
14215         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
14216         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
14217         gl_REPLACE_FCLOSE here.
14218         * modules/fflush (Depends-on): Remove fclose.
14219         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
14220         combination with module 'fclose'.
14221
14222 2011-05-05  Bruno Haible  <bruno@clisp.org>
14223
14224         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
14225         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
14226         gl_FUNC_FFLUSH.
14227         (gl_FUNC_FFLUSH): Use it.
14228         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
14229         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
14230         gl_REPLACE_FSEEKO here.
14231
14232 2011-05-05  Bruno Haible  <bruno@clisp.org>
14233
14234         tzset: Relicense under LGPL.
14235         * modules/tzset (License): Change to LGPL.
14236         No agreement needed; it's a no-op.
14237
14238         strtoimax, strtoumax: Relicense under LGPL.
14239         * modules/strtoimax (License): Change to LGPL.
14240         * modules/strtoumax (License): Likewise.
14241         With permission from Jim Meyering, Paul Eggert:
14242         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00124.html>
14243         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00109.html>
14244
14245         getgroups: Relicense under LGPL.
14246         * modules/getgroups (License): Change to LGPL.
14247         With permission from Jim Meyering, Paul Eggert, Eric Blake:
14248         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
14249         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
14250         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
14251
14252         nanosleep: Relicense under LGPL.
14253         * modules/nanosleep (License): Change to LGPL.
14254         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
14255         Haible:
14256         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
14257         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
14258         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
14259         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
14260
14261         futimens: Relicense under LGPL.
14262         * modules/futimens (License): Change to LGPL.
14263         With permission from Eric Blake:
14264         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
14265
14266         fflush: Relicense under LGPL.
14267         * modules/fflush (License): Change to LGPL.
14268         With permission from Eric Blake, Bruno Haible, Jim Meyering:
14269         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
14270         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
14271         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00133.html>
14272
14273         tmpfile: Relicense under LGPL.
14274         * modules/tmpfile (License): Change to LGPL.
14275         With permission from Ben Pfaff:
14276         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
14277
14278         isfinite: Relicense under LGPL.
14279         * modules/isfinite (License): Change to LGPL.
14280         With permission from Ben Pfaff, Bruno Haible:
14281         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
14282         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00130.html>
14283
14284         acosl..tanl: Relicense under LGPL.
14285         * modules/acosl (License): Change to LGPL.
14286         * modules/asinl (License): Likewise.
14287         * modules/atanl (License): Likewise.
14288         * modules/cosl (License): Likewise.
14289         * modules/expl (License): Likewise.
14290         * modules/logl (License): Likewise.
14291         * modules/sinl (License): Likewise.
14292         * modules/sqrtl (License): Likewise.
14293         * modules/tanl (License): Likewise.
14294         Source code originally from glibc and Paolo Bonzini. Agreements:
14295         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00137.html>
14296         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00128.html>
14297
14298 2011-05-05  Bruno Haible  <bruno@clisp.org>
14299
14300         signal: Define sighandler_t.
14301         * lib/signal.in.h (sighandler_t): New type.
14302         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
14303         whether sighandler_t is defined.
14304         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
14305         * modules/signal (Depends-on): Add extensions.
14306         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
14307         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
14308         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
14309
14310 2011-05-05  Eric Blake  <eblake@redhat.com>
14311
14312         maint: remove useless REPLACE_*_H macros
14313         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
14314         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
14315         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
14316         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
14317         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
14318         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
14319         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
14320         * m4/btowc.m4: Update callers.
14321         * m4/dirfd.m4: Likewise.
14322         * m4/duplocale.m4: Likewise.
14323         * m4/fchdir.m4: Likewise.
14324         * m4/fdopendir.m4: Likewise.
14325         * m4/inet_ntop.m4: Likewise.
14326         * m4/inet_pton.m4: Likewise.
14327         * m4/ioctl.m4: Likewise.
14328         * m4/mbrlen.m4: Likewise.
14329         * m4/mbrtowc.m4: Likewise.
14330         * m4/mbsinit.m4: Likewise.
14331         * m4/mbsnrtowcs.m4: Likewise.
14332         * m4/mbsrtowcs.m4: Likewise.
14333         * m4/poll.m4: Likewise.
14334         * m4/setlocale.m4: Likewise.
14335         * m4/wcrtomb.m4: Likewise.
14336         * m4/wcsnrtombs.m4: Likewise.
14337         * m4/wcsrtombs.m4: Likewise.
14338         * m4/wctob.m4: Likewise.
14339         * m4/wcwidth.m4: Likewise.
14340         * modules/posix_spawn: Likewise.
14341         * modules/posix_spawn_file_actions_addclose: Likewise.
14342         * modules/posix_spawn_file_actions_adddup2: Likewise.
14343         * modules/posix_spawn_file_actions_addopen: Likewise.
14344         * modules/posix_spawn_file_actions_destroy: Likewise.
14345         * modules/posix_spawn_file_actions_init: Likewise.
14346         * modules/posix_spawnattr_destroy: Likewise.
14347         * modules/posix_spawnattr_getflags: Likewise.
14348         * modules/posix_spawnattr_getpgroup: Likewise.
14349         * modules/posix_spawnattr_getschedparam: Likewise.
14350         * modules/posix_spawnattr_getschedpolicy: Likewise.
14351         * modules/posix_spawnattr_getsigdefault: Likewise.
14352         * modules/posix_spawnattr_getsigmask: Likewise.
14353         * modules/posix_spawnattr_init: Likewise.
14354         * modules/posix_spawnattr_setflags: Likewise.
14355         * modules/posix_spawnattr_setpgroup: Likewise.
14356         * modules/posix_spawnattr_setschedparam: Likewise.
14357         * modules/posix_spawnattr_setschedpolicy: Likewise.
14358         * modules/posix_spawnattr_setsigdefault: Likewise.
14359         * modules/posix_spawnattr_setsigmask: Likewise.
14360         * modules/posix_spawnp: Likewise.
14361
14362 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
14363
14364         Add option to do-release-commit-and-tag to specify branch.
14365         * build-aux/do-release-commit-and-tag: Add --branch.
14366
14367 2011-05-03  Bruno Haible  <bruno@clisp.org>
14368
14369         Avoid unnecessary compilation units, through conditional dependencies.
14370         * modules/accept (Depends-on): Add conditions to the dependencies.
14371         * modules/acosl (Depends-on): Likewise.
14372         * modules/argz (Depends-on): Likewise.
14373         * modules/asinl (Depends-on): Likewise.
14374         * modules/atanl (Depends-on): Likewise.
14375         * modules/atoll (Depends-on): Likewise.
14376         * modules/bind (Depends-on): Likewise.
14377         * modules/btowc (Depends-on): Likewise.
14378         * modules/canonicalize-lgpl (Depends-on): Likewise.
14379         * modules/ceil (Depends-on): Likewise.
14380         * modules/ceilf (Depends-on): Likewise.
14381         * modules/ceill (Depends-on): Likewise.
14382         * modules/chdir-long (Depends-on): Likewise.
14383         * modules/chown (Depends-on): Likewise.
14384         * modules/close (Depends-on): Likewise.
14385         * modules/connect (Depends-on): Likewise.
14386         * modules/cosl (Depends-on): Likewise.
14387         * modules/dirfd (Depends-on): Likewise.
14388         * modules/dprintf (Depends-on): Likewise.
14389         * modules/dprintf-posix (Depends-on): Likewise.
14390         * modules/error (Depends-on): Likewise.
14391         * modules/euidaccess (Depends-on): Likewise.
14392         * modules/expl (Depends-on): Likewise.
14393         * modules/faccessat (Depends-on): Likewise.
14394         * modules/fchdir (Depends-on): Likewise.
14395         * modules/fclose (Depends-on): Likewise.
14396         * modules/fcntl (Depends-on): Likewise.
14397         * modules/fdopendir (Depends-on): Likewise.
14398         * modules/fflush (Depends-on): Likewise.
14399         * modules/floor (Depends-on): Likewise.
14400         * modules/floorf (Depends-on): Likewise.
14401         * modules/floorl (Depends-on): Likewise.
14402         * modules/fnmatch (Depends-on): Likewise.
14403         * modules/fopen (Depends-on): Likewise.
14404         * modules/fprintf-posix (Depends-on): Likewise.
14405         * modules/frexp (Depends-on): Likewise.
14406         * modules/frexp-nolibm (Depends-on): Likewise.
14407         * modules/frexpl (Depends-on): Likewise.
14408         * modules/frexpl-nolibm (Depends-on): Likewise.
14409         * modules/fseek (Depends-on): Likewise.
14410         * modules/fsusage (Depends-on): Likewise.
14411         * modules/ftell (Depends-on): Likewise.
14412         * modules/ftello (Depends-on): Likewise.
14413         * modules/futimens (Depends-on): Likewise.
14414         * modules/getcwd (Depends-on): Likewise.
14415         * modules/getcwd-lgpl (Depends-on): Likewise.
14416         * modules/getdelim (Depends-on): Likewise.
14417         * modules/getdomainname (Depends-on): Likewise.
14418         * modules/getgroups (Depends-on): Likewise.
14419         * modules/gethostname (Depends-on): Likewise.
14420         * modules/getline (Depends-on): Likewise.
14421         * modules/getlogin_r (Depends-on): Likewise.
14422         * modules/getopt-posix (Depends-on): Likewise.
14423         * modules/getpeername (Depends-on): Likewise.
14424         * modules/getsockname (Depends-on): Likewise.
14425         * modules/getsockopt (Depends-on): Likewise.
14426         * modules/getsubopt (Depends-on): Likewise.
14427         * modules/getusershell (Depends-on): Likewise.
14428         * modules/glob (Depends-on): Likewise.
14429         * modules/grantpt (Depends-on): Likewise.
14430         * modules/iconv_open (Depends-on): Likewise.
14431         * modules/iconv_open-utf (Depends-on): Likewise.
14432         * modules/inet_ntop (Depends-on): Likewise.
14433         * modules/inet_pton (Depends-on): Likewise.
14434         * modules/ioctl (Depends-on): Likewise.
14435         * modules/isapipe (Depends-on): Likewise.
14436         * modules/isfinite (Depends-on): Likewise.
14437         * modules/isinf (Depends-on): Likewise.
14438         * modules/lchown (Depends-on): Likewise.
14439         * modules/ldexpl (Depends-on): Likewise.
14440         * modules/link (Depends-on): Likewise.
14441         * modules/linkat (Depends-on): Likewise.
14442         * modules/listen (Depends-on): Likewise.
14443         * modules/logl (Depends-on): Likewise.
14444         * modules/lstat (Depends-on): Likewise.
14445         * modules/mbrlen (Depends-on): Likewise.
14446         * modules/mbrtowc (Depends-on): Likewise.
14447         * modules/mbsinit (Depends-on): Likewise.
14448         * modules/mbsnrtowcs (Depends-on): Likewise.
14449         * modules/mbsrtowcs (Depends-on): Likewise.
14450         * modules/mbtowc (Depends-on): Likewise.
14451         * modules/memcmp (Depends-on): Likewise.
14452         * modules/mkdir (Depends-on): Likewise.
14453         * modules/mkdtemp (Depends-on): Likewise.
14454         * modules/mkfifo (Depends-on): Likewise.
14455         * modules/mkfifoat (Depends-on): Likewise.
14456         * modules/mknod (Depends-on): Likewise.
14457         * modules/mkostemp (Depends-on): Likewise.
14458         * modules/mkostemps (Depends-on): Likewise.
14459         * modules/mkstemp (Depends-on): Likewise.
14460         * modules/mkstemps (Depends-on): Likewise.
14461         * modules/mktime (Depends-on): Likewise.
14462         * modules/nanosleep (Depends-on): Likewise.
14463         * modules/open (Depends-on): Likewise.
14464         * modules/openat (Depends-on): Likewise.
14465         * modules/perror (Depends-on): Likewise.
14466         * modules/poll (Depends-on): Likewise.
14467         * modules/popen (Depends-on): Likewise.
14468         * modules/posix_spawn (Depends-on): Likewise.
14469         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
14470         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
14471         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
14472         * modules/posix_spawnp (Depends-on): Likewise.
14473         * modules/pread (Depends-on): Likewise.
14474         * modules/printf-posix (Depends-on): Likewise.
14475         * modules/ptsname (Depends-on): Likewise.
14476         * modules/putenv (Depends-on): Likewise.
14477         * modules/pwrite (Depends-on): Likewise.
14478         * modules/readline (Depends-on): Likewise.
14479         * modules/readlink (Depends-on): Likewise.
14480         * modules/readlinkat (Depends-on): Likewise.
14481         * modules/recv (Depends-on): Likewise.
14482         * modules/recvfrom (Depends-on): Likewise.
14483         * modules/regex (Depends-on): Likewise.
14484         * modules/remove (Depends-on): Likewise.
14485         * modules/rename (Depends-on): Likewise.
14486         * modules/renameat (Depends-on): Likewise.
14487         * modules/rmdir (Depends-on): Likewise.
14488         * modules/round (Depends-on): Likewise.
14489         * modules/roundf (Depends-on): Likewise.
14490         * modules/roundl (Depends-on): Likewise.
14491         * modules/rpmatch (Depends-on): Likewise.
14492         * modules/select (Depends-on): Likewise.
14493         * modules/send (Depends-on): Likewise.
14494         * modules/sendto (Depends-on): Likewise.
14495         * modules/setenv (Depends-on): Likewise.
14496         * modules/setlocale (Depends-on): Likewise.
14497         * modules/setsockopt (Depends-on): Likewise.
14498         * modules/shutdown (Depends-on): Likewise.
14499         * modules/sigaction (Depends-on): Likewise.
14500         * modules/signbit (Depends-on): Likewise.
14501         * modules/sigprocmask (Depends-on): Likewise.
14502         * modules/sinl (Depends-on): Likewise.
14503         * modules/sleep (Depends-on): Likewise.
14504         * modules/snprintf (Depends-on): Likewise.
14505         * modules/snprintf-posix (Depends-on): Likewise.
14506         * modules/socket (Depends-on): Likewise.
14507         * modules/sprintf-posix (Depends-on): Likewise.
14508         * modules/sqrtl (Depends-on): Likewise.
14509         * modules/stat (Depends-on): Likewise.
14510         * modules/strchrnul (Depends-on): Likewise.
14511         * modules/strdup-posix (Depends-on): Likewise.
14512         * modules/strerror (Depends-on): Likewise.
14513         * modules/strerror_r-posix (Depends-on): Likewise.
14514         * modules/strndup (Depends-on): Likewise.
14515         * modules/strnlen (Depends-on): Likewise.
14516         * modules/strptime (Depends-on): Likewise.
14517         * modules/strsep (Depends-on): Likewise.
14518         * modules/strsignal (Depends-on): Likewise.
14519         * modules/strstr-simple (Depends-on): Likewise.
14520         * modules/strtod (Depends-on): Likewise.
14521         * modules/strtoimax (Depends-on): Likewise.
14522         * modules/strtok_r (Depends-on): Likewise.
14523         * modules/strtoumax (Depends-on): Likewise.
14524         * modules/symlink (Depends-on): Likewise.
14525         * modules/symlinkat (Depends-on): Likewise.
14526         * modules/tanl (Depends-on): Likewise.
14527         * modules/tcgetsid (Depends-on): Likewise.
14528         * modules/tmpfile (Depends-on): Likewise.
14529         * modules/trunc (Depends-on): Likewise.
14530         * modules/truncf (Depends-on): Likewise.
14531         * modules/truncl (Depends-on): Likewise.
14532         * modules/uname (Depends-on): Likewise.
14533         * modules/unlink (Depends-on): Likewise.
14534         * modules/unlockpt (Depends-on): Likewise.
14535         * modules/unsetenv (Depends-on): Likewise.
14536         * modules/usleep (Depends-on): Likewise.
14537         * modules/utimensat (Depends-on): Likewise.
14538         * modules/vasprintf (Depends-on): Likewise.
14539         * modules/vdprintf (Depends-on): Likewise.
14540         * modules/vdprintf-posix (Depends-on): Likewise.
14541         * modules/vfprintf-posix (Depends-on): Likewise.
14542         * modules/vprintf-posix (Depends-on): Likewise.
14543         * modules/vsnprintf (Depends-on): Likewise.
14544         * modules/vsnprintf-posix (Depends-on): Likewise.
14545         * modules/vsprintf-posix (Depends-on): Likewise.
14546         * modules/wcrtomb (Depends-on): Likewise.
14547         * modules/wcscasecmp (Depends-on): Likewise.
14548         * modules/wcscspn (Depends-on): Likewise.
14549         * modules/wcsdup (Depends-on): Likewise.
14550         * modules/wcsncasecmp (Depends-on): Likewise.
14551         * modules/wcsnrtombs (Depends-on): Likewise.
14552         * modules/wcspbrk (Depends-on): Likewise.
14553         * modules/wcsrtombs (Depends-on): Likewise.
14554         * modules/wcsspn (Depends-on): Likewise.
14555         * modules/wcsstr (Depends-on): Likewise.
14556         * modules/wcstok (Depends-on): Likewise.
14557         * modules/wcswidth (Depends-on): Likewise.
14558         * modules/wctob (Depends-on): Likewise.
14559         * modules/wctomb (Depends-on): Likewise.
14560         * modules/wctype (Depends-on): Likewise.
14561         * modules/wcwidth (Depends-on): Likewise.
14562         * modules/write (Depends-on): Likewise.
14563
14564 2011-05-03  Bruno Haible  <bruno@clisp.org>
14565
14566         Support for conditional dependencies.
14567         * doc/gnulib.texi (Module description): Document the syntax of
14568         conditional dependencies.
14569         * gnulib-tool: New option --conditional-dependencies.
14570         (func_usage): Document it.
14571         (cond_dependencies): New variable.
14572         (func_get_automake_snippet_conditional,
14573         func_get_automake_snippet_unconditional): New functions, extracted from
14574         func_get_automake_snippet.
14575         (func_get_automake_snippet): Use them.
14576         (sed_first_32_chars): New variable.
14577         (func_module_shellfunc_name): New function.
14578         (func_module_shellvar_name): New function.
14579         (func_module_conditional_name): New function.
14580         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
14581         func_cond_module_condition): New functions.
14582         (func_modules_transitive_closure): Add support for conditional
14583         dependencies.
14584         (func_emit_lib_Makefile_am): For a conditional module, enclose the
14585         conditional automake snippet in an automake conditional.
14586         (func_emit_autoconf_snippets): Emit shell functions that contain the
14587         code for conditional modules.
14588         (func_import, func_create_testdir): Update specification.
14589
14590 2011-05-03  Eric Blake  <eblake@redhat.com>
14591
14592         test-getaddrinfo: report error information
14593         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
14594
14595 2011-05-03  Jim Meyering  <meyering@redhat.com>
14596
14597         bootstrap: avoid build failure when $GZIP is set
14598         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
14599         program name.  If defined at all, it is supposed to list gzip options.
14600         Reported by Alan Curry in http://debbugs.gnu.org/8609
14601
14602 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
14603
14604         readme-release: new module with release instructions
14605         * modules/readme-release: New module.
14606         * top/README-release: New file, from coreutils, grep, diffutils.
14607         * MODULES.html.sh (Support for maintaining and releasing): Add it.
14608
14609 2011-05-02  Eric Blake  <eblake@redhat.com>
14610
14611         fflush: also replace fclose when fixing fflush
14612         * modules/fflush (Depends-on): Add fclose.
14613         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
14614         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
14615         memstreams with no backing fd.
14616         * doc/posix-functions/fclose.texi (fclose): Document the use of
14617         fflush module to fix the bug.
14618         * tests/test-fclose.c (main): Relax test when fclose is used in
14619         isolation.
14620
14621         fclose: add some tests
14622         * modules/fclose-tests: New test module.
14623         * tests/test-fclose.c: New file.
14624         * doc/posix-functions/fclose.texi (fclose): Document the bug.
14625
14626         fclose: reduced dependencies
14627         * modules/fclose (Depends-on): Switch from fflush/fseeko to
14628         simpler lseek.
14629         * lib/fclose.c (rpl_fclose): Likewise.
14630         Reported by Simon Josefsson.
14631
14632         exit: drop remaining clients
14633         * modules/argmatch (Depends-on): Replace exit with stdlib.
14634         * modules/copy-file (Depends-on): Likewise.
14635         * modules/execute (Depends-on): Likewise.
14636         * modules/exitfail (Depends-on): Likewise.
14637         * modules/obstack (Depends-on): Likewise.
14638         * modules/pagealign_alloc (Depends-on): Likewise.
14639         * modules/pipe-filter-gi (Depends-on): Likewise.
14640         * modules/pipe-filter-ii (Depends-on): Likewise.
14641         * modules/savewd (Depends-on): Likewise.
14642         * modules/spawn-pipe (Depends-on): Likewise.
14643         * modules/wait-process (Depends-on): Likewise.
14644         * modules/xsetenv (Depends-on): Likewise.
14645         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
14646         * modules/git-merge-changelog (Depends-on): Likewise.
14647         * modules/long-options (Depends-on): Likewise.
14648         * modules/pt_chown (Depends-on): Likewise.
14649         * modules/sysexits (Depends-on): Likewise.
14650
14651         freading: relax license from LGPLv3+ to LGPLv2+
14652         * modules/freading (License): Relax LGPL version.
14653
14654 2011-05-02  Bruno Haible  <bruno@clisp.org>
14655
14656         fchdir: Remove unused dependencies.
14657         * modules/fchdir (Depends-on): Remove include_next.
14658
14659 2011-05-02  Bruno Haible  <bruno@clisp.org>
14660
14661         gnulib-tool: Refactor.
14662         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
14663         from func_emit_autoconf_snippets.
14664         (func_emit_autoconf_snippets): Use it.
14665
14666 2011-05-02  Simon Josefsson  <simon@josefsson.org>
14667
14668         * NEWS: Document removal of 'exit'.
14669         * modules/exit: Remove file.
14670
14671 2011-05-01  Bruno Haible  <bruno@clisp.org>
14672
14673         Update DEPENDENCIES.
14674         * DEPENDENCIES (gettext): Recommend the newest release.
14675         Reported by Simon Josefsson.
14676
14677 2011-05-01  Bruno Haible  <bruno@clisp.org>
14678
14679         gnulib-tool: Reduce code duplication.
14680         * gnulib-tool (func_emit_autoconf_snippets): New function.
14681         (func_import, func_create_testdir): Use it.
14682
14683 2011-04-30  Eric Blake  <eblake@redhat.com>
14684
14685         fclose: don't fail on non-seekable input stream
14686         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
14687         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
14688         since fflush is allowed to fail in that case.
14689
14690 2011-04-30  Bruno Haible  <bruno@clisp.org>
14691
14692         dup3: cleanup
14693         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
14694
14695 2011-04-30  Bruno Haible  <bruno@clisp.org>
14696
14697         netdb: Make it work in C++ mode.
14698         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
14699         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
14700         module.
14701         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
14702         gl_MODULE_INDICATOR_FOR_TESTS.
14703         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
14704         * modules/netdb-c++-tests: New file.
14705         * tests/test-netdb-c++.cc: New file.
14706
14707 2011-04-30  Bruno Haible  <bruno@clisp.org>
14708
14709         New modules 'vfscanf', 'vscanf'.
14710         * modules/vfscanf: New file.
14711         * modules/vscanf: New file.
14712         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
14713         here.
14714         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
14715         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
14716
14717 2011-04-30  Bruno Haible  <bruno@clisp.org>
14718
14719         passfd: Add comments.
14720         * lib/passfd.c: Add comments about platforms.
14721
14722 2011-04-30  Bruno Haible  <bruno@clisp.org>
14723
14724         sys_uio: Make <sys/uio.h> self-contained.
14725         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
14726         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
14727
14728 2011-04-30  Bruno Haible  <bruno@clisp.org>
14729
14730         sys_socket: Ensure 'struct iovec' definition.
14731         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
14732         <sys/socket.h>.
14733         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
14734
14735 2011-04-30  Bruno Haible  <bruno@clisp.org>
14736
14737         sys_uio: Protect definition of 'struct iovec'.
14738         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
14739         it as a C struct.
14740
14741 2011-04-30  Bruno Haible  <bruno@clisp.org>
14742
14743         manywarnings: fix indentation
14744         * m4/manywarnings.m4: Indent by 2 spaces consistently.
14745
14746 2011-04-30  Pádraig Brady <P@draigBrady.com>
14747
14748         manywarnings: add -Wno-missing-field-initializers if needed.
14749         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
14750         option if it's needed to allow initialization with { 0, }
14751
14752 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
14753
14754         announce-gen: cosmetic improvement
14755         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
14756
14757 2011-04-29  Jim Meyering  <meyering@redhat.com>
14758
14759         vc-list-files: indent with spaces, not TABs
14760         * build-aux/vc-list-files: Convert leading TABs to spaces,
14761         to match the style of most other files in gnulib.
14762
14763         announce-gen: indent with spaces, not TABs
14764         * build-aux/announce-gen: Convert all TABs to spaces, to match
14765         the style of most other files in gnulib.
14766
14767 2011-04-29  Eric Blake  <eblake@redhat.com>
14768
14769         quotearg: avoid uninitialized variable use
14770         * lib/quotearg.c (quoting_options_from_style): Initialize
14771         remaining fields, and ensure that custom styles are only used via
14772         quoting_options rather than quoting_style.
14773
14774 2011-04-29  Jim Meyering  <meyering@redhat.com>
14775
14776         maint.mk: remove unused VC-tag variable
14777         * top/maint.mk (VC-tag): Remove unused variable.
14778
14779 2011-04-29  Bruno Haible  <bruno@clisp.org>
14780
14781         netdb: fix gai_strerror replacements
14782         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
14783         * modules/netdb: Substitute it.
14784
14785 2011-04-29  Jim Meyering  <meyering@redhat.com>
14786
14787         test-getcwd.c: avoid new set-but-not-used warning
14788         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
14789         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
14790         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
14791         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
14792
14793         test-hash.c: avoid a new shadowing warning
14794         * tests/test-hash.c (main): Don't shadow "dup".
14795
14796 2011-04-28  Eric Blake  <eblake@redhat.com>
14797
14798         getaddrinfo: fix gai_strerror signature
14799         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
14800         and work around mingw with UNICODE defined.
14801         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
14802         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
14803         * modules/netdb (Makefile.am): Substitute it.
14804         * lib/netdb.in.h (gai_strerror): Declare replacement.
14805         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
14806         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
14807         the fix.
14808
14809         getsockopt: avoid compiler warning
14810         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
14811         Reported by Matthias Bolte.
14812
14813         tests: drop unused link dependency
14814         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
14815         * modules/dirent-safer-tests (Makefile.am): Likewise.
14816         * modules/fdopendir-tests (Makefile.am): Likewise.
14817         * modules/mkfifoat-tests (Makefile.am): Likewise.
14818         * modules/openat-safer-tests (Makefile.am): Likewise.
14819         * modules/openat-tests (Makefile.am): Likewise.
14820         * modules/readlinkat-tests (Makefile.am): Likewise.
14821         * modules/symlinkat-tests (Makefile.am): Likewise.
14822         * modules/linkat-tests (Makefile.am): Likewise.
14823         (Depends-on): Switch to filenamecat-lgpl.
14824         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
14825         LIBINTL.
14826         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
14827         * tests/test-linkat.c (main): Don't require xalloc.
14828
14829         hash, mgetgroups: drop xalloc dependency
14830         * lib/hash.c (includes): Adjust includes.
14831         * lib/mgetgroups.c (includes): Likewise.
14832         (xgetgroups): Move...
14833         * lib/xgetgroups.c: ...to new file.
14834         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
14835         * modules/xgetgroups: New file, split from...
14836         * modules/mgetgroups: ...here.
14837         (Depends-on): Add xalloc-oversized.
14838         * modules/hash (Depends-on): Likewise.
14839         * modules/hash-tests (Depends-on): Drop xalloc.
14840         (test_hash_LDADD): Drop unused library.
14841         * tests/test-hash.c (main): Break xalloc dependency.
14842         (includes): Drop unused include.
14843
14844         xalloc-oversized: new module
14845         * modules/xalloc-oversized: New module.
14846         * modules/xalloc (Depends-on): Add it.
14847         * lib/xalloc.h (xalloc_oversized): Move...
14848         * lib/xalloc-oversized.h: ...into new file.
14849
14850         utimecmp: drop dependency on xmalloc
14851         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
14852         due to memory pressure.
14853         * modules/utimecmp (Depends-on): Drop xalloc.
14854
14855 2011-04-27  Eric Blake  <eblake@redhat.com>
14856
14857         getcwd: fix mingw bugs
14858         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
14859         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
14860         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
14861
14862 2011-04-27  Bruno Haible  <bruno@clisp.org>
14863
14864         mkstemps: Ensure declaration on MacOS X 10.5.
14865         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
14866         * doc/glibc-functions/mkstemps.texi: Document header file problem on
14867         MacOS X.
14868
14869 2011-04-27  Bruno Haible  <bruno@clisp.org>
14870
14871         mkstemp: More documentation.
14872         * doc/posix-functions/mkstemp.texi: Document header file problem on
14873         MacOS X.
14874
14875 2011-04-27  Bruno Haible  <bruno@clisp.org>
14876
14877         mkstemp: Tweak configure message when cross-compiling.
14878         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
14879         result as a guess.
14880
14881 2011-04-27  Bruno Haible  <bruno@clisp.org>
14882
14883         clean-temp: Clarify what it does.
14884         * lib/clean-temp.h: Add more comments.
14885         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
14886         module.
14887         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
14888         * doc/glibc-functions/mkstemps.texi: Likewise.
14889         * doc/glibc-functions/mkostemps.texi: Likewise.
14890
14891 2011-04-27  Eric Blake  <eblake@redhat.com>
14892
14893         fchdir: avoid extra chdir and fix test
14894         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
14895         getcwd-lgpl.
14896         * lib/fchdir.c (get_name): Any absolute name will do; it does not
14897         have to be canonical.
14898         (canonicalize_file_name): Drop unused macro.
14899         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
14900
14901         filenamecat-lgpl: fix licence
14902         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
14903         when it was first created.
14904
14905         linkat, renameat: add missing dependency
14906         * modules/linkat (Depends-on): Require getcwd-lgpl.
14907         * modules/renameat (Depends-on): Likewise.
14908
14909         tests: reduce dependencies
14910         * tests/test-linkat.c (main): Use lighter-weight getcwd.
14911         * tests/test-renameat.c (main): Likewise.
14912         * modules/linkat-tests (Depends-on): Relax dependency.
14913         * modules/renameat-tests (Depends-on): Likewise.
14914         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
14915         dependency explicit.
14916
14917         save-cwd: reduce default dependency
14918         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
14919         * lib/save-cwd.c: Update comments.
14920         * NEWS: Document the semantic change.
14921
14922         getcwd: enhance tests
14923         * tests/test-getcwd-lgpl.c: New file, taken from...
14924         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
14925         repeat long path stress tests from m4 probe.
14926         * modules/getcwd-lgpl-tests: New module.
14927         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
14928         * m4/getcwd-abort-bug.m4: Update comment.
14929         * m4/getcwd-path-max.m4: Likewise.
14930
14931         getcwd-lgpl: new module
14932         * modules/getcwd-lgpl: New module.
14933         * lib/getcwd-lgpl.c: New file.
14934         * doc/posix-functions/getcwd.texi (getcwd): Document it.
14935         * MODULES.html.sh (lacking POSIX:2008): Likewise.
14936         * modules/getcwd (configure.ac): Set C witness.
14937         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
14938
14939         getcwd: tweak comments
14940         * m4/getcwd-abort-bug.m4: Fix comments.
14941         * m4/getcwd-path-max.m4: Likewise.
14942         * m4/getcwd.m4: Likewise.
14943
14944 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
14945         and Eric Blake  <eblake@redhat.com>
14946
14947         mkstemp: replace if system version uses wrong permissions
14948         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
14949         read/write mode bits set in file created by mkstemp.
14950         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
14951
14952 2011-04-27  Eric Blake  <eblake@redhat.com>
14953
14954         passfd: avoid compiler warning
14955         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
14956         Reported by Laine Stump.
14957
14958 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
14959
14960         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
14961         required by the NetBSD (and perhaps other 4.4BSD derived) join.
14962
14963 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
14964         and Eric Blake  <eblake@redhat.com>
14965
14966         mkstemp: mention clean-temp module
14967         * lib/mkstemp.c: Add comment.
14968         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
14969
14970 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
14971
14972         inttypes: also provide default values for 32-bit tests
14973         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
14974         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
14975
14976 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
14977
14978         strtoumax: remove dependency on strtoimax
14979         This is like the strtoull change of yesterday.
14980         * modules/strtoumax (Files): Add lib/strtoimax.c.
14981         (Depends-on): Remove strtoimax and add verify.
14982
14983         inttypes-incomplete: new module
14984         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
14985         all but the PRI* and SCN* parts of gl_INTTYPES_H.
14986         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
14987         of gl_INTTYPES_H.
14988         (gl_INTTYPES_H): Rewrite in terms of these new macros.
14989         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
14990         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
14991         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
14992         * modules/strtoumax, modules/xstrtol (Depends-on):
14993         Depend on inttypes-incomplete, not inttypes.
14994         * modules/inttypes-incomplete: New module, containing the contents
14995         of the old modules/inttypes module, except that the Files: section
14996         omits m4/inttypes-pri.m4, and the configure.ac section invokes
14997         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
14998         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
14999         (Depends-on): Depend only on inttypes-incomplete.
15000         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
15001
15002         inttypes: omit now-redundant strtoimax and strtoumax work
15003         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
15004         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
15005
15006         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
15007         This supports apps that need pointers to strtoimax and strtoumax,
15008         and ports to HP-UX 11.00 64.bit, which has macros that expand to
15009         nonexistent functions.  See
15010         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00241.html>
15011         et seq.
15012         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
15013         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
15014         a macro.
15015         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
15016
15017 2011-04-25  Simon Josefsson  <simon@josefsson.org>
15018
15019         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
15020
15021 2011-04-25  Bruno Haible  <bruno@clisp.org>
15022
15023         strtol, strtoul: Mark modules as obsolete.
15024         * modules/strtol (Status, Notice): New sections.
15025         * modules/strtoul (Status, Notice): New sections.
15026
15027 2011-04-25  Bruno Haible  <bruno@clisp.org>
15028
15029         strtod: Remove check for strtod, unless supporting old platforms.
15030         * modules/strtod-obsolete: New file.
15031         * m4/strtod-obsolete.m4: New file.
15032         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
15033         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
15034         * modules/strtod (Depends-on): Add strtod-obsolete.
15035         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
15036
15037 2011-04-25  Bruno Haible  <bruno@clisp.org>
15038
15039         strcase: Make module obsolete.
15040         * modules/strcase (Status, Notice): New sections.
15041
15042 2011-04-25  Bruno Haible  <bruno@clisp.org>
15043
15044         dup2: Remove check for dup2, unless supporting old obsolete platforms.
15045         * modules/dup2-obsolete: New file.
15046         * m4/dup2-obsolete.m4: New file.
15047         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
15048         gl_FUNC_DUP2_OBSOLETE is not also defined.
15049         * modules/dup2 (Depends-on): Add dup2-obsolete.
15050         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
15051
15052 2011-04-25  Bruno Haible  <bruno@clisp.org>
15053
15054         strnlen: Avoid memchr related link error on old obsolete platforms.
15055         * modules/memchr-obsolete: New file.
15056         * m4/memchr-obsolete.m4: New file.
15057         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
15058         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
15059         * modules/memchr (Depends-on): Add memchr-obsolete.
15060         * modules/strnlen (Depends-on): Likewise.
15061         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
15062
15063 2011-04-25  Jim Meyering  <meyering@redhat.com>
15064
15065         maint.mk: makefile_at_at_check extend and clean up
15066         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
15067         in addition to */Makefile.am.
15068         Exempt legitimate uses of @VAR@ notation, e.g.,
15069         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
15070         Remove obsolete coreutils-specific comment.
15071         Prompted by discussion here:
15072         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
15073
15074 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
15075
15076         strtoul: remove dependency on strtol
15077         This is so that 'configure' need not check for strtol merely because
15078         the application needs strtoul.
15079         * modules/strtoul (Files): Add lib/strtol.c.
15080         (Depends-on): Remove strtol.
15081
15082         strtoull: remove dependency on strtoul
15083         This is like the strtoll change.
15084         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
15085         (Depends-on): Remove strtoul.
15086
15087         strtoll: remove dependency on strtol
15088         This is so that 'configure' need not check for strtol merely because
15089         the application needs strtoll.
15090         * modules/strtoll (Files): Add lib/strtol.c.
15091         (Depends-on): Remove strtol.
15092
15093 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
15094
15095         inttypes: Move some configure check to module 'imaxdiv'.
15096         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
15097         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
15098         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
15099
15100 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
15101
15102         inttypes: Move some configure check to module 'imaxabs'.
15103         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
15104         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
15105         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
15106
15107 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
15108
15109         inttypes: Remove configure tests that are not needed since 2009-12-31.
15110         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
15111         gl_cv_header_working_inttypes_h.
15112
15113 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
15114
15115         * modules/strnlen (Depends-on): Remove memchr.
15116         The strnlen implementation doesn't need the memchr module's fixes; see
15117         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00237.html>.
15118
15119         strtol: remove dependency on wchar
15120         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
15121         * modules/strtol (Depends-on): Remove wchar.
15122
15123 2011-04-21  Eric Blake  <eblake@redhat.com>
15124
15125         passfd: fix test regression on Linux
15126         * modules/passfd-tests (configure.ac): Correct socketpair check.
15127
15128         passfd: speed up configure and drop unused code
15129         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
15130         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
15131         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
15132         Instead of probing at configure for unix_scm_rights_bsd44_way,
15133         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
15134         check to a struct member probe.
15135         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
15136         (sendfd, recvfd): Update preprocessor checks.
15137         * modules/passfd (Files): Reflect rename, and drop unused file.
15138         (Depends-on): Drop unused dependency.
15139
15140         passfd: allow compilation on mingw
15141         * modules/sys_socket (Depends-on): Add sys_uio.
15142         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
15143         iovec and a minimal struct msghdr.
15144         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
15145         * tests/test-sys_socket.c (main): Enhance test.
15146         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
15147         guaranteed to provide what we need.
15148         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
15149         * modules/passfd-tests (Depends-on): Add sys_wait.
15150         * tests/test-passfd.c (main): Skip test on mingw, for now.
15151         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
15152         partial 'struct msghdr' implementation.
15153
15154         sys_uio: new module
15155         * modules/sys_uio: New module.
15156         * modules/sys_uio-tests: Likewise.
15157         * lib/sys_uio.in.h: New file.
15158         * m4/sys_uio_h.m4: Likewise.
15159         * tests/test-sys_uio.c: Likewise.
15160         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
15161         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
15162
15163 2011-04-20  Jim Meyering  <meyering@redhat.com>
15164
15165         useless-if-before-free: avoid false-positive
15166         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
15167         disjunct so that it too requires a terminating ";".  Without that,
15168         this script would identify as useless one statement from gcc that
15169         was not:
15170           if (aligned_ptr)
15171             free (((void **) aligned_ptr) [-1]);
15172
15173 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
15174
15175         doc: update users.txt.
15176         * users.txt: Add barcode.
15177
15178 2011-04-19  Bruno Haible  <bruno@clisp.org>
15179
15180         ioctl: Remove link dependency on native Windows.
15181         * lib/fd-hook.h: Renamed from lib/close-hook.h.
15182         (gl_close_fn, gl_ioctl_fn): New types.
15183         (struct fd_hook): Renamed from struct close_hook. Change type of
15184         private_close_fn field. Add private_ioctl_fn field.
15185         (close_hook_fn): Add parameter for primary close method.
15186         (execute_close_hooks, execute_all_close_hooks): Likewise.
15187         (ioctl_hook_fn): New type.
15188         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
15189         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
15190         argument.
15191         (unregister_fd_hook): Renamed from unregister_close_hook.
15192         * lib/fd-hook.c: Renamed from lib/close-hook.c.
15193         Don't include <unistd.h>.
15194         (close): Remove undef.
15195         (anchor): Update.
15196         (execute_close_hooks): Add argument for primary close method.
15197         (execute_all_close_hooks): Likewise.
15198         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
15199         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
15200         argument. Allow each argument to be NULL.
15201         (unregister_fd_hook): Renamed from unregister_close_hook.
15202         * lib/close.c (rpl_close): Pass 'close' function pointer to
15203         execute_all_close_hooks.
15204         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
15205         (primary_ioctl): New function.
15206         (ioctl): Don't call ioctlsocket here. Instead, call
15207         execute_all_ioctl_hooks.
15208         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
15209         close method.
15210         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
15211         (fd_sockets_hook): Renamed from close_sockets_hook.
15212         (gl_sockets_startup, gl_sockets_cleanup): Update.
15213         * modules/fd-hook: Renamed from modules/close-hook. Update.
15214         * modules/close (Depends-on): Add fd-hook, remove close-hook.
15215         * modules/sockets (Depends-on): Likewise.
15216         * modules/ioctl (Depends-on): Add fd-hook.
15217         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
15218         GNULIB_SOCKET.
15219
15220 2011-04-19  Bruno Haible  <bruno@clisp.org>
15221
15222         Move the support of O_NONBLOCK in open() to the 'open' module.
15223         * modules/nonblocking (Depends-on): Remove 'open'.
15224         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
15225         gl_cv_have_open_O_NONBLOCK.
15226         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
15227         O_NONBLOCK support.
15228         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
15229
15230 2011-04-17  Bruno Haible  <bruno@clisp.org>
15231
15232         pipe2: Simplify code.
15233         * lib/pipe2.c (pipe2): Reduce code duplication.
15234
15235 2011-04-17  Bruno Haible  <bruno@clisp.org>
15236
15237         nonblocking: Add comment.
15238         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
15239
15240 2011-04-17  Bruno Haible  <bruno@clisp.org>
15241
15242         nonblocking: Add tests for sockets.
15243         * tests/test-nonblocking-socket.sh: New file.
15244         * tests/test-nonblocking-socket-main.c: New file.
15245         * tests/test-nonblocking-socket-child.c: New file.
15246         * tests/test-nonblocking-socket.h: New file.
15247         * tests/socket-server.h: New file.
15248         * tests/socket-client.h: New file.
15249         * modules/nonblocking-socket-tests: New file.
15250         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
15251
15252 2011-04-17  Bruno Haible  <bruno@clisp.org>
15253
15254         nonblocking: Add tests for pipes.
15255         * tests/test-nonblocking-pipe.sh: New file.
15256         * tests/test-nonblocking-pipe-main.c: New file.
15257         * tests/test-nonblocking-pipe-child.c: New file.
15258         * tests/test-nonblocking-pipe.h: New file.
15259         * tests/test-nonblocking-writer.h: New file.
15260         * tests/test-nonblocking-reader.h: New file.
15261         * tests/test-nonblocking-misc.h: New file.
15262         * modules/nonblocking-pipe-tests: New file.
15263         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
15264
15265 2011-04-16  Bruno Haible  <bruno@clisp.org>
15266
15267         gettext: Clarify the needed programmer actions.
15268         * modules/gettext (Notice): New field.
15269         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
15270
15271 2011-04-16  Bruno Haible  <bruno@clisp.org>
15272
15273         strchrnul: Tweak last commit.
15274         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
15275         bug.
15276         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
15277         as in _GL_FUNCDECL_SYS.
15278         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
15279         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
15280
15281 2011-04-15  Eric Blake  <eblake@redhat.com>
15282
15283         strchrnul: work around cygwin bug
15284         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
15285         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
15286         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
15287         * modules/string (Makefile.am): Substitute it.
15288         * lib/string.in.h (strchrnul): Use it.
15289
15290 2011-04-15  Bruno Haible  <bruno@clisp.org>
15291
15292         Don't require lib/stdio-write.c when only module 'stdio' is used.
15293         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
15294         invocation.
15295         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
15296
15297 2011-04-14  Bruno Haible  <bruno@clisp.org>
15298
15299         Support non-blocking pipe I/O in read() on native Windows.
15300         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
15301         (read): New declaration.
15302         * lib/read.c: New file.
15303         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
15304         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
15305         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
15306         vscanf): New declarations.
15307         * lib/stdio-read.c: New file.
15308         * m4/read.m4: New file.
15309         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
15310         REPLACE_READ.
15311         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
15312         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
15313         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
15314         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
15315         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
15316         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
15317         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
15318         * modules/read: New file.
15319         * modules/nonblocking (Files): Add lib/stdio-read.c.
15320         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
15321         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
15322         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
15323         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
15324         * modules/pread (Depends-on): Add read.
15325         * modules/safe-read (Depends-on): Likewise.
15326         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
15327         gets, scanf, vfscanf, vscanf): Verify signatures.
15328         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
15329         problem with non-blocking pipes.
15330         * doc/posix-functions/fgetc.texi: Likewise.
15331         * doc/posix-functions/fgets.texi: Likewise.
15332         * doc/posix-functions/fread.texi: Likewise.
15333         * doc/posix-functions/fscanf.texi: Likewise.
15334         * doc/posix-functions/getc.texi: Likewise.
15335         * doc/posix-functions/getchar.texi: Likewise.
15336         * doc/posix-functions/gets.texi: Likewise.
15337         * doc/posix-functions/scanf.texi: Likewise.
15338         * doc/posix-functions/vfscanf.texi: Likewise.
15339         * doc/posix-functions/vscanf.texi: Likewise.
15340
15341 2011-04-14  Bruno Haible  <bruno@clisp.org>
15342
15343         Support non-blocking pipe I/O in write() on native Windows.
15344         * lib/write.c (rpl_write): Split a write request that failed merely
15345         because the byte count was larger than the pipe buffer's size.
15346         * doc/posix-functions/write.texi: Mention the problem with large byte
15347         counts.
15348
15349 2011-04-14  Bruno Haible  <bruno@clisp.org>
15350
15351         wchar: Ensure that wchar_t gets defined on uClibc.
15352         * lib/wchar.in.h: On uClibc, include <stddef.h>.
15353         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
15354
15355 2011-04-13  Bruno Haible  <bruno@clisp.org>
15356
15357         safe-write, full-read: Avoid unnecessary compilation units.
15358         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
15359         (Depends-on): Remove safe-read. Add ssize_t.
15360         * modules/full-read (Files): Add lib/full-write.c.
15361         (Depends-on): Add full-write.
15362
15363 2011-04-13  Bruno Haible  <bruno@clisp.org>
15364
15365         Support non-blocking pipe I/O and SIGPIPE in pwrite().
15366         * modules/pwrite (Depends-on): Add 'write'.
15367
15368 2011-04-13  Bruno Haible  <bruno@clisp.org>
15369
15370         Support non-blocking pipe I/O in write() on native Windows.
15371         * lib/unistd.in.h (write): Enable replacement also if
15372         GNULIB_UNISTD_H_NONBLOCKING is 1.
15373         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
15374         (rpl_write): When failing to write on a non-blocking pipe, change
15375         errno from ENOSPC to EAGAIN.
15376         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
15377         putchar, puts, vfprintf, vprintf): Enable replacement also if
15378         GNULIB_STDIO_H_NONBLOCKING is 1.
15379         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
15380         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
15381         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
15382         CALL_WITH_SIGPIPE_EMULATION.
15383         (CALL_WITH_SIGPIPE_EMULATION): Use them.
15384         * m4/nonblocking.m4: New file.
15385         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
15386         for non-blocking I/O support.
15387         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
15388         GNULIB_UNISTD_H_NONBLOCKING.
15389         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
15390         required for non-blocking I/O support.
15391         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
15392         * modules/nonblocking (Files): Add m4/nonblocking.m4,
15393         lib/stdio-write.c, m4/asm-underscore.m4.
15394         (Depends-on): Add stdio, unistd.
15395         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
15396         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
15397         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
15398         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
15399         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
15400         problem with non-blocking pipes.
15401         * doc/posix-functions/fputc.texi: Likewise.
15402         * doc/posix-functions/fputs.texi: Likewise.
15403         * doc/posix-functions/fwrite.texi: Likewise.
15404         * doc/posix-functions/printf.texi: Likewise.
15405         * doc/posix-functions/putc.texi: Likewise.
15406         * doc/posix-functions/putchar.texi: Likewise.
15407         * doc/posix-functions/puts.texi: Likewise.
15408         * doc/posix-functions/vfprintf.texi: Likewise.
15409         * doc/posix-functions/vprintf.texi: Likewise.
15410         * doc/posix-functions/write.texi: Likewise.
15411
15412 2011-04-10  Jim Meyering  <meyering@redhat.com>
15413
15414         maint.mk: prohibit doubled words
15415         Detect them also when they're separated by a newline.
15416         There are 3 ways to customize it:
15417           - disable the test on a per file basis, as usual with rules using
15418             $(VC_LIST_EXCEPT)
15419           - replace the default doubled-word-selecting regexp (affects all files)
15420           - ignore a particular file-vs-doubled-word match
15421         I nearly used that last one to ignore the "is is" match in
15422         coreutils' NEWS file, since the text was "ls -is is ..."
15423         To do that, I would have added this line to cfg.mk:
15424           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
15425         but it would have ignored any "is is" match in NEWS.
15426         Low probability, but still...
15427         Instead, I changed the text, slightly:
15428           -  ls -is is now consistent with ls -lis in ignoring values returned
15429           +  "ls -is" is now consistent with ls -lis in ignoring values returned
15430         * top/maint.mk (prohibit_double_word_RE_): Provide default.
15431         (prohibit_doubled_word_): Define.
15432         (sc_prohibit_doubled_word): New rule.
15433         (sc_prohibit_the_the): Remove.  Subsumed by the above.
15434
15435 2011-04-10  Jim Meyering  <meyering@redhat.com>
15436
15437         maint: fix doubled-word typo in comment
15438         * m4/gethostname.m4: s/is is/it is/
15439         * m4/getdomainname.m4: Likewise.
15440
15441 2011-04-10  Jim Meyering  <meyering@redhat.com>
15442
15443         maint: remove doubled word: s/it it/it/
15444         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
15445
15446 2011-04-10  Jim Meyering  <meyering@redhat.com>
15447
15448         maint.mk: remove useless semicolon and backslash
15449         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
15450         semicolon and backslash.
15451
15452 2011-04-10  Bruno Haible  <bruno@clisp.org>
15453
15454         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
15455         * modules/stdint-tests (Depends-on): Add wchar.
15456
15457 2011-04-10  Jim Meyering  <meyering@redhat.com>
15458
15459         maint: remove doubled words in comments, e.g., s/a a/a/
15460         * lib/strptime.c (day_of_the_week): s/the the/the/
15461         * tests/test-chown.h (test_chown): s/a a/a/
15462
15463         test-chown.h: correct a cast
15464         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
15465         when the destination is a stat.st_gid.
15466
15467 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
15468
15469         getaddrinfo: Fix test for sa_len member.
15470         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
15471         include <sys/types.h> before <sys/socket.h>.
15472
15473 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
15474
15475         maint: change "can not" to "cannot"
15476         * doc/posix-functions/iconv.texi (iconv): This one crossed line
15477         boundaries.
15478
15479 2011-04-09  Jim Meyering  <meyering@redhat.com>
15480
15481         maint: change "a a" to "a"
15482         * tests/test-lchown.h (test_lchown): s/a a/a/
15483
15484         maint.mk: prohibit \<the the\>
15485         * top/maint.mk (sc_prohibit_the_the): New rule.
15486
15487         maint: fix "the the" in comment
15488         * lib/count-one-bits.h: s/the the/the/
15489
15490         maint: change "can not" to "cannot"
15491         But do not change the occurrences in maintain.texi or in
15492         build-aux/po/Makefile.in.in, which I presume comes from gettext.
15493         * doc/gnulib-tool.texi: s/can not/cannot/
15494         * doc/posix-functions/accept.texi (accept): Likewise.
15495         * doc/posix-functions/socket.texi (socket): Likewise.
15496         * lib/mbrtowc.c: Likewise.
15497
15498         maint.mk: prohibit use of "can not"
15499         * top/maint.mk (sc_prohibit_can_not): New rule.
15500         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
15501
15502 2011-04-09  Bruno Haible  <bruno@clisp.org>
15503
15504         careadlinkat: Guard against misuse of careadlinkatcwd.
15505         * lib/careadlinkat.c: Include <stdlib.h>.
15506         (careadlinkatcwd): Check that the fd argument is as expected.
15507
15508 2011-04-09  Bruno Haible  <bruno@clisp.org>
15509
15510         careadlinkat: Use common coding style.
15511         * lib/careadlinkat.c: Move gnulib includes after system includes.
15512
15513 2011-04-09  Bruno Haible  <bruno@clisp.org>
15514
15515         careadlinkat: Clarify specification.
15516         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
15517         (careadlinkatcwd): Add comment.
15518         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
15519
15520 2011-04-09  Bruno Haible  <bruno@clisp.org>
15521
15522         areadlinkat: Avoid link error on many platforms.
15523         * modules/areadlinkat (Depends-on): Add areadlink.
15524
15525 2011-04-09  Bruno Haible  <bruno@clisp.org>
15526
15527         allocator, careadlinkat: Fix double-inclusion guard.
15528         * lib/allocator.h: Fix double-inclusion guard.
15529         * lib/careadlinkat.h: Likewise.
15530
15531 2011-04-09  Bruno Haible  <bruno@clisp.org>
15532
15533         relocatable-prog-wrapper: Update after module 'areadlink' changed.
15534         * lib/relocwrapper.c: Update dependencies hierarchy.
15535         * build-aux/install-reloc: Update list of files to be compiled.
15536         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
15537         lib/allocator.[hc].
15538
15539 2011-04-08  Eric Blake  <eblake@redhat.com>
15540
15541         strftime: silence gnulib-tool warning
15542         * modules/strftime-tests (Depends-on): Drop automatic dependency.
15543
15544 2011-04-08  Bruno Haible  <bruno@clisp.org>
15545
15546         verify: Fix syntax error with GCC 4.6 in C++ mode.
15547         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
15548         (HAVE_STATIC_ASSERT): New macro.
15549         (verify_true, verify): Use 'static_assert' if it is supported and
15550         '_Static_assert' is not supported.
15551
15552 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
15553
15554         allocator: New module.
15555         * modules/allocator, lib/allocator.c: New files.
15556         * lib/allocator.h (stdlib_allocator): New decl.
15557         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
15558         Remove.  Do not include <stdlib.h>.
15559         (careadlinkat): Use stdlib_allocator instead of rolling our own.
15560         * modules/careadlinkat (Files): Remove lib/allocator.h.
15561         (Depends-on): Add allocator.
15562
15563         stdlib: let modules use system malloc, realloc
15564         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
15565         if !_GL_USE_STDLIB_ALLOC.
15566         (malloc, realloc): Limit this change to a smaller scope.
15567
15568         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
15569         (malloc, realloc): Don't #undef; no longer needed.
15570         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
15571         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
15572         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
15573         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
15574         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
15575         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
15576         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
15577         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
15578
15579         careadlinkat: rename members to avoid problem
15580         * lib/allocator.h (struct allocator): Rename members from
15581         malloc/realloc to allocate/reallocate, to avoid problems if malloc
15582         and realloc are #define'd.  Reported by Eric Blake in
15583         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00091.html>.
15584         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
15585
15586 2011-04-08  Eric Blake  <eblake@redhat.com>
15587
15588         nonblocking: reduce dependency
15589         * tests/test-nonblocking.c: Only test sockets when in use.
15590         * modules/nonblocking-tests (Depends-on): Drop socket.
15591         (Makefile.am): Link even if sockets are not present.
15592         * modules/pipe2-tests (Makefile.am): Likewise.
15593         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
15594
15595         pipe2: fix O_NONBLOCK support on mingw
15596         * modules/pipe2 (Depends-on): Add nonblocking.
15597         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
15598         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
15599         * tests/test-nonblocking.c (main): Likewise.
15600         * modules/pipe2-tests (Makefile.am): Avoid link failure.
15601
15602         fcntl-h: fix O_ACCMODE on cygwin
15603         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
15604         * lib/fcntl.in.h (O_ACCMODE): Fix it.
15605
15606         pipe-filter: drop O_NONBLOCK workarounds
15607         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
15608         * modules/pipe-filter-ii (Depends-on): Likewise.
15609         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
15610
15611         nonblocking: provide O_NONBLOCK for mingw
15612         * modules/nonblocking (Depends-on): Add open.
15613         (configure.ac): Set new witness macro.
15614         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
15615         * modules/fcntl-h (Makefile.am): Substitute it.
15616         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
15617         nonblocking module is in use.
15618         * lib/nonblocking.c: Adjust portability test.
15619         * lib/open.c (open): Don't let native open see gnulib flag.
15620         * tests/test-fcntl-h.c (main): Enhance test.
15621         * tests/test-open.h (test_open): Likewise.
15622         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
15623
15624         careadlinkat: fix compilation error on mingw
15625         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
15626         within struct allocator.
15627
15628 2011-04-06  Eric Blake  <eblake@redhat.com>
15629
15630         binary-io: relicense under LGPLv2+
15631         * modules/binary-io (License): Relax to LGPLv2+.
15632         Requested for libvirt, and required by pipe2.
15633
15634 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
15635
15636         verify: use _Static_assert if available
15637         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
15638         (verify_true, verify): Use it if available.  This generates better
15639         diagnostics with GCC 4.6.0 and later.
15640
15641 2011-04-05  Bruno Haible  <bruno@clisp.org>
15642
15643         Remove leftover generated .h files after config.status changed.
15644
15645         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
15646         GL_GENERATE_ALLOCA_H.
15647         * modules/alloca-opt (Makefile.am): Remove alloca.h if
15648         GL_GENERATE_ALLOCA_H evaluates to false.
15649
15650         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
15651         GL_GENERATE_ARGZ_H.
15652         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
15653         evaluates to false.
15654
15655         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
15656         GL_GENERATE_BYTESWAP_H.
15657         * modules/byteswap (Makefile.am): Remove byteswap.h if
15658         GL_GENERATE_BYTESWAP_H evaluates to false.
15659
15660         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
15661         GL_GENERATE_ERRNO_H.
15662         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
15663         evaluates to false.
15664
15665         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
15666         GL_GENERATE_FLOAT_H.
15667         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
15668         evaluates to false.
15669
15670         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
15671         GL_GENERATE_FNMATCH_H.
15672         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
15673         GL_GENERATE_FNMATCH_H evaluates to false.
15674
15675         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
15676         GL_GENERATE_GLOB_H.
15677         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
15678         evaluates to false.
15679
15680         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
15681         automake conditional GL_GENERATE_ICONV_H.
15682         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
15683         evaluates to false.
15684
15685         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
15686         GL_GENERATE_NETINET_IN_H.
15687         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
15688         GL_GENERATE_NETINET_IN_H evaluates to false.
15689
15690         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
15691         conditional GL_GENERATE_PTHREAD_H.
15692         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
15693         * modules/pthread (Makefile.am): Remove pthread.h if
15694         GL_GENERATE_PTHREAD_H evaluates to false.
15695
15696         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
15697         GL_GENERATE_SCHED_H.
15698         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
15699         evaluates to false.
15700
15701         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
15702         conditional GL_GENERATE_SELINUX_CONTEXT_H.
15703         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
15704         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
15705
15706         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
15707         GL_GENERATE_STDARG_H.
15708         * modules/stdarg (Makefile.am): Remove stdarg.h if
15709         GL_GENERATE_STDARG_H evaluates to false.
15710
15711         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
15712         GL_GENERATE_STDBOOL_H.
15713         * modules/stdbool (Makefile.am): Remove stdbool.h if
15714         GL_GENERATE_STDBOOL_H evaluates to false.
15715
15716         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
15717         conditional GL_GENERATE_STDDEF_H.
15718         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
15719         * modules/stddef (Makefile.am): Remove stddef.h if
15720         GL_GENERATE_STDDEF_H evaluates to false.
15721
15722         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
15723         GL_GENERATE_STDINT_H.
15724         * modules/stdint (Makefile.am): Remove stdint.h if
15725         GL_GENERATE_STDINT_H evaluates to false.
15726
15727         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
15728         GL_GENERATE_SYSEXITS_H.
15729         * modules/sysexits (Makefile.am): Remove sysexits.h if
15730         GL_GENERATE_SYSEXITS_H evaluates to false.
15731
15732         Reported by Karl Berry and Ralf Wildenhues.
15733
15734 2011-04-05  Bruno Haible  <bruno@clisp.org>
15735
15736         Ensure to rebuild generated .h files when config.status has changed.
15737         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
15738         config.status.
15739         * modules/ctype (Makefile.am): Likewise.
15740         * modules/dirent (Makefile.am): Likewise.
15741         * modules/errno (Makefile.am): Likewise.
15742         * modules/fcntl-h (Makefile.am): Likewise.
15743         * modules/float (Makefile.am): Likewise.
15744         * modules/getopt-posix (Makefile.am): Likewise.
15745         * modules/glob (Makefile.am): Likewise.
15746         * modules/iconv-h (Makefile.am): Likewise.
15747         * modules/inttypes (Makefile.am): Likewise.
15748         * modules/langinfo (Makefile.am): Likewise.
15749         * modules/locale (Makefile.am): Likewise.
15750         * modules/math (Makefile.am): Likewise.
15751         * modules/netdb (Makefile.am): Likewise.
15752         * modules/netinet_in (Makefile.am): Likewise.
15753         * modules/poll-h (Makefile.am): Likewise.
15754         * modules/pthread (Makefile.am): Likewise.
15755         * modules/pty (Makefile.am): Likewise.
15756         * modules/sched (Makefile.am): Likewise.
15757         * modules/search (Makefile.am): Likewise.
15758         * modules/selinux-h (Makefile.am): Likewise.
15759         * modules/signal (Makefile.am): Likewise.
15760         * modules/spawn (Makefile.am): Likewise.
15761         * modules/stdarg (Makefile.am): Likewise.
15762         * modules/stdbool (Makefile.am): Likewise.
15763         * modules/stddef (Makefile.am): Likewise.
15764         * modules/stdint (Makefile.am): Likewise.
15765         * modules/stdio (Makefile.am): Likewise.
15766         * modules/stdlib (Makefile.am): Likewise.
15767         * modules/string (Makefile.am): Likewise.
15768         * modules/strings (Makefile.am): Likewise.
15769         * modules/sys_file (Makefile.am): Likewise.
15770         * modules/sys_ioctl (Makefile.am): Likewise.
15771         * modules/sys_select (Makefile.am): Likewise.
15772         * modules/sys_socket (Makefile.am): Likewise.
15773         * modules/sys_stat (Makefile.am): Likewise.
15774         * modules/sys_time (Makefile.am): Likewise.
15775         * modules/sys_times (Makefile.am): Likewise.
15776         * modules/sys_utsname (Makefile.am): Likewise.
15777         * modules/sys_wait (Makefile.am): Likewise.
15778         * modules/sysexits (Makefile.am): Likewise.
15779         * modules/termios (Makefile.am): Likewise.
15780         * modules/time (Makefile.am): Likewise.
15781         * modules/unistd (Makefile.am): Likewise.
15782         * modules/wchar (Makefile.am): Likewise.
15783         * modules/wctype-h (Makefile.am): Likewise.
15784         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
15785
15786 2011-04-05  Bruno Haible  <bruno@clisp.org>
15787
15788         pipe2: Relicense under LGPLv2+.
15789         * modules/pipe2 (License): Change to LGPLv2+.
15790         Requested by Eric Blake, for libvirt.
15791
15792 2011-04-05  Bruce Korb  <bkorb@gnu.org>
15793
15794         bootstrap: compute gnulib_extra_files after updating build_aux
15795         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
15796         change build_aux or also supply gnulib_extra_files.  Handle correctly.
15797
15798 2011-04-05  Eric Blake  <eblake@redhat.com>
15799
15800         bootstrap: preserve git whitelist item sorting
15801         * build-aux/bootstrap (sort_patterns): New function.
15802         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
15803
15804 2011-04-05  Simon Josefsson  <simon@josefsson.org>
15805
15806         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
15807         sc_space_tab check.
15808
15809 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
15810
15811         areadlink, areadlinkat: rewrite in terms of careadlinkat
15812         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
15813         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
15814         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
15815         (malloc, realloc): Remove #undefs.
15816         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
15817         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
15818         readlink, ssize_t, stdint, unistd.
15819         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
15820         areadlink, stdint.
15821
15822         careadlinkat: new module
15823         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
15824         * modules/careadlinkat: New files, written by me with
15825         a review and feedback from Ben Pfaff in
15826         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00008.html>.
15827
15828 2011-04-01  Bruno Haible  <bruno@clisp.org>
15829
15830         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
15831         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
15832         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
15833         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
15834         Reported by Bruce Korb <bruce.korb@gmail.com>.
15835
15836 2011-04-01  Bruno Haible  <bruno@clisp.org>
15837
15838         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
15839         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
15840         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
15841         * modules/wcpcpy (Depends-on): Add extensions.
15842         * modules/wcpncpy (Depends-on): Likewise.
15843         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
15844         systems.
15845         * doc/posix-functions/wcpncpy.texi: Likewise.
15846         * doc/posix-functions/wcwidth.texi: Likewise.
15847
15848 2011-03-31  Eric Blake  <eblake@redhat.com>
15849
15850         nonblocking: fix mingw test failures
15851         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
15852         non-blocking flag on regular file.
15853         (get_nonblocking_flag): Set errno on invalid fd.
15854         * tests/test-nonblocking.c (main): Avoid test failure on
15855         directories if fchdir is not active.
15856         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
15857
15858 2011-03-31  Bruno Haible  <bruno@clisp.org>
15859
15860         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
15861         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
15862         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
15863         Reported by Simon Josefsson <simon@josefsson.org>.
15864
15865 2011-03-31  Bruno Haible  <bruno@clisp.org>
15866         and Eric Blake  <eblake@redhat.com>
15867
15868         nonblocking: new module
15869         * modules/nonblocking: New module.
15870         * modules/nonblocking-tests: Likewise.
15871         * lib/nonblocking.h: New file.
15872         * lib/nonblocking.c: Likewise.
15873         * tests/test-nonblocking.c: New test.
15874         * lib/ioctl.c (ioctl) [mingw]: Update comment.
15875
15876 2011-03-30  Bruno Haible  <bruno@clisp.org>
15877
15878         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
15879         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
15880         instead of 'printf' format for GCC >= 4.4.
15881         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
15882         (fprintf, printf, vfprintf, vprintf): Declare with
15883         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
15884         the system's vfprintf() function.
15885         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
15886
15887 2011-03-30  Eric Blake  <eblake@redhat.com>
15888
15889         passfd: fix scoping bug
15890         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
15891         before sendmsg/recvmsg.
15892
15893         passfd: standardize coding conventions
15894         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
15895         can be learned at compile time.
15896         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
15897         ifdefs.
15898         (sendfd, recvfd): Follow gnulib code conventions.
15899
15900         passfd: fix incorrect sendmsg arguments
15901         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
15902         incorrect msg_controllen value.
15903         * modules/passfd-tests (Depends-on): Check for alarm.
15904         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
15905         Reported by Bastien ROUCARIES.
15906
15907 2011-03-30  Bruno Haible  <bruno@clisp.org>
15908
15909         c-strcasestr: Relicense under LGPLv2+.
15910         * modules/c-strcasestr (License): Change to LGPLv2+.
15911         Requested by Eric Blake, for libvirt.
15912
15913 2011-03-30  Simon Josefsson  <simon@josefsson.org>
15914
15915         * users.txt: Add libidn2.  Fix libtasn1 link.
15916
15917 2011-03-30  Jim Meyering  <meyering@redhat.com>
15918
15919         tests: readlink* ("",... fails with EINVAL on newer kernels
15920         readlink and readlinkat have typically failed with ENOENT for
15921         the invalid, empty file name,  "".  However, with the advent
15922         of linux-2.6.39, they fail with EINVAL.
15923         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
15924         when operating on the empty file name.
15925         * tests/test-readlink.h (test_readlink): Likewise.
15926
15927 2011-03-29  Bruno Haible  <bruno@clisp.org>
15928
15929         Relicense some modules under LGPLv2+, for libidn2.
15930         * modules/array-mergesort (License): Change to LGPLv2+.
15931         * modules/c-strcaseeq (License): Likewise.
15932         * modules/striconveh (License): Likewise.
15933         * modules/striconveha (License): Likewise.
15934         * modules/uniconv/base (License): Likewise.
15935         * modules/uniconv/u8-conv-from-enc (License): Likewise.
15936         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
15937         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
15938         * modules/unictype/base (License): Likewise.
15939         * modules/unictype/bidiclass-of (License): Likewise.
15940         * modules/unictype/category-M (License): Likewise.
15941         * modules/unictype/category-none (License): Likewise.
15942         * modules/unictype/category-of (License): Likewise.
15943         * modules/unictype/category-test (License): Likewise.
15944         * modules/unictype/category-test-withtable (License): Likewise.
15945         * modules/unictype/combining-class (License): Likewise.
15946         * modules/unictype/joiningtype-of (License): Likewise.
15947         * modules/unictype/scripts (License): Likewise.
15948         * modules/uninorm/base (License): Likewise.
15949         * modules/uninorm/canonical-decomposition (License): Likewise.
15950         * modules/uninorm/composition (License): Likewise.
15951         * modules/uninorm/decompose-internal (License): Likewise.
15952         * modules/uninorm/decomposition-table (License): Likewise.
15953         * modules/uninorm/nfc (License): Likewise.
15954         * modules/uninorm/nfd (License): Likewise.
15955         * modules/uninorm/u32-normalize (License): Likewise.
15956         * modules/unistr/base (License): Likewise.
15957         * modules/unistr/u32-cpy (License): Likewise.
15958         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
15959         * modules/unistr/u32-to-u8 (License): Likewise.
15960         * modules/unistr/u32-uctomb (License): Likewise.
15961         * modules/unistr/u8-check (License): Likewise.
15962         * modules/unistr/u8-mblen (License): Likewise.
15963         * modules/unistr/u8-mbtouc (License): Likewise.
15964         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
15965         * modules/unistr/u8-mbtoucr (License): Likewise.
15966         * modules/unistr/u8-prev (License): Likewise.
15967         * modules/unistr/u8-strlen (License): Likewise.
15968         * modules/unistr/u8-to-u32 (License): Likewise.
15969         * modules/unistr/u8-uctomb (License): Likewise.
15970         * modules/unitypes (License): Likewise.
15971         Requested by Simon Josefsson.
15972
15973 2011-03-29  Simon Josefsson  <simon@josefsson.org>
15974
15975         lib-symbol-visibility: Add a notice.
15976         * modules/lib-symbol-visibility (Notice): New field.
15977
15978 2011-03-29  Bruno Haible  <bruno@clisp.org>
15979
15980         getaddrinfo: Doc fix.
15981         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
15982         section "fixed in Gnulib".
15983
15984 2011-03-28  Simon Josefsson  <simon@josefsson.org>
15985
15986         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
15987         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
15988
15989 2011-03-26  Bruno Haible  <bruno@clisp.org>
15990
15991         unictype/property-byname: Reduce the number of load-time relocations.
15992         * lib/unictype/pr_byname.c: Include <stdlib.h>.
15993         (UC_PROPERTY_INDEX_*): New enumeration values.
15994         (uc_property_byname): Convert an index from the lookup table to an
15995         uc_property_t.
15996         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
15997         values.
15998
15999 2011-03-26  Bruno Haible  <bruno@clisp.org>
16000
16001         unictype/property-byname: Allow omitted word separators and aliases.
16002         * lib/unictype/pr_byname.gperf: Add property names without word
16003         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
16004         for 'space'.
16005
16006 2011-03-26  Bruno Haible  <bruno@clisp.org>
16007
16008         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
16009         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
16010         also hyphens to space.
16011         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
16012         without spaces.
16013         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
16014
16015 2011-03-26  Bruno Haible  <bruno@clisp.org>
16016
16017         unictype/joiningtype-byname: Recognize long names as well.
16018         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
16019         a long name.
16020         * lib/unictype/joiningtype_byname.c: Include <string.h>,
16021         unictype/joiningtype_byname.h.
16022         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
16023         * lib/unictype/joiningtype_byname.gperf: New file.
16024         * modules/unictype/joiningtype-byname (Files): Add
16025         lib/unictype/joiningtype_byname.gperf.
16026         (Depends-on): Add gperf.
16027         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
16028         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
16029         long names.
16030
16031         Tests for module 'unictype/joiningtype-longname'.
16032         * modules/unictype/joiningtype-longname-tests: New file.
16033         * tests/unictype/test-joiningtype_longname.c: New file.
16034
16035         New module 'unictype/joiningtype-longname'.
16036         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
16037         * lib/unictype/joiningtype_longname.c: New file.
16038         * modules/unictype/joiningtype-longname: New file.
16039         * modules/unictype/joiningtype-all (Depends-on): Add
16040         unictype/joiningtype-longname.
16041
16042 2011-03-26  Bruno Haible  <bruno@clisp.org>
16043
16044         unictype/bidiclass-byname: Recognize long names as well.
16045         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
16046         name.
16047         * lib/unictype/bidi_byname.c: Include <string.h>,
16048         unictype/bidi_byname.h.
16049         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
16050         * lib/unictype/bidi_byname.gperf: New file.
16051         * modules/unictype/bidiclass-byname (Files): Add
16052         lib/unictype/bidi_byname.gperf.
16053         (Depends-on): Add gperf.
16054         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
16055         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
16056         long names.
16057
16058         Tests for module 'unictype/bidiclass-longname'.
16059         * modules/unictype/bidiclass-longname-tests: New file.
16060         * tests/unictype/test-bidi_longname.c: New file.
16061
16062         New module 'unictype/bidiclass-longname'.
16063         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
16064         * lib/unictype/bidi_longname.c: New file.
16065         * modules/unictype/bidiclass-longname: New file.
16066         * modules/unictype/bidiclass-all (Depends-on): Add
16067         unictype/bidiclass-longname.
16068
16069 2011-03-26  Bruno Haible  <bruno@clisp.org>
16070
16071         unictype/bidi*: Rename modules.
16072         * modules/unictype/bidiclass-all: Renamed from
16073         modules/unictype/bidicategory-all.
16074         * modules/unictype/bidiclass-name: Renamed from
16075         modules/unictype/bidiclass-name.
16076         (Description): Update.
16077         * modules/unictype/bidiclass-name-tests: Renamed from
16078         modules/unictype/bidicategory-name-tests.
16079         * modules/unictype/bidiclass-byname: Renamed from
16080         modules/unictype/bidicategory-byname.
16081         (Description): Update.
16082         * modules/unictype/bidiclass-byname-tests: Renamed from
16083         modules/unictype/bidicategory-byname-tests.
16084         * modules/unictype/bidiclass-of: Renamed from
16085         modules/unictype/bidicategory-of.
16086         (Description): Update.
16087         * modules/unictype/bidiclass-of-tests: Renamed from
16088         modules/unictype/bidicategory-of-tests.
16089         * modules/unictype/bidiclass-test: Renamed from
16090         modules/unictype/bidicategory-test.
16091         (Description): Update.
16092         * modules/unictype/bidiclass-test-tests: Renamed from
16093         modules/unictype/bidicategory-test-tests.
16094         * modules/unictype/bidicategory-all: New file, a simple redirection.
16095         * modules/unictype/bidicategory-name: Likewise.
16096         * modules/unictype/bidicategory-byname: Likewise.
16097         * modules/unictype/bidicategory-of: Likewise.
16098         * modules/unictype/bidicategory-test: Likewise.
16099         * modules/unictype/property-bidi-* (Dependencies): Update.
16100         * lib/unictype/bidi_*.c: Update comment.
16101
16102 2011-03-26  Bruno Haible  <bruno@clisp.org>
16103
16104         unictype/bidi*: Rename functions, part 2.
16105         * modules/unictype/bidicategory-name (configure.ac): Update required
16106         libunistring version.
16107         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
16108
16109 2011-03-25  Bruno Haible  <bruno@clisp.org>
16110
16111         New module 'unictype/combining-class-all'.
16112         * modules/unictype/combining-class-all: New file.
16113
16114         Tests for module 'unictype/combining-class-byname'.
16115         * modules/unictype/combining-class-byname-tests: New file.
16116         * tests/unictype/test-combiningclass_byname.c: New file.
16117
16118         New module 'unictype/combining-class-byname'.
16119         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
16120         * lib/unictype/combiningclass_byname.c: New file.
16121         * lib/unictype/combiningclass_byname.gperf: New file.
16122         * modules/unictype/combining-class-byname: New file.
16123
16124         Tests for module 'unictype/combining-class-longname'.
16125         * modules/unictype/combining-class-longname-tests: New file.
16126         * tests/unictype/test-combiningclass_longname.c: New file.
16127
16128         New module 'unictype/combining-class-longname'.
16129         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
16130         * lib/unictype/combiningclass_longname.c: New file.
16131         * modules/unictype/combining-class-longname: New file.
16132
16133         Tests for module 'unictype/combining-class-name'.
16134         * modules/unictype/combining-class-name-tests: New file.
16135         * tests/unictype/test-combiningclass_name.c: New file.
16136
16137         New module 'unictype/combining-class-name'.
16138         * lib/unictype.in.h (uc_combining_class_name): New declaration.
16139         * lib/unictype/combiningclass_name.c: New file.
16140         * modules/unictype/combining-class-name: New file.
16141
16142 2011-03-25  Bruno Haible  <bruno@clisp.org>
16143
16144         unictype/combining-class: Rename source files.
16145         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
16146         of unictype/combining.h.
16147         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
16148         Update.
16149         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
16150         * modules/unictype/combining-class (Description): Fix.
16151         (Files, Makefile.am): Update.
16152         * tests/unictype/test-combiningclass.c: Renamed from
16153         tests/unictype/test-combining.c.
16154         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
16155
16156 2011-03-25  Bruno Haible  <bruno@clisp.org>
16157
16158         unictype: Update list of canonical combining classes.
16159         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
16160
16161 2011-03-25  Bruno Haible  <bruno@clisp.org>
16162
16163         unictype/category-byname: Recognize long names as well.
16164         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
16165         a long name.
16166         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
16167         unictype/categ_byname.h.
16168         (UC_CATEGORY_INDEX_*): New enumeration values.
16169         (uc_general_category_byname): Use uc_general_category_lookup and
16170         convert from index to value.
16171         * lib/unictype/categ_byname.gperf: New file.
16172         * modules/unictype/category-byname (Files): Add
16173         lib/unictype/categ_byname.gperf.
16174         (Depends-on): Add gperf.
16175         (Makefile.am): Add rule for generating unictype/categ_byname.h.
16176         * tests/unictype/test-categ_byname.c (main): Test the recognition of
16177         long names.
16178
16179         Tests for module 'unictype/category-longname'.
16180         * modules/unictype/category-longname-tests: New file.
16181         * tests/unictype/test-categ_longname.c: New file.
16182
16183         New module 'unictype/category-longname'.
16184         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
16185         * lib/unictype/categ_longname.c: New file.
16186         * modules/unictype/category-longname: New file.
16187         * modules/unictype/category-all (Depends-on): Add it.
16188
16189 2011-03-25  Bruno Haible  <bruno@clisp.org>
16190
16191         Tests for module 'unictype/category-LC'.
16192         * modules/unictype/category-LC-tests: New file.
16193         * tests/unictype/test-categ_LC.c: New file, automatically generated.
16194
16195         New module 'unictype/category-LC'.
16196         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
16197         (UC_CATEGORY_LC): New declaration.
16198         (UC_CASED_LETTER): New macro.
16199         * lib/gen-uni-tables.c (is_category_LC): New function.
16200         (output_categories): Also handle category LC.
16201         (UC_CATEGORY_MASK_LC): New enumeration value.
16202         (general_category_byname): Also handle category LC.
16203         * lib/unictype/categ_LC.c: New file.
16204         * lib/unictype/categ_LC.h: New file, automatically generated.
16205         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
16206         category LC.
16207         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
16208         * modules/unictype/category-LC: New file.
16209         * modules/unictype/category-byname (Depends-on): Add
16210         unictype/category-LC.
16211         * modules/unictype/category-all (Depends-on): Likewise.
16212
16213 2011-03-25  Eric Blake  <eblake@redhat.com>
16214
16215         xmalloc: revert yesterday's regression
16216         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
16217         realloc's underlying behavior (allowing allocation of zero-size
16218         objects, especially if malloc-gnu is also in use).
16219
16220 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
16221
16222         maint.mk: add missing version to VC-tag
16223         * top/maint.mk: git tag was missing actual tag name; add it.
16224
16225         valgrind: do leak checking, and exit with code 1 on error (not 0)
16226         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
16227         to VALGRIND.
16228
16229 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
16230
16231         posix-modules: say what it does.
16232         * posix-modules: Add a line to the --help output saying what it does.
16233
16234 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
16235
16236         xmalloc: Do not leak if underlying realloc is C99 compatible.
16237         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
16238         This avoids a leak on C99-based systems.  See
16239         <http://lists.gnu.org/archive/html/bug-gnulib/2011-03/msg00243.html>.
16240
16241 2011-03-24  Eric Blake  <eblake@redhat.com>
16242
16243         realloc: document portability problem
16244         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
16245         passing 0 size to realloc.
16246
16247 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
16248
16249         doc: update users.txt
16250         * users.txt: Add cvsps, tmpwatch
16251
16252 2011-03-23  Matt Rice  <ratmice@gmail.com>
16253
16254         doc: update users.txt
16255         * users.txt: Add gdb.
16256
16257 2011-03-23  Jim Meyering  <meyering@redhat.com>
16258
16259         doc: update users.txt
16260         Looking through matches up to the following URL (there are still
16261         several more pages), I found several projects that use gnulib:
16262         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
16263         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
16264         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
16265
16266 2011-03-22  Bruno Haible  <bruno@clisp.org>
16267
16268         unictype/bidi*: Rename functions.
16269         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
16270         uc_bidi_class, uc_is_bidi_class): New declarations.
16271         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
16272         uc_bidi_category_byname.
16273         (uc_bidi_category_byname): New function.
16274         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
16275         u_bidi_category_name.
16276         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
16277         (uc_bidi_category_name): New function.
16278         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
16279         uc_bidi_category.
16280         (uc_bidi_category): New function.
16281         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
16282         uc_is_bidi_category. Invoke uc_bidi_class.
16283         (uc_is_bidi_category): New function.
16284         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
16285         instead of uc_bidi_category_byname.
16286         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
16287         instead of uc_bidi_category_name.
16288         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
16289         uc_bidi_category.
16290         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
16291         instead of uc_is_bidi_category.
16292
16293 2011-03-21  Bruno Haible  <bruno@clisp.org>
16294
16295         New module 'unictype/joininggroup-all'.
16296         * modules/unictype/joininggroup-all: New file.
16297
16298         Tests for module 'unictype/joininggroup-of'.
16299         * modules/unictype/joininggroup-of-tests: New file.
16300         * tests/unictype/test-joininggroup_of.c: New file.
16301         * tests/unictype/test-joininggroup_of.h: New file, automatically
16302         generated by gen-uni-tables.
16303
16304         New module 'unictype/joininggroup-of'.
16305         * modules/unictype/joininggroup-of: New file.
16306         * lib/unictype/joininggroup_of.c: New file.
16307         * lib/unictype/joininggroup_of.h: New file, automatically generated by
16308         gen-uni-tables.
16309
16310         Tests for module 'unictype/joininggroup-byname'.
16311         * modules/unictype/joininggroup-byname-tests: New file.
16312         * tests/unictype/test-joininggroup_byname.c: New file.
16313
16314         New module 'unictype/joininggroup-byname'.
16315         * modules/unictype/joininggroup-byname: New file.
16316         * lib/unictype/joininggroup_byname.c: New file.
16317         * lib/unictype/joininggroup_byname.gperf: New file.
16318
16319         Tests for module 'unictype/joininggroup-name'.
16320         * modules/unictype/joininggroup-name-tests: New file.
16321         * tests/unictype/test-joininggroup_name.c: New file.
16322
16323         New module 'unictype/joininggroup-name'.
16324         * modules/unictype/joininggroup-name: New file.
16325         * lib/unictype/joininggroup_name.c: New file.
16326         * lib/unictype/joininggroup_name.h: New file.
16327
16328         New module 'unictype/joiningtype-all'.
16329         * modules/unictype/joiningtype-all: New file.
16330
16331         Tests for module 'unictype/joiningtype-of'.
16332         * modules/unictype/joiningtype-of-tests: New file.
16333         * tests/unictype/test-joiningtype_of.c: New file.
16334         * tests/unictype/test-joiningtype_of.h: New file, automatically
16335         generated by gen-uni-tables.
16336
16337         New module 'unictype/joiningtype-of'.
16338         * modules/unictype/joiningtype-of: New file.
16339         * lib/unictype/joiningtype_of.c: New file.
16340         * lib/unictype/joiningtype_of.h: New file, automatically generated by
16341         gen-uni-tables.
16342
16343         Tests for module 'unictype/joiningtype-byname'.
16344         * modules/unictype/joiningtype-byname-tests: New file.
16345         * tests/unictype/test-joiningtype_byname.c: New file.
16346
16347         New module 'unictype/joiningtype-byname'.
16348         * modules/unictype/joiningtype-byname: New file.
16349         * lib/unictype/joiningtype_byname.c: New file.
16350
16351         Tests for module 'unictype/joiningtype-name'.
16352         * modules/unictype/joiningtype-name-tests: New file.
16353         * tests/unictype/test-joiningtype_name.c: New file.
16354
16355         New module 'unictype/joiningtype-name'.
16356         * modules/unictype/joiningtype-name: New file.
16357         * lib/unictype/joiningtype_name.c: New file.
16358
16359         unictype: Add support for Arabic shaping properties.
16360         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
16361         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
16362         declarations.
16363         (UC_JOINING_GROUP_*): New enumeration values.
16364         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
16365         declarations.
16366         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
16367         (unicode_joining_type): New variable.
16368         (UC_JOINING_GROUP_*): New enumeration values.
16369         (unicode_joining_group): New variable.
16370         (fill_arabicshaping, joining_type_as_c_identifier,
16371         output_joining_type_test, output_joining_type,
16372         joining_group_as_c_identifier, output_joining_group_test,
16373         output_joining_group): New functions.
16374         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
16375         fill_arabicshaping and output_joining_type_test, output_joining_type,
16376         output_joining_group_test, output_joining_group.
16377         Reported by Simon Josefsson.
16378
16379 2011-03-21  Jim Meyering  <meyering@redhat.com>
16380
16381         strftime: fix a bug in yesterday's change
16382         * lib/strftime.c (add): Accommodate width's initial value of -1.
16383         Otherwise, nstrftime would copy uninitialized data into
16384         the result buffer.
16385
16386 2011-03-21  Jim Meyering  <meyering@redhat.com>
16387
16388         tests: add strftime-tests module
16389         * tests/test-strftime.c: New file.
16390         * modules/strftime-tests: New module.
16391
16392 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
16393
16394         strftime: don't assume a byte count fits in 'int'
16395         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
16396         found this problem by static analysis, using gcc -Wstrict-overflow
16397         (GCC 4.5.2, x86-64).  This reported an optimization that depended
16398         on an integer overflow having undefined behavior, but it turns out
16399         that the argument is a size, which might not fit in 'int' anyway,
16400
16401 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
16402
16403         stdio: don't require ignore_value around fwrite
16404
16405         This patch works around libc bug 11959
16406         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
16407         Without this patch, applications must often write
16408         ignore_value (fwrite (...)) even though the ignore_value is
16409         not helpful here.  It's common to write many objects, using
16410         fwrite/printf/etc., and then use ferror to detect output error.
16411
16412         I considered making this patch optional, but decided against it,
16413         because libc is obviously being inconsistent here: there is no
16414         reason libc should insist that user code must inspect fwrite
16415         return's value without also insisting that it inspect printf's,
16416         putchar's, etc.  If user code wants to have a strict style where
16417         all these functions' values are checked (so that ferror need not
16418         be checked), we could add support for that style in a new gnulib
16419         module, but in the meantime it's better to be consistent and to
16420         support common usage.
16421
16422         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
16423         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
16424         that we are compiling in checking mode, and if not C++, and
16425         if not already wrapping fwrite for some other reason.
16426         (fwrite): #define to rpl_fwrite if the latter is defined.
16427
16428 2011-03-20  Bruno Haible  <bruno@clisp.org>
16429
16430         verror: Fix compilation error introduced on 2011-02-13.
16431         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
16432         instead of __attribute__.
16433         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
16434
16435 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
16436             Bruno Haible  <bruno@clisp.org>
16437
16438         socklen: do not depend on sys_socket
16439         While trying to modify Emacs to use gnulib's socklen module,
16440         I discovered a circular dependency: socklen depends on sys_socket
16441         and vice versa.  Emacs can use socklen, but it does not need
16442         sys_socket because it has its own substitute for sys/socket.h.
16443         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
16444         gl_TYPE_SOCKLEN_T.
16445         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
16446         gl_PREREQ_SYS_H_SOCKET.
16447         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
16448         gl_PREREQ_SYS_H_SOCKET.
16449         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
16450         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
16451         * modules/socklen (Depends-on): Do not depend on sys_socket.
16452         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
16453
16454 2011-03-20  Jim Meyering  <meyering@redhat.com>
16455
16456         maint.mk: sort file names *after* new transformation
16457         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
16458         prefix would have led to an unwarranted failure in GNU parted.
16459         Sort after that transformation.
16460
16461 2011-03-19  Jim Meyering  <meyering@redhat.com>
16462
16463         maint.mk: fix po-file syntax-check rule
16464         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
16465         Patch by Bruno Haible.
16466
16467 2011-03-19  Bruno Haible  <bruno@clisp.org>
16468
16469         socklen: Update comment.
16470         * m4/socklen.m4: Update comment about platforms.
16471
16472 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
16473             Bruno Haible  <bruno@clisp.org>
16474
16475         inet_ntop, inet_pton: Simplify.
16476         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
16477         documented to provide socklen_t and we already depend on sys_socket.
16478         * modules/inet_pton (Depends-on): Likewise.
16479         * lib/arpa_inet.in.h: Adjust comment.
16480
16481 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
16482             Bruno Haible  <bruno@clisp.org>
16483
16484         netdb: Simplify.
16485         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
16486         documented to provide socklen_t and we already depend on sys_socket.
16487         * lib/netdb.in.h: Adjust comment.
16488
16489 2011-03-19  Bruno Haible  <bruno@clisp.org>
16490
16491         sys_socket, netdb: Document problem with socklen_t.
16492         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
16493         platforms.
16494         * doc/posix-headers/netdb.texi: Likewise.
16495
16496 2011-03-18  Eric Blake  <eblake@redhat.com>
16497
16498         maint.mk: let po check work in VPATH build
16499         * top/maint.mk (po_file): Allow cfg.mk override.
16500         (sc_po_check): Allow VPATH use.
16501         Reported by Jiri Denemark.
16502
16503 2011-03-16  Jim Meyering  <meyering@redhat.com>
16504
16505         maint.mk: allow fine-grained syntax-check exclusion via Make variables
16506         Before, you would have had to create one .x-sc_ file per rule in order
16507         to exempt offending files.  Now, you may instead use a Make variable --
16508         usually defined in cfg.mk -- whose name identifies the affected rule.
16509         * top/maint.mk (_sc_excl): Define.
16510         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
16511         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
16512
16513 2011-03-13  Bruno Haible  <bruno@clisp.org>
16514
16515         ignore-value tests: Avoid warnings.
16516         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
16517         empty for gcc < 3.4.
16518
16519 2011-03-13  Bruno Haible  <bruno@clisp.org>
16520
16521         passfd: Fix link error on Solaris.
16522         * modules/passfd (Description): Correct.
16523         (Depends-on): Add socketlib.
16524         (Link): New section.
16525         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
16526
16527 2011-03-13  Bruno Haible  <bruno@clisp.org>
16528
16529         passfd: Fix link error on AIX 5.2.
16530         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
16531
16532 2011-03-13  Bruno Haible  <bruno@clisp.org>
16533
16534         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
16535         * lib/sys_socket.in.h: Include <stddef.h>.
16536         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
16537         CMSG_FIRSTHDR. Remove unused variable.
16538
16539 2011-03-13  Bruno Haible  <bruno@clisp.org>
16540
16541         passfd: Fix compilation error on OpenBSD.
16542         * lib/passfd.c: Include <sys/uio.h>.
16543
16544 2011-03-13  Bruno Haible  <bruno@clisp.org>
16545
16546         passfd test: Fix warnings.
16547         * tests/test-passfd.c: Include <sys/wait.h>.
16548         (main): Fix typo.
16549
16550 2011-03-13  Bruno Haible  <bruno@clisp.org>
16551
16552         passfd module, part 4, tweaks.
16553         * tests/test-passfd.c: Reorder includes.
16554         (main): Fix perror and printf calls.
16555
16556 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
16557
16558         passfd module, part 4.
16559         * modules/passfd-tests: New file.
16560         * tests/test-passfd.c: New file.
16561
16562 2011-03-13  Jim Meyering  <meyering@redhat.com>
16563
16564         Makefile: rely on GNU make; derive syntax-check rule names
16565         Rather than requiring that each sc_ rule be listed as a dependent
16566         of "check", use features of GNU make to derive the list.
16567         * Makefile (syntax-check-rules): Define.
16568         (check): Depend on the new variable, not the hard-coded list.
16569
16570 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
16571             Bruno Haible  <bruno@clisp.org>
16572
16573         passfd module, part 3.
16574         * lib/passfd.h (recvfd): Add a flags argument.
16575         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
16576         (recvfd): Add a flags argument.
16577         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
16578         exists.
16579         * modules/passfd (Depends-on): Add cloexec.
16580         Suggested by Eric Blake.
16581
16582 2011-03-13  Bruno Haible  <bruno@clisp.org>
16583
16584         passfd module, part 2, tweaks.
16585         * modules/passfd (Files): Reorder.
16586         (Depends-on): Remove errno.
16587         (Include): Remove <sys/socket.h>, <sys/un.h>.
16588         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
16589         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
16590         specification header. Include <sys/socket.h> always. Don't include
16591         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
16592         (sendfd): Clarify that it sets errno when it fails.
16593         (recvfd): Fix specification.
16594
16595 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
16596
16597         passfd module, part 2.
16598         * modules/passfd: New file.
16599         * lib/passfd.h: New file.
16600         * lib/passfd.c: New file.
16601
16602 2011-03-12  Bruno Haible  <bruno@clisp.org>
16603
16604         wcswidth, mbswidth: Avoid integer overflow.
16605         * lib/wcswidth.c: Include <limits.h>.
16606         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
16607         * lib/mbswidth.c: Include <limits.h>.
16608         (mbsnwidth): Avoid 'int' overflow.
16609         Reported by Jim Meyering.
16610
16611 2011-03-12  Bruno Haible  <bruno@clisp.org>
16612
16613         futimens, utimensat: Avoid endless recursion on Solaris 10.
16614         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
16615         Solaris.
16616         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
16617         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
16618
16619 2011-03-11  Jim Meyering  <meyering@redhat.com>
16620
16621         maint.mk: relax a regexp to accommodate other formatting styles
16622         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
16623         between "ngettext" and the following "(".
16624
16625 2011-03-11  Pádraig Brady <P@draigBrady.com>
16626
16627         maint.mk: suppress a false positive warning
16628         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
16629         diagnostics are marked with ngettext.
16630
16631 2011-03-10  Eric Blake  <eblake@redhat.com>
16632
16633         wchar: add explicit dependencies, for Tru64
16634         * modules/mbmemcasecoll (Depends-on): Add wchar.
16635         * modules/mbtowc (Depends-on): Likewise.
16636         * modules/vasnprintf (Depends-on): Likewise.
16637         * modules/unistdio/u-printf-args (Depends-on): Likewise.
16638         * modules/wctomb (Depends-on): Likewise.
16639         Reported by Peter O'Gorman.
16640
16641 2011-03-08  Bruno Haible  <bruno@clisp.org>
16642
16643         passfd module, part 1, tweaks.
16644         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
16645         Improve indentation. Improve AC_MSG_CHECKING messages.
16646         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
16647         gl_SOCKET_FAMILIES.
16648
16649 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
16650
16651         passfd module, part 1.
16652         * m4/afunix.m4: New file.
16653         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
16654         sockets.
16655
16656 2011-03-08  Bruno Haible  <bruno@clisp.org>
16657
16658         regex-quote: New API.
16659         * lib/regex-quote.h: Include <stdbool.h>.
16660         (struct regex_quote_spec): New type.
16661         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
16662         New declarations.
16663         (regex_quote_length, regex_quote_copy, regex_quote): Take a
16664         'const struct regex_quote_spec *' argument.
16665         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
16666         (pcre_special): New constant.
16667         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
16668         New functions.
16669         (regex_quote_length, regex_quote_copy, regex_quote): Take a
16670         'const struct regex_quote_spec *' argument.
16671         * modules/regex-quote (Depends-on): Add stdbool.
16672         * tests/test-regex-quote.c (check): Update for new API. Add test for
16673         anchored results.
16674         * NEWS: Mention the API change.
16675         Reported by Reuben Thomas and Eric Blake.
16676
16677 2011-03-06  Bruno Haible  <bruno@clisp.org>
16678
16679         regex-quote: Fix creation of POSIX extended regular expressions.
16680         * lib/regex-quote.c (ere_special): Add grouping and alternation
16681         operators.
16682
16683 2011-03-05  Bruno Haible  <bruno@clisp.org>
16684
16685         doc: Improve doc regarding autopoint vs. gnulib.
16686         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
16687         disable autopoint while running autoreconf.
16688         Suggested by Ralf Wildenhues.
16689
16690 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16691
16692         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
16693         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
16694
16695 2011-03-03  Bruce Korb  <bkorb@gnu.org>
16696
16697         parse-duration: remove xalloc.h dependency
16698         * lib/parse-duration.c (parse_period): handle NULL return from
16699         strdup instead of calling xstrdup().
16700         * modules/parse-duration: remove "xalloc" dependency
16701
16702 2011-03-03  Matthew Booth  <mbooth@redhat.com>
16703
16704         bootstrap: honor m4_base when running aclocal
16705         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
16706
16707 2011-03-02  Jim Meyering  <meyering@redhat.com>
16708
16709         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
16710         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
16711         on request from Matt Booth.
16712
16713 2011-03-01  Eric Blake  <eblake@redhat.com>
16714
16715         test-link: work on Hurd
16716         * tests/test-link.h (test_link): Hurd rejects linking directories
16717         with EISDIR instead of the POSIX-mandated EPERM.
16718
16719 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
16720
16721         stdio: simplify by moving files to printf-posix, sigpipe
16722         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
16723         since this symbol is needed only if printf is replaced.
16724         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
16725         Require gl_ASM_SYMBOL_PREFIX.
16726         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
16727         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
16728         (Depends-on): Add 'raise'.
16729         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
16730         * modules/stdio (Files): Remove lib/stdio-write.c,
16731         m4/asm-underscore.m4.
16732         (Depends-on): Remove 'raise'.
16733
16734         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
16735         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
16736         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
16737         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
16738
16739 2011-02-28  Bruno Haible  <bruno@clisp.org>
16740
16741         localcharset: Assume ANSI C behaviour of free().
16742         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
16743         calling free().
16744         Suggested by Simon Josefsson <simon@josefsson.org>.
16745
16746 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
16747             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
16748             Bruno Haible  <bruno@clisp.org>  (tiny change)
16749
16750         On Cygwin, use /proc file system instead of win32 API.
16751         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
16752         Win32 file names.
16753         (DllMain): Simplify by removing Cygwin specific code.
16754         (find_shared_library_fullname): Use Linux specific implementation also
16755         for Cygwin.
16756         (get_shared_library_fullname): Update accordingly.
16757         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
16758         Win32 file names.
16759         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
16760         Cygwin specific code.
16761
16762 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
16763             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
16764
16765         Fix OpenMP flag detection for various Fortran compilers.
16766         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
16767         OpenMP-conditional compilation construct, to force compile
16768         failure with missing OpenMP flag.
16769         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
16770
16771 2011-02-25  Eric Blake  <eblake@redhat.com>
16772
16773         strstr: expand test coverage
16774         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
16775         compilation.
16776         * tests/test-memmem.c (main): Duplicate tests.
16777         * tests/test-strcasestr.c (main): Likewise.
16778         * tests/test-c-strcasestr.c (main): Likewise.
16779
16780 2011-02-25  Jim Meyering  <meyering@redhat.com>
16781
16782         maint.mk: detect missing-NL-at-EOF, too
16783         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
16784         it also detects when a file lacks a newline at EOF.
16785         (require_exactly_one_NL_at_EOF_): Renamed from
16786         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
16787         since people may well have .x-sc_... file names tied to the
16788         existing name.  Suggested by Eric Blake.
16789
16790 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
16791
16792         dirname: move m4/dos.m4 functionality into lib/dosname.h
16793
16794         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
16795         extracts symbols from it, puts them into config.h; but it's much
16796         easier to use the symbols directly.  filename.h already does this,
16797         but it disagrees with dos.m4 in some respects.  This patch
16798         introduces a different include file dosname.h that packages up
16799         dos.m4, and then later we can work on merging filename.h and
16800         dosname.h.  Applications that need only the easy-to-configure
16801         symbols should consider including dosname.h rather than dirname.h.
16802         * NEWS: Mention incompatible changes.
16803         * m4/dos.m4: Remove.
16804         * lib/dosname.h, modules/dosname: New files.
16805         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
16806         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
16807         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
16808         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
16809         Include dosname.h, not dirname.h.
16810         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
16811         Include dosname.h, for definitions of symbols like ISSLASH
16812         that used to be in config.h.
16813         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
16814         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
16815         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
16816         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
16817         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
16818         * modules/rmdir (Files): Likewise.
16819         * modules/stat (Files): Likewise.
16820         * modules/unlink (Files): Likewise.
16821         * modules/dirname-lgpl (Depends-on): Add dosname.
16822         * modules/lstat (Depends-on): Likewise.
16823         * modules/openat (Depends-on): Likewise.
16824         * modules/rmdir (Depends-on): Likewise.
16825         * modules/savewd (Depends-on): Likewise.
16826         * modules/stat (Depends-on): Likewise.
16827         * modules/unlink (Depends-on): Likewise.
16828         * modules/openat (Depends-on): Remove dirname-lgpl.
16829         * modules/savewd (Depends-on): Likewise.
16830         * tests/test-dirname.c: Do not use removed symbols like
16831         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
16832         the remaining symbols, e.g., ISSLASH ('\\').
16833
16834 2011-02-25  Eric Blake  <eblake@redhat.com>
16835
16836         strstr: revert patches that introduced bug and pessimization
16837         * lib/str-two-way.h: Add another reference.
16838         (two_way_short_needle, two_way_long_needle): Revert changes from
16839         2011-02-24; they pessimize search speed.
16840         (critical_factorization): Partially revert changes from
16841         2010-06-22; they violate the requirement that the left half of the
16842         needle be smaller than the period of the needle.
16843
16844 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
16845
16846         filenamecat: remove unnecessary dependency on dirname-lgpl
16847         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
16848         is no direct dependency, just an indirect one via filenamecat-lgpl.
16849
16850         remove: remove unnecessary use of m4/dos.m4
16851         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
16852         * modules/remove (FILES): Remove m4/dos.m4.
16853
16854         * lib/openat-proc.c: Don't include dirname.h; not needed.
16855
16856         backupfile: remove unnecessary use of m4/dos.m4
16857         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
16858         of its symbols are used by the backupfile code.  backupfile.c does
16859         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
16860         for the rare case of programs that want all their backup file
16861         names to live within 8+3 limits, and dos.m4 doesn't address that.
16862         * modules/backupfile (Files): Remove m4/dos.m4.
16863
16864 2011-02-24  Jim Meyering  <meyering@redhat.com>
16865
16866         strstr: fix a bug whereby strstr would mistakenly return NULL
16867         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
16868         in period calculation.
16869         (two_way_long_needle): Likewise.
16870         The original problem was reported by Mike Stump in
16871         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
16872         Ralf Wildenhues provided the short needle and haystack.
16873         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
16874         Add a more involved test to trigger the bug in two_way_long_needle.
16875
16876 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
16877
16878         gnulib-tool: remove use of bold display in help screen
16879         * gnulib-tool (func_usage): Do not use bold display anymore in the
16880         help screen.  That was just meant to be a temporary emphasis for a
16881         backward-incompatible change.
16882
16883 2011-02-23  Bruno Haible  <bruno@clisp.org>
16884
16885         Fix misindentation of preprocessor directives.
16886         * lib/argp-namefrob.h: Reindent preprocessor directives.
16887         * lib/getopt_int.h (struct _getopt_data): Likewise.
16888         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
16889         * lib/vasnprintf.c (decode_long_double): Likewise.
16890         * tests/test-argmatch.c: Insert blank lines, for clarity.
16891         * tests/test-exclude.c: Likewise.
16892
16893 2011-02-22  Bruno Haible  <bruno@clisp.org>
16894
16895         ioctl: Fix for MacOS X in 64-bit mode.
16896         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
16897         value.
16898         Suggested by Eric Blake.
16899         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
16900
16901 2011-02-22  Jim Meyering  <meyering@redhat.com>
16902
16903         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
16904         * Makefile (sc_cpp_indent_check): Don't limit the check to files
16905         in lib/.
16906
16907 2011-02-22  Eric Blake  <eblake@redhat.com>
16908
16909         maint: avoid any CDPATH issue
16910         * Makefile (sc_cpp_indent_check): Anchor cd argument.
16911
16912         maint: adjust cpp indentation for my modules, as well
16913         * Makefile (sc_cpp_indent_check): Add my name.
16914         * lib/fbufmode.c: Filter through cppi.
16915         * lib/fpurge.c: Likewise.
16916         * lib/freadable.c: Likewise.
16917         * lib/freading.c: Likewise.
16918         * lib/fwritable.c: Likewise.
16919         * lib/fwriting.c: Likewise.
16920         * lib/sigaction.c: Likewise.
16921
16922 2011-02-22  Jim Meyering  <meyering@redhat.com>
16923
16924         maint: adjust cpp indentation to reflect nesting depth
16925         I.e., in a block of code that begins with an unnested "#if",
16926         put one space between the "#" in column 1 and following token.
16927         For example,
16928         -#include <sys/vfs.h>
16929         +# include <sys/vfs.h>
16930         Do this only in .c files that are part of a module I maintain.
16931         * lib/linkat.c: Filter through cppi.
16932         * lib/nanosleep.c: Likewise.
16933         * lib/openat.c: Likewise.
16934         * lib/openat-die.c: Likewise.
16935         * lib/dup3.c: Likewise.
16936         * lib/fchownat.c: Likewise.
16937         * lib/flock.c: Likewise.
16938         * lib/fsync.c: Likewise.
16939         * lib/fts.c: Likewise.
16940         * lib/getpass.c: Likewise.
16941         * lib/gettimeofday.c: Likewise.
16942         * lib/userspec.c: Likewise.
16943         * Makefile (sc_cpp_indent_check): New rule, to check this.
16944
16945 2011-02-22  Bruno Haible  <bruno@clisp.org>
16946
16947         New module 'wctomb'.
16948         * lib/stdlib.in.h (wctomb): New declaration.
16949         * lib/wctomb.c: New file.
16950         * lib/wctomb-impl.h: New file.
16951         * m4/wctomb.m4: New file.
16952         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
16953         REPLACE_WCTOMB.
16954         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
16955         REPLACE_WCTOMB.
16956         * modules/wctomb: New file.
16957         * tests/test-stdlib-c++.cc: Test signature of wctomb.
16958         * doc/posix-functions/wctomb.texi: Mention the new module.
16959         * modules/wctob (Depends-on): Add wctomb.
16960
16961 2011-02-22  Bruno Haible  <bruno@clisp.org>
16962
16963         New module 'mbtowc'.
16964         * lib/stdlib.in.h (mbtowc): New declaration.
16965         * lib/mbtowc.c: New file.
16966         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
16967         * m4/mbtowc.m4: New file.
16968         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
16969         REPLACE_MBTOWC.
16970         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
16971         REPLACE_MBTOWC.
16972         * modules/mbtowc: New file.
16973         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
16974         * doc/posix-functions/mbtowc.texi: Mention the new module.
16975         * modules/btowc (Depends-on): Add mbtowc.
16976
16977 2011-02-22  Bruno Haible  <bruno@clisp.org>
16978
16979         wcrtomb: Add more tests for native Windows platforms.
16980         * tests/test-wcrtomb-w32-1.sh: New file.
16981         * tests/test-wcrtomb-w32-2.sh: New file.
16982         * tests/test-wcrtomb-w32-3.sh: New file.
16983         * tests/test-wcrtomb-w32-4.sh: New file.
16984         * tests/test-wcrtomb-w32-5.sh: New file.
16985         * tests/test-wcrtomb-w32.c: New file.
16986         * modules/wcrtomb-tests (Files): Add them.
16987         (Makefile.am): Arrange to run these tests.
16988         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
16989         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
16990
16991 2011-02-20  Bruno Haible  <bruno@clisp.org>
16992
16993         wcrtomb: Enhance test.
16994         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
16995
16996 2011-02-20  Bruno Haible  <bruno@clisp.org>
16997
16998         mbrtowc: Tiny optimization.
16999         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
17000
17001 2011-02-20  Jim Meyering  <meyering@redhat.com>
17002
17003         test-exclude.c: remove unmatched #endif
17004         * tests/test-exclude.c: Remove stray #endif, left over from
17005         the change of a week ago.
17006
17007 2011-02-19  Jim Meyering  <meyering@redhat.com>
17008
17009         git-version-gen: skip "-dirty" check when appropriate
17010         * build-aux/git-version-gen: Don't run any git commands when the
17011         version string comes from .tarball-version.  Prior to this, we
17012         would run git update-index --refresh even from a just-unpacked
17013         tarball directory, and that could affect a .git/ directory in a
17014         parent of the build directory.  Reported by Mike Frysinger.
17015
17016 2011-02-19  Bruno Haible  <bruno@clisp.org>
17017
17018         unictype/property-byname: Reduce the size of the 'data' segment.
17019         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
17020
17021 2011-02-19  Bruno Haible  <bruno@clisp.org>
17022
17023         unictype/scripts: Reduce the size of the 'data' segment.
17024         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
17025         '%pic'.
17026         * lib/unictype/scripts_byname.gperf: Regenerated.
17027
17028 2011-02-19  Bruno Haible  <bruno@clisp.org>
17029
17030         stdint: Update documentation.
17031         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
17032
17033 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
17034
17035         stdint: omit redundant check for wchar.h
17036         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
17037         always tests whether wchar.h exists, so remove the now-redundant test.
17038
17039 2011-02-18  Bruno Haible  <bruno@clisp.org>
17040
17041         stdint: Cut dependency to module 'wchar'.
17042         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
17043         include the necessary prerequisites.
17044         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
17045         * modules/stdint (Depends-on): Remove wchar.
17046         (Makefile.am): Substitute HAVE_WCHAR_H.
17047         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
17048
17049 2011-02-18  Eric Blake  <eblake@redhat.com>
17050
17051         longlong: skip, rather than fail, on cross-compilation
17052         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
17053         when cross-compiling; regression from 2011-02-16.
17054
17055 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
17056
17057         * NEWS: Mention 2011-02-08 change to stdlib.
17058
17059 2011-02-17  Bruno Haible  <bruno@clisp.org>
17060
17061         getloadavg: Add comments about platforms.
17062         * m4/getloadavg.m4: Add comment.
17063         * lib/getloadavg.c: Likewise.
17064
17065 2011-02-17  Bruno Haible  <bruno@clisp.org>
17066
17067         getloadavg: Fix link error on Solaris 2.6.
17068         * modules/getloadavg (Link): New section.
17069         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
17070         linking test-getloadavg.
17071         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
17072         getloadavg.
17073
17074 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
17075
17076         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
17077         It was 'int', but this doesn't match the IRIX 6.5 manual.
17078         Suggested by Bruno Haible in
17079         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00207.html>.
17080
17081 2011-02-17  Bruno Haible  <bruno@clisp.org>
17082
17083         havelib: Fix comments.
17084         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
17085         change.
17086
17087 2011-02-17  Bruno Haible  <bruno@clisp.org>
17088
17089         havelib: Update config.rpath.
17090         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
17091
17092 2011-02-17  Bruno Haible  <bruno@clisp.org>
17093
17094         getloadavg test: Add some plausibility checks.
17095         * tests/test-getloadavg.c (check_avg): Print a warning when the value
17096         is improbable.
17097
17098 2011-02-16  Eric Blake  <eblake@redhat.com>
17099
17100         maintainer-makefile: make syntax-check a no-op from tarballs
17101         * top/maint.mk (no-vc-detected): New rule.
17102         (local-checks-available): Use it to avoid hanging if someone tries
17103         'make syntax-check' from a tarball.  Also append to any non-syntax
17104         checks already defined in cfg.mk.
17105
17106 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
17107
17108         longlong: tune, particularly for common case of c99
17109
17110         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
17111         or running anything if c99, or if unsigned long long int does not
17112         work.  In either case, we know the answer without further tests.
17113         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
17114         it at most once, and use its results for both long long int and
17115         unsigned long long int.  This is more likely to be efficient in
17116         the common case where the program wants to check for both long
17117         long int and unsigned long long int.
17118         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
17119         since the answer is already known.
17120
17121 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
17122
17123         getloadavg: set errno
17124         * lib/getloadavg.c: Set errno when returning -1.  If no other
17125         error number looks appropriate, set it to ENOSYS if the getloadavg
17126         looks like it can't possibly ever work, ENOTSUP otherwise.
17127         Suggested by Bruno Haible in
17128         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00187.html>.
17129
17130         getloadavg: trim unused parts and speed up 'configure'
17131         * NEWS: Document this.
17132         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
17133         always compiled if getloadavg is absent.
17134         Move test code to ...
17135         * tests/test-getloadavg.c: New file, containing previous
17136         contents of test from lib/getloadavg.c.  It also contains
17137         suggestions by Bruno Haible in
17138         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00186.html>.
17139         * modules/getloadavg-tests: New file.
17140         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
17141         Do tests in the same order as they're needed for getloadavg.c.
17142         Omit setgid-related tests that generate symbols KMEM_GROUP,
17143         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
17144         Do only the tests that are needed to see whether the system has
17145         getloadavg, moving the other tests into ...
17146         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
17147         NLIST_NAME_UNION; nobody should be using it.  Do not define
17148         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
17149         relevant, as the user of this module shouldn't care how getloadavg
17150         is implemented.
17151
17152         getloadavg: omit unused var
17153         * lib/getloadavg.c (getloadavg): Omit unused local variable.
17154
17155 2011-02-15  Jim Meyering  <meyering@redhat.com>
17156
17157         doc: update users.txt
17158         * users.txt: Update iwhd's URL.
17159
17160 2011-02-13  Bruno Haible  <bruno@clisp.org>
17161
17162         Consistent macro naming for macros that use GCC __attribute__.
17163         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
17164         _ATTRIBUTE_NONNULL_.
17165         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
17166         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
17167         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
17168         ATTRIBUTE_DEPRECATED.
17169         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
17170         ATTRIBUTE_NORETURN.
17171         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
17172         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
17173         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
17174         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
17175         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
17176         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
17177         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
17178         ATTRIBUTE_SENTINEL.
17179         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
17180         ATTRIBUTE_RETURN_CHECK.
17181         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
17182         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
17183         ATTRIBUTE_NORETURN.
17184         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
17185         Reported by Paul Eggert.
17186
17187 2011-02-13  Bruno Haible  <bruno@clisp.org>
17188
17189         Don't interfere with a program's definition of __attribute__.
17190         * lib/argp.h (__attribute__): Remove definition.
17191         (_GL_ATTRIBUTE_FORMAT): New macro.
17192         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
17193         * lib/argp-fmtstream.h (__attribute__): Remove definition.
17194         (_GL_ATTRIBUTE_FORMAT): New macro.
17195         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
17196         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
17197         GCC 3 or newer.
17198         * lib/error.h (__attribute__): Remove definition.
17199         (_GL_ATTRIBUTE_FORMAT): New macro.
17200         (error, error_at_line): Use it.
17201         * lib/hash.h (__attribute__): Remove definition.
17202         (ATTRIBUTE_WUR): Update definition. Define always.
17203         * lib/openat.h (__attribute__): Remove definition.
17204         (ATTRIBUTE_NORETURN): Update definition. Define always.
17205         * lib/sigpipe-die.h (__attribute__): Remove definition.
17206         (ATTRIBUTE_NORETURN): Update definition. Define always.
17207         * lib/vasnprintf.h (__attribute__): Remove definition.
17208         (_GL_ATTRIBUTE_FORMAT): New macro.
17209         (asnprintf, vasnprintf): Use it.
17210         * lib/xalloc.h (__attribute__): Remove definition.
17211         (ATTRIBUTE_NORETURN): Update definition. Define always.
17212         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
17213         * lib/xmemdup0.h (__attribute__): Remove definition.
17214         (ATTRIBUTE_NORETURN): Update definition. Define always.
17215         * lib/xprintf.h (__attribute__): Remove definition.
17216         (_GL_ATTRIBUTE_FORMAT): New macro.
17217         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
17218         * lib/xstrtol.h (__attribute__): Remove definition.
17219         (ATTRIBUTE_NORETURN): Update definition. Define always.
17220         * lib/xvasprintf.h (__attribute__): Remove definition.
17221         (_GL_ATTRIBUTE_FORMAT): New macro.
17222         (xasprintf, xvasprintf): Use it.
17223         * tests/test-argmatch.c (__attribute__): Remove definition.
17224         (ATTRIBUTE_NORETURN): Update definition. Define always.
17225         * tests/test-exclude.c (__attribute__): Remove definition.
17226         (ATTRIBUTE_NORETURN): Update definition. Define always.
17227         Reported by Paul Eggert.
17228
17229 2011-02-13  Bruno Haible  <bruno@clisp.org>
17230
17231         mbrtowc: Add more tests for native Windows platforms.
17232         * tests/test-mbrtowc-w32-1.sh: New file.
17233         * tests/test-mbrtowc-w32-2.sh: New file.
17234         * tests/test-mbrtowc-w32-3.sh: New file.
17235         * tests/test-mbrtowc-w32-4.sh: New file.
17236         * tests/test-mbrtowc-w32-5.sh: New file.
17237         * tests/test-mbrtowc-w32.c: New file.
17238         * modules/mbrtowc-tests (Files): Add them.
17239         (Makefile.am): Arrange to run these tests.
17240         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
17241         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
17242
17243 2011-02-13  Bruno Haible  <bruno@clisp.org>
17244
17245         mbrtowc: Work around native Windows bug.
17246         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
17247         guess when no suitable locale for testing was found.
17248         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
17249
17250 2011-02-13  Bruno Haible  <bruno@clisp.org>
17251
17252         mbsinit: Work around mingw bug.
17253         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
17254         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
17255         Windows.
17256         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
17257
17258 2011-02-13  Bruno Haible  <bruno@clisp.org>
17259
17260         mbsinit: Don't crash for a NULL argument.
17261         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
17262         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
17263
17264 2011-02-13  Bruno Haible  <bruno@clisp.org>
17265
17266         Don't interfere with a program's definition of __attribute__.
17267         * lib/stdio.in.h (__attribute__): Remove definition.
17268         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
17269         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
17270         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
17271         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
17272         * lib/string.in.h (__attribute__): Remove definition.
17273         Reported by Paul Eggert.
17274
17275 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
17276
17277         stdlib: don't get in the way of non-GCC __attribute__
17278         See thread starting at
17279         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00161.html>.
17280         Revert previous stdlib change, installing the following instead:
17281         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
17282         to get in the way of a non-GCC compiler that supports __attribute__.
17283         (_GL_ATTRIBUTE_RETURN): New macro.
17284         (_Exit): Use it instead of __attribute__.
17285
17286 2011-02-12  Bruno Haible  <bruno@clisp.org>
17287
17288         quotearg test: Avoid test failure on mingw.
17289         * tests/test-quotearg.sh: Convert the locale identifier from native
17290         Windows syntax to Unix syntax.
17291
17292 2011-02-12  Bruno Haible  <bruno@clisp.org>
17293
17294         setlocale: Prefer gnulib's override over libintl's override.
17295         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
17296         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
17297         GNULIB_defined_setlocale is set.
17298
17299 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
17300
17301         stdlib: support non-GCC __attribute__
17302
17303         Fix a serious and tricky problem encountered when attempting to
17304         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
17305         5.5, but it crashed due to memory corruption on Solaris 10 with
17306         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
17307         bits that are otherwise zero.  This tagging is optional inside
17308         Emacs but is preferred and is used when __attribute__ ((__aligned
17309         (8))) works, as it does with both recent-enough GCC and with Sun C
17310         5.11.  However, Sun C 5.11 is not GCC and does not #define
17311         __GNUC__ and __GNUC_MINOR__.
17312
17313         When I added the getloadavg module to Emacs, it brought in
17314         stdlib.in.h, which contained this fragment:
17315
17316            #ifndef __attribute__
17317            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
17318            #  define __attribute__(Spec)   /* empty */
17319            # endif
17320            #endif
17321
17322         When files that include <stdlib.h> were compiled with Sun C 5.11,
17323         the above code disabled __attribute__ ((__aligned (8))), which
17324         caused variables to not be properly aligned, which eventually led
17325         to the pointer corruption mentioned above.  (This was a bit hard
17326         to diagnose, unfortunately.)
17327
17328         Several "#define __attribute__(X) /* empty */" code snippets need
17329         to be eradicated from Gnulib to work with non-GCC compilers that
17330         support __attribute__.  The Autoconf way to do this is to test for
17331         each kind of attribute that we want support for, and selectively
17332         enable that in source code.
17333
17334         Fix this problem just for stdlib.h, by adding a test for the
17335         __noreturn__ attribute, and change stdlib.in.h to use that test
17336         when needed.  This technique can be easily generalized to the
17337         other *.in.h files and attributes, and a similar technique can be
17338         used for *.h and *.c files.  This patch is enough to solve the
17339         problem for Emacs + getloadavg, and I thought I'd publish it for
17340         feedback before undertaking further, similar fixes in other
17341         modules.
17342
17343         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
17344         because it's not needed for stdlib.h.  It merely substitutes the
17345         value directly into stdlib.h.  We may well need to #define it, or
17346         similar symbols, for other modules, but it's nice to also have an
17347         option to not #define it for applications like Emacs that do not
17348         need it.
17349
17350         * lib/stdlib.in.h (__attribute__): Do not #define.
17351         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
17352         be defined only if the _Exit module is also used.
17353         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
17354         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
17355         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
17356         platforms.
17357         * modules/_Exit (Files): Add m4/attribute.m4.
17358         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
17359         * m4/attribute.m4: New file.
17360
17361 2011-02-12  Bruno Haible  <bruno@clisp.org>
17362
17363         wcsrtombs: Work around bug on native Windows.
17364         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
17365         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
17366         instead of len.
17367         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
17368
17369 2011-02-12  Bruno Haible  <bruno@clisp.org>
17370
17371         mbsrtowcs: Work around bug on native Windows.
17372         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
17373         against mingw bug.
17374         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
17375
17376 2011-02-12  Bruno Haible  <bruno@clisp.org>
17377
17378         Avoid setlocale bugs in tests.
17379         * modules/btowc (Dependencies): Add setlocale.
17380         * modules/c-strcase (Dependencies): Likewise.
17381         * modules/mbmemcasecmp (Dependencies): Likewise.
17382         * modules/mbmemcasecoll (Dependencies): Likewise.
17383         * modules/mbrtowc (Dependencies): Likewise.
17384         * modules/mbscasecmp (Dependencies): Likewise.
17385         * modules/mbscasestr (Dependencies): Likewise.
17386         * modules/mbschr (Dependencies): Likewise.
17387         * modules/mbscspn (Dependencies): Likewise.
17388         * modules/mbsinit (Dependencies): Likewise.
17389         * modules/mbsncasecmp (Dependencies): Likewise.
17390         * modules/mbsnrtowcs (Dependencies): Likewise.
17391         * modules/mbspbrk (Dependencies): Likewise.
17392         * modules/mbspcasecmp (Dependencies): Likewise.
17393         * modules/mbsrchr (Dependencies): Likewise.
17394         * modules/mbsrtowcs (Dependencies): Likewise.
17395         * modules/mbsspn (Dependencies): Likewise.
17396         * modules/mbsstr (Dependencies): Likewise.
17397         * modules/nl_langinfo (Dependencies): Likewise.
17398         * modules/quotearg (Dependencies): Likewise.
17399         * modules/unicase/locale-language (Dependencies): Likewise.
17400         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
17401         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
17402         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
17403         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
17404         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
17405         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
17406         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
17407         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
17408         * modules/vasnprintf-posix (Dependencies): Likewise.
17409         * modules/wcrtomb (Dependencies): Likewise.
17410         * modules/wcsnrtombs (Dependencies): Likewise.
17411         * modules/wcsrtombs (Dependencies): Likewise.
17412
17413 2011-02-12  Bruno Haible  <bruno@clisp.org>
17414
17415         setlocale: Workaround native Windows bug.
17416         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
17417         succeeds but sets LC_CTYPE to "C", report a failure.
17418         * tests/test-setlocale2.sh: New file.
17419         * tests/test-setlocale2.c: New file.
17420         * modules/setlocale-tests (Files): Add the new files.
17421         (Makefile.am): Enable test-setlocale2.sh test.
17422         * doc/posix-functions/setlocale.texi: Mention workaround.
17423
17424 2011-02-11  Bruno Haible  <bruno@clisp.org>
17425
17426         Tests for module 'setlocale'.
17427         * modules/setlocale-tests: New file.
17428         * tests/test-setlocale1.sh: New file.
17429         * tests/test-setlocale1.c: New file.
17430
17431         New module 'setlocale'.
17432         * lib/locale.in.h (setlocale): New declaration.
17433         * lib/setlocale.c: New file, based on
17434         gettext/gettext-runtime/intl/setlocale.c.
17435         * m4/setlocale.m4: New file.
17436         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
17437         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
17438         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
17439         REPLACE_SETLOCALE.
17440         * modules/setlocale: New file.
17441         * tests/test-locale-c++.cc: Test the declaration of setlocale.
17442         * doc/posix-functions/setlocale.texi: Mention the new module.
17443
17444 2011-02-11  Bruno Haible  <bruno@clisp.org>
17445
17446         Prepare for locale dependent tests on mingw.
17447         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
17448         because it has the wrong locale encoding.
17449         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
17450         French_France.1252 instead of "fr".
17451         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
17452         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
17453         because it has the wrong locale encoding.
17454         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
17455         native Windows, try Turkish_Turkey.65001.
17456         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
17457         Chinese_China.54936.
17458
17459         Prepare for locale dependent tests on mingw.
17460         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
17461         differently.
17462         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
17463         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
17464         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
17465         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
17466
17467 2011-02-11  Eric Blake  <eblake@redhat.com>
17468
17469         strptime: avoid compiler warnings
17470         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
17471         compiler warnings about dead code.
17472         Reported by Daniel P. Berrange.
17473
17474 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
17475
17476         doc: update users.txt
17477         * users.txt: Add rcs.
17478
17479 2011-02-10  John W. Eaton  <jwe@gnu.org>
17480
17481         doc: update users.txt
17482         * users.txt: Add octave.
17483
17484 2011-02-10  Jim Meyering  <meyering@redhat.com>
17485
17486         doc: update users.txt
17487         * users.txt: Add iwhd.
17488
17489 2011-02-09  Bruno Haible  <bruno@clisp.org>
17490
17491         gnulib-tool: Make copyright notice adjustment more robust.
17492         * gnulib-tool (func_import): In sed_transform_main_lib_file,
17493         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
17494         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
17495         License".
17496         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
17497
17498 2011-02-06  Bruno Haible  <bruno@clisp.org>
17499
17500         New module 'towctrans'.
17501         * modules/towctrans: New file.
17502         * lib/wctype.in.h (towctrans): New declaration.
17503         * lib/towctrans.c: New file.
17504         * lib/towctrans-impl.h: New file.
17505         * m4/towctrans.m4: New file.
17506         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
17507         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
17508         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
17509         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
17510         * doc/posix-functions/towctrans.texi: Mention the new module.
17511
17512 2011-02-06  Bruno Haible  <bruno@clisp.org>
17513
17514         New module 'wctrans'.
17515         * modules/wctrans: New file.
17516         * lib/wctype.in.h (wctrans): New declaration.
17517         * lib/wctrans.c: New file.
17518         * lib/wctrans-impl.h: New file.
17519         * m4/wctrans.m4: New file.
17520         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
17521         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
17522         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
17523         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
17524         * doc/posix-functions/wctrans.texi: Mention the new module.
17525
17526 2011-02-06  Bruno Haible  <bruno@clisp.org>
17527
17528         New module 'iswctype'.
17529         * modules/iswctype: New file.
17530         * lib/wctype.in.h (iswctype): New declaration.
17531         * lib/iswctype.c: New file.
17532         * lib/iswctype-impl.h: New file.
17533         * m4/iswctype.m4: New file.
17534         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
17535         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
17536         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
17537         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
17538         * doc/posix-functions/iswctype.texi: Mention the new module and the
17539         HP-UX 11.00 problem.
17540
17541 2011-02-06  Bruno Haible  <bruno@clisp.org>
17542
17543         New module 'wctype'.
17544         * modules/wctype: Change to represent the wctype() substitute.
17545         * lib/wctype.in.h (wctype): New declaration.
17546         * lib/wctype.c: New file.
17547         * lib/wctype-impl.h: New file.
17548         * m4/wctype.m4: New file.
17549         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
17550         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
17551         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
17552         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
17553         * doc/posix-functions/wctype.texi: Mention the new module and the
17554         HP-UX 11.00 problem.
17555
17556 2011-02-06  Bruno Haible  <bruno@clisp.org>
17557
17558         wctype-h: Ensure wctype_t and wctrans_t are defined.
17559         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
17560         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
17561         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
17562         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
17563         HAVE_WCTRANS_T.
17564         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
17565
17566 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
17567
17568         flock: fix license typo
17569
17570         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
17571         omitted.
17572
17573 2011-02-08  Bruno Haible  <bruno@clisp.org>
17574
17575         Split large sed scripts, for HP-UX sed.
17576         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
17577         to avoid HP-UX limit of 99 commands, in the near future.
17578         * modules/stdlib (Makefile.am): Likewise.
17579         * modules/unistd (Makefile.am): Likewise.
17580         * modules/wchar (Makefile.am): Likewise.
17581         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
17582         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
17583         <http://lists.gnu.org/archive/html/bug-gnulib/2010-01/msg00216.html>.
17584
17585 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
17586             Bruno Haible  <bruno@clisp.org>
17587
17588         stdlib: improve random_r modularization
17589         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
17590         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
17591         you also need the random_r module to get this material right.
17592         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
17593         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
17594         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
17595
17596 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
17597
17598         stdlib: don't depend on stdint
17599         * lib/stdlib.in.h: Don't include <stdint.h> merely because
17600         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
17601         be independent of whether stdint.h is needed.
17602         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
17603         here, instead of ...
17604         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
17605         struct random_data should be using the random_r module, not just
17606         the stdlib module (which wouldn't make sense: what package needs
17607         just struct random_data without also needing random_r?).
17608         * modules/stdlib (Depends-on): Remove stdint.
17609
17610         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
17611         See the thread rooted at
17612         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00090.html>.
17613         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
17614         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
17615         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
17616         __VMS)); previously it was always included (via fcntl--.h).
17617         (getloadavg): Do not use c_strtod.  Instead, approximate it by
17618         hand; this is good enough for load averages.  Also, do not use
17619         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
17620         flags directly if available and don't bother otherwise.  (Packages
17621         that need the extra reliability should use the modules that define
17622         these flags on older platforms that lack them.)
17623         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
17624         fcntl-safer.
17625
17626 2011-02-08  Jim Meyering  <meyering@redhat.com>
17627
17628         di-set.h, ino-map.h: add multiple-inclusion guard
17629         Technically, the guard is required only for ino-map.h, due to its
17630         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
17631         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
17632         * lib/ino-map.h: Likewise.
17633
17634 2011-02-06  Bruno Haible  <bruno@clisp.org>
17635
17636         iswblank: Ensure declaration on glibc systems.
17637         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
17638         * modules/iswblank (Dependencies): Add 'extensions'.
17639         * doc/posix-functions/iswblank.texi: Document the glibc problem.
17640
17641 2011-02-06  Bruno Haible  <bruno@clisp.org>
17642
17643         New module 'iswblank'.
17644         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
17645         * modules/iswblank: New file.
17646         * modules/wctype-h (Files): Remove lib/iswblank.c.
17647         (Makefile.am): Substitute GNULIB_ISWBLANK.
17648         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
17649         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
17650         (gl_WCTYPE_H_DEFAULTS): New macro.
17651         (gl_WCTYPE_H): Require it. Remove iswblank related code.
17652         * modules/iswblank-tests: New file.
17653         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
17654         * tests/test-wctype-h.c (main): Remove iswblank tests.
17655         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
17656         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
17657         of 'wctype-h'.
17658         * NEWS: Mention the change.
17659         * modules/mbchar (Depends-on): Add iswblank.
17660
17661 2011-02-08  Bruno Haible  <bruno@clisp.org>
17662
17663         di-set tests: Refactor.
17664         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
17665         unnecessary includes.
17666         (ASSERT): Remove macro.
17667         (main): Make C90 compliant by avoiding variable declaration after
17668         statement.
17669         * modules/di-set-tests (Files): Add tests/macros.h.
17670
17671 2011-02-08  Bruno Haible  <bruno@clisp.org>
17672
17673         ino-map tests: Refactor.
17674         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
17675         unnecessary includes.
17676         (ASSERT): Remove macro.
17677         (main): Make C90 compliant by avoiding variable declaration after
17678         statement.
17679         * modules/ino-map-tests (Files): Add tests/macros.h.
17680
17681 2011-02-08  Jim Meyering  <meyering@redhat.com>
17682
17683         di-set: add "const" to a cast
17684         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
17685         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
17686
17687 2011-02-06  Bruno Haible  <bruno@clisp.org>
17688
17689         Rename module 'wctype' to 'wctype-h'.
17690         * modules/wctype-h: Renamed from modules/wctype.
17691         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
17692         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
17693         (Files, Depends-on, Makefile.am): Update.
17694         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
17695         (Files, Makefile.am): Update.
17696         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
17697         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
17698         * doc/posix-headers/wctype.texi: Update.
17699         * doc/posix-functions/iswalnum.texi: Update.
17700         * doc/posix-functions/iswalpha.texi: Update.
17701         * doc/posix-functions/iswblank.texi: Update.
17702         * doc/posix-functions/iswcntrl.texi: Update.
17703         * doc/posix-functions/iswdigit.texi: Update.
17704         * doc/posix-functions/iswgraph.texi: Update.
17705         * doc/posix-functions/iswlower.texi: Update.
17706         * doc/posix-functions/iswprint.texi: Update.
17707         * doc/posix-functions/iswpunct.texi: Update.
17708         * doc/posix-functions/iswspace.texi: Update.
17709         * doc/posix-functions/iswupper.texi: Update.
17710         * doc/posix-functions/iswxdigit.texi: Update.
17711         * doc/posix-functions/towlower.texi: Update.
17712         * doc/posix-functions/towupper.texi: Update.
17713         * NEWS: Mention the change.
17714         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
17715         * modules/mbchar (Dependencies): Likewise.
17716         * modules/mbswidth (Dependencies): Likewise.
17717         * modules/quotearg (Dependencies): Likewise.
17718         * modules/regex (Dependencies): Likewise.
17719         * modules/wcscasecmp (Dependencies): Likewise.
17720         * modules/wcsncasecmp (Dependencies): Likewise.
17721         * modules/wcwidth (Dependencies): Likewise.
17722
17723 2011-02-06  Bruno Haible  <bruno@clisp.org>
17724
17725         New module 'wcswidth'.
17726         * modules/wcswidth: New file.
17727         * lib/wchar.in.h (wcswidth): New declaration.
17728         * lib/wcswidth.c: New file.
17729         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
17730         * m4/wcswidth.m4: New file.
17731         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
17732         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
17733         REPLACE_WCSWIDTH.
17734         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
17735         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
17736         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
17737         * doc/posix-functions/wcswidth.texi: Mention the new module.
17738
17739 2011-02-06  Bruno Haible  <bruno@clisp.org>
17740
17741         New module 'wcstok'.
17742         * modules/wcstok: New file.
17743         * lib/wchar.in.h (wcstok): New declaration.
17744         * lib/wcstok.c: New file.
17745         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
17746         * m4/wcstok.m4: New file.
17747         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
17748         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
17749         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
17750         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
17751         * doc/posix-functions/wcstok.texi: Mention the new module.
17752
17753 2011-02-06  Bruno Haible  <bruno@clisp.org>
17754
17755         New module 'wcsstr'.
17756         * modules/wcsstr: New file.
17757         * lib/wchar.in.h (wcsstr): New declaration.
17758         * lib/wcsstr.c: New file.
17759         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
17760         * m4/wcsstr.m4: New file.
17761         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
17762         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
17763         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
17764         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
17765         * doc/posix-functions/wcsstr.texi: Mention the new module.
17766
17767 2011-02-06  Bruno Haible  <bruno@clisp.org>
17768
17769         New module 'wcspbrk'.
17770         * modules/wcspbrk: New file.
17771         * lib/wchar.in.h (wcspbrk): New declaration.
17772         * lib/wcspbrk.c: New file.
17773         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
17774         * m4/wcspbrk.m4: New file.
17775         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
17776         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
17777         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
17778         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
17779         * doc/posix-functions/wcspbrk.texi: Mention the new module.
17780
17781 2011-02-06  Bruno Haible  <bruno@clisp.org>
17782
17783         New module 'wcsspn'.
17784         * modules/wcsspn: New file.
17785         * lib/wchar.in.h (wcsspn): New declaration.
17786         * lib/wcsspn.c: New file.
17787         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
17788         * m4/wcsspn.m4: New file.
17789         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
17790         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
17791         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
17792         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
17793         * doc/posix-functions/wcsspn.texi: Mention the new module.
17794
17795 2011-02-06  Bruno Haible  <bruno@clisp.org>
17796
17797         New module 'wcscspn'.
17798         * modules/wcscspn: New file.
17799         * lib/wchar.in.h (wcscspn): New declaration.
17800         * lib/wcscspn.c: New file.
17801         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
17802         * m4/wcscspn.m4: New file.
17803         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
17804         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
17805         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
17806         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
17807         * doc/posix-functions/wcscspn.texi: Mention the new module.
17808
17809 2011-02-06  Bruno Haible  <bruno@clisp.org>
17810
17811         New module 'wcsrchr'.
17812         * modules/wcsrchr: New file.
17813         * lib/wchar.in.h (wcsrchr): New declaration.
17814         * lib/wcsrchr.c: New file.
17815         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
17816         * m4/wcsrchr.m4: New file.
17817         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
17818         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
17819         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
17820         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
17821         * doc/posix-functions/wcsrchr.texi: Mention the new module.
17822
17823 2011-02-06  Bruno Haible  <bruno@clisp.org>
17824
17825         New module 'wcschr'.
17826         * modules/wcschr: New file.
17827         * lib/wchar.in.h (wcschr): New declaration.
17828         * lib/wcschr.c: New file.
17829         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
17830         * m4/wcschr.m4: New file.
17831         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
17832         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
17833         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
17834         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
17835         * doc/posix-functions/wcschr.texi: Mention the new module.
17836
17837 2011-02-06  Bruno Haible  <bruno@clisp.org>
17838
17839         New module 'wcsdup'.
17840         * modules/wcsdup: New file.
17841         * lib/wchar.in.h (wcsdup): New declaration.
17842         * lib/wcsdup.c: New file.
17843         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
17844         * m4/wcsdup.m4: New file.
17845         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
17846         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
17847         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
17848         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
17849         * doc/posix-functions/wcsdup.texi: Mention the new module.
17850
17851 2011-02-06  Bruno Haible  <bruno@clisp.org>
17852
17853         New module 'wcsxfrm'.
17854         * modules/wcsxfrm: New file.
17855         * lib/wchar.in.h (wcsxfrm): New declaration.
17856         * lib/wcsxfrm.c: New file.
17857         * lib/wcsxfrm-impl.h: New file.
17858         * m4/wcsxfrm.m4: New file.
17859         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
17860         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
17861         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
17862         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
17863         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
17864
17865 2011-02-06  Bruno Haible  <bruno@clisp.org>
17866
17867         New module 'wcscoll'.
17868         * modules/wcscoll: New file.
17869         * lib/wchar.in.h (wcscoll): New declaration.
17870         * lib/wcscoll.c: New file.
17871         * lib/wcscoll-impl.h: New file.
17872         * m4/wcscoll.m4: New file.
17873         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
17874         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
17875         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
17876         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
17877         * doc/posix-functions/wcscoll.texi: Mention the new module.
17878
17879 2011-02-06  Bruno Haible  <bruno@clisp.org>
17880
17881         New module 'wcsncasecmp'.
17882         * modules/wcsncasecmp: New file.
17883         * lib/wchar.in.h (wcsncasecmp): New declaration.
17884         * lib/wcsncasecmp.c: New file.
17885         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
17886         * m4/wcsncasecmp.m4: New file.
17887         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
17888         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
17889         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
17890         HAVE_WCSNCASECMP.
17891         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
17892         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
17893
17894 2011-02-06  Bruno Haible  <bruno@clisp.org>
17895
17896         New module 'wcscasecmp'.
17897         * modules/wcscasecmp: New file.
17898         * lib/wchar.in.h (wcscasecmp): New declaration.
17899         * lib/wcscasecmp.c: New file.
17900         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
17901         * m4/wcscasecmp.m4: New file.
17902         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
17903         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
17904         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
17905         HAVE_WCSCASECMP.
17906         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
17907         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
17908
17909 2011-02-05  Bruno Haible  <bruno@clisp.org>
17910
17911         New module 'wcsncmp'.
17912         * modules/wcsncmp: New file.
17913         * lib/wchar.in.h (wcsncmp): New declaration.
17914         * lib/wcsncmp.c: New file.
17915         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
17916         * m4/wcsncmp.m4: New file.
17917         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
17918         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
17919         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
17920         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
17921         * doc/posix-functions/wcsncmp.texi: Mention the new module.
17922
17923 2011-02-05  Bruno Haible  <bruno@clisp.org>
17924
17925         New module 'wcscmp'.
17926         * modules/wcscmp: New file.
17927         * lib/wchar.in.h (wcscmp): New declaration.
17928         * lib/wcscmp.c: New file.
17929         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
17930         * m4/wcscmp.m4: New file.
17931         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
17932         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
17933         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
17934         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
17935         * doc/posix-functions/wcscmp.texi: Mention the new module.
17936
17937 2011-02-05  Bruno Haible  <bruno@clisp.org>
17938
17939         New module 'wcsncat'.
17940         * modules/wcsncat: New file.
17941         * lib/wchar.in.h (wcsncat): New declaration.
17942         * lib/wcsncat.c: New file.
17943         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
17944         * m4/wcsncat.m4: New file.
17945         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
17946         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
17947         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
17948         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
17949         * doc/posix-functions/wcsncat.texi: Mention the new module.
17950
17951 2011-02-05  Bruno Haible  <bruno@clisp.org>
17952
17953         New module 'wcscat'.
17954         * modules/wcscat: New file.
17955         * lib/wchar.in.h (wcscat): New declaration.
17956         * lib/wcscat.c: New file.
17957         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
17958         * m4/wcscat.m4: New file.
17959         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
17960         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
17961         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
17962         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
17963         * doc/posix-functions/wcscat.texi: Mention the new module.
17964
17965 2011-02-05  Bruno Haible  <bruno@clisp.org>
17966
17967         New module 'wcpncpy'.
17968         * modules/wcpncpy: New file.
17969         * lib/wchar.in.h (wcpncpy): New declaration.
17970         * lib/wcpncpy.c: New file.
17971         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
17972         * m4/wcpncpy.m4: New file.
17973         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
17974         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
17975         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
17976         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
17977         * doc/posix-functions/wcpncpy.texi: Mention the new module.
17978
17979 2011-02-05  Bruno Haible  <bruno@clisp.org>
17980
17981         New module 'wcsncpy'.
17982         * modules/wcsncpy: New file.
17983         * lib/wchar.in.h (wcsncpy): New declaration.
17984         * lib/wcsncpy.c: New file.
17985         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
17986         * m4/wcsncpy.m4: New file.
17987         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
17988         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
17989         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
17990         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
17991         * doc/posix-functions/wcsncpy.texi: Mention the new module.
17992
17993 2011-02-05  Bruno Haible  <bruno@clisp.org>
17994
17995         New module 'wcpcpy'.
17996         * modules/wcpcpy: New file.
17997         * lib/wchar.in.h (wcpcpy): New declaration.
17998         * lib/wcpcpy.c: New file.
17999         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
18000         * m4/wcpcpy.m4: New file.
18001         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
18002         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
18003         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
18004         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
18005         * doc/posix-functions/wcpcpy.texi: Mention the new module.
18006
18007 2011-02-05  Bruno Haible  <bruno@clisp.org>
18008
18009         New module 'wcscpy'.
18010         * modules/wcscpy: New file.
18011         * lib/wchar.in.h (wcscpy): New declaration.
18012         * lib/wcscpy.c: New file.
18013         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
18014         * m4/wcscpy.m4: New file.
18015         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
18016         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
18017         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
18018         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
18019         * doc/posix-functions/wcscpy.texi: Mention the new module.
18020
18021 2011-02-05  Bruno Haible  <bruno@clisp.org>
18022
18023         New module 'wcsnlen'.
18024         * modules/wcsnlen: New file.
18025         * lib/wchar.in.h (wcsnlen): New declaration.
18026         * lib/wcsnlen.c: New file.
18027         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
18028         * m4/wcsnlen.m4: New file.
18029         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
18030         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
18031         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
18032         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
18033         * doc/posix-functions/wcsnlen.texi: Mention the new module.
18034
18035 2011-02-05  Bruno Haible  <bruno@clisp.org>
18036
18037         New module 'wcslen'.
18038         * modules/wcslen: New file.
18039         * lib/wchar.in.h (wcslen): New declaration.
18040         * lib/wcslen.c: New file.
18041         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
18042         * m4/wcslen.m4: New file.
18043         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
18044         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
18045         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
18046         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
18047         * doc/posix-functions/wcslen.texi: Mention the new module.
18048
18049 2011-02-05  Bruno Haible  <bruno@clisp.org>
18050
18051         New module 'wmemset'.
18052         * modules/wmemset: New file.
18053         * lib/wchar.in.h (wmemset): New declaration.
18054         * lib/wmemset.c: New file.
18055         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
18056         * m4/wmemset.m4: New file.
18057         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
18058         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
18059         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
18060         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
18061         * doc/posix-functions/wmemset.texi: Mention the new module.
18062
18063 2011-02-05  Bruno Haible  <bruno@clisp.org>
18064
18065         New module 'wmemmove'.
18066         * modules/wmemmove: New file.
18067         * lib/wchar.in.h (wmemmove): New declaration.
18068         * lib/wmemmove.c: New file.
18069         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
18070         * m4/wmemmove.m4: New file.
18071         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
18072         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
18073         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
18074         HAVE_WMEMMOVE.
18075         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
18076         * doc/posix-functions/wmemmove.texi: Mention the new module.
18077
18078 2011-02-05  Bruno Haible  <bruno@clisp.org>
18079
18080         New module 'wmemcpy'.
18081         * modules/wmemcpy: New file.
18082         * lib/wchar.in.h (wmemcpy): New declaration.
18083         * lib/wmemcpy.c: New file.
18084         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
18085         * m4/wmemcpy.m4: New file.
18086         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
18087         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
18088         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
18089         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
18090         * doc/posix-functions/wmemcpy.texi: Mention the new module.
18091
18092 2011-02-05  Bruno Haible  <bruno@clisp.org>
18093
18094         New module 'wmemcmp'.
18095         * modules/wmemcmp: New file.
18096         * lib/wchar.in.h (wmemcmp): New declaration.
18097         * lib/wmemcmp.c: New file.
18098         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
18099         * m4/wmemcmp.m4: New file.
18100         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
18101         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
18102         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
18103         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
18104         * doc/posix-functions/wmemcmp.texi: Mention the new module.
18105
18106 2011-02-07  Jim Meyering  <meyering@redhat.com>
18107
18108         di-set, ino-map: new modules, from coreutils
18109         * lib/di-set.c: New file.
18110         * lib/di-set.h: Likewise.
18111         * lib/ino-map.c: Likewise.
18112         * lib/ino-map.h: Likewise.
18113         * modules/di-set: Likewise.
18114         * modules/di-set-tests: Likewise.
18115         * modules/ino-map: Likewise.
18116         * modules/ino-map-tests: Likewise.
18117         * tests/test-di-set.c: Likewise.
18118         * tests/test-ino-map.c: Likewise.
18119
18120 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
18121
18122         getloadavg: merge minor changes from Emacs
18123
18124         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
18125         (getloadavg): Use memset, not bzero.
18126
18127         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
18128         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
18129         clash (bug#86).
18130
18131 2010-11-14  Bruno Haible  <bruno@clisp.org>
18132
18133         Allow multiple gnulib generated replacements to coexist.
18134         * lib/getopt.in.h (struct option): Avoid identical redefinition.
18135         * lib/inttypes.in.h (imaxdiv_t): Likewise.
18136         * lib/langinfo.in.h (nl_item): Likewise.
18137         * lib/math.in.h (_NaN, NAN): Likewise.
18138         * lib/netdb.in.h (struct addrinfo): Likewise.
18139         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
18140         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
18141         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
18142         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
18143         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
18144         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
18145         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
18146         pthread_mutexattr_init, pthread_mutexattr_settype,
18147         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
18148         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
18149         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
18150         pthread_spin_trylock, pthread_spin_unlock): Likewise.
18151         * lib/sched.in.h (struct sched_param): Likewise.
18152         * lib/se-selinux.in.h (security_class_t, security_context_t,
18153         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
18154         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
18155         lsetfilecon, fsetfilecon, security_check_context,
18156         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
18157         Likewise.
18158         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
18159         Likewise.
18160         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
18161         _gl_function_taking_int_returning_void_t, union sigval,
18162         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
18163         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
18164         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
18165         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
18166         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
18167         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
18168         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
18169         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
18170         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
18171         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
18172         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
18173         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
18174         socklen_t, rpl_fd_isset): Likewise.
18175         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
18176         * lib/sys_time.in.h (struct timeval): Likewise.
18177         * lib/sys_times.in.h (struct tms): Likewise.
18178         * lib/sys_utsname.in.h (struct utsname):
18179         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
18180         * lib/unistd.in.h (getpagesize): Likewise.
18181         * lib/wchar.in.h (mbstate_t): Likewise.
18182         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
18183         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
18184         towlower, towupper): Likewise.
18185         Reported by Sam Steingold <sds@gnu.org>.
18186
18187 2011-02-05  Eric Blake  <eblake@redhat.com>
18188
18189         unsetenv: work around Haiku issues
18190         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
18191         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
18192
18193 2010-12-30  Bruce Korb  <bkorb@gnu.org>
18194
18195         libposix: avoid calling error() within libposix
18196         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
18197         is defined.
18198
18199 2011-02-05  Eric Blake  <eblake@redhat.com>
18200
18201         strerror_r-posix: port to cygwin
18202         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
18203         implementation.
18204         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
18205         * tests/test-strerror_r.c (main): Fix test.
18206         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
18207         issue.
18208
18209 2011-02-05  Bruno Haible  <bruno@clisp.org>
18210
18211         New module 'wmemchr'.
18212         * modules/wmemchr: New file.
18213         * lib/wchar.in.h (wmemchr): New declaration.
18214         * lib/wmemchr.c: New file.
18215         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
18216         * m4/wmemchr.m4: New file.
18217         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
18218         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
18219         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
18220         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
18221         * doc/posix-functions/wmemchr.texi: Mention the new module.
18222
18223 2011-02-04  Eric Blake  <eblake@redhat.com>
18224
18225         fdopendir: detect FreeBSD bug
18226         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
18227         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
18228
18229 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
18230
18231         stdbool: do not define HAVE_STDBOOL_H
18232         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
18233         AC_HEADER_STDBOOL.  All uses changed.  Do not define
18234         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
18235         imported from the latest Autoconf git.  It was motivated by Emacs,
18236         which uses gnulib but does not need HAVE_STDBOOL_H.
18237
18238 2011-02-04  Bruno Haible  <bruno@clisp.org>
18239
18240         wcsnrtombs: Prepare for new module wwcsnrtombs.
18241         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
18242         * lib/wcsnrtombs.c: Include it.
18243         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
18244
18245         wcsrtombs: Prepare for new module wwcsrtombs.
18246         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
18247         * lib/wcsrtombs.c: Include it.
18248         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
18249
18250         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
18251         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
18252         * lib/mbsnrtowcs.c: Include it.
18253         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
18254
18255         mbsrtowcs: Prepare for new module mbsrtowwcs.
18256         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
18257         * lib/mbsrtowcs.c: Include it.
18258         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
18259
18260 2011-02-04  Bruno Haible  <bruno@clisp.org>
18261
18262         vasnprintf: Reduce use of malloc for small format strings.
18263         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
18264         (arguments): Add room for the first 7 arguments.
18265         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
18266         (char_directives, u8_directives, u16_directives, u32_directives): Add
18267         room for the first 7 directives.
18268         * lib/printf-parse.c: Include <string.h>.
18269         (PRINTF_PARSE): Change memory handling code so that it uses the first
18270         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
18271         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
18272         Reported by Pádraig Brady <P@draigbrady.com>.
18273
18274 2011-01-31  Eric Blake  <eblake@redhat.com>
18275
18276         dup2: work around Haiku bug
18277         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
18278         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
18279         * doc/posix-functions/dup2.texi (dup2): Document the bug.
18280         * tests/test-dup2.c (main): Enhance test.
18281
18282 2011-01-31  Simon Josefsson  <simon@josefsson.org>
18283
18284         doc: off_t is not available in eglibc 2.11.2 stdio.h.
18285         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
18286         declared by eglibc 2.11.2.
18287         * lib/stdio.in.h: Likewise.
18288
18289 2011-01-31  Eric Blake  <eblake@redhat.com>
18290
18291         ignore-value: add missing test dependency
18292         * tests/test-ignore-value.c: Revert previous change; stdio.h
18293         provides off_t.
18294         * modules/ignore-value-tests (Depends-on): Add missing dependency.
18295
18296 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
18297
18298         mktime: clarify long_int width checking
18299         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
18300         the top level, to make it clearer that the assumption about
18301         long_int width is being checked.  See
18302         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00554.html>.
18303
18304 2011-01-30  Simon Josefsson  <simon@josefsson.org>
18305
18306         ignore-value: Fix self-test.
18307         * tests/test-ignore-value.c: Include sys/types.h for off_t.
18308
18309 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
18310
18311         TYPE_MAXIMUM: avoid theoretically undefined behavior
18312         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
18313         negative number, which the C Standard says has undefined behavior.
18314         In practice this is not a problem, but might as well do it by the book.
18315         Reported by Rich Felker and Eric Blake; see
18316         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00493.html>.
18317         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
18318         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
18319         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
18320         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
18321         * m4/stdint.m4 (gl_STDINT_H): Likewise.
18322         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
18323
18324         mktime: #undef mktime before #defining it
18325         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
18326
18327         mktime: systematically normalize tm_isdst comparisons
18328         * lib/mktime.c (isdst_differ): New function.
18329         (__mktime_internal): Use it systematically for all isdst comparisons.
18330         This completes the fix for libc BZ #6723, and removes the need for
18331         normalizing tm_isdst.  See
18332         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
18333         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
18334
18335         mktime: fix some integer overflow issues and sidestep the rest
18336
18337         This was prompted by a bug report by Benjamin Lindner for MinGW
18338         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00472.html>.
18339         His bug is due to signed integer overflow (0 - INT_MIN), and I
18340         I scanned through mktime.c looking for other integer overflow
18341         problems, fixing all the bugs I found.
18342
18343         Although the C Standard says the resulting code is still not safe
18344         in the presence of integer overflow, in practice it should be good
18345         enough for all real-world two's-complement implementations, except
18346         for debugging environments that deliberately trap on integer
18347         overflow (e.g., gcc -ftrapv).
18348
18349         * lib/mktime.c (WRAPV): New macro.
18350         (SHR): Also check that long_int and time_t shift right in the
18351         usual way, before using the fast-but-unportable method.
18352         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
18353         used.  The code already assumed two's complement, so there's
18354         no need to test for alternatives.  All uses removed.
18355         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
18356         the C standard.  Problem reported by Rich Felker in
18357         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00488.html>.
18358         (twos_complement_arithmetic): Also check long_int and time_t.
18359         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
18360         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
18361         (__mktime_internal): Avoid integer overflow with unary subtraction
18362         in two instances where -1 - X is an adequate replacement for -X,
18363         since the calculations are approximate.
18364
18365 2011-01-29  Eric Blake  <eblake@redhat.com>
18366
18367         mktime: avoid infinite loop
18368         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
18369         type; behavior is still undefined but portable to all known targets.
18370         Reported by Rich Felker.
18371
18372 2011-01-29  Simon Josefsson  <simon@josefsson.org>
18373
18374         rename, unlink, same-inode: Relicense.
18375         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
18376         * modules/unlink (License): Likewise.
18377         * modules/same-inode (License): Likewise.
18378
18379 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
18380
18381         mktime: avoid problems on NetBSD 5 / i386
18382         * lib/mktime.c (long_int): New type.  This works around a problem
18383         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
18384         but time_t is 64 bits, and where I expect the existing code is
18385         wrong in some cases.
18386         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
18387         (ydhms_diff): Bring back the compile-time check for wide-enough
18388         year and yday.
18389
18390         mktime: fix misspelling in comment
18391         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
18392         This merges all recent glibc changes of importance.
18393
18394 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18395
18396         move-if-change: cope with concurrent mv of identical file.
18397         * build-aux/move-if-change (CMPPROG): Accept environment
18398         variable as an override for `cmp'.
18399         (usage): Document CMPPROG.
18400         Adjust comparison to drop stdout.  Cope with failure of mv if
18401         the target file exists and is identical to the source, for
18402         parallel builds.
18403         Report from H.J. Lu against binutils in PR binutils/12283.
18404
18405 2011-01-28  Bruce Korb  <bkorb@gnu.org>
18406
18407         * users.txt: Mention sharutils.
18408
18409 2011-01-28  Simon Josefsson  <simon@josefsson.org>
18410
18411         * users.txt: Mention OATH Toolkit.
18412
18413 2011-01-27  Bruno Haible  <bruno@clisp.org>
18414
18415         Prepare for supporting FreeBSD 10.
18416         * build-aux/config.libpath: Remove handling of freebsd1*.
18417
18418 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
18419
18420         Prepare for supporting FreeBSD 10.
18421         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
18422         match FreeBSD 10.0.
18423
18424 2011-01-27  Bruno Haible  <bruno@clisp.org>
18425
18426         vma-iter, get-rusage-as: Add OpenBSD support.
18427         * modules/vma-iter (configure.ac): Test for mquery.
18428         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
18429         * lib/vma-iter.c: Include <sys/mman.h>.
18430         (vma_iterate): Add an implementation based on mquery().
18431         * lib/resource-ext.h (get_rusage_as): Update comments.
18432         * lib/get-rusage-as.c: Likewise.
18433         * lib/get-rusage-data.c: Likewise.
18434
18435 2011-01-26  Karl Berry  <karl@gnu.org>
18436
18437         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
18438         variables to make it easier to override the makeinfo program used.
18439
18440 2011-01-26  Eric Blake  <eblake@redhat.com>
18441
18442         fcntl: work around Haiku F_DUPFD bugs
18443         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
18444         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
18445         cloexec bit on duplication.
18446         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
18447
18448 2011-01-26  Bruno Haible  <bruno@clisp.org>
18449
18450         Enable memory leak tests on AIX.
18451         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
18452         * tests/test-fprintf-posix3.c (main): Likewise.
18453
18454 2011-01-26  Bruno Haible  <bruno@clisp.org>
18455
18456         Tests for module 'get-rusage-data'.
18457         * modules/get-rusage-data-tests: New file.
18458         * tests/test-get-rusage-data.c: New file.
18459
18460         New module 'get-rusage-data'.
18461         * lib/resource-ext.h (get_rusage_data): New declaration.
18462         * lib/get-rusage-data.c: New file.
18463         * modules/get-rusage-data: New file.
18464
18465 2011-01-25  Bruno Haible  <bruno@clisp.org>
18466
18467         get-rusage-as: Allow for easier testing.
18468         * lib/resource-ext.h (get_rusage_as): Add comment.
18469         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
18470         (main): New function for interactive testing.
18471
18472 2011-01-25  Bruno Haible  <bruno@clisp.org>
18473
18474         vma-iter: Treat Haiku like BeOS.
18475         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
18476         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
18477
18478 2011-01-25  Eric Blake  <eblake@redhat.com>
18479
18480         c-stack: fix regression on cygwin when libsigsegv is present
18481         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
18482
18483 2011-01-24  Bruno Haible  <bruno@clisp.org>
18484
18485         vma-iter: Avoid empty intervals.
18486         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
18487         on an empty interval.
18488
18489 2011-01-24  Jim Meyering  <meyering@redhat.com>
18490
18491         u64: remove unnecessary #include
18492         * lib/u64.h: Don't include <stddef.h>.  It was not used.
18493
18494 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
18495
18496         Allow the user to avoid the HAVE_RAW_DECL_* macros.
18497         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
18498
18499 2011-01-23  Bruno Haible  <bruno@clisp.org>
18500
18501         New module 'vma-iter'.
18502         * lib/vma-iter.h: New file.
18503         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
18504         * modules/vma-iter: New file.
18505         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
18506         for get_rusage_as_via_iterator.
18507         (vma_iterate_callback): New function.
18508         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
18509         * modules/get-rusage-as (Depends-on): Add vma-iter.
18510
18511 2011-01-23  Bruno Haible  <bruno@clisp.org>
18512
18513         uninorm: Tweak includes.
18514         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
18515         Reported by Jim Meyering.
18516
18517 2011-01-23  Bruno Haible  <bruno@clisp.org>
18518
18519         get-rusage-as: Improve on NetBSD.
18520         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
18521         /proc, like on FreeBSD.
18522
18523 2011-01-23  Jim Meyering  <meyering@redhat.com>
18524
18525         xreadlink.h: remove unnecessary #include
18526         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
18527
18528         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
18529         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
18530
18531 2011-01-23  Bruno Haible  <bruno@clisp.org>
18532
18533         get-rusage-as: Fix bug.
18534         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
18535         original limit when aborting the first loop.
18536
18537 2011-01-23  Bruno Haible  <bruno@clisp.org>
18538
18539         wctype: Ensure valid C syntax.
18540         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
18541         unconditionally, instead of gl_NEXT_HEADERS conditionally.
18542
18543 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
18544
18545         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
18546         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
18547         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
18548         as they are needed only for configure's test case.
18549         This removes two unnecessary symbols from config.h.
18550
18551         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
18552         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
18553         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
18554         AC_CHECK_HEADERS_ONCE on a header that we also invoke
18555         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
18556         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
18557         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
18558         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
18559         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
18560         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
18561         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
18562         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
18563         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
18564         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
18565         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
18566         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
18567         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
18568         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
18569
18570 2011-01-21  Eric Blake  <eblake@redhat.com>
18571
18572         maintainer-makefile: work with older git for submodule check
18573         * top/maint.mk (public-submodule-commit): Rewrite to avoid
18574         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
18575         Reported by Matthias Bolte.
18576
18577         bootstrap: minor portability fixes
18578         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
18579         (usage): Omit leading capital and trailing . on help phrases, per
18580         GNU Coding Standards.
18581         (check_versions, top level): Prefix messages with script name.
18582
18583 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
18584
18585         bootstrap: support --no-git option
18586         * build-aux/bootstrap: Add --no-git option, to be used when
18587         --gnulib-srcdir points to the exact desired checkout.
18588
18589 2011-01-21  Eric Blake  <eblake@redhat.com>
18590
18591         strerror_r-posix: work with glibc 2.13
18592         * lib/strerror_r.c (strerror_r): Fix return type.
18593
18594 2011-01-21  Pádraig Brady  <P@draigBrady.com>
18595             Bruno Haible  <bruno@clisp.org>
18596
18597         uN_strstr: New unit tests.
18598         * modules/unistr/u8-strstr-tests: New file.
18599         * modules/unistr/u16-strstr-tests: New file.
18600         * modules/unistr/u32-strstr-tests: New file.
18601         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
18602         * tests/unistr/test-u8-strstr.c: New file.
18603         * tests/unistr/test-u16-strstr.c: New file.
18604         * tests/unistr/test-u32-strstr.c: New file.
18605
18606 2011-01-21  Pádraig Brady  <P@draigBrady.com>
18607             Bruno Haible  <bruno@clisp.org>
18608
18609         Make uN_strstr functions O(n) worst-case.
18610         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
18611         16-bit and 32-bit unit cases, use the unibyte algorithm from
18612         lib/mbsstr.c.
18613         * lib/unistr/u8-strstr.c: Include <string.h>.
18614         (UNIT_IS_UINT8_T): New macro.
18615         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
18616         (U_STRLEN, U_STRNLEN): New macros.
18617         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
18618         (U_STRLEN, U_STRNLEN): New macros.
18619         * modules/unistr/u8-strstr (Depends-on): Add strstr.
18620         (configure.ac): Update required libunistring version.
18621         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
18622         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
18623         malloca.
18624         (configure.ac): Update required libunistring version.
18625         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
18626         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
18627         malloca.
18628         (configure.ac): Update required libunistring version.
18629
18630 2011-01-21  Pádraig Brady  <P@draigBrady.com>
18631             Bruno Haible  <bruno@clisp.org>
18632
18633         Prepare for faster uN_strstr functions.
18634         * lib/str-kmp.h: Support definable UNITs.
18635         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
18636         needle_len argument.
18637         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
18638         * lib/mbscasestr.c (mbscasestr): Likewise.
18639
18640 2011-01-21  Pádraig Brady <P@draigBrady.com>
18641
18642         malloca-tests: make faster by unsetting MALLOC_PERTURB_
18643         * tests/test-malloca.c (main): Unset the environment variable
18644         to greatly speed up the test.
18645         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
18646         * modules/malloca-tests: Depend on unsetenv.
18647
18648 2011-01-21  Pádraig Brady <P@draigBrady.com>
18649
18650         ignore-value: remove stdint dependency
18651         * lib/ignore-value.h: Remove <stdint.h>
18652         * modules/ignore-value: Remove stdint dependency.
18653
18654 2011-01-21  Jim Meyering  <meyering@redhat.com>
18655
18656         maint.mk: adjust variable name to be consistent with other gl_ vars
18657         * top/maint.mk (gl_public_submodule_commit): Rename the variable
18658         to be lower case.
18659
18660 2011-01-20  Jim Meyering  <meyering@redhat.com>
18661
18662         maint.mk: make "check" depend on public-submodule-commit by default
18663         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
18664
18665 2011-01-20  Bruno Haible  <bruno@clisp.org>
18666
18667         mbfile, mbiter: Complete change from 2008-12-21.
18668         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
18669         * m4/mbiter.m4 (gl_MBITER): Likewise.
18670
18671 2011-01-20  Jim Meyering  <meyering@redhat.com>
18672
18673         init.sh: insert space between each function name and "()"
18674         * tests/init.sh: Make it a little easier to see that a function's
18675         name is "warn_", and not "warn" when looking at the first part of
18676         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
18677
18678 2011-01-20  Jim Meyering  <meyering@redhat.com>
18679
18680         mountlist: clean up code formatting
18681         * lib/mountlist.c (read_file_system_list): Split a long line,
18682         correct bracing style, use NULL in place of "(struct statfs *)0",
18683         don't parenthesize return value, add spaces around "=" and after
18684         ";-in-for-stmt".
18685
18686 2011-01-14  Markus Duft <mduft@gentoo.org>
18687
18688         mountlist: add support for Interix
18689         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
18690         Apply statvfs to all entries of /dev/fs.
18691         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
18692         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
18693
18694 2011-01-20  Jim Meyering  <meyering@redhat.com>
18695
18696         maint.mk: improve the public-submodule-commit rule
18697         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
18698         to suppress printing of its commands... unless V=1.
18699         Add git submodule's --quiet option to suppress printing of e.g.,
18700         "Entering gnulib" output.
18701         "cd" into $(srcdir) before running git submodule.
18702
18703 2011-01-20  Bruno Haible  <bruno@clisp.org>
18704
18705         include_next: Fix bug introduced on 2011-01-18.
18706         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
18707         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
18708         ac_cv_header_... variable if the second argument is not 'check'.
18709         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
18710         gl_NEXT_HEADERS_INTERNAL.
18711
18712 2011-01-20  Bruno Haible  <bruno@clisp.org>
18713
18714         Allow the user to avoid the GNULIB_TEST_* macros.
18715         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
18716         Suggested by Paul Eggert.
18717
18718 2011-01-14  Jim Meyering  <meyering@redhat.com>
18719
18720         bootstrap: avoid failure when there is no .gitmodules file
18721         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
18722         has been assigned to, even when its value is the empty string.
18723         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
18724         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
18725         Reported by John W. Eaton <jwe@gnu.org>.
18726
18727 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
18728
18729         assume <ctype.h>, ..., <time.h> exist
18730         For years gnulib has been assuming the existence of the headers
18731         <ctime.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
18732         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
18733         them, since they don't appear to be needed.
18734         * README (Portability guidelines): Document this.
18735         * lib/flock.c: Assume <fcntl.h> exists.
18736         * lib/regex_internal.h: Assume <locale.h> exists.
18737         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
18738         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
18739         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
18740         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
18741         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
18742         * m4/regex.m4 (gl_REGEX): Likewise.
18743         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
18744         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
18745         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
18746         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
18747         * tests/test-argp.c: Likewise.
18748         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
18749
18750         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
18751         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
18752         AA_APPLE_UNIVERSAL_BUILD.  See
18753         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00247.html>.
18754         * NEWS: Document this.
18755
18756 2011-01-19  Eric Blake  <eblake@redhat.com>
18757
18758         c-stack: assume stack overflow if SA_SIGINFO unsupported
18759         * lib/c-stack.c (SIGACTION_WORKS): Rename...
18760         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
18761         sigaction will work.
18762         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
18763         behavior match Linux.
18764         * tests/test-c-stack.c (main): Prefer NULL for pointers.
18765
18766         stdbool-tests: accomodate Haiku
18767         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
18768
18769         binary-io: fix O_TEXT on Haiku
18770         * modules/binary-io (Depends-on): Add fcntl-h.
18771         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
18772         than blindly undefining O_TEXT.
18773         Reported by Scott McCreary.
18774
18775 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
18776
18777         include_next: do not check for standard headers like stddef.h
18778
18779         I found this problem when modifying Emacs to use gnulib.
18780         I noticed that it added HAVE_STDDEF_H to config.h, even though
18781         gnulib always assumes <stddef.h> exists as per README and this
18782         symbol is unnecessary.
18783         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
18784         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
18785         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
18786         faster for headers like stddef.h that are known to exist.
18787         (gl_CHECK_NEXT_HEADERS): Use it.
18788         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
18789         rather than gl_CHECK_NEXT_HEADERS.
18790         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
18791         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
18792
18793 2011-01-18  Eric Blake  <eblake@redhat.com>
18794
18795         ansi-c++-opt: skip C++ dependency style if C++ is unused
18796         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
18797         tests when we know C++ compilation is not desired.
18798         Reported by Scott McCreary.
18799
18800 2011-01-18  Bruno Haible  <bruno@clisp.org>
18801
18802         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
18803         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
18804         (main): Perform test also when getrlimit and setrlimit don't exist or
18805         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
18806         limiting the address space size using setrlimit, compare the address
18807         space size before and after the the test.
18808         * tests/test-dprintf-posix2.c: Likewise.
18809         * tests/test-fprintf-posix3.sh: Update skip messages.
18810         * tests/test-dprintf-posix2.sh: Likewise.
18811         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
18812         * modules/dprintf-posix-tests (Depends-on): Likewise.
18813         Reported by Bruce Korb <bkorb@gnu.org> and
18814         Gary V. Vaughan <gary@gnu.org>.
18815
18816 2011-01-18  Bruno Haible  <bruno@clisp.org>
18817
18818         get-rusage-as: Improvement for Cygwin.
18819         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
18820         areas that are merely reserved.
18821
18822 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
18823
18824         strftime: remove dependencies on multibyte modules
18825
18826         strftime depended on mbrlen, mbsinit, and wchar, but these modules
18827         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
18828         only if __osf__ is defined, and I suspect OSF doesn't need these
18829         other modules.  If my guess is wrong, we'll need to come up with a
18830         variant of strftime that doesn't need the multibyte modules.
18831
18832         I discovered this problem when attempting modify Emacs to use the
18833         strftime module.  With the previous gnulib, this caused Emacs to
18834         need 31 new files, ranging from lib/config.charset to
18835         m4/wint_t.m4.  This was overkill and I expect would be offputting
18836         to the Emacs maintainers.  After this change, only 6 new files are
18837         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
18838         stdbool.m4, and tm_gmtoff.m4.
18839
18840         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
18841         Suggested by Bruno Haible in
18842         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00238.html>.
18843         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
18844         and do not check for wchar.h.
18845         * modules/strftime (Files): Remove m4/mbstate_t.m4.
18846         (Depends-on): Remove mbrlen, mbsinit, wchar.
18847
18848 2011-01-18  Bruno Haible  <bruno@clisp.org>
18849
18850         Tests for module 'get-rusage-as'.
18851         * modules/get-rusage-as-tests: New file.
18852         * tests/test-get-rusage-as.c: New file.
18853
18854         New module 'get-rusage-as'.
18855         * modules/get-rusage-as: New file.
18856         * lib/resource-ext.h: New file.
18857         * lib/get-rusage-as.c: New file.
18858
18859 2011-01-17  Eric Blake  <eblake@redhat.com>
18860
18861         sigaction: relax license from LGPLv3+ to LGPLv2+
18862         * modules/sigaction (License): Relax to LGPLv2+.
18863
18864 2011-01-14  Bruno Haible  <bruno@clisp.org>
18865
18866         filemode: Make function declarations usable in C++ mode.
18867         * lib/filemode.h: Enclose function declarations in extern "C" block.
18868         Reported by John W. Eaton <jwe@gnu.org>.
18869
18870 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
18871
18872         save-cwd: no longer include "xgetcwd.h"
18873         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
18874         This avoids a compilation failure in projects that use save-cwd
18875         without also using the xgetcwd module.
18876
18877 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
18878
18879         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
18880         This is so that a program like Emacs, which needs only dtoastr,
18881         does not have to bother with distributing and compiling ftoastr
18882         and ldtoastr.
18883         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
18884         * modules/dtoastr, modules/ldtoastr: New files.
18885         * modules/ftoastr: Now works just for 'float'.
18886         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
18887         (Makefile.am): Remove ftoastr.h (not needed and no effect),
18888         dtoastr.c, ldtoastr.c.
18889
18890 2011-01-11  Jim Meyering  <meyering@redhat.com>
18891
18892         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
18893         There is no need to work around the lack of the fchdir function,
18894         since gnulib can now provide a replacement when required.
18895         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
18896         * modules/save-cwd (Depends-on): Add fchdir.
18897
18898 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
18899
18900         openat, save-cwd: avoid xmalloc
18901
18902         This removes a direct (but undocumented) dependency of openat on
18903         xalloc, along with an indirect dependency via save-cwd.  It also
18904         removes a dependency of save-cwd on xgetcwd, and thereby
18905         indirectly on xalloc.  This change causes the openat substitute
18906         to fall back on save_cwd when memory is tight, and for save_cwd to
18907         fail instead of dying when memory is tight, but that's good enough.
18908         Problem and initial idea for fix reported by Bastien Roucaries in
18909         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00170.html>.
18910
18911         * lib/openat-proc.c: Include stdlib.h (for malloc), not
18912         xalloc.h (for xmalloc).
18913         (openat_proc_name): Use malloc, not xmalloc.
18914         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
18915         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
18916
18917         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
18918         This avoids heap allocation for file names whose lengths are in
18919         the range 512..1023, with the upper bound increasing to at most
18920         4031 depending on the platform's PATH_MAX.  (We do not want
18921         pathmax.h here as it might supply a non-constant PATH_MAX.)
18922         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
18923         Perhaps they should be moved to malloca.h?
18924         (OPENAT_BUFFER_SIZE): Use them.
18925
18926 2011-01-10  Bruno Haible  <bruno@clisp.org>
18927
18928         doc: Update users.txt.
18929         * users.txt: Add recutils.
18930
18931 2011-01-09  Karl Berry  <karl@gnu.org>
18932
18933         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
18934
18935         * doc/configmake.texi: New file.
18936         * doc/gnulib.texi: Include it.
18937         * modules/configmake: Move documentation from here.
18938
18939 2011-01-09  Bruno Haible  <bruno@clisp.org>
18940
18941         Update to Unicode 6.0.0.
18942         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
18943         (get_lbp): Update for Unicode 6.0.0.
18944         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
18945         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
18946         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
18947         U+11001, U+11038..U+11046. Remove U+06DE.
18948         (uc_width): Fix bounds of planes.
18949         * tests/uniwidth/test-uc_width2.sh: Same updates as in
18950         lib/uniwidth/width.c.
18951         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
18952         trailing whitespace removed.
18953         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
18954         without comments, but with the original copyright notice.
18955         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
18956         * lib/unicase/ignorable.h: Likewise.
18957         * lib/unicase/tocasefold.h: Likewise.
18958         * lib/unicase/tolower.h: Likewise.
18959         * lib/unicase/totitle.h: Likewise.
18960         * lib/unicase/toupper.h: Likewise.
18961         * lib/unictype/bidi_of.h: Likewise.
18962         * lib/unictype/blocks.h: Likewise.
18963         * lib/unictype/categ_C.h: Likewise.
18964         * lib/unictype/categ_Cn.h: Likewise.
18965         * lib/unictype/categ_L.h: Likewise.
18966         * lib/unictype/categ_Ll.h: Likewise.
18967         * lib/unictype/categ_Lm.h: Likewise.
18968         * lib/unictype/categ_Lo.h: Likewise.
18969         * lib/unictype/categ_Lu.h: Likewise.
18970         * lib/unictype/categ_M.h: Likewise.
18971         * lib/unictype/categ_Mc.h: Likewise.
18972         * lib/unictype/categ_Me.h: Likewise.
18973         * lib/unictype/categ_Mn.h: Likewise.
18974         * lib/unictype/categ_N.h: Likewise.
18975         * lib/unictype/categ_Nd.h: Likewise.
18976         * lib/unictype/categ_No.h: Likewise.
18977         * lib/unictype/categ_P.h: Likewise.
18978         * lib/unictype/categ_Po.h: Likewise.
18979         * lib/unictype/categ_S.h: Likewise.
18980         * lib/unictype/categ_Sc.h: Likewise.
18981         * lib/unictype/categ_Sk.h: Likewise.
18982         * lib/unictype/categ_Sm.h: Likewise.
18983         * lib/unictype/categ_So.h: Likewise.
18984         * lib/unictype/categ_of.h: Likewise.
18985         * lib/unictype/combining.h: Likewise.
18986         * lib/unictype/ctype_alnum.h: Likewise.
18987         * lib/unictype/ctype_alpha.h: Likewise.
18988         * lib/unictype/ctype_graph.h: Likewise.
18989         * lib/unictype/ctype_lower.h: Likewise.
18990         * lib/unictype/ctype_print.h: Likewise.
18991         * lib/unictype/ctype_punct.h: Likewise.
18992         * lib/unictype/ctype_upper.h: Likewise.
18993         * lib/unictype/decdigit.h: Likewise.
18994         * lib/unictype/digit.h: Likewise.
18995         * lib/unictype/numeric.h: Likewise.
18996         * lib/unictype/pr_alphabetic.h: Likewise.
18997         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
18998         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
18999         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
19000         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
19001         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
19002         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
19003         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
19004         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
19005         * lib/unictype/pr_case_ignorable.h: Likewise.
19006         * lib/unictype/pr_cased.h: Likewise.
19007         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
19008         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
19009         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
19010         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
19011         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
19012         * lib/unictype/pr_combining.h: Likewise.
19013         * lib/unictype/pr_composite.h: Likewise.
19014         * lib/unictype/pr_currency_symbol.h: Likewise.
19015         * lib/unictype/pr_decimal_digit.h: Likewise.
19016         * lib/unictype/pr_deprecated.h: Likewise.
19017         * lib/unictype/pr_format_control.h: Likewise.
19018         * lib/unictype/pr_grapheme_base.h: Likewise.
19019         * lib/unictype/pr_grapheme_extend.h: Likewise.
19020         * lib/unictype/pr_grapheme_link.h: Likewise.
19021         * lib/unictype/pr_id_continue.h: Likewise.
19022         * lib/unictype/pr_id_start.h: Likewise.
19023         * lib/unictype/pr_ideographic.h: Likewise.
19024         * lib/unictype/pr_lowercase.h: Likewise.
19025         * lib/unictype/pr_math.h: Likewise.
19026         * lib/unictype/pr_numeric.h: Likewise.
19027         * lib/unictype/pr_other_alphabetic.h: Likewise.
19028         * lib/unictype/pr_other_id_continue.h: Likewise.
19029         * lib/unictype/pr_other_math.h: Likewise.
19030         * lib/unictype/pr_punctuation.h: Likewise.
19031         * lib/unictype/pr_sentence_terminal.h: Likewise.
19032         * lib/unictype/pr_terminal_punctuation.h: Likewise.
19033         * lib/unictype/pr_unassigned_code_value.h: Likewise.
19034         * lib/unictype/pr_unified_ideograph.h: Likewise.
19035         * lib/unictype/pr_uppercase.h: Likewise.
19036         * lib/unictype/pr_xid_continue.h: Likewise.
19037         * lib/unictype/pr_xid_start.h: Likewise.
19038         * lib/unictype/scripts.h: Likewise.
19039         * lib/unictype/scripts_byname.gperf: Likewise.
19040         * lib/unictype/sy_java_ident.h: Likewise.
19041         * lib/unigbrk/gbrkprop.h: Likewise.
19042         * lib/unilbrk/lbrkprop1.h: Likewise.
19043         * lib/unilbrk/lbrkprop2.h: Likewise.
19044         * lib/uninorm/decomposition-table2.h: Likewise.
19045         * lib/uniwbrk/wbrkprop.h: Likewise.
19046         * tests/unicase/test-cased.c: Likewise.
19047         * tests/unicase/test-ignorable.c: Likewise.
19048         * tests/unicase/test-uc_tolower.c: Likewise.
19049         * tests/unicase/test-uc_totitle.c: Likewise.
19050         * tests/unicase/test-uc_toupper.c: Likewise.
19051         * tests/unictype/test-categ_C.c: Likewise.
19052         * tests/unictype/test-categ_Cn.c: Likewise.
19053         * tests/unictype/test-categ_L.c: Likewise.
19054         * tests/unictype/test-categ_Ll.c: Likewise.
19055         * tests/unictype/test-categ_Lm.c: Likewise.
19056         * tests/unictype/test-categ_Lo.c: Likewise.
19057         * tests/unictype/test-categ_Lu.c: Likewise.
19058         * tests/unictype/test-categ_M.c: Likewise.
19059         * tests/unictype/test-categ_Mc.c: Likewise.
19060         * tests/unictype/test-categ_Me.c: Likewise.
19061         * tests/unictype/test-categ_Mn.c: Likewise.
19062         * tests/unictype/test-categ_N.c: Likewise.
19063         * tests/unictype/test-categ_Nd.c: Likewise.
19064         * tests/unictype/test-categ_No.c: Likewise.
19065         * tests/unictype/test-categ_P.c: Likewise.
19066         * tests/unictype/test-categ_Po.c: Likewise.
19067         * tests/unictype/test-categ_S.c: Likewise.
19068         * tests/unictype/test-categ_Sc.c: Likewise.
19069         * tests/unictype/test-categ_Sk.c: Likewise.
19070         * tests/unictype/test-categ_Sm.c: Likewise.
19071         * tests/unictype/test-categ_So.c: Likewise.
19072         * tests/unictype/test-ctype_alnum.c: Likewise.
19073         * tests/unictype/test-ctype_alpha.c: Likewise.
19074         * tests/unictype/test-ctype_graph.c: Likewise.
19075         * tests/unictype/test-ctype_lower.c: Likewise.
19076         * tests/unictype/test-ctype_print.c: Likewise.
19077         * tests/unictype/test-ctype_punct.c: Likewise.
19078         * tests/unictype/test-ctype_upper.c: Likewise.
19079         * tests/unictype/test-decdigit.h: Likewise.
19080         * tests/unictype/test-digit.h: Likewise.
19081         * tests/unictype/test-numeric.h: Likewise.
19082         * tests/unictype/test-pr_alphabetic.c: Likewise.
19083         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
19084         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
19085         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
19086         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
19087         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
19088         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
19089         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
19090         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
19091         * tests/unictype/test-pr_case_ignorable.c: Likewise.
19092         * tests/unictype/test-pr_cased.c: Likewise.
19093         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
19094         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
19095         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
19096         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
19097         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
19098         * tests/unictype/test-pr_combining.c: Likewise.
19099         * tests/unictype/test-pr_composite.c: Likewise.
19100         * tests/unictype/test-pr_currency_symbol.c: Likewise.
19101         * tests/unictype/test-pr_decimal_digit.c: Likewise.
19102         * tests/unictype/test-pr_deprecated.c: Likewise.
19103         * tests/unictype/test-pr_format_control.c: Likewise.
19104         * tests/unictype/test-pr_grapheme_base.c: Likewise.
19105         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
19106         * tests/unictype/test-pr_grapheme_link.c: Likewise.
19107         * tests/unictype/test-pr_id_continue.c: Likewise.
19108         * tests/unictype/test-pr_id_start.c: Likewise.
19109         * tests/unictype/test-pr_ideographic.c: Likewise.
19110         * tests/unictype/test-pr_lowercase.c: Likewise.
19111         * tests/unictype/test-pr_math.c: Likewise.
19112         * tests/unictype/test-pr_numeric.c: Likewise.
19113         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
19114         * tests/unictype/test-pr_other_id_continue.c: Likewise.
19115         * tests/unictype/test-pr_other_math.c: Likewise.
19116         * tests/unictype/test-pr_punctuation.c: Likewise.
19117         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
19118         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
19119         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
19120         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
19121         * tests/unictype/test-pr_uppercase.c: Likewise.
19122         * tests/unictype/test-pr_xid_continue.c: Likewise.
19123         * tests/unictype/test-pr_xid_start.c: Likewise.
19124         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
19125         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
19126         changes.
19127         * lib/unictype/categ_Cc.h: Likewise.
19128         * lib/unictype/categ_Cf.h: Likewise.
19129         * lib/unictype/categ_Co.h: Likewise.
19130         * lib/unictype/categ_Cs.h: Likewise.
19131         * lib/unictype/categ_Lt.h: Likewise.
19132         * lib/unictype/categ_Nl.h: Likewise.
19133         * lib/unictype/categ_Pc.h: Likewise.
19134         * lib/unictype/categ_Pd.h: Likewise.
19135         * lib/unictype/categ_Pe.h: Likewise.
19136         * lib/unictype/categ_Pf.h: Likewise.
19137         * lib/unictype/categ_Pi.h: Likewise.
19138         * lib/unictype/categ_Ps.h: Likewise.
19139         * lib/unictype/categ_Z.h: Likewise.
19140         * lib/unictype/categ_Zl.h: Likewise.
19141         * lib/unictype/categ_Zp.h: Likewise.
19142         * lib/unictype/categ_Zs.h: Likewise.
19143         * lib/unictype/ctype_blank.h: Likewise.
19144         * lib/unictype/ctype_cntrl.h: Likewise.
19145         * lib/unictype/ctype_digit.h: Likewise.
19146         * lib/unictype/ctype_space.h: Likewise.
19147         * lib/unictype/ctype_xdigit.h: Likewise.
19148         * lib/unictype/mirror.h: Likewise.
19149         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
19150         * lib/unictype/pr_bidi_block_separator.h: Likewise.
19151         * lib/unictype/pr_bidi_common_separator.h: Likewise.
19152         * lib/unictype/pr_bidi_control.h: Likewise.
19153         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
19154         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
19155         * lib/unictype/pr_bidi_european_digit.h: Likewise.
19156         * lib/unictype/pr_bidi_pdf.h: Likewise.
19157         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
19158         * lib/unictype/pr_bidi_whitespace.h: Likewise.
19159         * lib/unictype/pr_dash.h: Likewise.
19160         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
19161         * lib/unictype/pr_diacritic.h: Likewise.
19162         * lib/unictype/pr_extender.h: Likewise.
19163         * lib/unictype/pr_hex_digit.h: Likewise.
19164         * lib/unictype/pr_hyphen.h: Likewise.
19165         * lib/unictype/pr_ids_binary_operator.h: Likewise.
19166         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
19167         * lib/unictype/pr_ignorable_control.h: Likewise.
19168         * lib/unictype/pr_iso_control.h: Likewise.
19169         * lib/unictype/pr_join_control.h: Likewise.
19170         * lib/unictype/pr_left_of_pair.h: Likewise.
19171         * lib/unictype/pr_line_separator.h: Likewise.
19172         * lib/unictype/pr_logical_order_exception.h: Likewise.
19173         * lib/unictype/pr_non_break.h: Likewise.
19174         * lib/unictype/pr_not_a_character.h: Likewise.
19175         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
19176         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
19177         * lib/unictype/pr_other_id_start.h: Likewise.
19178         * lib/unictype/pr_other_lowercase.h: Likewise.
19179         * lib/unictype/pr_other_uppercase.h: Likewise.
19180         * lib/unictype/pr_paired_punctuation.h: Likewise.
19181         * lib/unictype/pr_paragraph_separator.h: Likewise.
19182         * lib/unictype/pr_pattern_syntax.h: Likewise.
19183         * lib/unictype/pr_pattern_white_space.h: Likewise.
19184         * lib/unictype/pr_private_use.h: Likewise.
19185         * lib/unictype/pr_quotation_mark.h: Likewise.
19186         * lib/unictype/pr_radical.h: Likewise.
19187         * lib/unictype/pr_soft_dotted.h: Likewise.
19188         * lib/unictype/pr_space.h: Likewise.
19189         * lib/unictype/pr_titlecase.h: Likewise.
19190         * lib/unictype/pr_variation_selector.h: Likewise.
19191         * lib/unictype/pr_white_space.h: Likewise.
19192         * lib/unictype/pr_zero_width.h: Likewise.
19193         * lib/unictype/sy_c_ident.h: Likewise.
19194         * lib/unictype/sy_c_whitespace.h: Likewise.
19195         * lib/unictype/sy_java_whitespace.h: Likewise.
19196         * lib/uninorm/composition-table.gperf: Likewise.
19197         * lib/uninorm/decomposition-table1.h: Likewise.
19198         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
19199         LB8.
19200         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
19201         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
19202         * modules/unictype/*: Bump version number of expected libunistring
19203         version.
19204
19205 2011-01-09  Bruno Haible  <bruno@clisp.org>
19206
19207         Update to Unicode 5.2.0.
19208         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
19209         trailing whitespace removed.
19210
19211 2011-01-09  Bruno Haible  <bruno@clisp.org>
19212
19213         New Unicode character properties, from Unicode 5.2.0.
19214         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
19215         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
19216         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
19217         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
19218         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
19219         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
19220         uc_is_property_cased, uc_is_property_case_ignorable,
19221         uc_is_property_changes_when_lowercased,
19222         uc_is_property_changes_when_uppercased,
19223         uc_is_property_changes_when_titlecased,
19224         uc_is_property_changes_when_casefolded,
19225         uc_is_property_changes_when_casemapped): New declarations.
19226         * lib/unictype/pr_byname.gperf: Add the new properties.
19227         * modules/unictype/property-byname (Depends-on): Depend on the new
19228         properties modules.
19229         * modules/unictype/property-all (Depends-on): Likewise.
19230         * MODULES.html.sh (Unicode string functions): Add
19231         unictype/property-case-ignorable, unictype/property-cased,
19232         unictype/property-changes-when-casefolded,
19233         unictype/property-changes-when-casemapped,
19234         unictype/property-changes-when-lowercased,
19235         unictype/property-changes-when-titlecased,
19236         unictype/property-changes-when-uppercased.
19237
19238         New module 'unictype/property-changes-when-casemapped'.
19239         * modules/unictype/property-changes-when-casemapped: New file.
19240         * lib/unictype/pr_changes_when_casemapped.c: New file.
19241         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
19242         generated by gen-uni-tables.
19243         * modules/unictype/property-changes-when-casemapped-tests: New file.
19244         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
19245         automatically generated by gen-uni-tables.
19246
19247         New module 'unictype/property-changes-when-casefolded'.
19248         * modules/unictype/property-changes-when-casefolded: New file.
19249         * lib/unictype/pr_changes_when_casefolded.c: New file.
19250         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
19251         generated by gen-uni-tables.
19252         * modules/unictype/property-changes-when-casefolded-tests: New file.
19253         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
19254         automatically generated by gen-uni-tables.
19255
19256         New module 'unictype/property-changes-when-titlecased'.
19257         * modules/unictype/property-changes-when-titlecased: New file.
19258         * lib/unictype/pr_changes_when_titlecased.c: New file.
19259         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
19260         generated by gen-uni-tables.
19261         * modules/unictype/property-changes-when-titlecased-tests: New file.
19262         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
19263         automatically generated by gen-uni-tables.
19264
19265         New module 'unictype/property-changes-when-uppercased'.
19266         * modules/unictype/property-changes-when-uppercased: New file.
19267         * lib/unictype/pr_changes_when_uppercased.c: New file.
19268         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
19269         generated by gen-uni-tables.
19270         * modules/unictype/property-changes-when-uppercased-tests: New file.
19271         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
19272         automatically generated by gen-uni-tables.
19273
19274         New module 'unictype/property-changes-when-lowercased'.
19275         * modules/unictype/property-changes-when-lowercased: New file.
19276         * lib/unictype/pr_changes_when_lowercased.c: New file.
19277         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
19278         generated by gen-uni-tables.
19279         * modules/unictype/property-changes-when-lowercased-tests: New file.
19280         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
19281         automatically generated by gen-uni-tables.
19282
19283         New module 'unictype/property-case-ignorable'.
19284         * modules/unictype/property-case-ignorable: New file.
19285         * lib/unictype/pr_case_ignorable.c: New file.
19286         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
19287         by gen-uni-tables.
19288         * modules/unictype/property-case-ignorable-tests: New file.
19289         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
19290         generated by gen-uni-tables.
19291
19292         New module 'unictype/property-cased'.
19293         * modules/unictype/property-cased: New file.
19294         * lib/unictype/pr_cased.c: New file.
19295         * lib/unictype/pr_cased.h: New file, automatically generated by
19296         gen-uni-tables.
19297         * modules/unictype/property-cased-tests: New file.
19298         * tests/unictype/test-pr_cased.c: New file, automatically generated by
19299         gen-uni-tables.
19300
19301 2011-01-09  Bruno Haible  <bruno@clisp.org>
19302
19303         Update to Unicode 5.2.0.
19304         * lib/gen-uni-tables.c (output_predicate, output_category,
19305         output_combclass, output_bidi_category, output_decimal_digit_test,
19306         output_decimal_digit, output_digit_test, output_digit,
19307         output_numeric_test, output_numeric, output_mirror, output_scripts,
19308         output_scripts_byname, output_blocks, output_ident_category): Fix
19309         comment header.
19310         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
19311         get_wbp.
19312         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
19313         items.
19314         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
19315         Changes_When_Lowercased, Changes_When_Uppercased,
19316         Changes_When_Titlecased, Changes_When_Casefolded,
19317         Changes_When_Casemapped.
19318         (is_property_alphabetic, is_property_default_ignorable_code_point):
19319         Update for Unicode 5.2.0.
19320         (is_property_cased, is_property_case_ignorable,
19321         is_property_changes_when_lowercased,
19322         is_property_changes_when_uppercased,
19323         is_property_changes_when_titlecased,
19324         is_property_changes_when_casefolded,
19325         is_property_changes_when_casemapped): New functions.
19326         (output_properties): Output also the properties cased, case_ignorable,
19327         changes_when_lowercased, changes_when_uppercased,
19328         changes_when_titlecased, changes_when_casefolded,
19329         changes_when_casemapped.
19330         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
19331         Unicode TR#11 revision 17 -> 19.
19332         (LBP_CP): New enumeration value.
19333         (LBP_*): Adjust values accordingly.
19334         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
19335         TR#14 revision 22 -> 24.
19336         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
19337         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
19338         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
19339         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
19340         is_WBP_MIDLETTER.
19341         (output_composition_tables): Allow for 24 bits instead of 16 bits in
19342         the code1 and code2 of each composition rule.
19343         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
19344         * lib/unicase/ignorable.h: Likewise.
19345         * lib/unicase/tocasefold.h: Likewise.
19346         * lib/unicase/tolower.h: Likewise.
19347         * lib/unicase/totitle.h: Likewise.
19348         * lib/unicase/toupper.h: Likewise.
19349         * lib/unictype/bidi_of.h: Likewise.
19350         * lib/unictype/blocks.h: Likewise.
19351         * lib/unictype/categ_C.h: Likewise.
19352         * lib/unictype/categ_Cf.h: Likewise.
19353         * lib/unictype/categ_Cn.h: Likewise.
19354         * lib/unictype/categ_L.h: Likewise.
19355         * lib/unictype/categ_Ll.h: Likewise.
19356         * lib/unictype/categ_Lm.h: Likewise.
19357         * lib/unictype/categ_Lo.h: Likewise.
19358         * lib/unictype/categ_Lu.h: Likewise.
19359         * lib/unictype/categ_M.h: Likewise.
19360         * lib/unictype/categ_Mc.h: Likewise.
19361         * lib/unictype/categ_Mn.h: Likewise.
19362         * lib/unictype/categ_N.h: Likewise.
19363         * lib/unictype/categ_Nd.h: Likewise.
19364         * lib/unictype/categ_Nl.h: Likewise.
19365         * lib/unictype/categ_No.h: Likewise.
19366         * lib/unictype/categ_P.h: Likewise.
19367         * lib/unictype/categ_Pd.h: Likewise.
19368         * lib/unictype/categ_Po.h: Likewise.
19369         * lib/unictype/categ_S.h: Likewise.
19370         * lib/unictype/categ_Sc.h: Likewise.
19371         * lib/unictype/categ_So.h: Likewise.
19372         * lib/unictype/categ_of.h: Likewise.
19373         * lib/unictype/combining.h: Likewise.
19374         * lib/unictype/ctype_alnum.h: Likewise.
19375         * lib/unictype/ctype_alpha.h: Likewise.
19376         * lib/unictype/ctype_graph.h: Likewise.
19377         * lib/unictype/ctype_lower.h: Likewise.
19378         * lib/unictype/ctype_print.h: Likewise.
19379         * lib/unictype/ctype_punct.h: Likewise.
19380         * lib/unictype/ctype_upper.h: Likewise.
19381         * lib/unictype/decdigit.h: Likewise.
19382         * lib/unictype/digit.h: Likewise.
19383         * lib/unictype/numeric.h: Likewise.
19384         * lib/unictype/pr_alphabetic.h: Likewise.
19385         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
19386         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
19387         * lib/unictype/pr_bidi_european_digit.h: Likewise.
19388         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
19389         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
19390         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
19391         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
19392         * lib/unictype/pr_combining.h: Likewise.
19393         * lib/unictype/pr_composite.h: Likewise.
19394         * lib/unictype/pr_currency_symbol.h: Likewise.
19395         * lib/unictype/pr_dash.h: Likewise.
19396         * lib/unictype/pr_decimal_digit.h: Likewise.
19397         * lib/unictype/pr_deprecated.h: Likewise.
19398         * lib/unictype/pr_diacritic.h: Likewise.
19399         * lib/unictype/pr_extender.h: Likewise.
19400         * lib/unictype/pr_grapheme_base.h: Likewise.
19401         * lib/unictype/pr_grapheme_extend.h: Likewise.
19402         * lib/unictype/pr_grapheme_link.h: Likewise.
19403         * lib/unictype/pr_id_continue.h: Likewise.
19404         * lib/unictype/pr_id_start.h: Likewise.
19405         * lib/unictype/pr_ideographic.h: Likewise.
19406         * lib/unictype/pr_ignorable_control.h: Likewise.
19407         * lib/unictype/pr_logical_order_exception.h: Likewise.
19408         * lib/unictype/pr_lowercase.h: Likewise.
19409         * lib/unictype/pr_numeric.h: Likewise.
19410         * lib/unictype/pr_other_alphabetic.h: Likewise.
19411         * lib/unictype/pr_punctuation.h: Likewise.
19412         * lib/unictype/pr_sentence_terminal.h: Likewise.
19413         * lib/unictype/pr_terminal_punctuation.h: Likewise.
19414         * lib/unictype/pr_unassigned_code_value.h: Likewise.
19415         * lib/unictype/pr_unified_ideograph.h: Likewise.
19416         * lib/unictype/pr_uppercase.h: Likewise.
19417         * lib/unictype/pr_xid_continue.h: Likewise.
19418         * lib/unictype/pr_xid_start.h: Likewise.
19419         * lib/unictype/pr_zero_width.h: Likewise.
19420         * lib/unictype/scripts.h: Likewise.
19421         * lib/unictype/scripts_byname.gperf: Likewise.
19422         * lib/unictype/sy_java_ident.h: Likewise.
19423         * lib/unigbrk/gbrkprop.h: Likewise.
19424         * lib/unilbrk/lbrkprop1.h: Likewise.
19425         * lib/unilbrk/lbrkprop2.h: Likewise.
19426         * lib/unilbrk/lbrktables.h: Likewise.
19427         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
19428         LBP_CP. Implement rule LB30.
19429         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
19430         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
19431         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
19432         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
19433         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
19434         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
19435         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
19436         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
19437         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
19438         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
19439         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
19440         bits instead of 16 bits in the code1 and code2 of each composition
19441         rule.
19442         (uc_composition): Update for Unicode 5.2.0.
19443         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
19444         * lib/uninorm/decomposition-table2.h: Likewise.
19445         * lib/uniwbrk/wbrkprop.h: Likewise.
19446         * tests/unicase/test-cased.c: Likewise.
19447         * tests/unicase/test-ignorable.c: Likewise.
19448         * tests/unicase/test-uc_tolower.c: Likewise.
19449         * tests/unicase/test-uc_totitle.c: Likewise.
19450         * tests/unicase/test-uc_toupper.c: Likewise.
19451         * tests/unictype/test-categ_C.c: Likewise.
19452         * tests/unictype/test-categ_Cf.c: Likewise.
19453         * tests/unictype/test-categ_Cn.c: Likewise.
19454         * tests/unictype/test-categ_L.c: Likewise.
19455         * tests/unictype/test-categ_Ll.c: Likewise.
19456         * tests/unictype/test-categ_Lm.c: Likewise.
19457         * tests/unictype/test-categ_Lo.c: Likewise.
19458         * tests/unictype/test-categ_Lu.c: Likewise.
19459         * tests/unictype/test-categ_M.c: Likewise.
19460         * tests/unictype/test-categ_Mc.c: Likewise.
19461         * tests/unictype/test-categ_Mn.c: Likewise.
19462         * tests/unictype/test-categ_N.c: Likewise.
19463         * tests/unictype/test-categ_Nd.c: Likewise.
19464         * tests/unictype/test-categ_Nl.c: Likewise.
19465         * tests/unictype/test-categ_No.c: Likewise.
19466         * tests/unictype/test-categ_P.c: Likewise.
19467         * tests/unictype/test-categ_Pd.c: Likewise.
19468         * tests/unictype/test-categ_Po.c: Likewise.
19469         * tests/unictype/test-categ_S.c: Likewise.
19470         * tests/unictype/test-categ_Sc.c: Likewise.
19471         * tests/unictype/test-categ_So.c: Likewise.
19472         * tests/unictype/test-ctype_alnum.c: Likewise.
19473         * tests/unictype/test-ctype_alpha.c: Likewise.
19474         * tests/unictype/test-ctype_graph.c: Likewise.
19475         * tests/unictype/test-ctype_lower.c: Likewise.
19476         * tests/unictype/test-ctype_print.c: Likewise.
19477         * tests/unictype/test-ctype_punct.c: Likewise.
19478         * tests/unictype/test-ctype_upper.c: Likewise.
19479         * tests/unictype/test-decdigit.h: Likewise.
19480         * tests/unictype/test-digit.h: Likewise.
19481         * tests/unictype/test-numeric.h: Likewise.
19482         * tests/unictype/test-pr_alphabetic.c: Likewise.
19483         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
19484         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
19485         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
19486         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
19487         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
19488         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
19489         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
19490         * tests/unictype/test-pr_combining.c: Likewise.
19491         * tests/unictype/test-pr_composite.c: Likewise.
19492         * tests/unictype/test-pr_currency_symbol.c: Likewise.
19493         * tests/unictype/test-pr_dash.c: Likewise.
19494         * tests/unictype/test-pr_decimal_digit.c: Likewise.
19495         * tests/unictype/test-pr_deprecated.c: Likewise.
19496         * tests/unictype/test-pr_diacritic.c: Likewise.
19497         * tests/unictype/test-pr_extender.c: Likewise.
19498         * tests/unictype/test-pr_grapheme_base.c: Likewise.
19499         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
19500         * tests/unictype/test-pr_grapheme_link.c: Likewise.
19501         * tests/unictype/test-pr_id_continue.c: Likewise.
19502         * tests/unictype/test-pr_id_start.c: Likewise.
19503         * tests/unictype/test-pr_ideographic.c: Likewise.
19504         * tests/unictype/test-pr_ignorable_control.c: Likewise.
19505         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
19506         * tests/unictype/test-pr_lowercase.c: Likewise.
19507         * tests/unictype/test-pr_numeric.c: Likewise.
19508         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
19509         * tests/unictype/test-pr_punctuation.c: Likewise.
19510         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
19511         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
19512         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
19513         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
19514         * tests/unictype/test-pr_uppercase.c: Likewise.
19515         * tests/unictype/test-pr_xid_continue.c: Likewise.
19516         * tests/unictype/test-pr_xid_start.c: Likewise.
19517         * tests/unictype/test-pr_zero_width.c: Likewise.
19518         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
19519         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
19520         changed behaviour: line breaking is now disallowed between a letter
19521         or '=' and '('.
19522         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
19523         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
19524         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
19525         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
19526         * tests/uniwidth/test-uc_width2.sh: Same updates as in
19527         lib/uniwidth/width.c.
19528         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
19529         without comments, but with the original copyright notice.
19530         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
19531         changes.
19532         * lib/unictype/categ_Cc.h: Likewise.
19533         * lib/unictype/categ_Co.h: Likewise.
19534         * lib/unictype/categ_Cs.h: Likewise.
19535         * lib/unictype/categ_Lt.h: Likewise.
19536         * lib/unictype/categ_Me.h: Likewise.
19537         * lib/unictype/categ_Pc.h: Likewise.
19538         * lib/unictype/categ_Pe.h: Likewise.
19539         * lib/unictype/categ_Pf.h: Likewise.
19540         * lib/unictype/categ_Pi.h: Likewise.
19541         * lib/unictype/categ_Ps.h: Likewise.
19542         * lib/unictype/categ_Sk.h: Likewise.
19543         * lib/unictype/categ_Sm.h: Likewise.
19544         * lib/unictype/categ_Z.h: Likewise.
19545         * lib/unictype/categ_Zl.h: Likewise.
19546         * lib/unictype/categ_Zp.h: Likewise.
19547         * lib/unictype/categ_Zs.h: Likewise.
19548         * lib/unictype/ctype_blank.h: Likewise.
19549         * lib/unictype/ctype_cntrl.h: Likewise.
19550         * lib/unictype/ctype_digit.h: Likewise.
19551         * lib/unictype/ctype_space.h: Likewise.
19552         * lib/unictype/ctype_xdigit.h: Likewise.
19553         * lib/unictype/mirror.h: Likewise.
19554         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
19555         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
19556         * lib/unictype/pr_bidi_block_separator.h: Likewise.
19557         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
19558         * lib/unictype/pr_bidi_common_separator.h: Likewise.
19559         * lib/unictype/pr_bidi_control.h: Likewise.
19560         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
19561         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
19562         * lib/unictype/pr_bidi_pdf.h: Likewise.
19563         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
19564         * lib/unictype/pr_bidi_whitespace.h: Likewise.
19565         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
19566         * lib/unictype/pr_format_control.h: Likewise.
19567         * lib/unictype/pr_hex_digit.h: Likewise.
19568         * lib/unictype/pr_hyphen.h: Likewise.
19569         * lib/unictype/pr_ids_binary_operator.h: Likewise.
19570         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
19571         * lib/unictype/pr_iso_control.h: Likewise.
19572         * lib/unictype/pr_join_control.h: Likewise.
19573         * lib/unictype/pr_left_of_pair.h: Likewise.
19574         * lib/unictype/pr_line_separator.h: Likewise.
19575         * lib/unictype/pr_math.h: Likewise.
19576         * lib/unictype/pr_non_break.h: Likewise.
19577         * lib/unictype/pr_not_a_character.h: Likewise.
19578         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
19579         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
19580         * lib/unictype/pr_other_id_continue.h: Likewise.
19581         * lib/unictype/pr_other_id_start.h: Likewise.
19582         * lib/unictype/pr_other_lowercase.h: Likewise.
19583         * lib/unictype/pr_other_math.h: Likewise.
19584         * lib/unictype/pr_other_uppercase.h: Likewise.
19585         * lib/unictype/pr_paired_punctuation.h: Likewise.
19586         * lib/unictype/pr_paragraph_separator.h: Likewise.
19587         * lib/unictype/pr_pattern_syntax.h: Likewise.
19588         * lib/unictype/pr_pattern_white_space.h: Likewise.
19589         * lib/unictype/pr_private_use.h: Likewise.
19590         * lib/unictype/pr_quotation_mark.h: Likewise.
19591         * lib/unictype/pr_radical.h: Likewise.
19592         * lib/unictype/pr_soft_dotted.h: Likewise.
19593         * lib/unictype/pr_space.h: Likewise.
19594         * lib/unictype/pr_titlecase.h: Likewise.
19595         * lib/unictype/pr_variation_selector.h: Likewise.
19596         * lib/unictype/pr_white_space.h: Likewise.
19597         * lib/unictype/sy_c_ident.h: Likewise.
19598         * lib/unictype/sy_c_whitespace.h: Likewise.
19599         * lib/unictype/sy_java_whitespace.h: Likewise.
19600         * modules/uni*/*: Bump version number of expected libunistring version.
19601         Reported by Simon Josefsson.
19602
19603 2011-01-09  Karl Heuer  <kwzh@gnu.org>
19604
19605         useless-if-before-free: fix typo in --help and make the internal,
19606         automatic version date update process work once again.
19607         --help output contained a NUL character instead of the
19608         backslash-zero that was intended.  Also, the "must lie within
19609         the first 8 lines" line is on line 9, and hence not getting
19610         automatically updated.
19611         * build-aux/useless-if-before-free: Fix the former by adding a
19612         backslash, and the latter by condensing the three lines of what-it-does
19613         to a single line, leaving one line of slack for the future.
19614
19615 2011-01-09  Bruno Haible  <bruno@clisp.org>
19616
19617         uniwidth/width: Fix width of U+1D173..U+1D17A.
19618         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
19619         symbolic_width, output_width_property_test): New functions.
19620         (main): Invoke output_nonspacing_property, output_width_property_test.
19621         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
19622         U+1D173..U+1D17A.
19623         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
19624         1.
19625         * modules/uniwidth/*: Bump version number of expected libunistring
19626         version.
19627         * modules/unilbrk/*: Likewise.
19628
19629 2011-01-08  Bruno Haible  <bruno@clisp.org>
19630
19631         uninorm tests: Preserve copyright of Unicode data file.
19632         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
19633         Mention modifications.
19634
19635 2011-01-08  Bruno Haible  <bruno@clisp.org>
19636
19637         gen-uni-tables: Prepare for Unicode 5.2.0.
19638         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
19639         (debug_output_lbp, output_lbp): Update.
19640
19641 2011-01-08  Bruno Haible  <bruno@clisp.org>
19642
19643         unilbrk: Clarify gen-uni-tables.c code.
19644         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
19645         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
19646         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
19647
19648 2011-01-07  Bruno Haible  <bruno@clisp.org>
19649
19650         strtod: Restore errno when successfully parsing Infinity or NaN.
19651         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
19652         restore the original errno.
19653
19654 2011-01-07  Bruno Haible  <bruno@clisp.org>
19655
19656         remove test: Avoid failure on HP-UX 11.
19657         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
19658
19659 2011-01-07  Bruno Haible  <bruno@clisp.org>
19660
19661         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
19662         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
19663         error code.
19664
19665 2011-01-07  Pádraig Brady <P@draigBrady.com>
19666
19667         ignore-value: fixup comments, and add Eric Blake
19668         as an author since he rewrote the macros.
19669         * lib/ignore-value.h (ignore_value):  State that
19670         we now support aggregates.  Also specify exactly
19671         when the GCC warn_unused_result feature was added.
19672
19673 2011-01-06  Eric Blake  <eblake@redhat.com>
19674
19675         ignore-value: support aggregate types
19676         * lib/ignore-value.h (ignore_value): Provide separate gcc
19677         definition.
19678         * modules/ignore-value-tests: New test module.
19679         * tests/test-ignore-value.c: New test.
19680
19681         maint.mk: improve sc_prohibit_strcmp regex
19682         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
19683         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
19684         definition of STRNEQ.
19685
19686         signal: work around Haiku issue with SIGBUS
19687         * lib/siglist.h: Add comment.
19688         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
19689         strsignal's favoring of SIGSEGV.
19690         * tests/test-signal.c (main): Avoid test failure.
19691         * doc/posix-headers/signal.texi (signal.h): Document the issue.
19692         Reported by Scott McCreary.
19693
19694         maint.mk: add pre-release check to ensure submodule commits are public
19695         * top/maint.mk (public-submodule-commit): New rule.
19696         (submodule-checks): New variable.
19697         (alpha beta stable): Depend on the variable.
19698
19699 2011-01-05  Pádraig Brady <P@draigBrady.com>
19700         and Jim Meyering  <meyering@redhat.com>
19701
19702         ignore-value: make ignore_value more generic; deprecate ignore_ptr
19703         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
19704         (ATTRIBUTE_DEPRECATED): Define.
19705         (_ignore_case): New function.
19706         (ignore_value): New macro, to replace the old function.
19707         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
19708         * modules/ignore-value (Depends-on): Add stdint.
19709
19710 2011-01-04  Eric Blake  <eblake@redhat.com>
19711
19712         doc: regenerate INSTALL
19713         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
19714         @firstparagraphindent support, now that autoconf dropped it.
19715         (INSTALL_PRELUDE): Reinstate old macro.
19716         * doc/install.texi: Resync from autoconf.
19717         * doc/INSTALL: Reflect recent autoconf update.
19718         * doc/INSTALL.ISO: Likewise.
19719         * doc/INSTALL.UTF-8: Likewise.
19720         Reported by Karl Berry.
19721
19722 2011-01-04  Bruce Korb  <address@hidden>
19723
19724         git-version-gen: avoid a sub-shell
19725         * build-aux/git-version-gen: Redirect stderr in `...` via
19726         "exec 2>...", rather than via an added sub-shell.
19727
19728 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
19729
19730         git-version-gen: use (...) rather than sh -c '...'
19731         * build-aux/git-version-gen: Rather than hard-coding a shell's name
19732         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
19733
19734 2011-01-03  Jim Meyering  <meyering@redhat.com>
19735
19736         git-version-gen: convert leading TABs to spaces
19737         * build-aux/git-version-gen: Expand leading TABs.
19738
19739         git-version-gen: handle failed "git rev-list"
19740         * build-aux/git-version-gen: Rather than leaking a "fatal" error
19741         from git and proceeding as if it had succeeded but printed no SHA1
19742         checksums, suppress the diagnostic and handle the failure.
19743         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
19744
19745         git-version-gen: include command name in one more diagnostic
19746         * build-aux/git-version-gen: When the required .tarball-version file
19747         was missing or unreadable, you might see the diagnostic from "cat",
19748         but no trace of the name of the invoking script.  Now, you still see
19749         the diagnostic from cat, but also get one from "git-version-gen: ".
19750         Inspired by a patch from Bruce Korb.
19751
19752         update-copyright: adjust test to match changed code
19753         * tests/test-update-copyright.sh: Change test's expected output
19754         to match new actual output.
19755
19756 2011-01-02  Bruno Haible  <bruno@clisp.org>
19757
19758         getlogin_r: Avoid test failure on HP-UX 11.
19759         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
19760         ERANGE when the second argument is zero.
19761         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
19762         portability problem.
19763
19764 2011-01-02  Bruce Korb  <bkorb@gnu.org>
19765
19766         * build-aux/update-copyright: doc Simon's changes
19767
19768 2011-01-02  Simon Josefsson  <simon@josefsson.org>
19769
19770         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
19771         environment variable.
19772
19773 2011-01-02  Bruno Haible  <bruno@clisp.org>
19774
19775         unigbrk: Avoid gcc warnings.
19776         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
19777         unused variable.
19778         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
19779         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
19780         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
19781         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
19782         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
19783         Change type of first argument to 'const char *'.
19784         (main): Remove unused variable.
19785         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
19786         type of first argument to 'const char *'.
19787         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
19788         Likewise.
19789         (main): Change type of variable 's'.
19790         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
19791         to 'int'.
19792
19793 2011-01-02  Bruno Haible  <bruno@clisp.org>
19794
19795         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
19796         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
19797         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
19798         bug.
19799         * lib/pwrite.c: Undo 2010-12-31 patch.
19800         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
19801
19802 2011-01-02  Bruno Haible  <bruno@clisp.org>
19803
19804         pread: Fix test whether it works.
19805         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
19806
19807 2011-01-02  Bruno Haible  <bruno@clisp.org>
19808
19809         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
19810         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
19811         ends in "6". Don't require a specific month name. Try also the locale
19812         names found on HP-UX 11 and Solaris 7.
19813
19814 2011-01-02  Bruno Haible  <bruno@clisp.org>
19815
19816         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
19817         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
19818         C linkage.
19819         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
19820
19821 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
19822
19823         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
19824         for consistency, since the "cluster" term is not used elsewhere.
19825         * lib/unigbrk.in.h: Update name.
19826         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
19827         * lib/unigbrk/u16-grapheme-next.c: Update name.
19828         * lib/unigbrk/u16-grapheme-prev.c: Update name.
19829         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
19830         * lib/unigbrk/u32-grapheme-next.c: Update name.
19831         * lib/unigbrk/u32-grapheme-prev.c: Update name.
19832         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
19833         * lib/unigbrk/u8-grapheme-next.c: Update name.
19834         * lib/unigbrk/u8-grapheme-prev.c: Update name.
19835         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
19836         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
19837         Suggested by Bruno Haible.
19838
19839 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
19840
19841         Remove module 'u8-grapheme-len' as too redundant with
19842         'u8-grapheme-next'.
19843         * modules/unigbrk/u8-grapheme-len: Delete file.
19844         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
19845         * lib/unigbrk.in.h: Remove prototype for deleted function.
19846         * lib/unigbrk/u8-grapheme-len.c: Delete file.
19847         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
19848
19849         Remove module 'u16-grapheme-len' as too redundant with
19850         'u16-grapheme-next'.
19851         * modules/unigbrk/u16-grapheme-len: Delete file.
19852         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
19853         * lib/unigbrk.in.h: Remove prototype for deleted function.
19854         * lib/unigbrk/u16-grapheme-len.c: Delete file.
19855         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
19856
19857         Remove module 'u32-grapheme-len' as too redundant with
19858         'u32-grapheme-next'.
19859         * modules/unigbrk/u32-grapheme-len: Delete file.
19860         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
19861         * lib/unigbrk.in.h: Remove prototype for deleted function.
19862         * lib/unigbrk/u32-grapheme-len.c: Delete file.
19863         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
19864
19865         Suggested by Bruno Haible.
19866
19867 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
19868
19869         * unigbrk.in.h: Fix typo: "ben" => "been".
19870         Reported by Bruno Haible.
19871
19872 2011-01-01  Jim Meyering  <meyering@redhat.com>
19873
19874         maint: update almost all copyright ranges to include 2011
19875         Run the new "make update-copyright" rule.
19876
19877 2011-01-01  Jim Meyering  <meyering@redhat.com>
19878
19879         maint: update-copyright: exempt doc/INSTALL*
19880         * Makefile (update-copyright): Also exclude doc/INSTALL*,
19881         since they are generated.  Suggested by Bruno Haible.
19882
19883 2011-01-01  Jim Meyering  <meyering@redhat.com>
19884
19885         maint: refine the update-copyright rule
19886         * Makefile (update-copyright): Also exclude any file that includes
19887         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
19888         code that merely generates the comment.
19889
19890 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
19891
19892         New module 'u8-grapheme-len'.
19893         * modules/unigbrk/u8-grapheme-len: New file.
19894         * modules/unigbrk/u8-grapheme-len-tests: New file.
19895         * lib/unigbrk.in.h: Add prototype for new function.
19896         * lib/unigbrk/u8-grapheme-len.c: New file.
19897         * tests/unigbrk/test-u8-grapheme-len.c: New file.
19898
19899         New module 'u16-grapheme-len'.
19900         * modules/unigbrk/u16-grapheme-len: New file.
19901         * modules/unigbrk/u16-grapheme-len-tests: New file.
19902         * lib/unigbrk.in.h: Add prototype for new function.
19903         * lib/unigbrk/u16-grapheme-len.c: New file.
19904         * tests/unigbrk/test-u16-grapheme-len.c: New file.
19905
19906         New module 'u32-grapheme-len'.
19907         * modules/unigbrk/u32-grapheme-len: New file.
19908         * modules/unigbrk/u32-grapheme-len-tests: New file.
19909         * lib/unigbrk.in.h: Add prototype for new function.
19910         * lib/unigbrk/u32-grapheme-len.c: New file.
19911         * tests/unigbrk/test-u32-grapheme-len.c: New file.
19912
19913         New module 'u8-grapheme-next'.
19914         * modules/unigbrk/u8-grapheme-next: New file.
19915         * modules/unigbrk/u8-grapheme-next-tests: New file.
19916         * lib/unigbrk.in.h: Add prototype for new function.
19917         * lib/unigbrk/u8-grapheme-next.c: New file.
19918         * tests/unigbrk/test-u8-grapheme-next.c: New file.
19919
19920         New module 'u16-grapheme-next'.
19921         * modules/unigbrk/u16-grapheme-next: New file.
19922         * modules/unigbrk/u16-grapheme-next-tests: New file.
19923         * lib/unigbrk.in.h: Add prototype for new function.
19924         * lib/unigbrk/u16-grapheme-next.c: New file.
19925         * tests/unigbrk/test-u16-grapheme-next.c: New file.
19926
19927         New module 'u32-grapheme-next'.
19928         * modules/unigbrk/u32-grapheme-next: New file.
19929         * modules/unigbrk/u32-grapheme-next-tests: New file.
19930         * lib/unigbrk.in.h: Add prototype for new function.
19931         * lib/unigbrk/u32-grapheme-next.c: New file.
19932         * tests/unigbrk/test-u32-grapheme-next.c: New file.
19933
19934         New module 'u8-grapheme-prev'.
19935         * modules/unigbrk/u8-grapheme-prev: New file.
19936         * modules/unigbrk/u8-grapheme-prev-tests: New file.
19937         * lib/unigbrk.in.h: Add prototype for new function.
19938         * lib/unigbrk/u8-grapheme-prev.c: New file.
19939         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
19940
19941         New module 'u16-grapheme-prev'.
19942         * modules/unigbrk/u16-grapheme-prev: New file.
19943         * modules/unigbrk/u16-grapheme-prev-tests: New file.
19944         * lib/unigbrk.in.h: Add prototype for new function.
19945         * lib/unigbrk/u16-grapheme-prev.c: New file.
19946         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
19947
19948         New module 'u32-grapheme-prev'.
19949         * modules/unigbrk/u32-grapheme-prev: New file.
19950         * modules/unigbrk/u32-grapheme-prev-tests: New file.
19951         * lib/unigbrk.in.h: Add prototype for new function.
19952         * lib/unigbrk/u32-grapheme-prev.c: New file.
19953         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
19954
19955         New module 'u8-grapheme-breaks'.
19956         * modules/unigbrk/u8-grapheme-breaks: New file.
19957         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
19958         * lib/unigbrk.in.h: Add prototype for new function.
19959         * lib/unigbrk/u8-grapheme-breaks.c: New file.
19960         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
19961
19962         New module 'u16-grapheme-breaks'.
19963         * modules/unigbrk/u16-grapheme-breaks: New file.
19964         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
19965         * lib/unigbrk.in.h: Add prototype for new function.
19966         * lib/unigbrk/u16-grapheme-breaks.c: New file.
19967         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
19968
19969         New module 'u32-grapheme-breaks'.
19970         * modules/unigbrk/u32-grapheme-breaks: New file.
19971         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
19972         * lib/unigbrk.in.h: Add prototype for new function.
19973         * lib/unigbrk/u32-grapheme-breaks.c: New file.
19974         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
19975
19976         New module 'ulc-grapheme-breaks'.
19977         * modules/unigbrk/ulc-grapheme-breaks: New file.
19978         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
19979         * m4/locale-ar.m4: New file.
19980         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
19981         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
19982         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
19983
19984 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
19985
19986         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
19987         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
19988         modified how this file was generated before I initially submitted
19989         the module, but failed to regenerate it.  This meant that several
19990         of the level2 entries were wrong.
19991         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
19992         Remove the division-by-2 that is folded into the table now that
19993         gbrkprop.h has been regenerated properly.  Now -1 entries are
19994         handled correctly.
19995
19996         New module 'unigbrk/uc-gbrk-prop-tests'.
19997         * modules/unigbrk/uc-gbrk-prop-tests: New file.
19998         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
19999         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
20000         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
20001
20002 2011-01-01  Bruno Haible  <bruno@clisp.org>
20003
20004         Avoid use of hexadecimal escapes.
20005         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
20006         instead of hexadecimal escapes.
20007
20008 2011-01-01  Jim Meyering  <meyering@redhat.com>
20009
20010         maint: new rule to update copyright year ranges
20011         * Makefile (update-copyright): New rule.
20012
20013         maint: indent with TABs in Makefile
20014         * Makefile: Expand leading sequences of spaces to TABs
20015
20016         version-etc: update the copyright year it reports
20017         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
20018
20019 2010-12-31  Bruno Haible  <bruno@clisp.org>
20020
20021         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
20022         * lib/isfinite.c (zerof, zerod, zerol): New variables.
20023         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
20024         zero.
20025
20026 2010-12-31  Bruno Haible  <bruno@clisp.org>
20027
20028         pwrite: Work around HP-UX 11.11 bug.
20029         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
20030         works and set REPLACE_PWRITE if not.
20031         * lib/pwrite.c (pwrite): Add an implementation that uses the system
20032         function.
20033         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
20034
20035 2010-12-31  Bruno Haible  <bruno@clisp.org>
20036
20037         pread: Work around HP-UX 11 bugs.
20038         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
20039         and set REPLACE_PREAD if not.
20040         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
20041
20042 2010-12-31  Eric Blake  <eblake@redhat.com>
20043
20044         nl_langinfo: fix YESEXPR on Irix 6.5
20045         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
20046         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
20047         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
20048         it.
20049
20050 2010-12-31  Bruno Haible  <bruno@clisp.org>
20051
20052         iconv: Document HP-UX 11 bug.
20053         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
20054
20055 2010-12-31  Bruno Haible  <bruno@clisp.org>
20056
20057         ldexpl: Fix link error on HP-UX 11.
20058         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
20059         LDEXPL_LIBM, using $ISNANL_LIBM.
20060
20061 2010-12-31  Eric Blake  <eblake@redhat.com>
20062
20063         ftello: avoid compilation failure with SunStudio c89
20064         * lib/ftello.c (ftello): Use lseek, not llseek.
20065
20066         tests: avoid failing coreutils tests on cygwin
20067         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
20068         (create_exe_shims_): Return 0 when skipping.
20069
20070 2010-12-31  Bruno Haible  <bruno@clisp.org>
20071
20072         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
20073         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
20074
20075 2010-12-31  Bruno Haible  <bruno@clisp.org>
20076
20077         waitpid: Fix link error in C++ mode.
20078         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
20079
20080 2010-12-31  Bruno Haible  <bruno@clisp.org>
20081
20082         isnan: Use GCC built-ins when possible.
20083         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
20084         __builtin_isnan.
20085         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
20086         (isnan): Define using GCC built-ins for GCC >= 4.0.
20087
20088 2010-12-31  Bruno Haible  <bruno@clisp.org>
20089
20090         isnand: Fix mistake.
20091         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
20092         __builtin_isnand.
20093
20094 2010-12-31  Bruno Haible  <bruno@clisp.org>
20095
20096         open: Avoid C++ error on HP-UX 11.
20097         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
20098
20099 2010-12-31  Bruno Haible  <bruno@clisp.org>
20100
20101         time_r: Add missing declarations on HP-UX 11.
20102         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
20103         instead of HAVE_LOCALTIME_R.
20104         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
20105         HAVE_LOCALTIME_R always.
20106         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
20107         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
20108         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
20109         HAVE_LOCALTIME_R.
20110         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
20111         * doc/posix-functions/localtime_r.texi: Likewise.
20112
20113 2010-12-29  Eric Blake  <eblake@redhat.com>
20114
20115         mountlist: tweak previous commit
20116         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
20117         Reported by Paul Eggert.
20118
20119         mountlist: fix local drive detection on cygwin
20120         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
20121         that works for cygwin.
20122
20123 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
20124
20125         ftoastr, snprintf: ftoastr + snprintf module
20126         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
20127         since the snprintf module now should be good enough here.
20128         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
20129         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
20130         and gl_MODULE_INDICATOR([snprintf]), but the former enables
20131         GNULIB_SNPRINTF only for the test directory, and the latter
20132         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
20133         seems to suffice by itself.
20134
20135 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
20136
20137         alloca: one step towards thread-safety
20138         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
20139         need for a static variable.  All callers changed.  This does not
20140         make the alloca replacement thread-safe, but it's one step.
20141
20142         tests: minor indenting change
20143         * tests/init.sh: Sync from coreutils housekeeping patch
20144         <http://lists.gnu.org/archive/html/coreutils/2010-12/msg00116.html>
20145         to keep lines within 80 columns.
20146
20147 2010-12-28  Jim Meyering  <meyering@redhat.com>
20148
20149         regex: don't infloop on persistent failing calloc
20150         * lib/regexec.c (build_trtable): Return failure indication upon
20151         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
20152         In glibc, this was fixed for version 2.13:
20153         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
20154
20155 2010-12-28  Bruno Haible  <bruno@clisp.org>
20156             Paul Eggert <eggert@cs.ucla.edu>
20157
20158         linkat: Make implementation robust against system behaviour variations.
20159         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
20160         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
20161         way, and to -2 if it needs a generic runtime test.
20162         * lib/linkat.c (solaris_optimized_link_immediate,
20163         solaris_optimized_link_follow): New functions.
20164         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
20165         (check_same_link): Use it.
20166
20167 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
20168
20169         New module 'unigbrk/base'.
20170         * modules/unigbrk/base: New file.
20171         * lib/unigbrk.in.h: New file.
20172
20173         New module 'unigbrk/uc-gbrk-prop'.
20174         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
20175         * modules/unigbrk/uc-gbrk-prop: New file.
20176         * lib/unigbrk/gbrkprop.h: New file.
20177         * lib/unigbrk/uc-gbrk-prop.c: New file.
20178
20179         New module 'unigbrk/uc-is-grapheme-break'.
20180         * modules/unigbrk/uc-is-grapheme-break: New file.
20181         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
20182         * lib/unigbrk/uc-is-grapheme-break.c: New file.
20183         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
20184         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
20185         * tests/unigbrk/GraphemeBreakTest.txt: New file.
20186
20187         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
20188
20189 2010-12-27  Bruno Haible  <bruno@clisp.org>
20190
20191         linkat test: Avoid failure on Solaris 11 2010-11.
20192         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
20193
20194 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
20195
20196         utimens: work around glibc rounding bug on more platforms
20197         * lib/utimens.c (fdutimens): Work around rounding bug even if
20198         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
20199         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00298.html>.
20200
20201 2010-12-27  Bruno Haible  <bruno@clisp.org>
20202
20203         select tests: Improve comments.
20204         * tests/test-select.c (do_select): Add comments.
20205
20206 2010-12-27  Bruno Haible  <bruno@clisp.org>
20207
20208         select tests: Safer way of handling timeout.
20209         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
20210         at every invocation.
20211
20212 2010-12-27  Bruno Haible  <bruno@clisp.org>
20213
20214         select tests: Use 'bool' where appropriate.
20215         * tests/test-select.c (connect_to_socket): Change argument type to
20216         'bool'.
20217
20218 2010-12-27  Bruno Haible  <bruno@clisp.org>
20219
20220         select tests: Use existing modules.
20221         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
20222         (configure.ac): Don't test for unistd.h.
20223         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
20224         declared in <unistd.h>.
20225
20226 2010-12-27  Bruno Haible  <bruno@clisp.org>
20227
20228         mbrtowc: Work around a Solaris 7 bug.
20229         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
20230         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
20231         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
20232         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
20233         MBRTOWC_NULL_ARG1_BUG.
20234         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
20235         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
20236         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
20237         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
20238
20239 2010-12-27  Jim Meyering  <meyering@redhat.com>
20240
20241         read-file.c: tweak syntax
20242         * lib/read-file.c (fread_file): Remove space after "*" in function
20243         definitions.
20244
20245 2010-12-27  Bruno Haible  <bruno@clisp.org>
20246
20247         times test: Avoid gcc warnings on OSF/1.
20248         * tests/test-times.c (main): Cast printf arguments from clock_t to
20249         'long int'.
20250
20251 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
20252
20253         utimens: work around glibc rounding bug on older Linux kernels
20254         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
20255         on Linux with a glibc whose utimes might not work, then work
20256         around a longstanding glibc bug involving rounding rather than
20257         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
20258         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
20259
20260 2010-12-26  Bruno Haible  <bruno@clisp.org>
20261
20262         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
20263         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
20264         _GL_CXXALIAS_SYS.
20265         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
20266
20267 2010-12-26  Bruno Haible  <bruno@clisp.org>
20268
20269         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
20270         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
20271         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
20272         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
20273         looking for the declaration.
20274         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
20275         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
20276         problem.
20277         * doc/posix-functions/inet_pton.texi: Likewise.
20278
20279 2010-12-26  Bruno Haible  <bruno@clisp.org>
20280
20281         arpa_inet: Use the common idioms with C++ support.
20282         * lib/arpa_inet.in.h: Include c++defs.h.
20283         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
20284         support.
20285         * modules/arpa_inet (Depends-on): Add c++defs.
20286         (Makefile.am): Substitute the contents of c++defs.h.
20287         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
20288         * modules/arpa_inet-c++-tests: New file.
20289         * tests/test-arpa_inet-c++.cc: New file.
20290
20291 2010-12-25  Bruno Haible  <bruno@clisp.org>
20292
20293         Fix more C++ link errors on Solaris 8.
20294         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
20295         $(LIB_EACCESS).
20296         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
20297         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
20298         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
20299         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
20300         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
20301
20302 2010-12-25  Bruno Haible  <bruno@clisp.org>
20303
20304         printf-posix: Fix link error when a non-GCC compiler is used.
20305         * lib/stdio.in.h (printf): When not using GCC, override printf
20306         correctly.
20307         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
20308
20309 2010-12-25  Bruno Haible  <bruno@clisp.org>
20310
20311         strerror_r-posix: Update doc.
20312         * doc/posix-functions/strerror_r.texi: Update doc about the return
20313         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
20314
20315 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
20316
20317         utimens: simplify the logic of the previous change
20318         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
20319         This should not affect whether the test succeeds or fails.
20320
20321         utimens: configure better on hosts with NFS clock skew
20322         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
20323         uses the clock of the local host.  It might use the clock of the
20324         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
20325         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
20326
20327 2010-12-25  Bruno Haible  <bruno@clisp.org>
20328
20329         ptsname test: Avoid failure on Solaris.
20330         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
20331         open a pseudo-terminal; don't use BSD-style ptys.
20332         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
20333
20334 2010-12-25  Bruno Haible  <bruno@clisp.org>
20335
20336         ptsname: Avoid ERANGE failure on some systems.
20337         * lib/ptsname.c (buffer): Increase size.
20338
20339 2010-12-25  Bruno Haible  <bruno@clisp.org>
20340
20341         rename, renameat: Avoid test failures at NFS mounted locations.
20342         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
20343         so that subsequent mkdir calls succeed.
20344
20345 2010-12-25  Bruno Haible  <bruno@clisp.org>
20346
20347         iswblank: Fix C++ link error on Solaris 8.
20348         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
20349         _GL_FUNCDECL_SYS.
20350
20351 2010-12-25  Bruno Haible  <bruno@clisp.org>
20352
20353         unistd: Fix C++ link error on Solaris 8.
20354         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
20355
20356 2010-12-25  Bruno Haible  <bruno@clisp.org>
20357
20358         readlink doc: Mention an old glibc bug.
20359         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
20360
20361 2010-12-25  Bruno Haible  <bruno@clisp.org>
20362
20363         fcntl-h: Fix for use of C++ on glibc systems.
20364         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
20365         also on glibc systems in C++ mode.
20366         Reported by Gary V. Vaughan <gary@gnu.org>.
20367
20368 2010-12-25  Bruno Haible  <bruno@clisp.org>
20369
20370         roundl-ieee: Make it work on OSF/1 5.1 with cc.
20371         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
20372
20373 2010-12-25  Bruno Haible  <bruno@clisp.org>
20374
20375         truncl-ieee: Make it work on OSF/1 5.1 with cc.
20376         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
20377         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
20378         test whether truncl works according to ISO C 99 with IEC 60559.
20379         * m4/truncl-ieee.m4: New file.
20380         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
20381         m4/signbit.m4.
20382         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
20383
20384 2010-12-25  Bruno Haible  <bruno@clisp.org>
20385
20386         ceill-ieee: Make it work on OSF/1 5.1 with cc.
20387         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
20388         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
20389         test whether ceill works according to ISO C 99 with IEC 60559.
20390         * m4/ceill-ieee.m4: New file.
20391         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
20392         m4/signbit.m4.
20393         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
20394
20395 2010-12-25  Bruno Haible  <bruno@clisp.org>
20396
20397         Ensure all prerequisites of <wchar.h> are included.
20398         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
20399         before <wchar.h>.
20400         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
20401         gl_MBRLEN_NUL_RETVAL): Likewise.
20402         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
20403         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
20404         AC_FUNC_MBRTOWC): Likewise.
20405         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
20406         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
20407         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
20408         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
20409         Likewise.
20410         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
20411         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
20412         (gl_WCHAR_H): Improve comments.
20413         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
20414
20415 2010-12-25  Bruno Haible  <bruno@clisp.org>
20416
20417         strtok_r: Fix C syntax error in autoconf macro.
20418         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
20419         characters in test program.
20420
20421 2010-12-24  Bruno Haible  <bruno@clisp.org>
20422
20423         ceil, trunc, round: Fix gcc warnings.
20424         * lib/ceil.c (MIN): Undefine before redefining.
20425         * lib/trunc.c (MIN): Likewise.
20426         * lib/round.c (MIN): Likewise.
20427         Include <math.h> first.
20428
20429 2010-12-24  Bruno Haible  <bruno@clisp.org>
20430
20431         select tests: Avoid failures on OSF/1 5.1.
20432         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
20433         failure of closing the last socket; it may fail with ECONNRESET.
20434
20435 2010-12-24  Eric Blake  <eblake@redhat.com>
20436
20437         stdint: avoid HP-UX 10.20 preprocessor bug
20438         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
20439         than #if.
20440         * tests/test-floor2.c (main): Likewise.
20441         Reported by Peter O'Gorman.
20442
20443         pipe: make obsoletion transition easier
20444         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
20445         * modules/pipe (Files): Include revived file.
20446         (Include): Drop reference, to mirror getdate's behavior.
20447
20448 2010-12-24  Bruno Haible  <bruno@clisp.org>
20449
20450         sys_socket: Hide mismatch of declarations on NonStop Kernel.
20451         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
20452         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
20453         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
20454
20455 2010-12-24  Bruno Haible  <bruno@clisp.org>
20456
20457         gethostname: Ensure declaration on NonStop Kernel.
20458         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
20459         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
20460
20461 2010-12-24  Bruno Haible  <bruno@clisp.org>
20462
20463         sys_select: Ensure all necessary types on NonStop Kernel.
20464         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
20465         include <sys/time.h>.
20466         * doc/posix-headers/sys_select.texi: Mention that it's missing on
20467         NonStop Kernel.
20468         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
20469
20470 2010-12-24  Bruno Haible  <bruno@clisp.org>
20471
20472         sys_select: Remove unneeded include.
20473         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
20474         have <sys/select.h>.
20475
20476 2010-12-24  Bruno Haible  <bruno@clisp.org>
20477
20478         gethostname: Provide a fallback for HOST_NAME_MAX.
20479         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
20480         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
20481         instead.
20482         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
20483
20484 2010-12-24  Bruno Haible  <bruno@clisp.org>
20485
20486         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
20487         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
20488         (SA_RESTART): Likewise.
20489         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
20490
20491 2010-12-24  Bruno Haible  <bruno@clisp.org>
20492
20493         signal: Define NSIG.
20494         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
20495         * tests/test-signal.c (nsig): New variable.
20496         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
20497
20498 2010-12-24  Bruno Haible  <bruno@clisp.org>
20499
20500         rename, renameat: Avoid test failures on OSF/1 5.1.
20501         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
20502         alternative error codes.
20503         * tests/test-renameat.c (main): Likewise.
20504
20505 2010-12-24  Bruno Haible  <bruno@clisp.org>
20506
20507         *printf: Detect large precisions bug on Solaris 10/SPARC.
20508         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
20509         by Paul Eggert.
20510         * tests/test-snprintf-posix.h (test_function): Add this test code here
20511         too.
20512         * tests/test-sprintf-posix.h (test_function): Likewise.
20513         * tests/test-vasnprintf-posix.c (test_function): Likewise.
20514         * tests/test-vasprintf-posix.c (test_function): Likewise.
20515         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
20516         around by gnulib.
20517         * doc/posix-functions/printf.texi: Likewise.
20518         * doc/posix-functions/snprintf.texi: Likewise.
20519         * doc/posix-functions/sprintf.texi: Likewise.
20520         * doc/posix-functions/vfprintf.texi: Likewise.
20521         * doc/posix-functions/vprintf.texi: Likewise.
20522         * doc/posix-functions/vsnprintf.texi: Likewise.
20523         * doc/posix-functions/vsprintf.texi: Likewise.
20524         * doc/posix-functions/dprintf.texi: Undo last commit.
20525         * doc/posix-functions/vdprintf.texi: Likewise.
20526
20527 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
20528
20529         tests: port test-fdutimensat.c to Solaris 8
20530         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
20531         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
20532         On Solaris 8, it fails with errno == ENOSYS, because there is no
20533         futimens (so it can't use the fd), and there is no lutimens (so it
20534         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
20535
20536         vsnprintf: make more consistent with snprintf; doc fixes
20537
20538         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
20539         the byte count return problem was promoted from the snprintf-posix
20540         to the snprintf module.
20541         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
20542         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
20543         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
20544         * tests/test-snprintf.c (main): Check the byte count returned.
20545         * tests/test-vsnprintf.c (main): Likewise.
20546
20547 2010-12-23  Eric Blake  <eblake@redhat.com>
20548
20549         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
20550         * modules/sigpipe (License): Relax license.
20551
20552 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
20553
20554         doc: document Solaris printf bug with large float precisions
20555         * doc/posix-functions/dprintf.texi (dprintf):
20556         * doc/posix-functions/fprintf.texi (fprintf):
20557         * doc/posix-functions/printf.texi (printf):
20558         * doc/posix-functions/snprintf.texi (snprintf):
20559         * doc/posix-functions/sprintf.texi (sprintf):
20560         * doc/posix-functions/vdprintf.texi (vdprintf):
20561         * doc/posix-functions/vfprintf.texi (vfprintf):
20562         * doc/posix-functions/vprintf.texi (vprintf):
20563         * doc/posix-functions/vsnprintf.texi (vsnprintf):
20564         * doc/posix-functions/vsprintf.texi (vsprintf):
20565         Mention that these functions mishandle large floating point
20566         precisions on Solaris 10.  The same bug is also present in Solaris
20567         8, and I assume earlier.  This causes "cd gnulib-tests; make
20568         check" to fail on Solaris 8 (and I assume, later) when building
20569         the latest coreutils, in test-vasprintf-posix's call to
20570         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
20571         the wide flavors (e.g., wprintf) so this patch just updates the
20572         documentation for the narrow ones.
20573
20574         test-posixtm.c: add two tests
20575         * tests/test-posixtm.c: Add two tests, to highlight the
20576         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
20577         around this bug; this is merely to document it.
20578
20579 2010-12-22  Bruno Haible  <bruno@clisp.org>
20580
20581         getlogin_r: Work around portability problem on OSF/1.
20582         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
20583         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
20584         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
20585         test for a truncated result.
20586         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
20587         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
20588         * modules/getlogin_r (Depends-on): Add memchr.
20589         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
20590
20591 2010-12-22  Bruno Haible  <bruno@clisp.org>
20592
20593         ptsname: Avoid test failure on OSF/1 5.1.
20594         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
20595         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
20596         (same_slave): New function.
20597         (main): Use it to compare ptsname's result with the expected file name.
20598
20599 2010-12-22  Bruno Haible  <bruno@clisp.org>
20600
20601         Port extended stdio modules to HP NonStop Kernel.
20602         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
20603         macros.
20604         * lib/fbufmode.c: Update comments.
20605         * lib/fflush.c: Likewise.
20606         * lib/fpurge.c: Likewise.
20607         * lib/freadable.c: Likewise.
20608         * lib/freadahead.c: Likewise.
20609         * lib/freading.c: Likewise.
20610         * lib/freadptr.c: Likewise.
20611         * lib/freadseek.c: Likewise.
20612         * lib/fseeko.c: Likewise.
20613         * lib/fseterr.c: Likewise.
20614         * lib/fwritable.c: Likewise.
20615         * lib/fwriting.c: Likewise.
20616         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
20617
20618 2010-12-22  Bruno Haible  <bruno@clisp.org>
20619
20620         ttyname_r: Work around bug on OSF/1 5.1.
20621         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
20622         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
20623         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
20624         present.
20625         * lib/ttyname_r.c (ttyname_r): Update comments.
20626
20627 2010-12-22  Bruno Haible  <bruno@clisp.org>
20628
20629         round: Implement result sign according to IEEE 754.
20630         * lib/round.c (MIN, MINUS_ZERO): New macros.
20631         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
20632         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
20633         * tests/test-round-ieee.c (main): Likewise.
20634         * tests/test-roundl-ieee.c (main): Likewise.
20635
20636         trunc: Implement result sign according to IEEE 754.
20637         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
20638         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
20639         * tests/test-trunc2.c: Include minus-zero.h.
20640         (MINUS_ZERO): New macro.
20641         (trunc_reference): Keep in sync with lib/trunc.c.
20642         * tests/test-truncf2.c: Include minus-zero.h.
20643         (MINUS_ZERO): New macro.
20644         (truncf_reference): Keep in sync with lib/trunc.c.
20645         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
20646         * tests/test-trunc-ieee.c (main): Likewise.
20647         * tests/test-truncl-ieee.c (main): Likewise.
20648
20649         ceil: Implement result sign according to IEEE 754.
20650         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
20651         (FUNC): Return -0.0 for -1 < x < 0.
20652         * tests/test-ceil2.c: Include minus-zero.h.
20653         (MINUS_ZERO): New macro.
20654         (ceil_reference): Keep in sync with lib/ceil.c.
20655         * tests/test-ceilf2.c: Include minus-zero.h.
20656         (MINUS_ZERO): New macro.
20657         (ceilf_reference): Keep in sync with lib/ceil.c.
20658         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
20659         * tests/test-ceil-ieee.c (main): Likewise.
20660         * tests/test-ceill-ieee.c (main): Likewise.
20661
20662         floor: Implement result sign according to IEEE 754.
20663         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
20664         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
20665         * tests/test-floorf2.c (floorf_reference): Likewise.
20666         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
20667         * tests/test-floor-ieee.c (main): Likewise.
20668         * tests/test-floorl-ieee.c (main): Likewise.
20669
20670 2010-12-22  Bruno Haible  <bruno@clisp.org>
20671
20672         getaddrinfo: Update doc.
20673         * doc/posix-functions/gai_strerror.texi: Return type is also different
20674         on AIX and HP-UX.
20675
20676 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
20677
20678         getaddrinfo, inet_ntop: Update doc for Solaris.
20679         * doc/posix-functions/gai_strerror.texi: Return type is also an
20680         issue on Solaris 9 and earlier.
20681         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
20682         on Solaris 10 and earlier.
20683
20684 2010-12-21  Bruno Haible  <bruno@clisp.org>
20685
20686         New module 'roundl-ieee'.
20687         * modules/roundl-ieee: New file.
20688         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
20689         test whether roundl works according to ISO C 99 with IEC 60559.
20690         * m4/roundl-ieee.m4: New file.
20691         * modules/roundl-ieee-tests: New file.
20692         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
20693         * tests/test-roundl.c (main): Remove signbit tests.
20694         * modules/roundl-tests (Depends-on): Remove signbit.
20695         * doc/posix-functions/roundl.texi: Mention the new module.
20696
20697 2010-12-21  Bruno Haible  <bruno@clisp.org>
20698
20699         New module 'truncl-ieee'.
20700         * modules/truncl-ieee: New file.
20701         * modules/truncl-ieee-tests: New file.
20702         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
20703         * tests/test-truncl.c (main): Remove signbit tests.
20704         * modules/truncl-tests (Depends-on): Remove signbit.
20705         * doc/posix-functions/truncl.texi: Mention the new module.
20706
20707 2010-12-21  Bruno Haible  <bruno@clisp.org>
20708
20709         New module 'ceill-ieee'.
20710         * modules/ceill-ieee: New file.
20711         * modules/ceill-ieee-tests: New file.
20712         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
20713         * tests/test-ceill.c (main): Remove signbit tests.
20714         * modules/ceill-tests (Depends-on): Remove signbit.
20715         * doc/posix-functions/ceill.texi: Mention the new module.
20716
20717 2010-12-21  Bruno Haible  <bruno@clisp.org>
20718
20719         New module 'floorl-ieee'.
20720         * modules/floorl-ieee: New file.
20721         * modules/floorl-ieee-tests: New file.
20722         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
20723         * tests/test-floorl.c (main): Remove signbit tests.
20724         * modules/floorl-tests (Depends-on): Remove signbit.
20725         * doc/posix-functions/floorl.texi: Mention the new module.
20726
20727 2010-12-21  Bruno Haible  <bruno@clisp.org>
20728
20729         New module 'round-ieee'.
20730         * modules/round-ieee: New file.
20731         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
20732         whether round works according to ISO C 99 with IEC 60559.
20733         * m4/round-ieee.m4: New file.
20734         * modules/round-ieee-tests: New file.
20735         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
20736         * tests/test-round1.c (main): Remove signbit tests.
20737         * modules/round-tests (Depends-on): Remove 'signbit'.
20738         * doc/posix-functions/round.texi: Mention the new module.
20739
20740 2010-12-21  Bruno Haible  <bruno@clisp.org>
20741
20742         New module 'trunc-ieee'.
20743         * modules/trunc-ieee: New file.
20744         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
20745         whether trunc works according to ISO C 99 with IEC 60559.
20746         * m4/trunc-ieee.m4: New file.
20747         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
20748         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
20749         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
20750         * modules/trunc-ieee-tests: New file.
20751         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
20752         * tests/test-trunc1.c (main): Remove signbit tests.
20753         * modules/trunc-tests (Depends-on): Remove 'signbit'.
20754         * doc/posix-functions/trunc.texi: Mention the new module.
20755
20756 2010-12-21  Bruno Haible  <bruno@clisp.org>
20757
20758         New module 'ceil-ieee'.
20759         * modules/ceil-ieee: New file.
20760         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
20761         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
20762         ISO C 99 with IEC 60559.
20763         * m4/ceil-ieee.m4: New file.
20764         * modules/ceil (Files): Add lib/ceil.c.
20765         (Depends-on): Add 'float'.
20766         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
20767         * lib/math.in.h (ceil): New declaration.
20768         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
20769         REPLACE_CEIL.
20770         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
20771         * modules/ceil-ieee-tests: New file.
20772         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
20773         * tests/test-math-c++.cc: Check the signature of 'ceil'.
20774         * doc/posix-functions/ceil.texi: Mention the new module.
20775
20776 2010-12-21  Bruno Haible  <bruno@clisp.org>
20777
20778         New module 'floor-ieee'.
20779         * modules/floor-ieee: New file.
20780         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
20781         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
20782         ISO C 99 with IEC 60559.
20783         * m4/floor-ieee.m4: New file.
20784         * modules/floor (Files): Add lib/floor.c.
20785         (Depends-on): Add 'float'.
20786         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
20787         * lib/math.in.h (floor): New declaration.
20788         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
20789         REPLACE_FLOOR.
20790         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
20791         * modules/floor-ieee-tests: New file.
20792         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
20793         * tests/test-math-c++.cc: Check the signature of 'floor'.
20794         * doc/posix-functions/floor.texi: Mention the new module.
20795
20796 2010-12-21  Bruno Haible  <bruno@clisp.org>
20797
20798         New module 'roundf-ieee'.
20799         * modules/roundf-ieee: New file.
20800         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
20801         test whether roundf works according to ISO C 99 with IEC 60559.
20802         * m4/roundf-ieee.m4: New file.
20803         * modules/roundf-ieee-tests: New file.
20804         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
20805         * tests/test-roundf1.c (main): Remove signbit tests.
20806         * modules/roundf-tests (Depends-on): Remove 'signbit'.
20807         * doc/posix-functions/roundf.texi: Mention the new module.
20808
20809 2010-12-21  Bruno Haible  <bruno@clisp.org>
20810
20811         New module 'truncf-ieee'.
20812         * modules/truncf-ieee: New file.
20813         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
20814         test whether truncf works according to ISO C 99 with IEC 60559.
20815         * m4/truncf-ieee.m4: New file.
20816         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
20817         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
20818         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
20819         * modules/truncf-ieee-tests: New file.
20820         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
20821         * tests/test-truncf1.c (main): Remove signbit tests.
20822         * modules/truncf-tests (Depends-on): Remove 'signbit'.
20823         * doc/posix-functions/truncf.texi: Mention the new module.
20824
20825 2010-12-21  Bruno Haible  <bruno@clisp.org>
20826
20827         New module 'ceilf-ieee'.
20828         * modules/ceilf-ieee: New file.
20829         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
20830         test whether ceilf works according to ISO C 99 with IEC 60559.
20831         * m4/ceilf-ieee.m4: New file.
20832         * modules/ceilf-ieee-tests: New file.
20833         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
20834         * tests/test-ceilf1.c (main): Remove signbit tests.
20835         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
20836         * doc/posix-functions/ceilf.texi: Mention the new module.
20837
20838 2010-12-21  Bruno Haible  <bruno@clisp.org>
20839
20840         New module 'floorf-ieee'.
20841         * modules/floorf-ieee: New file.
20842         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
20843         test whether floorf works according to ISO C 99 with IEC 60559.
20844         * m4/floorf-ieee.m4: New file.
20845         * modules/floorf-ieee-tests: New file.
20846         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
20847         * tests/test-floorf1.c (main): Remove signbit tests.
20848         * modules/floorf-tests (Depends-on): Remove 'signbit'.
20849         * doc/posix-functions/floorf.texi: Mention the new module.
20850
20851 2010-12-21  Bruno Haible  <bruno@clisp.org>
20852
20853         Support for minus zero in autoconf macros.
20854         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
20855         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
20856         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
20857         * tests/minus-zero.h: Update comments.
20858
20859 2010-12-21  Bruno Haible  <bruno@clisp.org>
20860
20861         Tests for module 'ceil'.
20862         * modules/ceil-tests: New file.
20863         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
20864         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
20865
20866 2010-12-21  Bruno Haible  <bruno@clisp.org>
20867
20868         Tests for module 'floor'.
20869         * modules/floor-tests: New file.
20870         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
20871         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
20872
20873 2010-12-21  Bruno Haible  <bruno@clisp.org>
20874
20875         math: Fix indentation.
20876         * lib/math.in.h (floorf): Fix indentation.
20877
20878 2010-12-21  Bruno Haible  <bruno@clisp.org>
20879
20880         Fix cross-compilation guesses on Solaris.
20881         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
20882         not match "solaris2.10".
20883         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
20884         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
20885         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
20886
20887 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
20888
20889         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
20890         This fixes a problem observed with the latest coreutils snapshot
20891         that caused a test to fail on Solaris 8.  src/csplit.c's call
20892         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
20893         earlier, instead of returning the number of bytes that would have
20894         been generated; this causes csplit to incorrectly report memory
20895         exhaustion.
20896         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
20897         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
20898         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
20899         comments to match.
20900         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
20901         Fix typo in matching older versions of Solaris: "solaris2.10"
20902         is matched by the shell pattern "solaris2.[0-9]*".  This matters
20903         only for guessing while cross-compiling.
20904         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
20905
20906 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
20907
20908         ftoastr: fix comment again
20909         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
20910         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00149.html>.
20911         Also, simplify example a bit by using flags = 0.
20912
20913 2010-12-20  Bruno Haible  <bruno@clisp.org>
20914
20915         round*, trunc*: Update documentation regarding glibc.
20916         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
20917         * doc/posix-functions/round.texi: Likewise.
20918         * doc/posix-functions/roundl.texi: Likewise.
20919         * doc/posix-functions/truncf.texi: Likewise.
20920         * doc/posix-functions/trunc.texi: Likewise.
20921         * doc/posix-functions/truncl.texi: Likewise.
20922
20923 2010-12-20  Bruno Haible  <bruno@clisp.org>
20924
20925         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
20926         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
20927         * doc/posix-functions/round.texi: Likewise.
20928         * doc/posix-functions/roundl.texi: Likewise.
20929
20930 2010-12-20  Bruno Haible  <bruno@clisp.org>
20931
20932         ttyname_r: Add missing declaration on HP-UX 11.
20933         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
20934         HAVE_TTYNAME_R.
20935         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
20936         declared. Set HAVE_TTYNAME_R always.
20937         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
20938         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
20939         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
20940         HAVE_TTYNAME_R.
20941         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
20942
20943 2010-12-20  Bruno Haible  <bruno@clisp.org>
20944
20945         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
20946         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
20947         * doc/posix-functions/getlogin_r.texi: Likewise.
20948         * tests/test-getlogin.c: Include <errno.h>.
20949         (main): Avoid test failure on HP-UX 11.11.
20950         * tests/test-getlogin_r.c (main): Likewise.
20951
20952 2010-12-20  Bruno Haible  <bruno@clisp.org>
20953
20954         getlogin_r: Add missing declaration on HP-UX 11.
20955         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
20956         declared also when it exists as a function.
20957         * doc/posix-functions/getlogin_r.texi: Document this workaround.
20958
20959 2010-12-20  Bruno Haible  <bruno@clisp.org>
20960
20961         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
20962         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
20963         through wcrtomb.
20964
20965 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
20966
20967         ftoastr: fix comment
20968         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
20969         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00130.html>.
20970
20971 2010-12-19  Bruno Haible  <bruno@clisp.org>
20972
20973         isnan: Ensure it is a macro.
20974         * lib/math.in.h (isnan): Define as a macro if not already a macro.
20975         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
20976         Solaris.
20977
20978 2010-12-19  Bruno Haible  <bruno@clisp.org>
20979
20980         ldexpl test: Fix link error on OSF/1 5.1.
20981         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
20982
20983 2010-12-19  Bruno Haible  <bruno@clisp.org>
20984
20985         wctype: Make it work in C++ mode on OSF/1 5.1.
20986         * lib/wctype.in.h (iswblank): Declare but not define here.
20987         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
20988         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
20989         * modules/wctype (Files): Add lib/iswblank.c.
20990
20991 2010-12-19  Bruno Haible  <bruno@clisp.org>
20992
20993         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
20994         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
20995         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
20996
20997 2010-12-19  Bruno Haible  <bruno@clisp.org>
20998
20999         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
21000         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
21001         _POSIX_PII_SOCKET.
21002         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
21003         * doc/posix-functions/recvfrom.texi: Likewise.
21004         * doc/posix-functions/send.texi: Likewise.
21005         * doc/posix-functions/sendto.texi: Likewise.
21006
21007 2010-12-19  Bruno Haible  <bruno@clisp.org>
21008
21009         tcgetsid: Add missing declaration on OSF/1 5.1.
21010         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
21011         HAVE_TCGETSID.
21012         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
21013         Don't set HAVE_TCGETSID.
21014         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
21015         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
21016         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
21017         HAVE_TCGETSID.
21018         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
21019
21020 2010-12-19  Bruno Haible  <bruno@clisp.org>
21021
21022         stdio: Fix problem with popen() declaration on OSF/1 5.1.
21023         * lib/stdio.in.h: During the include_next statement, let recursive
21024         includes of this file include only the system header file.
21025
21026 2010-12-19  Bruno Haible  <bruno@clisp.org>
21027
21028         iconv_open: Fix regression from 2010-12-04.
21029         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
21030         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
21031
21032 2010-12-19  Bruno Haible  <bruno@clisp.org>
21033
21034         stdbool test: Avoid a gcc warning.
21035         * tests/test-stdbool.c (main): Fail if e1 is false.
21036         Reported by Jim Meyering.
21037
21038 2010-12-19  Jim Meyering  <meyering@redhat.com>
21039
21040         setenv: restore to working order
21041         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
21042         mistakenly removed.
21043         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
21044         HAVE_SETENV.
21045         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
21046         HAVE_SETENV.
21047
21048 2010-12-19  Bruno Haible  <bruno@clisp.org>
21049
21050         Document some different function declarations on OSF/1 5.1.
21051         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
21052         * doc/posix-functions/inet_ntop.texi: Likewise.
21053         * doc/posix-functions/gethostname.texi: Likewise.
21054         * lib/unistd.in.h (gethostname): Update comment.
21055
21056 2010-12-19  Bruno Haible  <bruno@clisp.org>
21057
21058         doc: Mention vasprintf-posix module.
21059         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
21060         the 'vasprintf-posix' module.
21061         * doc/glibc-functions/vasprintf.texi: Likewise.
21062
21063 2010-12-19  Bruno Haible  <bruno@clisp.org>
21064
21065         unsetenv: Add missing declaration on OSF/1 5.1.
21066         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
21067         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
21068         Don't set HAVE_UNSETENV. In the test program, set _BSD.
21069         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
21070         not HAVE_UNSETENV.
21071         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
21072         HAVE_UNSETENV.
21073         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
21074
21075 2010-12-19  Bruno Haible  <bruno@clisp.org>
21076
21077         setenv: Add missing declaration on OSF/1 5.1.
21078         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
21079         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
21080         declared. Don't set HAVE_SETENV.
21081         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
21082         not HAVE_SETENV.
21083         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
21084         HAVE_SETENV.
21085         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
21086
21087 2010-12-19  Bruno Haible  <bruno@clisp.org>
21088
21089         nl_langinfo tests: Avoid gcc warning.
21090         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
21091
21092 2010-12-19  Bruno Haible  <bruno@clisp.org>
21093
21094         mknod: Avoid error in C++ mode on OSF/1 with GCC.
21095         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
21096         _GL_CXXALIAS_SYS.
21097
21098 2010-12-19  Bruno Haible  <bruno@clisp.org>
21099
21100         stdbool: Relax test.
21101         * tests/test-stdbool.c (e): Don't require that casts from a variable's
21102         address to 'bool' work in static initializer, for compilers other than
21103         GCC.
21104
21105 2010-12-19  Bruno Haible  <bruno@clisp.org>
21106
21107         ftello: Add missing declaration on OSF/1 5.1.
21108         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
21109         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
21110         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
21111         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
21112         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
21113
21114 2010-12-19  Bruno Haible  <bruno@clisp.org>
21115
21116         fseeko: Add missing declaration on OSF/1 5.1.
21117         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
21118         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
21119         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
21120         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
21121         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
21122
21123 2010-12-19  Bruno Haible  <bruno@clisp.org>
21124
21125         fchdir: Add missing declaration on OSF/1 5.1.
21126         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
21127         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
21128         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
21129         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
21130         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
21131
21132 2010-12-19  Bruno Haible  <bruno@clisp.org>
21133
21134         relocatable-prog-wrapper: Separate from relocatable-prog.
21135         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
21136         uninstall-relocwrapper rule here.
21137         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
21138         Reported by Ian Beckwith <ianb@erislabs.net>.
21139
21140 2010-12-19  Bruno Haible  <bruno@clisp.org>
21141
21142         unistr/u8-mbsnlen: Add missing dependency.
21143         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
21144         Reported by Ian Beckwith <ianb@erislabs.net>.
21145
21146 2010-12-19  Bruno Haible  <bruno@clisp.org>
21147
21148         iconv: Make it possible again to use this module without 'iconv-h'.
21149         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
21150         if it is not defined.
21151         Reported by Ian Beckwith <ianb@erislabs.net>.
21152
21153 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
21154
21155         acl: port to Solaris 8 when copying from tmpfs to ufs
21156         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
21157         error number.  Problem observed on Solaris 8 with latest
21158         coreutils, with "mv A B", where A is on a tmpfs file system and B
21159         is on a ufs file system.  This caused coreutils' mv/part-symlink
21160         test to fail.
21161
21162         tests: set fail=0 at start
21163         * tests/init.sh (setup_): Move fail=0 initialization here ...
21164         (mktempd_): ... from here, so that tests can rely on fail being
21165         set to 0 initially.  This fixes a problem in coreutils; see:
21166         http://lists.gnu.org/archive/html/coreutils/2010-12/msg00083.html
21167
21168 2010-12-18  Bruno Haible  <bruno@clisp.org>
21169
21170         memmem-simple: Stylistic changes.
21171         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
21172         Fix preprocessor directive indentation.
21173
21174 2010-12-15  Pádraig Brady <P@draigBrady.com>
21175
21176         memmem, memmem-simple: reorganize and expand empty needle check
21177         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
21178         functional checks to memmem-simple so that one has a fully functional
21179         memmem by using just this module.
21180         Restrict the performance only check to the memmem module.
21181         Also expand the empty needle check to ensure the correct
21182         pointer is returned, not just a non NULL pointer.
21183         * doc/glibc-functions/memmem.texi: Rearrange the portability
21184         documentation to correlate with the rearranged checks.
21185         Clarify exactly how the memmem and memmem-simple modules
21186         relate to each other.
21187
21188 2010-12-15  Pádraig Brady <P@draigBrady.com>
21189             Bruno Haible  <bruno@clisp.org>
21190
21191         Improve cross-compilation guesses for uClibc.
21192         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
21193         that uClibc does not have the glibc bug.
21194         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
21195         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
21196
21197 2010-12-14  Eric Blake  <eblake@redhat.com>
21198
21199         configmake: provide fallbacks for oldest supported autotools
21200         * m4/configmake.m4: New file.
21201         * modules/configmake (Files): Ship it.
21202         (configure.ac): Use it to guarantee fallbacks.
21203
21204 2010-12-13  Pádraig Brady <P@draigBrady.com>
21205
21206         read-file: Improve handling of large files
21207         * lib/read-file.c (fread_file): Minimize realloc()s
21208         for regular files, and better manage sizes around SIZE_MAX.
21209
21210 2010-12-13  Eric Blake  <eblake@redhat.com>
21211
21212         cloexec, fcntl: relax license
21213         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
21214         consent from all contributors.
21215         * modules/fcntl (License): Likewise.
21216
21217 2010-12-10  Bruno Haible  <bruno@clisp.org>
21218
21219         Tests for module 'pipe-posix'.
21220         * modules/pipe-posix-tests: New file.
21221         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
21222
21223 2010-12-10  Bruno Haible  <bruno@clisp.org>
21224
21225         pipe-posix: Make it work in C++ mode.
21226         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
21227         (pipe): Use common idiom, not a macro definition.
21228         * lib/pipe.c: New file.
21229         * m4/pipe.m4: New file.
21230         * modules/pipe-posix (Description): Enhance.
21231         (Files): Add lib/pipe.c, m4/pipe.m4.
21232         (configure.ac): Invoke gl_FUNC_PIPE.
21233         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
21234         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
21235         * tests/test-unistd-c++.cc: Check the signature of pipe.
21236
21237 2010-12-10  Bruno Haible  <bruno@clisp.org>
21238
21239         Rename module 'pipe' to 'spawn-pipe'.
21240         * modules/spawn-pipe: New file, renamed from modules/pipe.
21241         (Files, configure.ac, Makefile.am): Update.
21242         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
21243         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
21244         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
21245         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
21246         "spawn-pipe.h" instead of "pipe.h".
21247         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
21248         to gl_SPAWN_PIPE.
21249         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
21250         (Files, Makefile.am): Update.
21251         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
21252         Update.
21253         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
21254         Include "spawn-pipe.h" instead of "pipe.h".
21255         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
21256         * lib/javacomp.c: Likewise.
21257         * lib/javaversion.c: Likewise.
21258         * lib/pipe-filter-gi.c: Likewise.
21259         * lib/pipe-filter-ii.c: Likewise.
21260         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
21261         * modules/javacomp (Depends-on): Likewise.
21262         * modules/javaversion (Depends-on): Likewise.
21263         * modules/pipe-filter-gi (Depends-on): Likewise.
21264         * modules/pipe-filter-ii (Depends-on): Likewise.
21265         * MODULES.html.sh (Executing programs): Update.
21266         * NEWS: Mention the change.
21267
21268 2010-12-10  Eric Blake  <eblake@redhat.com>
21269
21270         pipe-posix: new module
21271         * modules/pipe-posix: New file.
21272         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
21273         (gl_UNISTD_H): Check for declaration.
21274         * modules/unistd (Makefile.am): Substitute it.
21275         * lib/unistd.in.h (pipe): Provide it for mingw.
21276         * doc/posix-functions/pipe.texi (pipe): Update documentation.
21277         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
21278
21279 2010-12-07  Bruno Haible  <bruno@clisp.org>
21280
21281         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
21282         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
21283         u8_strcmp_gnu.
21284         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
21285
21286 2010-12-06  Bruno Haible  <bruno@clisp.org>
21287
21288         Update internal documentation.
21289         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
21290
21291 2010-12-04  Bruno Haible  <bruno@clisp.org>
21292
21293         Put more information about failed tests into the test return codes.
21294         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
21295         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
21296         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
21297         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
21298         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
21299         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
21300         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
21301         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
21302         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
21303         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
21304         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
21305         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
21306         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
21307         * m4/stdint.m4 (gl_STDINT_H): Likewise.
21308         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
21309         returns a bit mask.
21310         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
21311         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
21312         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
21313         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
21314         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
21315         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
21316         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
21317         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
21318         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
21319         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
21320         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
21321         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
21322         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
21323         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
21324         * m4/link.m4 (gl_FUNC_LINK): Likewise.
21325         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
21326         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
21327         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
21328         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
21329         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
21330         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
21331         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
21332         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
21333         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
21334         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
21335         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
21336         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
21337         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
21338         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
21339         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
21340         gl_PRINTF_PRECISION): Likewise.
21341         * m4/regex.m4 (gl_REGEX): Likewise.
21342         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
21343         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
21344         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
21345         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
21346         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
21347         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
21348         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
21349         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
21350         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
21351         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
21352         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
21353         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
21354         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
21355         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
21356         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
21357         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
21358         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
21359         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
21360         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
21361         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
21362         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
21363         enumerated value.
21364         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
21365
21366 2010-12-04  Bruno Haible  <bruno@clisp.org>
21367
21368         Update for Solaris 11 2010-11.
21369         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
21370         Express, released in November 2010.
21371
21372 2010-12-04  Bruno Haible  <bruno@clisp.org>
21373
21374         nproc: Relax license.
21375         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
21376         and Paul Eggert.
21377         Requested by Ludovic Courtès <ludo@gnu.org>.
21378
21379 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
21380
21381         utimecmp: fine-grained src to nearby coarse-grained dest
21382
21383         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
21384         and the source is on a file system with higher-resolution time
21385         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
21386         not work, and the time stamps are close together, the algorithm to
21387         determine the exact resolution from the read-back mtime was buggy:
21388         it had a "!=" where it should have had an "==".  This bug has been
21389         in the code ever since it was introduced to gnulib.
21390         Problem reported by Dan Jacobson in
21391         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
21392
21393 2010-11-30  Bruno Haible  <bruno@clisp.org>
21394
21395         strerror_r-posix: Fix autoconf test.
21396         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
21397
21398 2010-11-28  Bruno Haible  <bruno@clisp.org>
21399             Paul Eggert  <eggert@cs.ucla.edu>
21400
21401         Tests for module 'getdomainname'.
21402         * modules/getdomainname-tests: New file.
21403         * tests/test-getdomainname.c: New file, based on
21404         tests/test-gethostname.c.
21405
21406 2010-11-28  Bruno Haible  <bruno@clisp.org>
21407             Paul Eggert  <eggert@cs.ucla.edu>
21408
21409         getdomainname: Use the system function when possible.
21410         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
21411         (getdomainname): Replace if needed. Provide the declaration if it is
21412         missing. Don't use _GL_CXXALIAS_SYS_CAST.
21413         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
21414         (getdomainname): When the system has getdomainname, call the system
21415         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
21416         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
21417         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
21418         found in libnsl. Look for the declaration also in <netdb.h>. Replace
21419         the function if its second argument is of type 'int' or if it is found
21420         in libnsl.
21421         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
21422         <sys/systeminfo.h> and sysinfo().
21423         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
21424         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
21425         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
21426         HAVE_GETDOMAINNAME.
21427         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
21428         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
21429         * doc/glibc-functions/getdomainname.texi: Document the problems with
21430         the getdomainname declaration.
21431
21432 2010-11-28  Bruno Haible  <bruno@clisp.org>
21433
21434         sys_socket: Ensure ss_family field on AIX.
21435         * lib/sys_socket.in.h (ss_family): New macro definition.
21436         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
21437         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
21438         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
21439         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
21440         * modules/sys_socket (Makefile.am): Substitute
21441         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
21442         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
21443
21444 2010-11-27  Bruno Haible  <bruno@clisp.org>
21445
21446         readline: Improve configure output.
21447         * m4/readline.m4 (gl_FUNC_READLINE): Make the
21448         "checking for readline..." result understandable.
21449
21450 2010-11-27  Bruno Haible  <bruno@clisp.org>
21451
21452         *printf-posix: Detect a bug on Solaris 10/x86.
21453         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
21454         for floating-point output.
21455         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
21456         directive.
21457         * tests/test-snprintf-posix.h (test_function): Likewise.
21458         * tests/test-sprintf-posix.h (test_function): Likewise.
21459         * tests/test-vasprintf-posix.c (test_function): Likewise.
21460         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
21461         * doc/posix-functions/printf.texi: Likewise.
21462         * doc/posix-functions/snprintf.texi: Likewise.
21463         * doc/posix-functions/sprintf.texi: Likewise.
21464         * doc/posix-functions/vfprintf.texi: Likewise.
21465         * doc/posix-functions/vprintf.texi: Likewise.
21466         * doc/posix-functions/vsnprintf.texi: Likewise.
21467         * doc/posix-functions/vsprintf.texi: Likewise.
21468         * doc/glibc-functions/obstack_printf.texi: Likewise.
21469         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
21470
21471 2010-11-27  Bruno Haible  <bruno@clisp.org>
21472
21473         Fix link error when module libunistring-optional is in use.
21474         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
21475         * modules/striconveha-tests (Makefile.am): Likewise.
21476
21477 2010-11-27  Bruno Haible  <bruno@clisp.org>
21478
21479         regex: Mention link dependencies.
21480         * modules/regex (Link): New section.
21481         * modules/rpmatch (Link): Likewise.
21482         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
21483
21484 2010-11-27  Bruno Haible  <bruno@clisp.org>
21485
21486         ftoastr: Fix compilation error on Solaris.
21487         * lib/ftoastr.c: Include <config.h>.
21488
21489 2010-11-27  Bruno Haible  <bruno@clisp.org>
21490
21491         getloadavg: Update documentation.
21492         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
21493
21494 2010-11-27  Bruno Haible  <bruno@clisp.org>
21495
21496         sys_socket: Fix test whether the functions are declared.
21497         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
21498         not <sys/select.h>.
21499
21500 2010-11-27  Bruno Haible  <bruno@clisp.org>
21501
21502         getpass: Make sure to get system declaration on some platforms.
21503         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
21504         gl_USE_SYSTEM_EXTENSIONS.
21505         * modules/getpass (Depends-on): Add extensions.
21506
21507 2010-11-26  Bruno Haible  <bruno@clisp.org>
21508
21509         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
21510         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
21511         'iconv' module is present.
21512         (ICONV_CONST): New macro.
21513         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
21514         ICONV_CONST.
21515         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
21516         set ICONV_CONST.
21517         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
21518         here.
21519         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
21520         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
21521         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
21522         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
21523         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
21524         present.
21525
21526 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
21527
21528         ftoastr: comment fix
21529         * lib/ftoastr.c: "little" -> "little or no" in comment
21530
21531 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
21532
21533         stdint: port to GCC 4.3 + OSX + Octave
21534         On this platform, stdint.h is buggy and defines int64_t to long
21535         long int.  The replacement defined it to long int, causing
21536         problems with C++ style name mangling.  Instead, trust the system
21537         definition if INT64_MAX is defined, and likewise for the unsigned
21538         variant.   Problem reported by Jarno Rajahalme in
21539         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
21540         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
21541         and don't mess with int64_t and INT64_MAX in this case.
21542         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
21543
21544 2010-11-24  Bruno Haible  <bruno@clisp.org>
21545
21546         doc: Corrections regarding MacOS X 10.4 and 10.5.
21547         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
21548         MacOS X.
21549         Reported by Simon Josefsson.
21550
21551 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
21552
21553         Uninstall ".bin" files installed by relocwrapper.
21554         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
21555         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
21556         unless it is already there.
21557
21558 2010-11-21  Bruno Haible  <bruno@clisp.org>
21559
21560         Update for NetBSD 5.0.
21561         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
21562         NetBSD; the test fails on NetBSD 5.0.
21563         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
21564         about NetBSD.
21565
21566 2010-11-21  Bruno Haible  <bruno@clisp.org>
21567
21568         Update for HP-UX 11.23 and HP-UX 11.31.
21569         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
21570         HP-UX.
21571
21572 2010-11-21  Bruno Haible  <bruno@clisp.org>
21573
21574         Update for MacOS X 10.5.
21575         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
21576         MacOS X; the test fails on MacOS X 10.5.8.
21577         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
21578         about MacOS X.
21579
21580 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
21581
21582         bootstrap: add bootstrap_sync option.
21583         See discussion at
21584         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
21585         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
21586         * build-aux/bootstrap: Accept --bootstrap-sync to update
21587         bootstrap if it is not identical to the local gnulib's
21588         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
21589         enable this by default.  Accept --no-bootstrap-sync to disable
21590         it.
21591
21592 2010-11-20  Bruno Haible  <bruno@clisp.org>
21593
21594         Ensure that <features.h> is included before __GLIBC__ is tested.
21595         * lib/printf-parse.h: Include <features.h>.
21596         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
21597         Reported by Mike Frysinger <vapier@gentoo.org>.
21598
21599         Ensure that <features.h> is included before __GLIBC__ is tested.
21600         * lib/wchar.in.h: Include <features.h>.
21601         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
21602         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
21603         Reported by Mike Frysinger <vapier@gentoo.org>.
21604
21605         Ensure that <features.h> is included before __GLIBC__ is tested.
21606         * lib/arpa_inet.in.h: Include <features.h>.
21607         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
21608         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
21609         Reported by Mike Frysinger <vapier@gentoo.org>.
21610
21611         Ensure that <features.h> is included before __GLIBC__ is tested.
21612         * build-aux/link-warning.h: Include <features.h>.
21613         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
21614         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
21615         Reported by Mike Frysinger <vapier@gentoo.org>.
21616
21617         Ensure that <features.h> is included before __GLIBC__ is tested.
21618         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
21619         Reported by Mike Frysinger <vapier@gentoo.org>.
21620
21621 2010-11-20  Bruno Haible  <bruno@clisp.org>
21622
21623         memmem: Fix autoconf test.
21624         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
21625
21626 2010-11-20  Bruno Haible  <bruno@clisp.org>
21627
21628         Port to uClibc.
21629         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
21630         * lib/fcntl.in.h: Likewise.
21631         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
21632         * lib/mbrtowc.c (mbrtowc): Likewise.
21633         * lib/relocatable.c (find_shared_library_fullname): Likewise.
21634         * lib/strerror_r.c: Likewise.
21635         * lib/unistr/u8-strnlen.c: Likewise.
21636         * lib/vasnprintf.c (decimal_point_char): Likewise.
21637         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
21638         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
21639         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
21640         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
21641         * tests/test-sigaction.c (handler, main): Likewise.
21642         * lib/freading.h: Treat uClibc like a non-glibc platform.
21643         * lib/freading.c: Likewise.
21644         * lib/gettext.h: Likewise.
21645         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
21646         Likewise.
21647         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
21648         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
21649         * lib/propername.c (proper_name_utf8): Likewise.
21650         * lib/spawn.in.h: Likewise.
21651         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
21652         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
21653         mem_cd_iconveh_internal): Likewise.
21654         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
21655         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
21656         strstr, strcasestr): Likewise.
21657         * lib/unicodeio.c (unicode_to_mb): Likewise.
21658         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
21659         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
21660         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
21661         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
21662         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
21663         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
21664         * lib/unistr/u8-stpncpy.c: Likewise.
21665         * lib/vasnprintf.c (VASNPRINTF): Likewise.
21666         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
21667         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
21668         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
21669         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
21670         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
21671         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
21672         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
21673         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
21674         Likewise.
21675         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
21676         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
21677         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
21678         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
21679         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
21680         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
21681         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
21682         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
21683         * tests/test-getopt.h (OPTIND_MIN): Likewise.
21684         * tests/test-striconveha.c (main): Likewise.
21685         * tests/test-vasnprintf-posix.c (test_function): Likewise.
21686         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
21687         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
21688         * doc/posix-functions/getline.texi: Likewise.
21689         Reported by Mike Frysinger <vapier@gentoo.org>.
21690
21691 2010-11-20  Bruno Haible  <bruno@clisp.org>
21692
21693         nproc: Fix condition.
21694         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
21695         HAVE_PTHREAD_AFFINITY_NP.
21696
21697 2010-11-20  Bruno Haible  <bruno@clisp.org>
21698
21699         Fix a comment.
21700         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
21701
21702 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
21703
21704         ftoastr: don't assume snprintf
21705         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
21706         Implement a subset of snprintf here, by using sprintf safely.
21707         * modules/ftoastr (Depends-on): Remove snprintf.
21708
21709 2010-11-19  Jim Meyering  <meyering@redhat.com>
21710
21711         test-rename.h: fix compilation failure
21712         * tests/test-rename.h (test_rename): Add omitted "}".
21713
21714 2010-11-17  Jim Meyering  <meyering@redhat.com>
21715
21716         maint.mk: add a URL discussing the no-@acronym policy
21717         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
21718
21719 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
21720
21721         ftoastr: depend on snprintf, improve comments
21722         * lib/ftoastr.c: Also mention Loitsch's draft.
21723         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
21724         needed in the current implementation, but it might simplify
21725         speeding up the code later.
21726         * modules/ftoastr: Depend on snprintf; this improves portability.
21727         Suggested by Bruno Haible in the same email.
21728
21729         ftoastr: port to hosts lacking strtof and strtold
21730         Problem reported by Bruno Haible in
21731         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
21732         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
21733         environment and strtold (and presumably strtof) are not available.
21734         * modules/ftoastr (Files): Add m4/c-strtod.m4.
21735         (configure.ac): Require gl_C99_STRTOLD.
21736
21737 2010-11-18  Bruno Haible  <bruno@clisp.org>
21738
21739         c-strtold: Avoid link error on AIX 7.
21740         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
21741         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
21742         (gl_C_STRTOLD): Test whether strtold_l exists.
21743         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
21744
21745 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
21746
21747         intprops: new macro INT_BITS_STRLEN_BOUND
21748         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
21749         ftoastr.h.  This exposes an internal of intprops.h that was formerly
21750         not exposed.  Also, it uses a slightly tighter bound than before;
21751         though this makes no practical difference, we might as well be as
21752         tight as we easily can.
21753
21754         ftoastr: new module, for lossless conversion of floats to short strings
21755         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
21756         * modules/ftoastr: New files.
21757
21758 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
21759
21760         bootstrap: port to Solaris sed
21761         * build-aux/bootstrap (get_version): Port to Solaris sed.
21762         See Ralf Wildenhues's note in
21763         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
21764
21765 2010-11-14  Jim Meyering  <meyering@redhat.com>
21766
21767         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
21768         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
21769         and move definition closer to sole use.
21770
21771 2010-11-13  Jim Meyering  <meyering@redhat.com>
21772
21773         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
21774         Now we require at least autoconf-2.59, which means the work-around
21775         is no longer needed.
21776         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
21777         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
21778         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
21779         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
21780         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
21781
21782 2010-11-13  Bruno Haible  <bruno@clisp.org>
21783
21784         rename, renameat: Avoid test failures at NFS mounted locations.
21785         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
21786         functions.
21787         (test_rename): Use assert_nonexistent.
21788         * tests/test-rename.c: Include <dirent.h>.
21789         * tests/test-renameat.c: Likewise.
21790         Reported by Gary V. Vaughan <gary@gnu.org>.
21791
21792         rename, renameat: Document Linux bug with NFS
21793         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
21794         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
21795         * doc/posix-functions/renameat.texi: Likewise.
21796         Suggested by Eric Blake.
21797
21798 2010-11-13  Bruno Haible  <bruno@clisp.org>
21799
21800         rename test: Add comments.
21801         * tests/test-rename.h (test_rename): Add structure and comments.
21802
21803 2010-11-13  Eric Blake  <eblake@redhat.com>
21804
21805         maintainer-makefile: cover a few more files
21806         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
21807         scripts generated within C files, for libvirt.
21808
21809 2010-11-13  Bruno Haible  <bruno@clisp.org>
21810
21811         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
21812         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
21813         character, return the number of bytes that belong together, not always
21814         1.
21815         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
21816         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
21817         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
21818         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
21819         number of bytes of an invalid character.
21820         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
21821         (main): Invoke it.
21822         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
21823         results.
21824         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
21825         malformed byte sequences.
21826         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
21827         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
21828         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
21829         Reported by Ben Pfaff and Paolo Bonzini.
21830
21831 2010-11-13  Bruno Haible  <bruno@clisp.org>
21832
21833         openat: Work around glibc bug with fchownat() and empty file names.
21834         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
21835         (gl_FUNC_FCHOWNAT): Invoke it.
21836         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
21837         * doc/posix-functions/fchownat.texi: Document the glibc bug.
21838         Reported by Gary V. Vaughan <gary@gnu.org>.
21839
21840 2010-11-13  Bruno Haible  <bruno@clisp.org>
21841
21842         openat: Ensure autoconf macro ordering.
21843         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
21844         gl_USE_SYSTEM_EXTENSIONS.
21845         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
21846
21847 2010-11-13  Bruno Haible  <bruno@clisp.org>
21848
21849         Update comments.
21850         * lib/unistr/u8-check.c: Update file name in comments.
21851         * lib/unistr/u8-mblen.c: Likewise.
21852         * lib/unistr/u8-prev.c: Likewise.
21853         * lib/unistr/u8-strmblen.c: Likewise.
21854         * lib/unistr/u8-strmbtouc.c: Likewise.
21855
21856 2010-11-13  Jim Meyering  <meyering@redhat.com>
21857
21858         tests: avoid test failure on Solaris 10 due to lack of PATH export
21859         * tests/test-update-copyright.sh: Don't forget to export PATH.
21860
21861         init.sh: ensure that IFS is defined, just in case...
21862         * tests/init.sh (setup_): Ensure that IFS is defined,
21863         so that saving and restoring it works as expected.  This
21864         appears to be useful at least for an old version of dash
21865         from a long time ago (RH 6).  See here for details:
21866         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
21867
21868         maint.mk: tighten "test a == b" check
21869         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
21870         test to files that contain something like #!/bin/sh.
21871         Without this, coreutils would get two false positives in
21872         the comments of C source files.
21873
21874 2010-11-12  Eric Blake  <eblake@redhat.com>
21875
21876         bootstrap: fix typo in previous attempt
21877         * build-aux/bootstrap (buildreq): Correct the grouping.
21878         Reported by Paul Eggert.
21879
21880         maintainer-makefile: prohibit test x == x
21881         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
21882         Based on a report by Matthias Bolte.
21883
21884         bootstrap: allow FreeBSD gzip
21885         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
21886         which has no '.' and goes to stderr.
21887         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
21888         Reported by Matthias Bolte.
21889
21890         maintainer-makefile: check for i18n setup
21891         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
21892         will likely work.
21893
21894 2010-11-12  Bruno Haible  <bruno@clisp.org>
21895
21896         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
21897         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
21898         * lib/nanosleep.c (nanosleep): Likewise.
21899
21900 2010-11-11  Bruno Haible  <bruno@clisp.org>
21901
21902         fcntl-h: Fix for use of C++ on glibc systems.
21903         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
21904         also on glibc systems in C++ mode.
21905         Reported by Gary V. Vaughan <gary@gnu.org>.
21906
21907 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
21908
21909         mknod: avoid false failure with dash
21910         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
21911
21912 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
21913
21914         unlink: Fix "is it should" typo in diagnostic.
21915         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
21916         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
21917
21918 2010-11-11  Bruno Haible  <bruno@clisp.org>
21919
21920         Tests for module 'strerror_r-posix'.
21921         * modules/strerror_r-posix-tests: New file.
21922         * tests/test-strerror_r.c: New file.
21923         * tests/test-string-c++.cc: Check the signature of strerror_r.
21924
21925         New module 'strerror_r-posix'.
21926         * lib/string.in.h (strerror_r): New declaration.
21927         * lib/strerror_r.c: New file.
21928         * m4/strerror_r.m4: New file.
21929         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
21930         of strerror_r.
21931         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
21932         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
21933         * modules/strerror_r-posix: New file.
21934         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
21935         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
21936         * doc/posix-functions/strerror_r.texi: Mention the new module and the
21937         portability problems.
21938
21939 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
21940
21941         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
21942         line is also considered for output. Quoted function name in shell
21943         command, so temporary files for functions like MyClass::operator()
21944         are removed correctly without errors.
21945
21946 2010-11-09  Bruno Haible  <bruno@clisp.org>
21947
21948         * doc/posix-functions/strerror.texi: List more failing platforms.
21949
21950         * doc/posix-functions/strerror.texi: Add a comment.
21951
21952 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
21953
21954         fdopendir: fix bug on MacOS X when low on file descriptors
21955
21956         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
21957         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
21958         All callers changed.
21959         (fdopendir): Invoke save_cwd at the top level, not after using
21960         multiple dup() calls to use up file descriptors.  Then retry
21961         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
21962         less than the maximum number of open file descriptors, because
21963         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
21964         on Mac OS X 10.6.4 for tar 1.24
21965         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
21966         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
21967         and for tar 1.25
21968         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
21969
21970 2010-11-07  Bruno Haible  <bruno@clisp.org>
21971
21972         vasnprintf: Support I flag on glibc systems.
21973         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
21974         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
21975         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
21976         snprintf function.
21977         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
21978         glibc systems.
21979         * tests/test-vasnprintf-posix3.c: New file.
21980         * modules/vasnprintf-posix-tests (Files): Add it.
21981         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
21982
21983 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
21984
21985         [html] Fix copy/paste bug: Use unique name for compiler warnings.
21986         * MODULES.html.sh: For compiler warnings, use name
21987         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
21988
21989 2010-11-05  Eric Blake  <eblake@redhat.com>
21990
21991         ceil, floor: avoid spurious failure with icc
21992         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
21993         [denormals-as-zero] when optimizing without -mieee-fp option.
21994         * tests/test-floorf2.c (floorf_reference): Likewise.
21995         * tests/test-ceilf1.c (dummy): New function.
21996         (main): Use it to outsmart icc's optimization.
21997         * tests/test-floorf1.c (dummy, main): Likewise.
21998
21999         tests: require working signbit
22000         * modules/ceilf-tests (Depends-on): Add signbit.
22001         * modules/ceill-tests (Depends-on): Likewise.
22002         * modules/floorf-tests (Depends-on): Likewise.
22003         * modules/floorl-tests (Depends-on): Likewise.
22004         * modules/round-tests (Depends-on): Likewise.
22005         * modules/roundf-tests (Depends-on): Likewise.
22006         * modules/roundl-tests (Depends-on): Likewise.
22007         * modules/trunc-tests (Depends-on): Likewise.
22008         * modules/truncf-tests (Depends-on): Likewise.
22009         * modules/truncl-tests (Depends-on): Likewise.
22010
22011         strtod: work around icc bug
22012         * lib/strtod.c (minus_zero): Define to working value.
22013         (strtod): Use it to avoid icc bug.
22014
22015         copysign: enhance tests
22016         * modules/copysign-tests (Files): Add minus-zero.h.
22017         * tests/test-copysign.c (main): Also test zeros.
22018
22019 2010-11-04  Eric Blake  <eblake@redhat.com>
22020
22021         ceil, floor, round, trunc: enhance tests of -0
22022         * tests/test-ceilf1.c (main): Ensure correct sign of result.
22023         * tests/test-ceill.c (main): Likewise.
22024         * tests/test-floorf1.c (main): Likewise.
22025         * tests/test-floorl.c (main): Likewise.
22026         * tests/test-round1.c (main): Likewise.
22027         * tests/test-roundf1.c (main): Likewise.
22028         * tests/test-roundl.c (main): Likewise.
22029         * tests/test-trunc1.c (main): Likewise.
22030         * tests/test-truncf1.c (main): Likewise.
22031         * tests/test-truncl.c (main): Likewise.
22032
22033 2010-11-04  Eric Blake  <eblake@redhat.com>
22034
22035         frexp, tests: work around ICC bug with -zero
22036         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
22037         works with more compilers.
22038         * tests/minus-zero.h: New file.
22039         * modules/ceilf-tests (Files): Include it.
22040         * modules/ceill-tests (Files): Likewise.
22041         * modules/floorf-tests (Files): Likewise.
22042         * modules/floorl-tests (Files): Likewise.
22043         * modules/frexp-nolibm-tests (Files): Likewise.
22044         * modules/frexp-tests (Files): Likewise.
22045         * modules/frexpl-nolibm-tests (Files): Likewise.
22046         * modules/frexpl-tests (Files): Likewise.
22047         * modules/isnan-tests (Files): Likewise.
22048         * modules/isnand-nolibm-tests (Files): Likewise.
22049         * modules/isnand-tests (Files): Likewise.
22050         * modules/isnanf-nolibm-tests (Files): Likewise.
22051         * modules/isnanf-tests (Files): Likewise.
22052         * modules/isnanl-nolibm-tests (Files): Likewise.
22053         * modules/isnanl-tests (Files): Likewise.
22054         * modules/round-tests (Files): Likewise.
22055         * modules/roundf-tests (Files): Likewise.
22056         * modules/roundl-tests (Files): Likewise.
22057         * modules/ldexpl-tests (Files): Likewise.
22058         * modules/signbit-tests (Files): Likewise.
22059         * modules/snprintf-posix-tests (Files): Likewise.
22060         * modules/sprintf-posix-tests (Files): Likewise.
22061         * modules/strtod-tests (Files): Likewise.
22062         * modules/trunc-tests (Files): Likewise.
22063         * modules/truncf-tests (Files): Likewise.
22064         * modules/truncl-tests (Files): Likewise.
22065         * modules/vsnprintf-posix-tests (Files): Likewise.
22066         * modules/vsprintf-posix-tests (Files): Likewise.
22067         * modules/vasnprintf-posix-tests (Files): Likewise.
22068         * modules/vasprintf-posix-tests (Files): Likewise.
22069         * tests/test-ceilf1.c (main): Use it.
22070         * tests/test-ceill.c (main): Likewise.
22071         * tests/test-floorf1.c (main): Likewise.
22072         * tests/test-floorl.c (main): Likewise.
22073         * tests/test-frexp.c (main): Likewise.
22074         * tests/test-frexpl.c (main): Likewise.
22075         * tests/test-isnan.c (main): Likewise.
22076         * tests/test-isnand.h (main): Likewise.
22077         * tests/test-isnanf.h (main): Likewise.
22078         * tests/test-isnanl.h (main): Likewise.
22079         * tests/test-ldexpl.c (main): Likewise.
22080         * tests/test-round.c (main): Likewise.
22081         * tests/test-roundf.c (main): Likewise.
22082         * tests/test-roundl.c (main): Likewise.
22083         * tests/test-signbit.c (test_signbitf, test_signbitd)
22084         (test_signbitl): Likewise.
22085         * tests/test-snprintf-posix.h (test_function): Likewise.
22086         * tests/test-sprintf-posix.h (test_function): Likewise.
22087         * tests/test-strtod.c (main): Likewise.
22088         * tests/test-trunc1.c (main): Likewise.
22089         * tests/test-truncf1.c (main): Likewise.
22090         * tests/test-truncl.c (main): Likewise.
22091
22092         isnanl: work around icc bug
22093         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
22094
22095 2010-11-03  Eric Blake  <eblake@redhat.com>
22096
22097         tests: fix compiler warnings
22098         * tests/test-getopt.h (test_getopt): Fix condition.
22099         * tests/test-getopt_long.h (test_getopt_long): Likewise.
22100         * tests/test-pipe2.c (main): Likewise.
22101         * tests/test-quotearg-simple.c (main): Avoid icc warning.
22102
22103         utimens: fix broken m4 test
22104         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
22105
22106 2010-10-28  Bruno Haible  <bruno@clisp.org>
22107
22108         posix_spawn*, getdtablesize: Relax license.
22109         * modules/posix_spawn (License): Change to LGPLv2+.
22110         * modules/posix_spawnp (License): Likewise.
22111         * modules/posix_spawn-internal (License): Likewise.
22112         * modules/posix_spawnattr_init (License): Likewise.
22113         * modules/posix_spawnattr_getflags (License): Likewise.
22114         * modules/posix_spawnattr_setflags (License): Likewise.
22115         * modules/posix_spawnattr_getpgroup (License): Likewise.
22116         * modules/posix_spawnattr_setpgroup (License): Likewise.
22117         * modules/posix_spawnattr_getschedparam (License): Likewise.
22118         * modules/posix_spawnattr_setschedparam (License): Likewise.
22119         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
22120         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
22121         * modules/posix_spawnattr_getsigdefault (License): Likewise.
22122         * modules/posix_spawnattr_setsigdefault (License): Likewise.
22123         * modules/posix_spawnattr_getsigmask (License): Likewise.
22124         * modules/posix_spawnattr_setsigmask (License): Likewise.
22125         * modules/posix_spawnattr_destroy (License): Likewise.
22126         * modules/posix_spawn_file_actions_init (License): Likewise.
22127         * modules/posix_spawn_file_actions_addclose (License): Likewise.
22128         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
22129         * modules/posix_spawn_file_actions_addopen (License): Likewise.
22130         * modules/posix_spawn_file_actions_destroy (License): Likewise.
22131         * modules/getdtablesize (License): Likewise.
22132         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
22133
22134 2010-10-26  Bruno Haible  <bruno@clisp.org>
22135
22136         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
22137         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
22138         Cygwin and mingw.
22139         Suggested by Eric Blake.
22140
22141 2010-10-26  Bruno Haible  <bruno@clisp.org>
22142
22143         stdio: Work around compilation error due to renameat() on Solaris 10.
22144         * lib/stdio.in.h: Include <unistd.h> on Solaris.
22145         * lib/renameat.c: Don't include <unistd.h> here.
22146         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
22147         Reported by Paul Eggert and Eric Blake.
22148
22149 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
22150
22151         renameat: port to Solaris 10, which declares renameat in unistd.h
22152
22153         * lib/renameat.c: Include unistd.h before stdio.h, because
22154         Solaris 10 declares renameat in unistd.h.  Problem encountered
22155         when building GNU tar 1.24 on Solaris 10.
22156
22157 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
22158
22159         fdopendir: fix C89 compilation
22160         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
22161         compilers.
22162
22163 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
22164
22165         inttostr: simplify by removing unnecessary redundancy
22166         * lib/anytostr.c: Don't include verify.h.
22167         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
22168         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
22169         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
22170         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
22171         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
22172         Likewise.
22173         * modules/inttostr (Depends-on): Remove 'verify'.
22174
22175 2010-10-23  Bruno Haible  <bruno@clisp.org>
22176
22177         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
22178         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
22179         Reported by Eric Blake.
22180
22181 2010-10-23  Bruno Haible  <bruno@clisp.org>
22182
22183         Tests: Fix LOCALE_JA on MirBSD 10.
22184         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
22185         to an UTF-8 locale.
22186         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
22187         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
22188         Reported by Eric Blake.
22189
22190 2010-10-21  Bruno Haible  <bruno@clisp.org>
22191
22192         nl_langinfo test: Avoid test failure on NetBSD 5.
22193         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
22194         Reported by Eric Blake.
22195
22196 2010-10-21  Eric Blake  <eblake@redhat.com>
22197
22198         c-stack: work around libsigsegv 2.8 bug
22199         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
22200         overflow on at least PowerPC64.
22201
22202 2010-10-17  Bruno Haible  <bruno@clisp.org>
22203
22204         userspec: Drop redundant file.
22205         * modules/userspec (Files): Remove lib/inttostr.h.
22206
22207 2010-10-17  Bruno Haible  <bruno@clisp.org>
22208
22209         nl_langinfo tests: Silence some warnings.
22210         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
22211         Reported by Jim Meyering.
22212
22213 2010-10-17  Bruno Haible  <bruno@clisp.org>
22214
22215         Make use of GCC's attribute __alloc_size__.
22216         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
22217         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
22218         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
22219         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
22220         __alloc_size__.
22221         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
22222         Suggested by Jim Meyering.
22223
22224 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
22225
22226         bootstrap: anchor .gitignore entries.
22227         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
22228         with...
22229         (insert_vc_ignore): ... this new function, which prepends `/' to
22230         all .gitignore entries before passing them to
22231         insert_sorted_if_absent.
22232
22233 2010-10-16  Bruno Haible  <bruno@clisp.org>
22234
22235         nextafter: Fix configure check.
22236         * modules/nextafter (configure.ac): Correct expected prototype.
22237
22238 2010-10-16  Bruno Haible  <bruno@clisp.org>
22239
22240         termios: Update documentation.
22241         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
22242
22243 2010-10-16  Bruno Haible  <bruno@clisp.org>
22244
22245         tests: Make them compile with TinyCC.
22246         * tests/test-strstr.c (main): Remove parentheses around array
22247         initializer.
22248
22249 2010-10-15  Eric Blake  <eblake@redhat.com>
22250
22251         ignore-value: make header idempotent
22252         * lib/ignore-value.h: Add double-inclusion guards.
22253         Reported by Stefan Berger.
22254
22255 2010-10-15  Jim Meyering  <meyering@redhat.com>
22256
22257         GNUmakefile: handle "stable" target, not "major"
22258         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
22259         lists in maint.mk and announce-gen.  Without this, "make stable"
22260         would fail to ensure that $(VERSION) is up to date.
22261
22262 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
22263
22264         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
22265         & co.
22266
22267 2010-10-14  Bruno Haible  <bruno@clisp.org>
22268
22269         vasnprintf: Don't set errno to 0.
22270         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
22271         block that sets it to 0.
22272         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
22273
22274 2010-10-14  Bruno Haible  <bruno@clisp.org>
22275
22276         socketlib: Fix.
22277         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
22278         gl_PREREQ_SYS_H_WINSOCK2.
22279         Reported by Ian Beckwith <ianb@erislabs.net>.
22280
22281 2010-10-13  Jim Meyering  <meyering@redhat.com>
22282
22283         test-select-stdin.c: avoid warn_unused_result warnings
22284         * tests/test-select-stdin.c: Include "macros.h".
22285         ASSERT that read and fflush succeed.
22286
22287 2010-10-13  Jim Meyering  <meyering@redhat.com>
22288
22289         git-version-gen: do require git-VC'd files in cwd
22290         * build-aux/git-version-gen: Reject a git version string
22291         if there are no commits associated with the current directory.
22292         This avoids an unlikely false-positive (unrelated dir whose parent
22293         repository also contains a tag matching v*), as pointed out
22294         by Giuseppe Scrivano in
22295         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
22296
22297 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
22298
22299         argv-iter: omit nonconforming declaration
22300         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
22301         enum arg_iter_err declaration, which doesn't conform to C99.
22302         Solaris 10 cc warns about this.
22303
22304 2010-10-13  Eric Blake  <eblake@redhat.com>
22305
22306         termios: fix compilation on mingw
22307         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
22308         (gl_TERMIOS_H): Adjust it on mingw.
22309         * modules/termios (Makefile.am): Substitute new key.
22310         * lib/termios.in.h (includes): Make include_next conditional.
22311         * doc/posix-headers/termios.texi (termios.h): Update
22312         documentation.
22313         Reported by Daniel P. Berrange.
22314
22315 2010-10-13  Jim Meyering  <meyering@redhat.com>
22316
22317         git-version-gen: don't require that .git/ be in the current dir
22318         * build-aux/git-version-gen: Adjust this script so that it works
22319         when run from any working directory beneath the top-level .git/-
22320         containing directory.  Inspired by a patch from Giuseppe Scrivano,
22321         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
22322
22323         test-select: avoid warn_unused_result warnings
22324         * tests/test-select.c: Include "macros.h".
22325         ASSERT that each call to read, write, and pipe succeeds.
22326         While not technically required, also check each "close".
22327         * modules/select-tests (Files): Add tests/macros.h.
22328
22329         test-symlinkat: remove declaration of unused local
22330         * tests/test-symlinkat.c (main): Remove unused local, "buf".
22331
22332         test-inttostr: avoid shadowing warnings
22333         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
22334         and use malloc rather than the stack for the same reason as
22335         mentioned in the comment justifying the other allocation.
22336
22337 2010-10-11  Bruno Haible  <bruno@clisp.org>
22338
22339         stdlib: Allow multiple gnulib generated replacements to coexist.
22340         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
22341         Reported by Sam Steingold <sds@gnu.org>.
22342
22343 2010-10-11  Jim Meyering  <meyering@redhat.com>
22344
22345         fix a documentation typo
22346         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
22347
22348 2010-10-11  Eric Blake  <eblake@redhat.com>
22349
22350         futimens: work around Solaris 11 bug
22351         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
22352         * tests/test-futimens.h (test_futimens): Enhance, rather than
22353         weaken test.
22354         * doc/posix-functions/futimens.texi (futimens): Document the bug.
22355
22356 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
22357
22358         Indentation.
22359         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
22360         higher-level operators more to the left.
22361
22362 2010-10-11  Jim Meyering  <meyering@redhat.com>
22363
22364         test-futimens: avoid unwarranted test failure on Solaris 5.11
22365         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
22366         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
22367         because it tries to dereference the NULL name argument.
22368
22369 2010-10-11  Bruno Haible  <bruno@clisp.org>
22370
22371         Indentation.
22372         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
22373         indentation.
22374
22375 2010-10-11  Jim Meyering  <meyering@redhat.com>
22376
22377         spawn.in.h: make indentation consistent with parentheses
22378         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
22379         Make indentation consistent with parentheses.
22380
22381 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
22382
22383         Fix mismatched parens in previous commit
22384         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
22385         parens.
22386
22387 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
22388
22389         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
22390
22391         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
22392         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
22393         * lib/malloca.c: Include "verify.h".
22394         (verify1): Remove, replacing with a verify call.
22395         * lib/relocwrapper.c (verify1): Likewise.
22396         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
22397         Likewise.
22398         * modules/malloca (Depends-on): Add 'verify'.
22399         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
22400         * modules/vasnprintf (Depends-on): Add 'verify'.
22401         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
22402         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
22403         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
22404         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
22405         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
22406         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
22407         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
22408
22409         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
22410
22411         Formerly the style was sometimes 2*X - 1, because the C standard
22412         was wrongly thought to disallow ?: in integral constant expressions.
22413         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
22414         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
22415         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
22416         * lib/stdint.in.h (_verify_intmax_size): Likewise.
22417         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
22418         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
22419         verify that time_t cannot be floating.
22420
22421 2010-10-08  Eric Blake  <eblake@redhat.com>
22422
22423         time: enforce recent POSIX ruling that time_t is integral
22424         * lib/time.in.h (__time_t_must_be_integral): Detect any
22425         problematic systems, allowing the rest of gnulib to assume POSIX.
22426
22427 2010-10-08  Jim Meyering  <meyering@redhat.com>
22428
22429         fdopendir: fix a bug on systems lacking openat and /proc support
22430         OpenBSD 4.7 is one such system.  The most noticeable effect was
22431         failure of any application making nontrivial use of fts: rm, du,
22432         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
22433           ./rm: traversal failed: `a': Bad file descriptor
22434         Debugging that, you see that even though FD 6 was closed just
22435         prior to the opendir call in fd_clone_opendir, its resulting
22436         dir->dd_fd was 8, rather than the expected value of 6:
22437
22438         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
22439         93                close (fd);
22440         (gdb) n
22441         94                dir = fd_clone_opendir (dupfd);
22442         (gdb) n
22443         95                saved_errno = errno;
22444         (gdb) p dir->dd_fd
22445         $11 = 8
22446
22447         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
22448         The problem is that on OpenBSD, fd_clone_opendir has to resort
22449         to using the old-style save/restore CWD mechanism, due to its
22450         lack of openat/proc support, and *that* would steal the FD (6)
22451         that opendir was supposed to use.
22452
22453         The fix is to squirrel away the desired FD so that save_cwd uses a
22454         different one, and then free the dest FD right before calling opendir.
22455         That guarantees opendir will use the required file descriptor.
22456
22457         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
22458
22459 2010-10-08  Bruno Haible  <bruno@clisp.org>
22460
22461         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
22462         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
22463
22464 2010-10-08  Bruno Haible  <bruno@clisp.org>
22465
22466         nanosleep: Make replacement POSIX compliant.
22467         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
22468         is out of range.
22469         Reported by Jim Meyering.
22470
22471 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
22472
22473         bootstrap: add hook for altering gnulib.mk, for Bison
22474         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
22475         the Bison bootstrapping process can rewrite file names and variables
22476         in this file before later parts of 'bootstrap' use the file.
22477         Bison wants to include lib/gnulib.mk from the top-level makefile,
22478         so it needs the file names in this file to be relative to the top
22479         level, not relative to lib; plus it needs variable names to be
22480         rewritten.
22481         (slurp): Use the new function.
22482
22483         bootstrap: reformat for readability
22484         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
22485
22486 2010-10-08  Eric Blake  <eblake@redhat.com>
22487
22488         docs: update cygwin progress
22489         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
22490         1.7.7.
22491         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
22492         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
22493         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
22494         * doc/posix-functions/carg.texi (carg): Likewise.
22495         * doc/posix-functions/cargf.texi (cargf): Likewise.
22496         * doc/posix-functions/casin.texi (casin): Likewise.
22497         * doc/posix-functions/casinf.texi (casinf): Likewise.
22498         * doc/posix-functions/casinh.texi (casinh): Likewise.
22499         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
22500         * doc/posix-functions/catan.texi (catan): Likewise.
22501         * doc/posix-functions/catanf.texi (catanf): Likewise.
22502         * doc/posix-functions/catanh.texi (catanh): Likewise.
22503         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
22504         * doc/posix-functions/ccos.texi (ccos): Likewise.
22505         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
22506         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
22507         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
22508         * doc/posix-functions/cexp.texi (cexp): Likewise.
22509         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
22510         * doc/posix-functions/cimag.texi (cimag): Likewise.
22511         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
22512         * doc/posix-functions/clog.texi (clog): Likewise.
22513         * doc/posix-functions/clogf.texi (clogf): Likewise.
22514         * doc/posix-functions/conj.texi (conj): Likewise.
22515         * doc/posix-functions/conjf.texi (conjf): Likewise.
22516         * doc/posix-functions/cpow.texi (cpow): Likewise.
22517         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
22518         * doc/posix-functions/cproj.texi (cproj): Likewise.
22519         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
22520         * doc/posix-functions/creal.texi (creal): Likewise.
22521         * doc/posix-functions/crealf.texi (crealf): Likewise.
22522         * doc/posix-functions/csin.texi (csin): Likewise.
22523         * doc/posix-functions/csinf.texi (csinf): Likewise.
22524         * doc/posix-functions/csinh.texi (csinh): Likewise.
22525         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
22526         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
22527         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
22528         * doc/posix-functions/ctan.texi (ctan): Likewise.
22529         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
22530         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
22531         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
22532         * doc/posix-headers/complex.texi (complex.h): Likewise.
22533
22534 2010-10-07  Jim Meyering  <meyering@redhat.com>
22535
22536         parse-datetime: avoid compilation failure on OpenBSD 4.7
22537         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
22538         This works around a compilation failure on OpenBSD 4.7:
22539         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
22540
22541 2010-10-07  Eric Blake  <eblake@redhat.com>
22542
22543         docs: update cygwin progress
22544         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
22545         1.7.6.
22546         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
22547         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
22548         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
22549         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
22550         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
22551         Likewise.
22552         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
22553         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
22554         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
22555         Likewise.
22556         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
22557         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
22558         Likewise.
22559         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
22560         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
22561         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
22562         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
22563         Likewise.
22564         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
22565         Likewise.
22566         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
22567
22568         docs: update parse-datetime history
22569         * doc/parse-datetime.texi (Authors of parse_datetime): Better
22570         documentation of this function's history and alternatives.
22571
22572         cygwin: use more robust version check
22573         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
22574         exclude an eventual cygwin 1.9.1.
22575         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
22576         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
22577         (gl_FUNC_STRCASESTR): Likewise.
22578         Reported by Bruno Haible.
22579
22580 2010-10-06  Bruno Haible  <bruno@clisp.org>
22581
22582         string, sys_select: Avoid #including large headers unless necessary.
22583         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
22584         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
22585         OSF/1, BeOS, Haiku.
22586         Reported by Jim Meyering.
22587
22588 2010-10-05  Eric Blake  <eblake@redhat.com>
22589
22590         memmem, strstr, strcasestr: fix bug with long periodic needle
22591         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
22592         periodic needle having false positive.
22593         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
22594         and cygwin 1.7.7.
22595         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
22596         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
22597         (gl_FUNC_STRCASESTR): Likewise.
22598         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
22599         * tests/test-memmem.c (main): Expose the bug.
22600         * tests/test-strcasestr.c (main): Likewise.
22601         * tests/test-strstr.c (main): Likewise.
22602         * tests/test-c-strcasestr.c (main): Likewise.
22603         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
22604         * doc/posix-functions/strstr.texi (strstr): Likewise.
22605         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
22606         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
22607
22608 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
22609
22610         parse-datetime: do some more renaming
22611         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
22612         parse_datetime, not get_date.  Mention the renaming.
22613         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
22614         in comments.
22615         * m4/bison.m4: Likewise.
22616
22617 2010-10-05  Eric Blake  <eblake@redhat.com>
22618
22619         parse-datetime: better name than get_date
22620         * NEWS: Reword the deprecation notice.
22621         * modules/get_date: Rename to modules/parse-datetime.
22622         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
22623         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
22624         * lib/get_date.y: Rename to lib/parse-datetime.y.
22625         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
22626         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
22627         * doc/getdate.texi: Provide fallback wrapper.
22628         * lib/getdate.h: Move guts, and wrap...
22629         * lib/parse-datetime.h: ...new file.
22630         * lib/parse-datetime.y (get_date): Rename...
22631         (parse_datetime): ...to this.
22632         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
22633         (gl_PARSE_DATETIME): ...to this.
22634         * doc/posix-functions/getdate.texi (get_date): Provide fallback
22635         documentation.
22636         * modules/getdate (Files): Provide fallback docs and header.
22637         (Notice, Depends-on): Update references.
22638         * tests/test-parse-datetime.c: Likewise.
22639         * DEPENDENCIES: Likewise.
22640         * MODULES.html.sh (Date and time <time.h>): Likewise.
22641         * doc/parse-datetime.texi (Date input formats)
22642         (Authors of parse_datetime): Likewise.
22643         * modules/parse-datetime (Files, configure.ac, Makefile.am)
22644         (Include): Likewise.
22645         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
22646         * gnulib-tool: Likewise.
22647         * m4/bison.m4 (gl_BISON): Likewise.
22648         Suggested by Bruno Haible.
22649
22650 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
22651
22652         more ports to Solaris tr, which needs [] around ranges
22653         * gnulib-tool: Solaris tr needs [] around ranges.
22654         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
22655         * tests/test-pipe-filter-gi1.c (main): Likewise.
22656         * tests/test-pipe-filter-ii1.c (main): Likewise.
22657
22658 2010-10-05  Eric Blake  <eblake@redhat.com>
22659
22660         bootstrap: fix Solaris regression
22661         * build-aux/bootstrap (check_versions): Solaris tr still needs []
22662         around ranges.
22663         Reported by Pádraig Brady.
22664
22665         bootstrap: work with pkg-config
22666         * build-aux/bootstrap (check_versions): Also transliterate - in
22667         prerequisite name.
22668         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
22669         prerequisites that were already found, to avoid confusion.
22670         Reported by Justin Clift.
22671
22672         faccessat: remove unused wrappers
22673         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
22674         presence of these wrappers dragged in -lgen on Solaris.
22675         Reported by Clemens Brogi; fix suggested by Paul Eggert.
22676
22677 2010-10-05  Jim Meyering  <meyering@redhat.com>
22678
22679         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
22680         * Makefile (sc_pragma_columns): New syntax-check rule.
22681
22682 2010-10-04  Bruno Haible  <bruno@clisp.org>
22683
22684         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
22685         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
22686         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
22687         Reported by Bruce Korb and Eric Blake.
22688
22689 2010-10-04  Bruno Haible  <bruno@clisp.org>
22690
22691         threadlib: Make option --with-libpth-prefix work.
22692         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
22693         use $LIBPTH, not just -lpth.
22694
22695 2010-10-04  Bruno Haible  <bruno@clisp.org>
22696
22697         Avoid line length limitation from HP NonStop system header files.
22698         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
22699         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
22700         * lib/ctype.in.h: Likewise.
22701         * lib/dirent.in.h: Likewise.
22702         * lib/errno.in.h: Likewise.
22703         * lib/fcntl.in.h: Likewise.
22704         * lib/float.in.h: Likewise.
22705         * lib/getopt.in.h: Likewise.
22706         * lib/iconv.in.h: Likewise.
22707         * lib/inttypes.in.h: Likewise.
22708         * lib/langinfo.in.h: Likewise.
22709         * lib/locale.in.h: Likewise.
22710         * lib/math.in.h: Likewise.
22711         * lib/netdb.in.h: Likewise.
22712         * lib/netinet_in.in.h: Likewise.
22713         * lib/poll.in.h: Likewise.
22714         * lib/pthread.in.h: Likewise.
22715         * lib/pty.in.h: Likewise.
22716         * lib/sched.in.h: Likewise.
22717         * lib/se-selinux.in.h: Likewise.
22718         * lib/search.in.h: Likewise.
22719         * lib/signal.in.h: Likewise.
22720         * lib/spawn.in.h: Likewise.
22721         * lib/stdarg.in.h: Likewise.
22722         * lib/stddef.in.h: Likewise.
22723         * lib/stdint.in.h: Likewise.
22724         * lib/stdio.in.h: Likewise.
22725         * lib/stdlib.in.h: Likewise.
22726         * lib/string.in.h: Likewise.
22727         * lib/strings.in.h: Likewise.
22728         * lib/sys_file.in.h: Likewise.
22729         * lib/sys_ioctl.in.h: Likewise.
22730         * lib/sys_select.in.h: Likewise.
22731         * lib/sys_socket.in.h: Likewise.
22732         * lib/sys_stat.in.h: Likewise.
22733         * lib/sys_time.in.h: Likewise.
22734         * lib/sys_times.in.h: Likewise.
22735         * lib/sys_utsname.in.h: Likewise.
22736         * lib/sys_wait.in.h: Likewise.
22737         * lib/sysexits.in.h: Likewise.
22738         * lib/termios.in.h: Likewise.
22739         * lib/time.in.h: Likewise.
22740         * lib/unistd.in.h: Likewise.
22741         * lib/wchar.in.h: Likewise.
22742         * lib/wctype.in.h: Likewise.
22743         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
22744         * modules/ctype (Makefile.am): Likewise.
22745         * modules/dirent (Makefile.am): Likewise.
22746         * modules/errno (Makefile.am): Likewise.
22747         * modules/fcntl-h (Makefile.am): Likewise.
22748         * modules/float (Makefile.am): Likewise.
22749         * modules/getopt-posix (Makefile.am): Likewise.
22750         * modules/iconv-h (Makefile.am): Likewise.
22751         * modules/inttypes (Makefile.am): Likewise.
22752         * modules/langinfo (Makefile.am): Likewise.
22753         * modules/locale (Makefile.am): Likewise.
22754         * modules/math (Makefile.am): Likewise.
22755         * modules/netdb (Makefile.am): Likewise.
22756         * modules/netinet_in (Makefile.am): Likewise.
22757         * modules/poll-h (Makefile.am): Likewise.
22758         * modules/pthread (Makefile.am): Likewise.
22759         * modules/pty (Makefile.am): Likewise.
22760         * modules/sched (Makefile.am): Likewise.
22761         * modules/search (Makefile.am): Likewise.
22762         * modules/selinux-h (Makefile.am): Likewise.
22763         * modules/signal (Makefile.am): Likewise.
22764         * modules/spawn (Makefile.am): Likewise.
22765         * modules/stdarg (Makefile.am): Likewise.
22766         * modules/stddef (Makefile.am): Likewise.
22767         * modules/stdint (Makefile.am): Likewise.
22768         * modules/stdio (Makefile.am): Likewise.
22769         * modules/stdlib (Makefile.am): Likewise.
22770         * modules/string (Makefile.am): Likewise.
22771         * modules/strings (Makefile.am): Likewise.
22772         * modules/sys_file (Makefile.am): Likewise.
22773         * modules/sys_ioctl (Makefile.am): Likewise.
22774         * modules/sys_select (Makefile.am): Likewise.
22775         * modules/sys_socket (Makefile.am): Likewise.
22776         * modules/sys_stat (Makefile.am): Likewise.
22777         * modules/sys_time (Makefile.am): Likewise.
22778         * modules/sys_times (Makefile.am): Likewise.
22779         * modules/sys_utsname (Makefile.am): Likewise.
22780         * modules/sys_wait (Makefile.am): Likewise.
22781         * modules/sysexits (Makefile.am): Likewise.
22782         * modules/termios (Makefile.am): Likewise.
22783         * modules/time (Makefile.am): Likewise.
22784         * modules/unistd (Makefile.am): Likewise.
22785         * modules/wchar (Makefile.am): Likewise.
22786         * modules/wctype (Makefile.am): Likewise.
22787
22788 2010-10-04  Bruno Haible  <bruno@clisp.org>
22789
22790         read-file tests: Avoid a test failure on NonStop Kernel.
22791         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
22792         a regular file.
22793         Reported by Joachim Schmitz <schmitz@hp.com>.
22794
22795 2010-10-03  Bruno Haible  <bruno@clisp.org>
22796
22797         gnulib-tool: Fixes for --create-testdir with --libtool.
22798         * gnulib-tool (func_get_automake_snippet): Don't augment
22799         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
22800         an executable.
22801         (func_create_testdir): Handle module 'alloca' like func_import.
22802         Reported by Bruce Korb <bruce.korb@gmail.com>.
22803
22804 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
22805
22806         Avoid some lines longer than 80 characters.
22807         * lib/stdint.in.h: Break long comment lines.
22808         * lib/math.in.h: Likewise.
22809         (_GL_NUM_UINT_WORDS): New macro, for readability.
22810         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
22811         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
22812         * lib/stdlib.in.h: Likewise.
22813         * lib/spawn.in.h: Likewise.
22814         * lib/sys_socket.in.h: Update an URL.
22815         * lib/sys_stat.in.h: Break long line.
22816
22817 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
22818
22819         Improve pmccabe2html.
22820         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
22821         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
22822         when the sources change. Remove the line in the HTML about "Used
22823         ranges" (which implied that there might be other unused ranges),
22824         rename "Resume" to "Summary" (easier to understand for more users).
22825         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
22826         styles, and some unnecessary blank lines.
22827
22828 2010-10-03  Bruno Haible  <bruno@clisp.org>
22829             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
22830
22831         acl: Add support for ACLs on NonStop Kernel.
22832         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
22833         Check whether the function aclsort() exists.
22834         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
22835         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
22836         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
22837         (acl_nontrivial [HAVE_ACLSORT]: New function.
22838         (file_has_acl): Implement for NonStop Kernel.
22839         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
22840         (qset_acl): Implement for NonStop Kernel.
22841         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
22842         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
22843         (main): Implement for NonStop Kernel.
22844         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
22845         Kernel. Handle this flavor.
22846         * tests/test-set-mode-acl.sh: Likewise.
22847         * tests/test-copy-acl.sh: Likewise.
22848         * tests/test-copy-file.sh: Likewise.
22849
22850 2010-10-03  Bruno Haible  <bruno@clisp.org>
22851
22852         Info about ACLs on NonStop Kernel.
22853         * doc/acl-resources.txt: Add info about NonStop Kernel.
22854         References by Joachim Schmitz <schmitz@hp.com>.
22855
22856 2010-10-02  Bruno Haible  <bruno@clisp.org>
22857
22858         Define missing EDQUOT on NonStop Kernel.
22859         * lib/errno.in.h (EDQUOT): Assign a value if missing.
22860         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
22861         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
22862         missing.
22863         * doc/posix-headers/errno.texi: Mention the NSK bug.
22864         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
22865         Reported by Joachim Schmitz <schmitz@hp.com>.
22866
22867 2010-10-02  Bruno Haible  <bruno@clisp.org>
22868
22869         Update doc for POSIX:2008.
22870         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
22871         Update URL of POSIX specification.
22872
22873 2010-10-02  Bruno Haible  <bruno@clisp.org>
22874
22875         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
22876         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
22877         from gnulib, not from Automake.
22878
22879 2010-10-02  Bruno Haible  <bruno@clisp.org>
22880
22881         New module 'system-posix'.
22882         * modules/system-posix: New file.
22883         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
22884         module is present.
22885         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
22886         GNULIB_SYSTEM_POSIX.
22887         * modules/stdlib (Depends-on): Remove sys_wait.
22888         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
22889         * doc/posix-functions/system.texi: Mention the new module.
22890         * doc/posix-headers/stdlib.texi: Likewise.
22891         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
22892         define test_sys_wait_macros to a no-op.
22893         Reported by Sam Steingold <sds@gnu.org>.
22894
22895 2010-09-30  Bruno Haible  <bruno@clisp.org>
22896
22897         More renaming from 'getdate' to 'get_date'.
22898         * doc/get_date.texi: Renamed from doc/getdate.texi.
22899         * modules/get_date (Files): Update.
22900         * MODULES.html.sh (Date and time <time.h>): Update.
22901         * DEPENDENCIES: Update.
22902         * gnulib-tool: Update comment.
22903         * m4/bison.m4 (gl_BISON): Likewise.
22904         * m4/get_date.m4 (gl_GET_DATE): Likewise.
22905
22906 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
22907
22908         bootstrap: support ACLOCAL_FLAGS during aclocal
22909         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
22910         can add additional -I dir for third-party .m4 files.
22911
22912 2010-09-30  Eric Blake  <eblake@redhat.com>
22913
22914         bootstrap: use glibtoolize on MacOS
22915         * build-aux/bootstrap (check_versions): Convert libtool into
22916         libtoolize.
22917         (tool search): Move libtool check earlier, and look for
22918         glibtoolize for MacOS.
22919         (gnulib_tool_options): Auto-add --libtool when appropriate.
22920         Reported by Justin Clift.
22921
22922         poll: fix typo that broke test on MacOS
22923         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
22924         Reported by Justin Clift.
22925
22926         getdate: rename to get_date
22927         Note: getdate.h is not renamed, to minimize client impact.
22928         * modules/getdate: Mark obsolete.  Move old contents...
22929         * modules/get_date: ...to new module name.
22930         * modules/getdate-tests: Move...
22931         * modules/get_date-tests: ...here.
22932         * m4/getdate.m4: Move...
22933         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
22934         * lib/getdate.y: Move...
22935         * lib/get_date.y: ...here.
22936         * tests/test-getdate.c: Move...
22937         * tests/test-get_date.c: ...here.
22938         * doc/posix-functions/getdate.texi (getdate): Update name.
22939         * NEWS: Mention the change.
22940
22941 2010-09-29  Bruno Haible  <bruno@clisp.org>
22942
22943         Separate the module 'waitpid' from the module 'sys_wait'.
22944         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
22945         present.
22946         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
22947         gl_MODULE_INDICATOR_FOR_TESTS.
22948         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
22949         * modules/sys_wait (Depends-on): Remove waitpid.
22950         (Makefile.am): Substitute GNULIB_WAITPID.
22951         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
22952         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
22953         signature only if the 'waitpid' module is present.
22954         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
22955         * NEWS: Mention the change.
22956         * modules/grantpt (Depends-on): Add waitpid.
22957         * modules/wait-process (Depends-on): Likewise.
22958
22959 2010-09-29  Bruno Haible  <bruno@clisp.org>
22960
22961         More tests for module 'sys_wait'.
22962         * modules/sys_wait-c++-tests: New file.
22963         * tests/test-sys_wait-c++.cc: New file.
22964         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
22965         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
22966
22967 2010-09-29  Bruno Haible  <bruno@clisp.org>
22968
22969         New module 'waitpid'.
22970         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
22971         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
22972         Don't include <process.h>.
22973         (waitpid): Declare only, using modern idiom.
22974         * m4/waitpid.m4: New file.
22975         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
22976         * modules/waitpid: New file.
22977         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
22978         (Makefile.am): Update.
22979         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
22980
22981 2010-09-28  Bruno Haible  <bruno@clisp.org>
22982
22983         poll: Assume ANSI C.
22984         * lib/poll.c (poll): Use an ANSI C declaration.
22985
22986 2010-09-28  Bruno Haible  <bruno@clisp.org>
22987
22988         poll-h: Create poll.h on all platforms.
22989         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
22990         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
22991         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
22992         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
22993         (gl_REPLACE_POLL_H): Don't set POLL_H.
22994         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
22995         * modules/poll-h (Depends-on): Add include_next.
22996         (Makefile.am): Create poll.h unconditionally. Substitute also
22997         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
22998
22999 2010-09-28  Bruno Haible  <bruno@clisp.org>
23000
23001         Tests for module 'poll-h'.
23002         * modules/poll-h-c++-tests: New file.
23003         * tests/test-poll-h-c++.cc: New file.
23004
23005         Tests for module 'poll-h'.
23006         * modules/poll-h-tests: New file.
23007         * tests/test-poll-h.c: New file.
23008
23009 2010-09-28  Bruno Haible  <bruno@clisp.org>
23010
23011         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
23012         * modules/poll-h (Depends-on): Add 'extensions'.
23013
23014 2010-09-28  Bruno Haible  <bruno@clisp.org>
23015
23016         New module 'poll-h'.
23017         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
23018         (poll): Use modern idiom.
23019         * modules/poll-h: New file.
23020         * modules/poll (Files): Remove lib/poll.in.h.
23021         (Depends-on): Add poll-h.
23022         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
23023         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
23024         * m4/poll_h.m4: New file.
23025         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
23026         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
23027         and invoke gl_REPLACE_POLL_H.
23028         * lib/poll.c: Use common idiom.
23029         * tests/test-poll.c: Likewise.
23030         * doc/posix-headers/poll.texi: Mention the poll-h module.
23031         Suggested by Eric Blake.
23032
23033 2010-09-26  Bruno Haible  <bruno@clisp.org>
23034
23035         sys_wait: Implement WSTOPSIG.
23036         * lib/sys_wait.in.h (WSTOPSIG): New macro.
23037         Reported by Simon Josefsson.
23038
23039 2010-09-26  Simon Josefsson  <simon@josefsson.org>
23040
23041         stdlib, sys_wait: Avoid compilation error on mingw.
23042         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
23043
23044 2010-09-26  Bruno Haible  <bruno@clisp.org>
23045
23046         stdlib tests: Avoid code duplication.
23047         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
23048         * modules/sys_wait-tests (Files): Likewise.
23049         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
23050         * tests/test-stdlib.c: Include test-sys_wait.h.
23051         (main): Invoke test_sys_wait_macros.
23052         * tests/test-sys_wait.c: Include test-sys_wait.h.
23053         (main): Invoke test_sys_wait_macros.
23054
23055 2010-09-25  Simon Josefsson  <simon@josefsson.org>
23056
23057         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
23058         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
23059         sure Windows sockets are working before calling getaddrinfo.
23060         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
23061         * doc/gnulib.texi (Windows sockets): Fix typo.
23062
23063 2010-09-25  Bruno Haible  <bruno@clisp.org>
23064
23065         Tests for module 'regex-quote'.
23066         * modules/regex-quote-tests: New file.
23067         * tests/test-regex-quote.c: New file.
23068
23069         New module 'regex-quote'.
23070         * lib/regex-quote.h: New file.
23071         * lib/regex-quote.c: New file.
23072         * modules/regex-quote: New file.
23073         Suggested by Reuben Thomas <rrt@sc3d.org>.
23074
23075 2010-09-24  Bruno Haible  <bruno@clisp.org>
23076
23077         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
23078         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
23079
23080 2010-09-23  Bruno Haible  <bruno@clisp.org>
23081
23082         setenv: Relax license.
23083         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
23084         Blake.
23085         Requested by Eric Blake.
23086
23087 2010-09-22  Bruno Haible  <bruno@clisp.org>
23088
23089         termios: Relax license.
23090         * modules/termios (License): Change to LGPLv2+.
23091         Requested by Eric Blake.
23092
23093 2010-09-22  Bruno Haible  <bruno@clisp.org>
23094
23095         threadlib: Allow the package to change the default to 'no'.
23096         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
23097         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
23098         Reported by Paul Eggert.
23099
23100 2010-09-22  Pádraig Brady  <P@draigbrady.com>
23101             Bruno Haible  <bruno@clisp.org>
23102
23103         Fix endless loop in mbmemcasecoll.
23104         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
23105         byte.
23106         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
23107
23108 2010-09-22  Bruno Haible  <bruno@clisp.org>
23109
23110         Tests for module 'memcoll'.
23111         * modules/memcoll-tests: New file.
23112         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
23113
23114         memcoll, xmemcoll: Clarify size vs. length.
23115         * modules/memcoll.c (memcoll0): Clarify specification.
23116         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
23117         passed to collate_error.
23118
23119 2010-09-22  Bruno Haible  <bruno@clisp.org>
23120
23121         Tests for module 'memcasecmp'.
23122         * modules/memcasecmp-tests: New file.
23123         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
23124
23125 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
23126
23127         * lib/pthread.in.h: Add split double-inclusion guard, and include
23128         system <pthread.h> if there is one.  Use @@-style as in other
23129         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
23130         pthread.h doesn't.
23131         (pthread_mutexattr_destroy, pthread_mutexattr_init):
23132         (pthread_mutexattr_settype, pthread_mutex_trylock):
23133         New static inline functions, if there's no system <pthread.h>.
23134         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
23135         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
23136         Approximate with mutexes if the system lacks spinlocks, as in
23137         MacOS.
23138         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
23139         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
23140         @@-style.  Check for spinlocks separately.
23141         (gl_PTHREAD_DEFAULTS): New macro.
23142         * modules/pthread: Redo to use a more typical style for in.h files.
23143
23144 2010-09-21  Eric Blake  <eblake@redhat.com>
23145
23146         net_if: enhance tests
23147         * tests/test-net_if.c (main): Move signature checks earlier.
23148         Print failures to stderr.
23149         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
23150         Document the bug that we do not yet fix.
23151
23152 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
23153
23154         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
23155         about gnulib, not GSS.
23156
23157 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
23158
23159         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
23160         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
23161         for Emacs.
23162         * build-aux/pmccabe2html: Make Makefile.am example code more
23163         cut-and-paste friendly.
23164
23165 2010-09-21  Simon Josefsson  <simon@josefsson.org>
23166
23167         * tests/test-net_if.c: New file.
23168         * modules/net_if-tests: New file.
23169
23170 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
23171
23172         pthread: add pthread_spin_destroy
23173         * lib/pthread.in.h (pthread_spin_destroy): New function.
23174
23175 2010-09-19  Bruno Haible  <bruno@clisp.org>
23176
23177         gnulib-tool: Fix --help output.
23178         * gnulib-tool (func_usage): Fix help message.
23179         Reported by Reuben Thomas <rrt@sc3d.org>.
23180
23181 2010-09-18  Jim Meyering  <meyering@redhat.com>
23182
23183         maint.mk: avoid unexpanded \n in two diagnostics
23184         * top/maint.mk (sc_prohibit_always_true_header_tests):
23185         Don't use a literal \n in a halt=... assignment.  It would not be
23186         expanded, and the two \n bytes would appear in the diagnostic output
23187         rather than the desired newline.  Use halt=$$(printf ... instead.
23188         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
23189
23190 2010-09-18  Bruno Haible  <bruno@clisp.org>
23191
23192         netinet_in: Doc tweak.
23193         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
23194         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
23195
23196 2010-09-18  Jim Meyering  <meyering@redhat.com>
23197
23198         init.sh: correct an outdated comment
23199         * tests/init.sh (create_exe_shims_):  s/function/alias/
23200
23201         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
23202         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
23203         a file named "*.exe" is removed between the glob expansion and the
23204         processing of that oddly named file.
23205
23206 2010-09-17  Eric Blake  <eblake@redhat.com>
23207
23208         mirbsd: add some more support
23209         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
23210         in BSD family.
23211         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
23212         devices as OpenBSD.
23213         * m4/host-os.m4 (mirbsd): Add MirBSD.
23214
23215         tests: fix unportable assumption on sys/wait.h
23216         * tests/test-sys_wait.c (main): Relax test.
23217         * tests/test-stdlib.c (main): Likewise.
23218
23219         init.sh: accomodate directory with no .exes
23220         * tests/init.sh: Accomodate directory containing only scripts.
23221
23222         tests: avoid compiler warning
23223         * tests/test-stdlib.c (main): Use the variable.
23224
23225         fdutimens, fdutimensat: update signature, again
23226         * lib/utimens.h (gl_futimens): Delete, and move signature...
23227         (fdutimens): ...here.
23228         (fdutimensat): Rearrange signature.
23229         (lutimensat): Rename variable for clarity.
23230         * lib/fdutimensat.c (fdutimensat): Update signature.
23231         * lib/utimens.c (fdutimens): Likewise.
23232         (gl_futimens): Delete.
23233         (utimens, lutimens): Update callers.
23234         * lib/futimens.c (futimens): Likewise.
23235         * tests/test-fdutimensat.c: Likewise.
23236         * tests/test-utimens.c: Likewise.
23237         * tests/test-futimens.h: Update comment.
23238         * NEWS: Mention this.
23239         Suggested by Paul Eggert.
23240
23241 2010-09-17  Bruno Haible  <bruno@clisp.org>
23242
23243         Take over the maintenance of some older macros from Autoconf.
23244         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
23245         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
23246         GNU Autoconf.
23247         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
23248         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
23249
23250 2010-09-17  Eric Blake  <eblake@redhat.com>
23251
23252         fdutimensat: drop atflag validation
23253         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
23254         with valid fd, to close a race scenario where futimens is
23255         unsupported and FILE was replaced by a symlink.
23256         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
23257         accordingly.
23258         Suggested by Paul Eggert.
23259
23260 2010-09-16  Bruno Haible  <bruno@clisp.org>
23261
23262         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
23263         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
23264
23265 2010-09-16  Bruno Haible  <bruno@clisp.org>
23266
23267         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
23268         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
23269         login_tty exists.
23270         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
23271
23272 2010-09-16  Bruno Haible  <bruno@clisp.org>
23273
23274         login_tty: Make the replacement code work on BSD systems.
23275         * lib/login_tty.c: Include <sys/ioctl.h>.
23276         (login_tty): Use ioctl TIOCSCTTY when available.
23277         * modules/login_tty (Depends-on): Add sys_ioctl.
23278         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
23279
23280 2010-09-16  Bruno Haible  <bruno@clisp.org>
23281
23282         login_tty: Stricter unit test.
23283         * modules/login_tty-tests (Depends-on): Add tcgetsid.
23284         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
23285         and tcgetsid() after login_tty.
23286         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
23287
23288 2010-09-16  Bruno Haible  <bruno@clisp.org>
23289
23290         New module 'tcgetsid'.
23291         * lib/tcgetsid.c: New file.
23292         * m4/tcgetsid.m4: New file.
23293         * modules/tcgetsid: New file.
23294         * modules/termios (Depends-on): Add c++defs, warn-on-use.
23295         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
23296         GNULIB_TCGETSID, HAVE_TCGETSID.
23297         * lib/termios.in.h: Include <sys/types.h>.
23298         (tcgetsid): New declaration.
23299         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
23300         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
23301         * doc/posix-functions/tcgetsid.texi: Mention the new module.
23302         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
23303
23304 2010-09-16  Bruno Haible  <bruno@clisp.org>
23305
23306         Tests for module 'termios'.
23307         * modules/termios-c++-tests: New file.
23308         * modules/termios-tests: New file.
23309         * tests/test-termios-c++.cc: New file.
23310         * tests/test-termios.c: New file.
23311
23312         New module 'termios'.
23313         * modules/termios: New file.
23314         * lib/termios.in.h: New file.
23315         * m4/termios_h.m4: New file.
23316         * doc/posix-headers/termios.texi: Mention the new module.
23317
23318 2010-09-16  Eric Blake  <eblake@redhat.com>
23319
23320         fdutimensat: add an atflag parameter
23321         * lib/fdutimensat.c (fdutimensat): Add new parameter.
23322         * lib/utimens.h (fdutimensat): Update prototype.
23323         * tests/test-fdutimensat.c: Adjust test to match.
23324         * NEWS: Document the change.
23325         Suggested by Paul Eggert.
23326
23327 2010-09-16  Bruno Haible  <bruno@clisp.org>
23328
23329         Fix typos in comments.
23330         * lib/striconveh.h: Fix typo in comment.
23331         * lib/login_tty.c (login_tty): Likewise.
23332
23333 2010-09-15  Bruno Haible  <bruno@clisp.org>
23334
23335         stdlib: clarify MirBSD WEXITSTATUS bug
23336         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
23337         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
23338
23339 2010-09-15  Eric Blake  <eblake@redhat.com>
23340
23341         stdlib: work around MirBSD WEXITSTATUS bug
23342         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
23343         * modules/stdlib (Depends-on): Add sys_wait.
23344         * tests/test-sys_wait.c (main): Enhance test.
23345         * tests/test-stdlib.c (main): Likewise.
23346         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
23347
23348         docs: mention MacOS issue with WEXITSTATUS(constant)
23349         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
23350         issue.
23351         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
23352
23353         strnlen: add tests
23354         * modules/strnlen-tests: New file.
23355         * tests/test-strnlen.c: Likewise.
23356
23357 2010-09-14  Bruno Haible  <bruno@clisp.org>
23358
23359         unistr/base: Avoid link errors when module 'libunistring' is also used.
23360         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
23361         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
23362         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
23363         Declare also when HAVE_LIBUNISTRING is set.
23364         Reported by Pádraig Brady <P@draigbrady.com>.
23365
23366 2010-09-14  Eric Blake  <eblake@redhat.com>
23367
23368         test-rawmemchr: make more robust
23369         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
23370         (Depends-on, configure.ac): Add needed prerequisites to use it.
23371         * modules/memchr-tests (Files, Depends-on, configure.ac):
23372         Likewise, to avoid implicit reliance on memchr module prereqs.
23373         * tests/test-memchr.c (main): Ensure proper masking.
23374         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
23375         reads.
23376
23377         memchr: detect glibc Alpha bug
23378         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
23379         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
23380         Alpha.
23381         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
23382         * tests/test-memchr.c (main): Enhance test.
23383         Reported by Nelson H. F. Beebe.
23384
23385 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
23386
23387         fts, getcwd, glob: audit for dirfd returning -1
23388         * lib/fts.c (opendir): Remove #define; no longer used.
23389         (opendirat): New arg PDIR_FD.  All callers changed.
23390         (fts_build, _opendir2): Use new opendirat to avoid the need for
23391         dirfd, or for checking whether dirfd returns a negative value.
23392         Don't use opendir; always use openat followed by fdopendir.
23393         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
23394         it.
23395         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
23396         returns -1 here.
23397         * modules/fts (Depends-on): Remove dirfd.
23398         * modules/getcwd (Depends-on): Likewise.
23399
23400 2010-09-13  Eric Blake  <eblake@redhat.com>
23401
23402         float: fix broken MirBSD header
23403         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
23404         * doc/posix-headers/float.texi (float.h): Document it.
23405
23406 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
23407
23408         fts: use O_NOFOLLOW to avoid race condition when opening a directory
23409         * lib/fts.c (opendirat): New arg extra_flags.
23410         (__opendir2): Use it to avoid following symlinks when opening
23411         a directory, if symlinks are not supposed to be followed.  See
23412         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
23413
23414         fdopendir: preserve argument fd before returning
23415         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
23416         (fdopendir_with_dup, fd_clone_opendir): New static functions.
23417         (fdopendir): Use them, arranging for FD to be open to the same
23418         directory that it was when it started.  (It might be temporarily
23419         closed while fdopendir is running, so this not thread- or
23420         signal-safe.)  Be careful to do the right thing even when file
23421         descriptors are scarce and dup fails with errno == EMFILE.  See
23422         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
23423
23424 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
23425
23426         regex: Pass the system regex if its only problem is 32-bit regoff_t.
23427         * NEWS: Document change.
23428         * m4/regex.m4: Disable test for regoff_t size.
23429
23430 2010-09-13  Jim Meyering  <meyering@redhat.com>
23431
23432         fts: don't operate on an invalid file descriptor after failed dup
23433         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
23434         negative file descriptor.
23435
23436 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
23437
23438         savedir: add streamsavedir, deprecate fdsavedir
23439         * NEWS: Mention deprecation of fdsavedir.
23440         * lib/savedir.c (streamsavedir): New extern function, whose name
23441         ends in "savedir" to be consistent with the others.  This differs
23442         from savedirstream in that it doesn't close its argument.  The
23443         next version of GNU tar will use this instead of fdsavedir, to
23444         avoid some race conditions and conserve file descriptors.
23445         (savedirstream): Reimplement as a wrapper around streamsavedir.
23446         (fdsavedir): Add a comment deprecating this function.  As far as
23447         I know, only GNU tar used it, and GNU tar doesn't need it any more.
23448         * lib/savedir.h (streamsavedir): New decl.
23449         (fdsavedir): Add a comment deprecating this.
23450
23451 2010-09-10  Bruno Haible  <bruno@clisp.org>
23452
23453         langinfo: Fix last commit.
23454         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
23455         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
23456         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
23457
23458 2010-09-10  Bruno Haible  <bruno@clisp.org>
23459
23460         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
23461         * lib/progreloc.c (O_EXEC): Define fallback.
23462
23463 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
23464
23465         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
23466         * NEWS: Document recent changes to fcntl-h.
23467         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
23468         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
23469         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
23470         Similarly for O_SEARCH; this last was already true, but not documented.
23471         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
23472         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
23473         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
23474         Likewise.
23475         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
23476         is zero, not whether it is defined.
23477         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
23478         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
23479         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
23480
23481 2010-09-10  Bruno Haible  <bruno@clisp.org>
23482
23483         langinfo, nl_langinfo: Fix for IRIX 5.3.
23484         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
23485         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
23486         HAVE_LANGINFO_YESEXPR.
23487         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
23488         HAVE_LANGINFO_YESEXPR.
23489         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
23490         HAVE_LANGINFO_T_FMT_AMPM is 0.
23491         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
23492         HAVE_LANGINFO_YESEXPR is 0.
23493         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
23494         NOEXPR.
23495         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
23496         * doc/posix-functions/nl_langinfo.texi: Likewise.
23497         Reported by Eric Blake.
23498
23499 2010-09-10  Bruno Haible  <bruno@clisp.org>
23500
23501         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
23502         * doc/glibc-functions/login_tty.texi: Mention the include file problem
23503         on FreeBSD 8.0 and OpenBSD 4.6.
23504         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
23505         * m4/pty_h.m4 (gl_PTY_H): Likewise.
23506         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
23507         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
23508         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
23509         ac_includes_default.
23510         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
23511
23512 2010-09-09  Eric Blake  <eblake@redhat.com>
23513
23514         strsignal: work around NetBSD bug
23515         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
23516         * lib/string.in.h (includes): Likewise.
23517         * doc/posix-functions/strsignal.texi (strsignal): Document the
23518         bug.
23519         Reported by Nelson H. F. Beebe.
23520
23521         gnulib-tool: work with NetBSD /bin/sh
23522         * gnulib-tool (func_cache_var, func_cache_lookup_module)
23523         (func_get_description, func_get_comment, func_get_status)
23524         (func_get_notice, func_get_applicability, func_get_filelist)
23525         (func_get_dependencies, func_get_autoconf_early_snippet)
23526         (func_get_autoconf_snippet, func_get_automake_snippet)
23527         (func_get_include_directive, func_get_link_directive)
23528         (func_get_license, func_get_maintainer, func_import): Avoid
23529         shell syntax errors from parsing syntax extensions.
23530
23531 2010-09-09  Bruno Haible  <bruno@clisp.org>
23532
23533         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
23534         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
23535         a reliable way to determine whether the 'alias' command works.
23536
23537 2010-09-08  Jim Meyering  <meyering@redhat.com>
23538
23539         init.sh: penalize a set-x-impaired shell; don't disqualify it
23540         * tests/init.sh: Too many shells corrupt application stderr when
23541         you set -x, so we can't afford to disqualify them, since at least
23542         on Irix-6.5, that would disqualify all bourne shells.
23543         Instead, use a two-pass approach.
23544         On the first pass, try to find a shell that meets the stricter
23545         condition that set -x does not corrupt stderr.
23546         If no shell meets the stricter condition, retest each candidate
23547         shell, but without that extra condition.  Finally, when
23548         VERBOSE=yes is requested and set -x might cause trouble, simply
23549         issue a warning and refrain from enabling debug output.
23550
23551 2010-09-08  Eric Blake  <eblake@redhat.com>
23552
23553         unsetenv: fix OpenBSD bug
23554         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
23555         * doc/posix-functions/unsetenv.texi (unsetenv): Update
23556         documentation.
23557         Reported by Jim Meyering.
23558
23559         strtod: work around IRIX 6.5 bug
23560         * lib/strtod.c (strtod): Reparse number on shorter string if
23561         exponent parse was invalid.
23562         * tests/test-strtod.c (main): Add check for "0x1p 2".
23563         Reported by Tom G. Christensen.
23564
23565         getopt: optimize previous patch
23566         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
23567         empty variable.  Speed up awk script.
23568         Reported by Paolo Bonzini.
23569
23570 2010-09-08  Jim Meyering  <meyering@redhat.com>
23571
23572         test.sh: disqualify shells for which set -x corrupts stderr
23573         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
23574         and OpenBSD 4.7.  They make it so with "set -x", environment settings
23575         appear in stderr output.  For example, this command:
23576             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
23577         prints "P=1" on those two systems:
23578
23579 2010-09-08  Bruno Haible  <bruno@clisp.org>
23580
23581         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
23582         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
23583         commands, because some shells ignore redirections when there is an
23584         error in the command lookup.
23585         Reported by Eric Blake.
23586
23587 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
23588
23589         * lib/regex.h: Fix a mention of `regex_compile' (should be
23590         `re_compile_pattern').
23591         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
23592         (re_set_registers): Correct name of parameter in comment.
23593
23594         * doc/regex.texi: Add documentation for missing syntax flags.
23595         Remove commented-out documentation of defunct syntax option
23596         RE_NO_EMPTY_ALTS.
23597         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
23598         Add documentation of re_set_registers.
23599         Document trick to re-use a pattern buffer by setting fastmap manually.
23600         Update documentation of struct re_pattern_buffer per public members.
23601         Uncomment documentation of equivalence class operators and
23602         collating symbol operators, since they are now implemented,
23603         Explain leftmost-longest matching in relation to alternatives.
23604         Tidy documentation of substring matching.
23605         Remove POSIX documentation, which is done better in
23606         glibc, and refer the reader there. Keep BSD API documentation, as
23607         that is not readily available elsewhere.
23608
23609 2010-09-07  Eric Blake  <eblake@redhat.com>
23610
23611         getopt: handle POSIXLY_CORRECT set but not exported
23612         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
23613         export state of POSIXLY_CORRECT, due to bash set -o posix.
23614         Reported by Dustin J. Mitchell.
23615
23616 2010-09-05  Bruno Haible  <bruno@clisp.org>
23617
23618         gnulib-tool: Highlight the changed options.
23619         * gnulib-tool (func_usage): Display the --import, --add-import,
23620         --remove-import explanations in bold font.
23621
23622 2010-09-06  Karl Berry  <karl@gnu.org>
23623
23624         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
23625
23626 2010-09-05  Bruno Haible  <bruno@clisp.org>
23627
23628         uniwidth/width: Update comment.
23629         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
23630         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
23631
23632 2010-09-05  Bruno Haible  <bruno@clisp.org>
23633
23634         isinf, isnan: Relax license.
23635         * modules/isinf (License): Change from GPL to LGPL, with consent from
23636         Ben Pfaff.
23637         * modules/isnan (License): Likewise.
23638         Requested by Ludovic Courtès.
23639
23640 2010-09-04  Bruno Haible  <bruno@clisp.org>
23641
23642         gnulib-tool: Help migration from --import to --add-import or --update.
23643         * gnulib-tool: Emit a verbose error message when --import is used
23644         without any module name.
23645
23646 2010-09-04  Bruno Haible  <bruno@clisp.org>
23647
23648         Update doc about gnulib-tool.
23649         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
23650         'gnulib-tool --update' in more detail.
23651         Reported by Eric Blake.
23652
23653 2010-09-04  Bruno Haible  <bruno@clisp.org>
23654
23655         gnulib-tool: Change --import. New options --add/remove-import.
23656         * gnulib-tool: New options --add-import, --remove-import.
23657         (func_usage): Document them.
23658         (have_associative): Define always.
23659         (func_import): In import mode, don't merge the specified settings with
23660         the cached settings. Implement remove-import mode.
23661         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
23662         Explain when to use them versus --import.
23663         (Simple update): Use --add-import instead of --import.
23664         * NEWS: Mention the change.
23665
23666 2010-09-04  Bruno Haible  <bruno@clisp.org>
23667
23668         * doc/gnulib-tool.texi (Initial import): Update paragraph about
23669         separate gnulib.mk.
23670
23671 2010-09-04  Bruno Haible  <bruno@clisp.org>
23672
23673         gnulib-tool: Don't talk about CVS any more.
23674         * gnulib-tool (func_usage, func_import): Write "version control"
23675         instead of CVS.
23676
23677 2010-09-04  Jim Meyering  <meyering@redhat.com>
23678
23679         maint.mk: avoid obscure sc_copyright_check failure in coreutils
23680         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
23681         false positives (whose names may be ill-chosen) when searching
23682         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
23683         would cause a false-positive.
23684
23685         avoid coreutils "make distcheck" failure
23686         Coreutils tests with an absolute build directory name that contains
23687         a space.  Not quoting this directory name caused a failure.
23688         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
23689         * tests/test-vc-list-files-cvs.sh: Likewise.
23690
23691 2010-09-04  Bruno Haible  <bruno@clisp.org>
23692
23693         gnulib-tool: Avoid error when run in a package without Makefile.am.
23694         * gnulib-tool: When collecting the m4dirs in a package that does not
23695         have a Makefile.am, eliminate those directories that contain no
23696         gnulib-cache.m4. Fix expression that counts these directories.
23697
23698 2010-09-04  Bruno Haible  <bruno@clisp.org>
23699
23700         update-copyright test: Improve output when perl is missing or too old.
23701         * tests/test-update-copyright.sh: Move test of Perl version down after
23702         the test whether Perl exists. Provide an explanation relating Perl's
23703         error message to Automake's SKIP: message.
23704
23705 2010-09-04  Bruno Haible  <bruno@clisp.org>
23706
23707         Don't augment PATH in TESTS_ENVIRONMENT.
23708         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
23709         set abs_aux_dir instead of augmenting PATH.
23710         * modules/vc-list-files-tests (Makefile.am): Likewise.
23711         * tests/test-update-copyright.sh: Augment PATH here.
23712         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
23713         path_prepend_.
23714         * tests/test-vc-list-files-git.sh: Likewise.
23715
23716 2010-09-04  Jim Meyering  <meyering@redhat.com>
23717
23718         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
23719         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
23720
23721 2010-09-04  Bruno Haible  <bruno@clisp.org>
23722
23723         strdup: Fix compilation error in C++ mode.
23724         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
23725         the macro.
23726
23727 2010-09-04  Bruno Haible  <bruno@clisp.org>
23728
23729         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
23730         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
23731         macro into a function.
23732         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
23733
23734 2010-09-04  Bruno Haible  <bruno@clisp.org>
23735
23736         Set PATH_SEPARATOR the same way autoconf does.
23737         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
23738         the value of PATH_SEPARATOR the same way autoconf-generated configure
23739         scripts do.
23740         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
23741         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
23742
23743 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
23744
23745         Set PATH_SEPARATOR the same way autoconf does.
23746         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
23747         the same way autoconf-generated configure scripts do.
23748         * posix-modules: Likewise.
23749
23750 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
23751
23752         hash: fix safe_hasher const typo
23753         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
23754         const; otherwise, there is a type error later.
23755
23756 2010-09-02  Jim Meyering  <meyering@redhat.com>
23757
23758         test-update-copyright.sh: require perl 5.8.0
23759         * tests/test-update-copyright.sh: Require 5.8.0,
23760         which Tom G. Christensen has confirmed is adequate,
23761         while 5.6.1 is not.
23762
23763 2010-09-02  Eric Blake  <eblake@redhat.com>
23764
23765         tests: init.sh improvements for re-exec'ing with zsh
23766         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
23767         -vx through shell re-exec.
23768         Reported by Tom G. Christensen.
23769
23770         wctype: fix typo in previous commit
23771         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
23772         Reported by Ludovic Courtès.
23773
23774 2010-09-02  Jim Meyering  <meyering@redhat.com>
23775
23776         test-update-copyright.sh: skip test if Perl is too old
23777         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
23778         Reported by Tom G. Christensen.
23779
23780 2010-09-02  Bruno Haible  <bruno@clisp.org>
23781
23782         wctype: Avoid compilation error on IRIX 6.5.30.
23783         * lib/wctype.in.h (iswblank): Declare with a replacement if
23784         REPLACE_ISWBLANK is set.
23785         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
23786         declared. Set REPLACE_ISWBLANK.
23787         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
23788         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
23789         * doc/posix-headers/wctype.texi: Likewise.
23790         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
23791
23792 2010-09-01  Bruno Haible  <bruno@clisp.org>
23793
23794         New module 'socketlib'.
23795         * modules/socketlib: New file.
23796         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
23797         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
23798         * modules/sockets (Depends-on): Add socketlib.
23799         Suggested by Sam Steingold <sds@gnu.org>.
23800
23801 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
23802
23803         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
23804
23805         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
23806         when one needs search access to a directory but not read access.
23807         On systems where it is available, it works in some cases where
23808         O_RDONLY does not, namely on directories that are searchable but
23809         not readable, and which need only to be searchable.  If O_SEARCH
23810         is not available, fall back to the traditional method of using
23811         O_RDONLY.
23812
23813         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
23814         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
23815         when opening a directory that needs only to be searchable.
23816         * lib/chdir-safer.c (chdir_no_follow): Likewise.
23817         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
23818         * lib/openat-proc.c (openat_proc_name): Likewise.
23819         * lib/openat.c (openat_needs_fchdir): Likewise.
23820         * lib/save-cwd.c (save_cwd): Likewise.
23821         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
23822
23823 2010-08-28  Bruno Haible  <bruno@clisp.org>
23824
23825         New module 'host-cpu-c-abi'.
23826         * modules/host-cpu-c-abi: New file.
23827         * m4/host-cpu-c-abi.m4: New file, based on part of
23828         clisp/src/m4/general.m4.
23829         Requested by Sam Steingold <sds@gnu.org>.
23830
23831 2010-08-31  Eric Blake  <eblake@redhat.com>
23832         and Jim Meyering  <meyering@redhat.com>
23833
23834         hash: factor, and guard against misbehaving hasher function
23835         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
23836         of table->hasher's return value.  Also protect against a hash value
23837         so large that adding it to table->bucket results in a NULL pointer.
23838         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
23839         Use it in place of open-coded check-and-abort.
23840
23841 2010-08-30  Bruno Haible  <bruno@clisp.org>
23842
23843         hash: silence spurious clang warning
23844         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
23845         Reported by Eric Blake.
23846
23847 2010-08-30  Eric Blake  <eblake@redhat.com>
23848
23849         strstr, memmem, strcasestr: avoid leaked shell message
23850         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
23851         FreeBSD.
23852         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
23853         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
23854
23855         tests: silence clang warning
23856         * tests/test-malloca.c (do_allocation): Avoid dead store.
23857
23858 2010-08-29  Bruno Haible  <bruno@clisp.org>
23859
23860         gettext: Fix recent mistake.
23861         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
23862
23863 2010-08-29  Bruno Haible  <bruno@clisp.org>
23864
23865         selinux-h: Offer a --without-selinux option.
23866         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
23867         --without-selinux was specified, skip all tests and define
23868         HAVE_SELINUX_SELINUX_H to 0.
23869         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
23870         set LIB_SELINUX to empty.
23871         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
23872         gl_LIBSELINUX. If --without-selinux was specified, replace
23873         selinux/context.h.
23874         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
23875
23876 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
23877             Bruno Haible  <bruno@clisp.org>
23878
23879         Make the module 'realloc-gnu' work again on AIX and OSF/1.
23880         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
23881         of HAVE_REALLOC.
23882         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
23883         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
23884         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
23885         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
23886
23887 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
23888             Bruno Haible  <bruno@clisp.org>
23889
23890         Make the module 'calloc-gnu' work again on AIX and OSF/1.
23891         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
23892         HAVE_CALLOC.
23893         * lib/xmalloc.c: Update accordingly.
23894         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
23895         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
23896         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
23897
23898 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
23899             Bruno Haible  <bruno@clisp.org>
23900
23901         Make the module 'malloc-gnu' work again on AIX and OSF/1.
23902         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
23903         HAVE_MALLOC.
23904         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
23905         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
23906         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
23907
23908 2010-08-29  Bruno Haible  <bruno@clisp.org>
23909
23910         Update modules list.
23911         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
23912         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
23913         (String handling <string.h>): Add astrxfrm.
23914         (File system functions): Add readlinkat.
23915
23916 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23917
23918         Tests for module 'realloc-gnu'.
23919         * modules/realloc-gnu-tests: New file.
23920         * tests/test-realloc-gnu.c: New file.
23921
23922         Tests for module 'calloc-gnu'.
23923         * modules/calloc-gnu-tests: New file.
23924         * tests/test-calloc-gnu.c: New file.
23925
23926         Tests for module 'malloc-gnu'.
23927         * modules/malloc-gnu-tests: New file.
23928         * tests/test-malloc-gnu.c: New file.
23929
23930 2010-08-28  Bruno Haible  <bruno@clisp.org>
23931
23932         Rename module 'realloc' -> 'realloc-gnu'.
23933         * modules/realloc-gnu: New file, copied from modules/realloc.
23934         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
23935         obsolete.
23936         * modules/mgetgroups (Depends-on): Update.
23937         * doc/posix-functions/realloc.texi: Update.
23938         * NEWS: Mention the change.
23939
23940         Rename module 'calloc' -> 'calloc-gnu'.
23941         * modules/calloc-gnu: New file, copied from modules/calloc.
23942         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
23943         obsolete.
23944         * doc/posix-functions/calloc.texi: Update.
23945         * NEWS: Mention the change.
23946
23947         Rename module 'malloc' -> 'malloc-gnu'.
23948         * modules/malloc-gnu: New file, copied from modules/malloc.
23949         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
23950         obsolete.
23951         * modules/argp (Depends-on): Update.
23952         * modules/regex (Depends-on): Update.
23953         * doc/posix-functions/malloc.texi: Update.
23954         * NEWS: Mention the change.
23955
23956 2010-08-28  Eric Blake  <eblake@redhat.com>
23957
23958         pread, pwrite: add missing dependency
23959         * modules/pread (Depends-on): Add extensions.
23960         * modules/pwrite (Depends-on): Likewise.
23961
23962 2010-08-28  Bruno Haible  <bruno@clisp.org>
23963
23964         unistr/u*-strchr: Fix tests dependencies.
23965         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
23966         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
23967         Reported by Ian Beckwith <ianb@erislabs.net>.
23968
23969 2010-08-28  Bruno Haible  <bruno@clisp.org>
23970
23971         read-file: Don't occupy too much unused memory.
23972         * lib/read-file.c (fread_file): Shrink the buffer at the end.
23973
23974 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
23975             Eric Blake  <eblake@redhat.com>
23976             Bruno Haible  <bruno@clisp.org>
23977
23978         read-file: Avoid memory reallocations with regular files.
23979         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
23980         (fread_file): With regular files, use the remaining length as the
23981         initial buffer size.  Check against overflow.
23982         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
23983         sys_stat.
23984
23985 2010-08-28  Bruno Haible  <bruno@clisp.org>
23986
23987         ftello: Relax license.
23988         * modules/ftello (License): Relax to LGPLv2+.
23989         Reported by Eric Blake.
23990
23991 2010-08-28  Bruno Haible  <bruno@clisp.org>
23992
23993         Avoid relocwrapper link errors due to gnulib replacement functions.
23994         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
23995         function.
23996         Reported by Ben Pfaff <blp@cs.stanford.edu>.
23997
23998 2010-08-28  Bruno Haible  <bruno@clisp.org>
23999
24000         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
24001         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
24002         defined.
24003         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
24004         Suggested by Eric Blake.
24005
24006 2010-08-28  Bruno Haible  <bruno@clisp.org>
24007
24008         sys_socket, netdb: Ensure socklen_t gets defined.
24009         * modules/sys_socket (Depends-on): Add socklen.
24010         * modules/netdb (Depends-on): Likewise.
24011         * modules/getaddrinfo (Depends-on): Remove socklen.
24012         * modules/getsockopt (Depends-on): Likewise.
24013         * modules/setsockopt (Depends-on): Likewise.
24014         * tests/test-sys_socket.c: Check that socklen_t is defined.
24015         * tests/test-netdb.c: Likewise.
24016         * m4/socklen.m4: Update comments.
24017         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
24018
24019 2010-08-27  Eric Blake  <eblake@redhat.com>
24020
24021         login_tty: add missing dependency
24022         * modules/login_tty (Depends-on): Add pty.
24023
24024 2010-08-26  Eric Blake  <eblake@redhat.com>
24025
24026         lib-symbol-versions: fix m4 quoting
24027         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
24028         format for AC_LINK_IFELSE.
24029
24030         glob: fix compile test
24031         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
24032
24033         btowc: fix missing file
24034         * modules/btowc (Files): Also ship locale-fr.m4.
24035
24036         lseek: fix link test
24037         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
24038         AC_LINK_IFELSE.
24039
24040         include_next: silence autoconf 2.68 warning
24041         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
24042         AC_COMPILE_IFELSE as special.
24043         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
24044         autoconf < 2.68.
24045
24046         acl: fix compilation test
24047         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
24048         AC_COMPILE_IFELSE.
24049
24050 2010-08-26  Bruno Haible  <bruno@clisp.org>
24051
24052         Modernize AC_TRY_RUN invocations.
24053         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
24054         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
24055         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
24056         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
24057         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
24058         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
24059         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
24060         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
24061         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
24062         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
24063         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
24064         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
24065         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
24066         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
24067         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
24068         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
24069         gl_MBRLEN_NUL_RETVAL): Likewise.
24070         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
24071         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
24072         Likewise.
24073         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
24074         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
24075         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
24076         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
24077         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
24078         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
24079         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
24080         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
24081         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
24082         Likewise.
24083         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
24084         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
24085         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
24086         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
24087         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
24088         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
24089         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
24090         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
24091         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
24092         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
24093
24094 2010-08-26  Bruno Haible  <bruno@clisp.org>
24095
24096         Modernize AC_TRY_LINK invocations.
24097         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
24098         AC_TRY_LINK.
24099         * m4/argp.m4 (gl_ARGP): Likewise.
24100         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
24101         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
24102         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
24103         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
24104         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
24105         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
24106         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
24107         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
24108         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
24109         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
24110         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
24111         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
24112         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
24113         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
24114         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
24115         * m4/hostent.m4 (gl_HOSTENT): Likewise.
24116         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
24117         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
24118         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
24119         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
24120         Likewise.
24121         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
24122         Likewise.
24123         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
24124         Likewise.
24125         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
24126         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
24127         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
24128         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
24129         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
24130         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
24131         * m4/servent.m4 (gl_SERVENT): Likewise.
24132         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
24133         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
24134         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
24135         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
24136         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
24137         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
24138         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
24139         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
24140         * modules/tsearch-tests (configure.ac): Likewise.
24141
24142 2010-08-26  Bruno Haible  <bruno@clisp.org>
24143
24144         Modernize AC_TRY_COMPILE invocations.
24145         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
24146         AC_TRY_COMPILE.
24147         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
24148         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
24149         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
24150         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
24151         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
24152         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
24153         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
24154         * m4/lock.m4 (gl_LOCK): Likewise.
24155         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
24156         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
24157         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
24158         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
24159         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
24160         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
24161         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
24162         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
24163         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
24164         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
24165         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
24166         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
24167         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
24168         extraneous semicolon.
24169
24170 2010-08-26  Jim Meyering  <meyering@redhat.com>
24171
24172         stat-time: relax license LGPL
24173         * modules/stat-time (License): Change from GPL to LGPL,
24174         with consent from all contributors, for use in libguile.
24175         Requested by Ludovic Courtès.
24176
24177 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
24178
24179         poll: return immediately on POLLHUP.
24180         * lib/poll.c (poll): Always set timeout before wait_timeout is
24181         computed.
24182
24183 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24184
24185         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
24186         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
24187         rmdir ("dir/.//"), unlinkat.
24188
24189 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
24190
24191         stdbool: avoid spurious failure with modern xlc
24192         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
24193
24194 2010-08-24  Bruno Haible  <bruno@clisp.org>
24195
24196         getloadavg: simplify code
24197         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
24198         gl_have_func. Update comments.
24199
24200 2010-08-24  Eric Blake  <eblake@redhat.com>
24201
24202         getloadavg: don't define SVR4 on cygwin
24203         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
24204         only define SVR4 when -lkvm is required.
24205         Reported by Yaakov Selkowitz.
24206
24207 2010-08-24  Bruno Haible  <bruno@clisp.org>
24208
24209         priv-set: fix comment
24210         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
24211
24212 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
24213
24214         priv-set: fix comments
24215         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
24216         to match code, as suggested by David Bartley in:
24217         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
24218
24219 2010-08-23  Eric Blake  <eblake@redhat.com>
24220
24221         stdbool: avoid rejecting clang
24222         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
24223         * tests/test-stdbool.c: Enable more tests if using the system
24224         <stdbool.h> instead of the gnulib replacement.
24225         (main): Move xlc bug test to a runtime test for all compilers.
24226         Reported by Anders Kaseorg.
24227
24228         argz: fix shell quoting issue
24229         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
24230         Reported by Charles Wilson.
24231
24232 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
24233             Erik Faye-Lund <kusmabite@gmail.com>
24234
24235         poll, select: handle ERROR_BROKEN_PIPE.
24236         * lib/poll.c (win32_compute_revents): Return POLLHUP when
24237         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
24238         * lib/select.c (win32_compute_revents): Do not mark a pipe
24239         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
24240
24241 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
24242
24243         fts: allow compilation with C++
24244         * lib/fts_.h: Specify extern "C" linkage with C++.
24245
24246 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24247
24248         Fix gnulib-tool sed script de-commentation for AIX sed.
24249         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
24250         sed.
24251
24252 2010-08-17  Eric Blake  <eblake@redhat.com>
24253
24254         test-stddef: test for (some) offsetof bugs
24255         * tests/test-stddef.c: Enhance test to ensure correct type of
24256         offsetof.
24257         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
24258         that we are not fixing at this time.
24259
24260 2010-08-15  Bruno Haible  <bruno@clisp.org>
24261
24262         stpncpy: Allow stpncpy to be defined as a macro.
24263         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
24264         if it's already correctly declared.
24265         * lib/string.in.h (stpncpy): Undefine before redefining.
24266         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
24267
24268 2010-08-14  Bruno Haible  <bruno@clisp.org>
24269
24270         Rename module 'memxfrm' to 'amemxfrm'.
24271         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
24272         (amemxfrm): Renamed from memxfrm.
24273         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
24274         (amemxfrm): Renamed from memxfrm.
24275         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
24276         * NEWS: Mention the change.
24277         * MODULES.html.sh (String handling <string.h>): Update.
24278         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
24279         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
24280         * lib/unicase/u16-casexfrm.c: Likewise.
24281         * lib/unicase/u32-casexfrm.c: Likewise.
24282         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
24283         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
24284         * lib/uninorm/u16-normxfrm.c: Likewise.
24285         * lib/uninorm/u32-normxfrm.c: Likewise.
24286         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
24287         memxfrm.
24288         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
24289         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
24290         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
24291         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
24292         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
24293         Suggested by Paul Eggert.
24294
24295 2010-08-14  Bruno Haible  <bruno@clisp.org>
24296
24297         Tests for module 'astrxfrm'.
24298         * modules/astrxfrm-tests: New file.
24299         * tests/test-astrxfrm.c: New file.
24300
24301         New module 'astrxfrm'.
24302         * lib/astrxfrm.h: New file.
24303         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
24304         * modules/astrxfrm: New file.
24305
24306 2010-08-14  Reuben Thomas <rrt@sc3d.org>
24307
24308         regex: Tweak doc.
24309         * doc/regex.texi (Overview): Don't mention regex.c.
24310         (GNU Regular Expression Compiling): Likewise.
24311         (Match-end-of-line Operator): Mention 'not_eol'.
24312
24313 2010-08-14  Brian Gough  <bjg@gnu.org>
24314             Bruno Haible  <bruno@clisp.org>
24315
24316         git-merge-changelog: add doc relating to use with bzr and hg.
24317         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
24318
24319 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
24320
24321         pthread: fix pthread.h creation for srcdir != builddir
24322         * modules/pthread (Makefile.am): Fix the rule to work also in a
24323         non-srcdir build.
24324
24325 2010-08-13  Karl Berry  <karl@gnu.org>
24326
24327         * doc/regex.texi (Predefined Syntaxes): @smallexample.
24328         * doc/posix-*/*: force line break before @url of POSIX
24329         specifications.
24330         Suggested by Werner Lemberg.
24331
24332 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
24333
24334         strtod: fix const diagnostic
24335         * lib/strtod.c (strtod): Don't assign const char * to char *,
24336         as this elicits a warning from GCC when warnings are enabled.
24337
24338 2010-08-10  Pádraig Brady <P@draigbrady.com>
24339         and Eric Blake  <eblake@redhat.com>
24340
24341         copy-acl: ignore ENOTSUP on HP-UX
24342         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
24343         so that it is available for HP-UX.
24344         * lib/copy-acl.c (qcopy_acl): Use it.
24345         Reported by Patrick M. Callahan.
24346
24347 2010-08-10  Eric Blake  <eblake@redhat.com>
24348
24349         open, chown: relax license
24350         * modules/open (License): Change to LGPLv2+, with consent by all
24351         authors, for use in augeas.
24352         * modules/chown (License): Likewise.
24353         * modules/lchown (Likewise): Likewise.
24354         Requested by Adam Stokes.
24355
24356 2010-08-09  Karl Berry  <karl@gnu.org>
24357
24358         * build-aux/ar-lib: new file, import from Automake.
24359         * config/srclist.txt: autocheck for updates.
24360
24361 2010-08-09  Eric Blake  <eblake@redhat.com>
24362
24363         readlinkat: adjust client modules
24364         * modules/areadlinkat (Depends-on): Use readlinkat, not
24365         symlinkat.
24366         * modules/areadlinkat-with-size (Depends-on): Likewise.
24367
24368         mknod: be more vocal about danger of running tests as root
24369         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
24370         root, since that is just asking for problems.
24371         Suggested by Bruno Haible, based on a report by Rainer Tammer.
24372
24373         readlinkat: split into its own module
24374         * modules/symlinkat: Split readlinkat...
24375         * modules/readlinkat: ...into separate module.
24376         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
24377         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
24378         * lib/symlinkat.c (readlinkat): Move...
24379         * lib/readlinkat.c: ...into new file.
24380         * modules/symlinkat-tests: Split readlinkat test...
24381         * modules/readlinkat-tests: ...into separate module.
24382         * tests/test-symlinkat.c: Split...
24383         * tests/test-readlinkat.c: ...into new file.
24384         * NEWS: Document the split.
24385         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
24386         * lib/unistd.in.h (readlinkat): Likewise.
24387         Suggested by Bruno Haible.
24388
24389 2010-08-08  Bruno Haible  <bruno@clisp.org>
24390
24391         memxfrm: Speed up.
24392         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
24393         that usually only one call to strxfrm is necessary for each string
24394         part.
24395         Reported by Paul Eggert <eggert@cs.ucla.edu>.
24396
24397 2010-08-07  Karl Berry  <karl@gnu.org>
24398
24399         * doc/posix-headers/limits.texi,
24400         * doc/posix-functions/malloc.texi,
24401         * doc/posix-functions/strsignal.texi: missing @item.
24402         * doc/ld-version-script.texi: spurious leading i.
24403         * doc/regex.texi (Interval Operators): no commas inside @var.
24404
24405 2010-08-01  Bruno Haible  <bruno@clisp.org>
24406
24407         Integrate the regex documentation.
24408         * doc/gnulib.texi: Define 'cn' index.
24409         (Regular expressions): New a chapter that includes regex.texi and
24410         regexprops-generic.texi.
24411         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
24412         syntax.
24413
24414         Whitespace cleanup.
24415         * doc/regex.texi: Remove trailing spaces.
24416
24417         Add regex documentation.
24418         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
24419         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
24420         Written by Kathy A. Hargreaves and Karl Berry.
24421
24422 2010-08-01  Bruno Haible  <bruno@clisp.org>
24423
24424         link: Update documentation.
24425         * doc/posix-functions/link.texi: Update regarding Solaris.
24426
24427 2010-07-31  Bruno Haible  <bruno@clisp.org>
24428
24429         Update modules list.
24430         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
24431         (String handling <string.h>): Add memcmp2, memxfrm.
24432         (Container data structures): Add xlist, xsublist, xoset.
24433         (Core language properties): Add alignof, unused-parameter.
24434         (Process control, Numeric conversion functions <stdlib.h>): Renamed
24435         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
24436         (Unibyte characters <ctype.h>): New section.
24437         (String handling <string.h>): New section.
24438         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
24439         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
24440         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
24441         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
24442         tan, tanh, tanl, y0, y1, yn.
24443         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
24444         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
24445         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
24446         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
24447         unlockpt, vdprintf, vdprintf-posix.
24448         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
24449         (File system functions): Add concat-filename, sys_file, sys_ioctl,
24450         xconcat-filename.
24451         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
24452         getdtablesize, pipe2, pipe2-safer.
24453         (Security): New section.
24454         (Networking functions): Add accept4.
24455         (Signal handling): Add sigpipe.
24456         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
24457         mbmemcasecoll.
24458         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
24459         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
24460         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
24461         pipe-filter-ii.
24462         (Misc): Add argp-version-etc, login_tty, parse-duration.
24463
24464 2010-07-31  Bruno Haible  <bruno@clisp.org>
24465
24466         Improve doc in MODULES.html.
24467         * modules/linkat (Description): Add the word "function".
24468         * modules/mkfifo (Description): Likewise.
24469         * modules/mknod (Description): Likewise.
24470         * modules/remove (Description): Likewise.
24471         * modules/renameat (Description): Likewise.
24472         * modules/stat (Description): Likewise.
24473         * modules/symlink (Description): Likewise.
24474         * modules/unlink (Description): Likewise.
24475
24476 2010-07-31  Bruno Haible  <bruno@clisp.org>
24477
24478         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
24479         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
24480         option --enable/disable-c++ instead of --enable/disable-cxx.
24481         * NEWS: Mention the change.
24482
24483 2010-07-31  Bruno Haible  <bruno@clisp.org>
24484
24485         readlink, areadlink: Relax test a bit.
24486         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
24487         alternative to ENOTDIR.
24488         * tests/test-areadlink.h (test_areadlink): Likewise.
24489         Reported by Rainer Tammer.
24490
24491 2010-07-31  Bruno Haible  <bruno@clisp.org>
24492
24493         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
24494         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
24495         character, perform the search using U_STRCHR.
24496         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
24497         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
24498         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
24499         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
24500         Suggested by Paolo Bonzini.
24501
24502 2010-07-31  Bruno Haible  <bruno@clisp.org>
24503
24504         unistr/u*-strstr: Fix dependencies.
24505         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
24506         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
24507         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
24508
24509 2010-07-31  Bruno Haible  <bruno@clisp.org>
24510
24511         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
24512         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
24513         the beginning of the loop.
24514         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
24515         cases in 'switch' statement.
24516
24517         unistr/u8-strchr: Fix several bugs.
24518         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
24519         the string. When not found, return NULL, not a pointer near the end.
24520
24521         More tests for unistr/u8-strchr.
24522         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
24523         that the function does not read past the first occurrence of the byte
24524         being searched.
24525         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
24526         * tests/unistr/test-u16-strchr.c (main): New function.
24527         * tests/unistr/test-u32-strchr.c (main): New function.
24528
24529 2010-07-31  Bruno Haible  <bruno@clisp.org>
24530
24531         posix-modules: Ignore backup files of documentation files.
24532         * posix-modules: grep only through files named *.texi.
24533
24534 2010-07-31  Bruno Haible  <bruno@clisp.org>
24535
24536         symlinkat: Fix documentation.
24537         * doc/posix-functions/readlinkat.texi: Fix module name.
24538
24539 2010-07-31  Bruno Haible  <bruno@clisp.org>
24540
24541         fchownat: Replace also when chown has the trailing slash bug.
24542         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
24543         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
24544         introduced on 2010-04-10.
24545         Reported by Rainer Tammer.
24546
24547 2010-07-31  Bruno Haible  <bruno@clisp.org>
24548
24549         linkat: Work around AIX 7.1 bug.
24550         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
24551         whether linkat handles trailing slash correctly. If not, replace linkat
24552         and define LINKAT_TRAILING_SLASH_BUG.
24553         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
24554         check whether (fd1,file1) points to a directory if file1 or file2 ends
24555         in a slash. Code taken from lib/link.c.
24556         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
24557         Reported by Rainer Tammer.
24558
24559 2010-07-31  Bruno Haible  <bruno@clisp.org>
24560
24561         Correctly determine whether pow is available in libc on AIX 7 with xlc.
24562         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
24563         This disables an xlc optimization that was causing wrong test results.
24564         Reported by Rainer Tammer.
24565
24566 2010-07-31  Bruno Haible  <bruno@clisp.org>
24567
24568         iconv: Work around AIX 6.1..7.1 bug.
24569         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
24570         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
24571         cross-compiling, guess no on all versions of AIX.
24572         Reported by Rainer Tammer.
24573
24574 2010-07-31  Bruno Haible  <bruno@clisp.org>
24575
24576         readlink: Relax test a bit.
24577         * tests/test-readlink.h (test_readlink): Allow different errno value
24578         when readlink is called with a file name that ends in / and refers to
24579         a file.
24580         Suggested by Eric Blake.
24581         Reported by Rainer Tammer.
24582
24583 2010-07-31  Bruno Haible  <bruno@clisp.org>
24584
24585         copysign: Does not require -lm on glibc systems.
24586         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
24587         gl_COMMON_DOUBLE_MATHFUNC.
24588         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
24589
24590 2010-07-31  Bruno Haible  <bruno@clisp.org>
24591
24592         duplocale: Work around AIX 7.1 bug.
24593         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
24594         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
24595         * lib/duplocale.c (rpl_duplocale): Update comment.
24596         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
24597         Reported by Rainer Tammer.
24598
24599 2010-07-30  Bruno Haible  <bruno@clisp.org>
24600
24601         dirfd: Avoid link error on AIX 7.1.
24602         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
24603         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
24604         exist, set REPLACE_DIRFD.
24605         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
24606         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
24607         * doc/posix-functions/dirfd.texi: Update.
24608         Reported by Rainer Tammer.
24609
24610 2010-07-30  Eric Blake  <eblake@redhat.com>
24611
24612         strtod: next round of AIX fixes
24613         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
24614         exponent.
24615         * tests/test-strtod.c (main): Enhance tests.
24616         * doc/posix-functions/strtod.texi (strtod): Document next bug.
24617         Reported by Rainer Tammer.
24618
24619         futimens: fix configure check
24620         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
24621         Reported by Bruno Haible.
24622
24623 2010-07-30  Bruno Haible  <bruno@clisp.org>
24624
24625         getline: Update regarding AIX.
24626         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
24627         Reported by Rainer Tammer.
24628
24629 2010-07-30  Bruno Haible  <bruno@clisp.org>
24630
24631         wcwidth: Drop replacement on AIX 7.
24632         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
24633         AIX 7.
24634         Reported by Rainer Tammer.
24635
24636 2010-07-30  Bruno Haible  <bruno@clisp.org>
24637
24638         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
24639         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
24640         a 'char *'.
24641         Reported by Rainer Tammer.
24642
24643 2010-07-30  Bruno Haible  <bruno@clisp.org>
24644
24645         unlink: Update regarding AIX.
24646         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
24647         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
24648         Reported by Rainer Tammer.
24649
24650 2010-07-30  Bruno Haible  <bruno@clisp.org>
24651
24652         symlink: Update regarding AIX.
24653         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
24654         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
24655         Reported by Rainer Tammer.
24656
24657 2010-07-30  Bruno Haible  <bruno@clisp.org>
24658
24659         strndup: Update regarding AIX.
24660         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
24661         AIX 7.
24662         Reported by Rainer Tammer.
24663
24664 2010-07-30  Bruno Haible  <bruno@clisp.org>
24665
24666         stat: Update regarding AIX.
24667         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
24668         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
24669         Reported by Rainer Tammer.
24670
24671 2010-07-30  Bruno Haible  <bruno@clisp.org>
24672
24673         truncl: Fix autoconf test.
24674         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
24675         whether truncl works.
24676         Reported by Rainer Tammer.
24677
24678 2010-07-30  Bruno Haible  <bruno@clisp.org>
24679
24680         round: Update regarding AIX.
24681         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
24682         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
24683         Reported by Rainer Tammer.
24684
24685 2010-07-30  Bruno Haible  <bruno@clisp.org>
24686
24687         rename: Update regarding AIX.
24688         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
24689         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
24690         Reported by Rainer Tammer.
24691
24692 2010-07-30  Bruno Haible  <bruno@clisp.org>
24693
24694         printf.m4: Update regarding AIX.
24695         * m4/printf.m4: Update comments regarding AIX.
24696         Reported by Rainer Tammer.
24697
24698 2010-07-30  Bruno Haible  <bruno@clisp.org>
24699
24700         iconv: Update regarding AIX.
24701         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
24702         AIX 7.
24703         Reported by Rainer Tammer.
24704
24705 2010-07-30  Bruno Haible  <bruno@clisp.org>
24706
24707         getopt: Update regarding AIX.
24708         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
24709         no on AIX.
24710         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
24711         Reported by Rainer Tammer.
24712
24713 2010-07-30  Bruno Haible  <bruno@clisp.org>
24714
24715         ldexpl; Update regarding AIX.
24716         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
24717         on AIX 7.
24718         Reported by Rainer Tammer.
24719
24720 2010-07-30  Bruno Haible  <bruno@clisp.org>
24721
24722         frexpl: Update regarding AIX.
24723         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
24724         on AIX 7.
24725         Reported by Rainer Tammer.
24726
24727 2010-07-30  Bruno Haible  <bruno@clisp.org>
24728
24729         open, fopen: Update regarding AIX.
24730         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
24731         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
24732         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
24733         * doc/posix-functions/fopen.texi: Likewise.
24734         Reported by Rainer Tammer.
24735
24736 2010-07-30  Bruno Haible  <bruno@clisp.org>
24737
24738         chown: Update doc regarding AIX.
24739         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
24740         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
24741         Reported by Rainer Tammer.
24742
24743 2010-07-30  Eric Blake  <eblake@redhat.com>
24744
24745         strtod: fix bug in replacement function on AIX
24746         * lib/strtod.c (strtod): Special case broken "0x" parse in
24747         underlying strtod.
24748         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
24749         * doc/posix-functions/strtod.texi (strtod): Likewise.
24750         Reported by Rainer Tammer.
24751
24752 2010-07-30  Bruno Haible  <bruno@clisp.org>
24753
24754         mbrlen: Fix cross-compilation guess for AIX.
24755         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
24756         guess. Leftover from 2008-12-22.
24757
24758 2010-07-30  Bruno Haible  <bruno@clisp.org>
24759
24760         mbrtowc: Fix cross-compilation guess for AIX.
24761         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
24762         guess. Leftover from 2008-12-21.
24763
24764 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
24765
24766         init.sh: work around trap limitation of some shells
24767         * tests/init.sh (setup_): Move exit trap outside of shell function.
24768
24769 2010-07-29  Eric Blake  <eblake@redhat.com>
24770
24771         strtod: aid debugging
24772         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
24773         understanding why strtod is rejected.
24774
24775 2010-07-28  Bruno Haible  <bruno@clisp.org>
24776
24777         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
24778         * lib/unistr/u8-chr.c: Include <string.h>.
24779         * tests/unistr/test-u8-chr.c: Likewise.
24780         * tests/unistr/test-u16-chr.c: Likewise.
24781         * tests/unistr/test-u32-chr.c: Likewise.
24782         * tests/unistr/test-u8-strchr.c: Likewise.
24783         * tests/unistr/test-u16-strchr.c: Likewise.
24784         * tests/unistr/test-u32-strchr.c: Likewise.
24785         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
24786         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
24787         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
24788         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
24789
24790 2010-07-28  Bruno Haible  <bruno@clisp.org>
24791
24792         Use spaces for indentation, not tabs.
24793         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
24794
24795 2010-07-27  Bruno Haible  <bruno@clisp.org>
24796
24797         mbspcasecmp: Fix function specification.
24798         * lib/string.in.h (mbspcasecmp): Fix specification comment.
24799         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
24800         Reported by Eric Blake <eblake@redhat.com>.
24801
24802 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
24803
24804         timespec: use cast and not conditional, as truncation isn't possible
24805         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
24806         instead of a conditional.  Comment about the situation in more detail.
24807         This undoes most of the 2009-10-29 patch.
24808
24809 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
24810
24811         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
24812         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
24813         * lib/unistr/u8-strchr.c: Likewise.
24814         * modules/unistr/u8-chr: Depend on memchr.
24815
24816         unistr/u*-strchr: add tests
24817         * modules/unistr/u8-strchr-tests: New file.
24818         * modules/unistr/u16-strchr-tests: New file.
24819         * modules/unistr/u32-strchr-tests: New file.
24820         * tests/unistr/test-strchr.h: New file.
24821         * tests/unistr/test-u8-strchr.c: New file.
24822         * tests/unistr/test-u16-strchr.c: New file.
24823         * tests/unistr/test-u32-strchr.c: New file.
24824
24825         unistr/u*-chr: test multibyte sequences more
24826         * tests/unistr/test-chr.h: Do complete testing of the characters in the
24827         test vector.
24828         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
24829         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
24830         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
24831
24832         unistr/u*-chr: test multibyte sequences
24833         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
24834
24835         unistr/u*-chr: prepare for multibyte tests
24836         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
24837         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
24838         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
24839         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
24840         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
24841         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
24842
24843 2010-07-18  Bruno Haible  <bruno@clisp.org>
24844
24845         unistr/u8-strchr: Optimize non-ASCII argument case.
24846         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
24847         because the first byte often matches anyway.
24848         Reported by Pádraig Brady <P@draigbrady.com>.
24849
24850 2010-07-15  Karl Berry  <karl@gnu.org>
24851
24852         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
24853
24854 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
24855
24856         getcwd: on Solaris, work better if ancestors are inaccessible
24857         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
24858         buffer and size, try again with a large buffer.  This works better
24859         on Solaris, since its getcwd succeeds even if the path to the root
24860         is inaccessible, and this is helpful in common cases such as .zfs
24861         hidden directories.  Problem reported by J Chapman Flack in
24862         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
24863         Use system getcwd if it's declared, not merely if it's partly
24864         working; use the partly-working test only to avoid needless effort
24865         if the system getcwd fails.
24866         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
24867         comment that was already obsolete and is now even more obsolete.
24868         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
24869         now might call strdup.
24870
24871 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
24872
24873         pthread: Add enough so that coreutils/src/sort.c compiles.
24874         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
24875         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
24876         gnulib. Include <sched.h> and <time.h>, as per POSIX.
24877         Include <sys/types.h>, in case it defines pthread_t.
24878         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
24879         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
24880         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
24881         (pthread_rwlockattr_t, pthread_spinlock_t):
24882         New typedefs, if HAVE_PTHREAD_T is not defined.
24883         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
24884         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
24885         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
24886         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
24887         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
24888         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
24889         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
24890         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
24891         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
24892         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
24893         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
24894         New macros.
24895         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
24896         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
24897         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
24898         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
24899         (pthread_spin_unlock): New dummy functions.
24900         (pthread_create): Return EAGAIN; don't set errno.
24901         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
24902         require AC_C_INLINE.
24903         * modules/pthread (Depends-on): Add sched, time.
24904         (pthread.h): Use AM_V_GEN.
24905
24906 2010-07-13  Bruno Haible  <bruno@clisp.org>
24907
24908         striconveh: Don't malloc memory if the result buffer is sufficient.
24909         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
24910         buffer if its size is sufficient.
24911         Reported by Ludovic Courtès <ludo@gnu.org>.
24912
24913 2010-07-13  Bruno Haible  <bruno@clisp.org>
24914
24915         strtod: Add safety check.
24916         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
24917
24918 2010-07-12  Bruno Haible  <bruno@clisp.org>
24919
24920         Unify tests that set gl_cv_func_ldexpl_no_libm.
24921         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
24922         gl_FUNC_LDEXPL.
24923         (gl_FUNC_LDEXPL): Invoke it.
24924         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
24925
24926 2010-07-12  Bruno Haible  <bruno@clisp.org>
24927
24928         Unify tests that set gl_cv_func_ldexp_no_libm.
24929         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
24930         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
24931         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
24932         (configure.ac): Simply invoke gl_FUNC_LDEXP.
24933         * modules/strtod (Files): Add m4/ldexp.m4.
24934
24935 2010-07-12  Bruno Haible  <bruno@clisp.org>
24936
24937         Unify tests that set gl_cv_func_frexpl_no_libm.
24938         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
24939         gl_FUNC_FREXPL_NO_LIBM.
24940         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
24941         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
24942
24943 2010-07-12  Bruno Haible  <bruno@clisp.org>
24944
24945         Unify tests that set gl_cv_func_frexp_no_libm.
24946         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
24947         gl_FUNC_FREXP_NO_LIBM.
24948         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
24949         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
24950
24951 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
24952
24953         memcoll: clarify sizes versus lengths, document better, and tweak perf
24954         * lib/memcoll.c (strcoll_loop, memcoll0):
24955         Improve quality of descriptive comments.  Name variables
24956         consistently as to whether they are lengths (which do not include
24957         terminating null) versus sizes (which do).
24958         * lib/xmemcoll.c (xmemcoll0): Likewise.
24959         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
24960         returned when s1size == 0; this is easier to compile and saves
24961         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
24962
24963 2010-07-12  Bruno Haible  <bruno@clisp.org>
24964
24965         Tests for module '_Exit'.
24966         * modules/_Exit-tests: New file.
24967         * tests/test-_Exit.sh: New file.
24968         * tests/test-_Exit.c: New file.
24969
24970         New module '_Exit'.
24971         * lib/stdlib.in.h (__attribute__): New macro.
24972         (_Exit): New declaration.
24973         * lib/_Exit.c: New file.
24974         * m4/_Exit.m4: New file.
24975         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
24976         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
24977         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
24978         * modules/_Exit: New file.
24979         * tests/test-stdlib-c++.cc (_Exit): Check signature.
24980         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
24981
24982 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
24983
24984         strtod: make it more-accurate typically, and don't require libm
24985         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
24986         Include limits.h.  Don't include string.h.
24987         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
24988         (locale_isspace): New function, so that no casts are needed to
24989         check whether *s is a space.
24990         (ldexp): Provide an unused dummy if not available.
24991         (scale_radix_exp, parse_number, underlying_strtod): New functions.
24992         (strtod): Use them.  This implementation prefers to use the
24993         underlying strtod if available, falling back on our own code
24994         only to fix known bugs.  This is more likely to produce an
24995         accurate result.  Also, it avoids the use of libm functions.
24996         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
24997         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
24998         was absent, but it caused a test failure with coreutils.
24999         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
25000         with libm.
25001         * modules/strtod (Makefile.am, Link): libm is no longer needed.
25002         * modules/strtod-tests (Makefile.am): Likewise.
25003
25004 2010-07-11  Pádraig Brady  <P@draigBrady.com>
25005             Bruno Haible  <bruno@clisp.org>
25006
25007         unistr/u8-strchr: Optimize ASCII argument case.
25008         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
25009
25010 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
25011
25012         (x)memcoll: minor tweaks
25013         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
25014         is after the type that it qualifies.
25015         (memcoll0): Likewise.
25016         * lib/memcoll.h (memcoll0): Likewise.
25017         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
25018         * lib/xmemcoll.h (xmemcoll0): Likewise.
25019         * lib/memcoll.c (memcoll0): Correct the comment.  This function
25020         differs from memcoll in that the NUL byte is part of the argument.
25021         Omit the abort-checks, as performance is a real issue here.  Plus,
25022         the checks were wrong anyway (an off-by-one error).  Omit local
25023         variable 'diff', as it's a bit clearer that way.
25024         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
25025         no longer needed.
25026
25027 2010-07-08  Chen Guo <chenguo4@yahoo.com>
25028
25029         (x)memcoll: speedup when input is known to be NUL delimited
25030         * lib/memcoll.c: Include stdlib.
25031         (memcoll0): New function.
25032         (strcoll_loop): New function, refactored for use in both memcoll
25033         and memcoll0.
25034         * lib/memcoll.h (memcoll0): Add prototype.
25035         * lib/xmemcoll.c (xmemcoll0): New function.
25036         (collate_error): New function, refactored for use in both xmemcoll
25037         and xmemcoll0.
25038         * lib/xmemcoll.h (xmemcoll0): Add prototype.
25039         * m4/memcoll.m4: add inline invocation.
25040
25041 2010-07-06  Pádraig Brady  <P@draigBrady.com>
25042
25043         * build-aux/bootstrap: Remove any local translations
25044         from the translation project synchronization directory,
25045         so that local only translations are not distributed.
25046
25047 2010-07-04  Bruno Haible  <bruno@clisp.org>
25048
25049         fsusage: Clarify which code applies to which platforms.
25050         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
25051         platform.
25052         * lib/fsusage.c (get_fs_usage): Likewise.
25053
25054 2010-07-04  Bruno Haible  <bruno@clisp.org>
25055
25056         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
25057         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
25058         Reported by Martin Lambers <marlam@marlam.de>.
25059
25060 2010-07-04  Jim Meyering  <meyering@redhat.com>
25061
25062         hash: once again explicitly disallow insertion of NULL
25063         * lib/hash.c (hash_insert0): Reinstate just-removed test:
25064         inserting a NULL pointer cannot work with these functions.
25065         Add a comment with details.
25066         This reverts part of the 2010-07-01 commit, 5bef1a35
25067         "hash: extend module to deal with non-pointer keys".
25068
25069 2010-07-01  Bruno Haible  <bruno@clisp.org>
25070
25071         stdbool: Update doc.
25072         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
25073         Info from Christian Weisgerber <naddy@mips.inka.de>.
25074
25075 2010-07-01  Jim Meyering  <meyering@redhat.com>
25076
25077         hash: extend module to deal with non-pointer keys
25078         * lib/hash.c (hash_insert0): New interface, much like hash_insert
25079         but that allows insertion of non-pointer entries.
25080         Do not disallow an ENTRY value of NULL.
25081         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
25082         * lib/hash.h (hash_insert0): Declare.
25083
25084 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
25085
25086         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
25087         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
25088         not present (i.e. with autoconf 2.59 and when using gettextize, not
25089         gnulib), require AC_GNU_SOURCE instead.
25090
25091 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
25092
25093         idpriv-drop: Fix tests.
25094         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
25095         not to the test-idpriv-droptemp program.
25096
25097 2010-06-29  Bruno Haible  <bruno@clisp.org>
25098
25099         string: Fix syntax error with g++ 2.96.
25100         * lib/string.in.h (__pure__): Remove definition.
25101         (_GL_ATTRIBUTE_PURE): New macro.
25102         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
25103         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
25104         Reported by Christian Weisgerber <naddy@mips.inka.de>.
25105
25106 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
25107
25108         unitypes: Fix bug introduced on 2010-05-18.
25109         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
25110
25111 2010-06-22  Eric Blake  <eblake@redhat.com>
25112
25113         memmem: slight optimization
25114         * lib/str-two-way.h (critical_factorization): Update comments.
25115         Reduce work during factorization phase.
25116         Reported by Carlos Bueno <carlos@bueno.org>.
25117
25118 2010-06-21  Bruno Haible  <bruno@clisp.org>
25119
25120         Fix HAVE_CALLOC_POSIX misnomer.
25121         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
25122         !HAVE_CALLOC_POSIX.
25123         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
25124         HAVE_CALLOC_POSIX.
25125         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
25126         instead of HAVE_CALLOC_POSIX.
25127         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
25128         HAVE_CALLOC_POSIX.
25129
25130         Use modern idiom for calloc() replacement.
25131         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
25132         AC_FUNC_CALLOC.
25133         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
25134         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
25135         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
25136         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
25137         (gl_REPLACE_CALLOC): New macro.
25138
25139 2010-06-21  Bruno Haible  <bruno@clisp.org>
25140
25141         Fix HAVE_REALLOC_POSIX misnomer.
25142         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
25143         !HAVE_REALLOC_POSIX.
25144         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
25145         HAVE_REALLOC_POSIX.
25146         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
25147         instead of HAVE_REALLOC_POSIX.
25148         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
25149         HAVE_REALLOC_POSIX.
25150
25151         Use modern idiom for realloc() replacement.
25152         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
25153         AC_FUNC_REALLOC.
25154         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
25155         Autoconf's AC_FUNC_REALLOC.
25156         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
25157         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
25158         (gl_REPLACE_REALLOC): New macro.
25159         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
25160
25161 2010-06-21  Bruno Haible  <bruno@clisp.org>
25162
25163         Fix HAVE_MALLOC_POSIX misnomer.
25164         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
25165         !HAVE_MALLOC_POSIX.
25166         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
25167         HAVE_MALLOC_POSIX.
25168         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
25169         instead of HAVE_MALLOC_POSIX.
25170         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
25171         HAVE_MALLOC_POSIX.
25172
25173         Use modern idiom for malloc() replacement.
25174         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
25175         AC_FUNC_MALLOC.
25176         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
25177         Autoconf's AC_FUNC_MALLOC.
25178         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
25179         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
25180         (gl_REPLACE_MALLOC): New macro.
25181         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
25182
25183 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
25184
25185         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
25186         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
25187         This macro takes 3 arguments, not 4.
25188
25189 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
25190
25191         ipv6: fix detection under mingw
25192         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
25193         in6_addr.
25194
25195 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
25196
25197         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
25198         that strtod() works when cross-compiling to a glibc version known
25199         to work.
25200
25201 2010-06-15  Bruno Haible  <bruno@clisp.org>
25202
25203         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
25204
25205 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
25206
25207         select: Correct timeout.
25208         * lib/select.c (rpl_select): Compute wait_timeout correctly.
25209
25210 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
25211
25212         git-version-gen: init shell var to avoid env var influence
25213         * build-aux/git-version-gen (v): Init shell var to empty.
25214
25215 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
25216
25217         priv-set: Don't assume that priv.h exists merely because getppriv does.
25218         See Jan Andersen's bug report about AIX 5L in
25219         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
25220         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
25221         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
25222         * lib/priv-set.h: Likewise.
25223         * tests/test-priv-set.c: Likewise.
25224
25225 2010-06-13  Bruno Haible  <bruno@clisp.org>
25226
25227         relocatable: Make it easier to test whether to install wrappers.
25228         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
25229         RELOCATABLE_VIA_WRAPPER.
25230
25231 2010-06-13  Bruno Haible  <bruno@clisp.org>
25232
25233         gnulib-tool: Display specified modules and dependencies differently.
25234         * gnulib-tool (func_show_module_list): New function.
25235         (func_import, func_create_testdir): Invoke it.
25236         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
25237
25238 2010-06-13  Bruno Haible  <bruno@clisp.org>
25239
25240         gnulib-tool: Align code of func_import and func_create_testdir.
25241         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
25242         specified_modules.
25243
25244 2010-06-12  Jim Meyering  <meyering@redhat.com>
25245
25246         test-inttostr: avoid spurious failure on Solaris 9
25247         * tests/test-inttostr.c (main): Skip the test when snprintf fails
25248         to accept "%ju".  Reported by Bruno Haible.
25249
25250 2010-06-11  Jim Meyering  <meyering@redhat.com>
25251
25252         test-sys_socket: mark variables as used more readably
25253         * tests/test-sys_socket.c (main): Mark otherwise unused variables
25254         as "used" explicitly via (void) statement casts.  This is more
25255         readable than using them in an artificial return expression.
25256         Suggestion from Bruno Haible.
25257
25258 2010-06-11  Bruno Haible  <bruno@clisp.org>
25259
25260         Avoid some more warnings from "gcc -Wwrite-strings".
25261         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
25262         to 'const char *'.
25263         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
25264         * tests/test-c-strcasestr.c (main): Likewise.
25265         * tests/test-mbscasestr1.c (main): Likewise.
25266         * tests/test-mbscasestr2.c (main): Likewise.
25267         * tests/test-memmem.c (main): Likewise.
25268         * tests/test-strstr.c (main): Likewise.
25269         * tests/test-strcasestr.c (main): Likewise.
25270
25271 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25272
25273         init.sh: change framework_failure_ to fail with status 99, not 1
25274         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
25275         automake's parallel-tests rule that this is an unexpected failure,
25276         even if the test is listed in XFAIL_TESTS.
25277
25278 2010-06-11  Jim Meyering  <meyering@redhat.com>
25279
25280         test-inttostr: avoid warnings about 4-6KB literal strings
25281         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
25282         Include "macros.h", for its definition of ASSERT.
25283         (CK): s/assert/ASSERT/
25284         * modules/inttostr-tests (Files): Add macros.h.
25285
25286         init.sh: don't use $ME_ or skip_ before they are defined
25287         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
25288         their first uses.  Also hoist their companions: warn_, fail_,
25289         framework_failure_, $stderr_fileno.  Prompted by a patch from
25290         Stefano Lattarini.
25291
25292         test-sys_socket: avoid set-but-not-used warnings from gcc
25293         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
25294         avoid warning about set-but-not-used variables.
25295
25296         test-xvasprintf: avoid 'const' discard warnings
25297         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
25298         "const" when assigning from literal strings.
25299         (test_xasprintf): Add "void" in function argument list to placate
25300         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
25301
25302         tests: avoid compilation warnings in argmatch and exclude tests...
25303         in packages that define ARGMATCH_DIE_DECL, like coreutils.
25304         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
25305         Since it always exits, declare with the "noreturn" attribute.
25306         * tests/test-argmatch.c: Likewise.
25307
25308         tests: avoid 'const' discard warnings in mbsstr tests
25309         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
25310         * tests/test-mbsstr2.c (main): Likewise.
25311
25312         test-verify: avoid warning from gcc's -Wmissing-declarations
25313         * tests/test-verify.c (function): Declare to be static.
25314
25315         test-inttostr.c: include <string.h> for use of strcmp
25316         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
25317
25318         test-linkat: avoid failed assertion on "other" architectures
25319         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
25320         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
25321         sparc: https://bugs.launchpad.net/bugs/591968
25322
25323 2010-06-11  Jim Meyering  <meyering@redhat.com>
25324
25325         printf.m4: avoid autoconf's "Expanded Before Required" warning
25326         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
25327         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
25328         autoconf warning.
25329
25330 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
25331
25332         Replacement header templates are now named with ".in", not "_".
25333         * doc/gnulib-intro.texi: Correct.
25334
25335 2010-06-10  Jim Meyering  <meyering@redhat.com>
25336
25337         inttostr-tests: depend on snprintf, not snprintf-posix
25338         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
25339         snprintf-posix, to avoid this aclocal failure:
25340           missing file gnulib-tests/vasnprintf.c
25341           configure.ac:45: error: expected source file, required through \
25342           AC_LIBSOURCES, not found
25343
25344 2010-06-10  Jim Meyering  <meyering@redhat.com>
25345
25346         inttostr: add a new function, inttostr, and tests
25347         The namesake function was not available.  The existence of the
25348         template file, inttostr.c makes its addition nontrivial.
25349         * lib/anytostr.c: Rename from inttostr.c.
25350         (anytostr): Rename from inttostr.
25351         * lib/inttostr.c: New file.
25352         * modules/inttostr (Files): Add anytostr.c.
25353         (Makefile.am): Set lib_SOURCES instead of ...
25354         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
25355         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
25356         * lib/offtostr.c: Likewise.
25357         * lib/uinttostr.c: Likewise.
25358         * lib/umaxtostr.c: Likewise.
25359         * modules/inttostr-tests: New file.
25360         * tests/test-inttostr.c: New file.  Test these functions.
25361
25362 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
25363             Bruno Haible  <bruno@clisp.org>
25364
25365         Add "Extending Gnulib" chapter to manual.
25366         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
25367         chapter.
25368         (Extending Gnulib): New chapter.
25369         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
25370         chapter.
25371
25372 2010-06-09  Bruno Haible  <bruno@clisp.org>
25373
25374         Avoid relocwrapper link errors due to gnulib replacement functions.
25375         * lib/areadlink.c: Use the system's malloc, realloc functions.
25376         (areadlink): Set errno to ENOMEM explicitly.
25377         * modules/areadlink (Depends-on): Remove malloc-posix.
25378         Reported by Ben Pfaff <blp@cs.stanford.edu>.
25379
25380 2010-06-09  Bruno Haible  <bruno@clisp.org>
25381
25382         Avoid relocwrapper link errors due to gnulib replacement functions.
25383         * lib/canonicalize-lgpl.c: Use the system's malloc function.
25384         * lib/malloca.c: Likewise.
25385         * lib/relocatable.c: Likewise.
25386         * lib/progreloc.c: Use the system's malloc, sprintf functions.
25387         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
25388         * lib/setenv.c: Use the system's malloc, realloc functions.
25389         * lib/strerror.c: Use the system's sprintf function.
25390         Reported by Ben Pfaff <blp@cs.stanford.edu>.
25391
25392 2010-06-04  Bruno Haible  <bruno@clisp.org>
25393
25394         Prefer documented low-level autoconf macro names.
25395         * m4/lib-link.m4: Use m4_translit instead of translit.
25396         * m4/environ.m4: Likewise.
25397         * m4/mathfunc.m4: Likewise.
25398         * m4/onceonly.m4: Likewise.
25399         * m4/stdint.m4: Likewise.
25400         Suggested by Eric Blake.
25401
25402 2010-06-04  Martin Lambers  <marlam@marlam.de>
25403             Bruno Haible  <bruno@clisp.org>
25404
25405         havelib: Allow library names with '+' characters.
25406         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
25407         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
25408
25409 2010-06-09  Bruno Haible  <bruno@clisp.org>
25410
25411         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
25412         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
25413         realloc failed.
25414
25415 2010-06-08  Peter Simons  <simons@cryp.to>
25416
25417         maint.mk: make the news-check rule more configurable
25418         * top/maint.mk (news-check-lines-spec): New variable.
25419         (news-check): Use "sed -n 1,10p" in place of "head".
25420
25421 2010-06-07  Jim Meyering  <meyering@redhat.com>
25422
25423         do-release-commit-and-tag: fix typo in --help
25424         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
25425
25426         regex: avoid new dead-code warning with gcc-4.6.0
25427         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
25428         if-block containing a while-loop.  It's been unused for at least
25429         5 years.
25430
25431 2010-06-05  Bruno Haible  <bruno@clisp.org>
25432
25433         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
25434         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
25435
25436 2010-06-04  Bruno Haible  <bruno@clisp.org>
25437
25438         Update to GNU gettext 0.18.1.
25439         * modules/gettext (configure.ac): Require gettext infrastructure from
25440         version 0.18.1.
25441
25442 2010-06-03  Bruno Haible  <bruno@clisp.org>
25443
25444         Don't use AC_LIBOBJ with file names in subdirectories.
25445         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
25446         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
25447         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
25448         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
25449         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
25450         gl_LIBUNISTRING_LIBSOURCE.
25451         (Makefile.am): Augment lib_SOURCES here, conditionally.
25452         * NEWS: Drop requirement for Automake option 'subdir-objects'.
25453
25454 2010-06-03  Bruno Haible  <bruno@clisp.org>
25455
25456         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
25457         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
25458         expansion does not end with a newline.
25459         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
25460         unnecessary newline.
25461
25462 2010-06-03  Bruno Haible  <bruno@clisp.org>
25463
25464         Reduce dependencies.
25465         * tests/test-quotearg.h: New file, extracted from
25466         tests/test-quotearg.c.
25467         * tests/test-quotearg-simple.c: New file, extracted from
25468         tests/test-quotearg.c.
25469         * tests/test-quotearg.c: Don't include <ctype.h>.
25470         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
25471         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
25472         use_quote_double_quotes, use_quotearg_colon): Moved to
25473         tests/test-quotearg.h.
25474         (results_g, flag_results, custom_quotes, custom_results): Moved
25475         to tests/test-quotearg-simple.c.
25476         (main): Moved the part that does not depend on gettext to
25477         tests/test-quotearg-simple.c. Return 77 if the test cannot be
25478         performed.
25479         * modules/quotearg-simple: New file.
25480         * modules/quotearg-simple-tests: New file.
25481         * modules/quotearg (Depends-on): Add quotearg-simple.
25482         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
25483         (Files): Add tests/test-quotearg.h.
25484         Reported by Paolo Bonzini.
25485
25486 2010-06-03  Bruno Haible  <bruno@clisp.org>
25487
25488         Reduce dependencies.
25489         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
25490
25491 2010-06-03  Bruno Haible  <bruno@clisp.org>
25492
25493         time: Undefine more broken macros.
25494         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
25495         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
25496         Reported by Eric Blake.
25497
25498 2010-06-03  Bruno Haible  <bruno@clisp.org>
25499
25500         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
25501         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
25502         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
25503         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
25504         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
25505         Reported by Ludovic Courtès <ludo@gnu.org>.
25506
25507 2010-06-02  Eric Blake  <eblake@redhat.com>
25508
25509         time: work with mingw + pthreads-win32 library
25510         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
25511         if timespec is defined only in pthread.h.
25512         * modules/time (Makefile.am): Substitute it.
25513         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
25514         <pthread.h>, when needed.
25515         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
25516         from the library.
25517
25518 2010-05-31  Bruno Haible  <bruno@clisp.org>
25519
25520         Avoid expanding two macros in the wrong order.
25521         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
25522         gl_LIBUNISTRING if it is defined.
25523         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
25524         autoconf >= 2.64.
25525         Reported by Ludovic Courtès <ludo@gnu.org>.
25526
25527 2010-05-27  Jim Meyering  <meyering@redhat.com>
25528
25529         maint.mk: also prohibit "#undef" of always-defined symbols
25530         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
25531         Allow more than one space before the symbol name.
25532         (sc_prohibit_always-defined_macros): Use grep's -E, now that
25533         the regexp uses alternation.
25534
25535 2010-05-26  Eric Blake  <eblake@redhat.com>
25536
25537         maint.mk: avoid echo -e
25538         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
25539         Convert all uses of echo -* to printf.
25540         Reported by Matthias Bolte.
25541
25542 2010-05-25  Bruno Haible  <bruno@clisp.org>
25543
25544         Update to GNU gettext 0.18, part 2.
25545         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
25546         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
25547
25548 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25549
25550         Add missing include in test-pwrite.c.
25551         * tests/test-pwrite.c: Include string.h, for strcmp.
25552
25553 2010-05-24  Bruno Haible  <bruno@clisp.org>
25554
25555         * NEWS: Mention requirement for Automake option 'subdir-objects'.
25556
25557 2010-05-24  Bruno Haible  <bruno@clisp.org>
25558
25559         Don't use conversion with transliteration in u{8,16,32}_strcoll.
25560         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
25561         iconveh_error argument.
25562         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
25563         U_STRCONV_TO_LOCALE.
25564         * lib/unistr/u16-strcoll.c: Likewise.
25565         * lib/unistr/u32-strcoll.c: Likewise.
25566         * modules/unistr/u8-strcoll (Depends-on): Add
25567         uniconv/u8-strconv-to-enc, localcharset. Remove
25568         uniconv/u8-strconv-to-locale.
25569         (configure.ac): Bump version number.
25570         * modules/unistr/u16-strcoll (Depends-on): Add
25571         uniconv/u16-strconv-to-enc, localcharset. Remove
25572         uniconv/u16-strconv-to-locale.
25573         (configure.ac): Bump version number.
25574         * modules/unistr/u32-strcoll (Depends-on): Add
25575         uniconv/u32-strconv-to-enc, localcharset. Remove
25576         uniconv/u32-strconv-to-locale.
25577         (configure.ac): Bump version number.
25578
25579 2010-05-24  Bruno Haible  <bruno@clisp.org>
25580
25581         Avoid a test failure on NetBSD 5.0.
25582         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
25583         an iconv() bug.
25584
25585 2010-05-24  Bruno Haible  <bruno@clisp.org>
25586
25587         Adjust #include directive style.
25588         * modules/regex (Includes): Recommend to write <regex.h>.
25589
25590 2010-05-24  Bruno Haible  <bruno@clisp.org>
25591
25592         regex: Don't require alloca.
25593         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
25594         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
25595         only inside if (0).
25596
25597 2010-05-23  Jim Meyering  <meyering@redhat.com>
25598
25599         test-renameat.c: include <sys/stat.h>
25600         * tests/test-renameat.c: Include <sys/stat.h>; required for
25601         definition of S_IS* macros.
25602
25603 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
25604
25605         Update maintainer documentation for 'relocatable-prog' module.
25606         * doc/relocatable-maint.texi: Update.
25607         Comments by Bruno Haible.
25608
25609 2010-05-23  Bruno Haible  <bruno@clisp.org>
25610
25611         git-merge-changelog: Enable --split-merged-entry by default.
25612         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
25613         (usage): Don't mention this option any more.
25614         Reported by Ralf Wildenhues.
25615
25616 2010-05-23  Jim Meyering  <meyering@redhat.com>
25617
25618         test-pwrite: do not leave behind a test file named "out"
25619         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
25620         The trivial-looking use of init.sh is really necessary.
25621         It ensures that the temporary file, "out", is created in
25622         a temporary directory, and removed upon termination.
25623         * tests/test-pwrite.sh: Re-add file.
25624         * modules/pwrite-tests: Reference it.
25625
25626 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25627
25628         Fix output redirection buglet in init.sh.
25629         * tests/init.sh: Fix redirection of stderr.
25630
25631 2010-05-20  Simon Josefsson  <simon@josefsson.org>
25632
25633         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
25634
25635 2010-05-17  Simon Josefsson  <simon@josefsson.org>
25636
25637         * modules/valgrind-tests: New file.
25638         * m4/valgrind-tests.m4: New file.
25639         * doc/valgrind-tests.texi: New file.
25640         * doc/gnulib.texi (Running self-tests under valgrind): New
25641         section.
25642
25643 2010-05-19  Bruno Haible  <bruno@clisp.org>
25644
25645         Clean up dead code in recent commit.
25646         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
25647         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
25648         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
25649         Suggested by Paolo Bonzini.
25650
25651 2010-05-19  Bruno Haible  <bruno@clisp.org>
25652
25653         Avoid valgrind error reports from libunistring.
25654         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
25655         * modules/libunistring (Files): Add it.
25656         * modules/libunistring-optional (Files): Likewise.
25657
25658 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
25659             Bruno Haible  <bruno@clisp.org>
25660
25661         New module 'libunistring-optional'.
25662         * modules/libunistring-optional: New file.
25663         * m4/libunistring-base.m4: New file.
25664         * m4/libunistring-optional.m4: New file.
25665         * lib/unicase.in.h: Renamed from lib/unicase.h.
25666         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
25667         * lib/unictype.in.h: Renamed from lib/unictype.h.
25668         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
25669         * lib/uniname.in.h: Renamed from lib/uniname.h.
25670         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
25671         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
25672         * lib/unistr.in.h: Renamed from lib/unistr.h.
25673         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
25674         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
25675         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
25676         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
25677         gl_LIBUNISTRING. If the library was found, determine the installed
25678         version and set LIBUNISTRING_VERSION.
25679         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
25680         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
25681         handle a configuration option --with-included-libunistring.
25682         * modules/libunistring (Files): Add m4/absolute-header.m4.
25683         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
25684         Add m4/libunistring-base.m4.
25685         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
25686         (Makefile.am): Build unicase.h from unicase.in.h.
25687         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
25688         Add m4/libunistring-base.m4.
25689         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
25690         (Makefile.am): Build uniconv.h from uniconv.in.h.
25691         * modules/unictype/base (Files): Use unictype.in.h instead of
25692         unictype.h. Add m4/libunistring-base.m4.
25693         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
25694         (Makefile.am): Build unictype.h from unictype.in.h.
25695         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
25696         Add m4/libunistring-base.m4.
25697         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
25698         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
25699         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
25700         Add m4/libunistring-base.m4.
25701         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
25702         (Makefile.am): Build uniname.h from uniname.in.h.
25703         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
25704         Add m4/libunistring-base.m4.
25705         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
25706         (Makefile.am): Build uninorm.h from uninorm.in.h.
25707         * modules/unistdio/base (Files): Use unistdio.in.h instead of
25708         unistdio.h. Add m4/libunistring-base.m4.
25709         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
25710         (Makefile.am): Build unistdio.h from unistdio.in.h.
25711         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
25712         Add m4/libunistring-base.m4.
25713         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
25714         (Makefile.am): Build unistr.h from unistr.in.h.
25715         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
25716         Add m4/libunistring-base.m4.
25717         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
25718         (Makefile.am): Build unitypes.h from unitypes.in.h.
25719         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
25720         Add m4/libunistring-base.m4.
25721         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
25722         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
25723         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
25724         uniwidth.h. Add m4/libunistring-base.m4.
25725         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
25726         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
25727         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
25728         instead of augmenting lib_SOURCES.
25729         * modules/unicase/empty-suffix-context: Likewise.
25730         * modules/unicase/locale-language: Likewise.
25731         * modules/unicase/tolower: Likewise.
25732         * modules/unicase/totitle: Likewise.
25733         * modules/unicase/toupper: Likewise.
25734         * modules/unicase/u8-casecmp: Likewise.
25735         * modules/unicase/u8-casecoll: Likewise.
25736         * modules/unicase/u8-casefold: Likewise.
25737         * modules/unicase/u8-casexfrm: Likewise.
25738         * modules/unicase/u8-ct-casefold: Likewise.
25739         * modules/unicase/u8-ct-tolower: Likewise.
25740         * modules/unicase/u8-ct-totitle: Likewise.
25741         * modules/unicase/u8-ct-toupper: Likewise.
25742         * modules/unicase/u8-is-cased: Likewise.
25743         * modules/unicase/u8-is-casefolded: Likewise.
25744         * modules/unicase/u8-is-lowercase: Likewise.
25745         * modules/unicase/u8-is-titlecase: Likewise.
25746         * modules/unicase/u8-is-uppercase: Likewise.
25747         * modules/unicase/u8-prefix-context: Likewise.
25748         * modules/unicase/u8-suffix-context: Likewise.
25749         * modules/unicase/u8-tolower: Likewise.
25750         * modules/unicase/u8-totitle: Likewise.
25751         * modules/unicase/u8-toupper: Likewise.
25752         * modules/unicase/u16-casecmp: Likewise.
25753         * modules/unicase/u16-casecoll: Likewise.
25754         * modules/unicase/u16-casefold: Likewise.
25755         * modules/unicase/u16-casexfrm: Likewise.
25756         * modules/unicase/u16-ct-casefold: Likewise.
25757         * modules/unicase/u16-ct-tolower: Likewise.
25758         * modules/unicase/u16-ct-totitle: Likewise.
25759         * modules/unicase/u16-ct-toupper: Likewise.
25760         * modules/unicase/u16-is-cased: Likewise.
25761         * modules/unicase/u16-is-casefolded: Likewise.
25762         * modules/unicase/u16-is-lowercase: Likewise.
25763         * modules/unicase/u16-is-titlecase: Likewise.
25764         * modules/unicase/u16-is-uppercase: Likewise.
25765         * modules/unicase/u16-prefix-context: Likewise.
25766         * modules/unicase/u16-suffix-context: Likewise.
25767         * modules/unicase/u16-tolower: Likewise.
25768         * modules/unicase/u16-totitle: Likewise.
25769         * modules/unicase/u16-toupper: Likewise.
25770         * modules/unicase/u32-casecmp: Likewise.
25771         * modules/unicase/u32-casecoll: Likewise.
25772         * modules/unicase/u32-casefold: Likewise.
25773         * modules/unicase/u32-casexfrm: Likewise.
25774         * modules/unicase/u32-ct-casefold: Likewise.
25775         * modules/unicase/u32-ct-tolower: Likewise.
25776         * modules/unicase/u32-ct-totitle: Likewise.
25777         * modules/unicase/u32-ct-toupper: Likewise.
25778         * modules/unicase/u32-is-cased: Likewise.
25779         * modules/unicase/u32-is-casefolded: Likewise.
25780         * modules/unicase/u32-is-lowercase: Likewise.
25781         * modules/unicase/u32-is-titlecase: Likewise.
25782         * modules/unicase/u32-is-uppercase: Likewise.
25783         * modules/unicase/u32-prefix-context: Likewise.
25784         * modules/unicase/u32-suffix-context: Likewise.
25785         * modules/unicase/u32-tolower: Likewise.
25786         * modules/unicase/u32-totitle: Likewise.
25787         * modules/unicase/u32-toupper: Likewise.
25788         * modules/unicase/ulc-casecmp: Likewise.
25789         * modules/unicase/ulc-casecoll: Likewise.
25790         * modules/unicase/ulc-casexfrm: Likewise.
25791         * modules/uniconv/u8-conv-from-enc: Likewise.
25792         * modules/uniconv/u8-conv-to-enc: Likewise.
25793         * modules/uniconv/u8-strconv-from-enc: Likewise.
25794         * modules/uniconv/u8-strconv-from-locale: Likewise.
25795         * modules/uniconv/u8-strconv-to-enc: Likewise.
25796         * modules/uniconv/u8-strconv-to-locale: Likewise.
25797         * modules/uniconv/u16-conv-from-enc: Likewise.
25798         * modules/uniconv/u16-conv-to-enc: Likewise.
25799         * modules/uniconv/u16-strconv-from-enc: Likewise.
25800         * modules/uniconv/u16-strconv-from-locale: Likewise.
25801         * modules/uniconv/u16-strconv-to-enc: Likewise.
25802         * modules/uniconv/u16-strconv-to-locale: Likewise.
25803         * modules/uniconv/u32-conv-from-enc: Likewise.
25804         * modules/uniconv/u32-conv-to-enc: Likewise.
25805         * modules/uniconv/u32-strconv-from-enc: Likewise.
25806         * modules/uniconv/u32-strconv-from-locale: Likewise.
25807         * modules/uniconv/u32-strconv-to-enc: Likewise.
25808         * modules/uniconv/u32-strconv-to-locale: Likewise.
25809         * modules/unictype/bidicategory-byname: Likewise.
25810         * modules/unictype/bidicategory-name: Likewise.
25811         * modules/unictype/bidicategory-of: Likewise.
25812         * modules/unictype/bidicategory-test: Likewise.
25813         * modules/unictype/block-list: Likewise.
25814         * modules/unictype/block-test: Likewise.
25815         * modules/unictype/category-C: Likewise.
25816         * modules/unictype/category-Cc: Likewise.
25817         * modules/unictype/category-Cf: Likewise.
25818         * modules/unictype/category-Cn: Likewise.
25819         * modules/unictype/category-Co: Likewise.
25820         * modules/unictype/category-Cs: Likewise.
25821         * modules/unictype/category-L: Likewise.
25822         * modules/unictype/category-Ll: Likewise.
25823         * modules/unictype/category-Lm: Likewise.
25824         * modules/unictype/category-Lo: Likewise.
25825         * modules/unictype/category-Lt: Likewise.
25826         * modules/unictype/category-Lu: Likewise.
25827         * modules/unictype/category-M: Likewise.
25828         * modules/unictype/category-Mc: Likewise.
25829         * modules/unictype/category-Me: Likewise.
25830         * modules/unictype/category-Mn: Likewise.
25831         * modules/unictype/category-N: Likewise.
25832         * modules/unictype/category-Nd: Likewise.
25833         * modules/unictype/category-Nl: Likewise.
25834         * modules/unictype/category-No: Likewise.
25835         * modules/unictype/category-P: Likewise.
25836         * modules/unictype/category-Pc: Likewise.
25837         * modules/unictype/category-Pd: Likewise.
25838         * modules/unictype/category-Pe: Likewise.
25839         * modules/unictype/category-Pf: Likewise.
25840         * modules/unictype/category-Pi: Likewise.
25841         * modules/unictype/category-Po: Likewise.
25842         * modules/unictype/category-Ps: Likewise.
25843         * modules/unictype/category-S: Likewise.
25844         * modules/unictype/category-Sc: Likewise.
25845         * modules/unictype/category-Sk: Likewise.
25846         * modules/unictype/category-Sm: Likewise.
25847         * modules/unictype/category-So: Likewise.
25848         * modules/unictype/category-Z: Likewise.
25849         * modules/unictype/category-Zl: Likewise.
25850         * modules/unictype/category-Zp: Likewise.
25851         * modules/unictype/category-Zs: Likewise.
25852         * modules/unictype/category-and: Likewise.
25853         * modules/unictype/category-and-not: Likewise.
25854         * modules/unictype/category-byname: Likewise.
25855         * modules/unictype/category-name: Likewise.
25856         * modules/unictype/category-none: Likewise.
25857         * modules/unictype/category-of: Likewise.
25858         * modules/unictype/category-or: Likewise.
25859         * modules/unictype/category-test: Likewise.
25860         * modules/unictype/combining-class: Likewise.
25861         * modules/unictype/ctype-alnum: Likewise.
25862         * modules/unictype/ctype-alpha: Likewise.
25863         * modules/unictype/ctype-blank: Likewise.
25864         * modules/unictype/ctype-cntrl: Likewise.
25865         * modules/unictype/ctype-digit: Likewise.
25866         * modules/unictype/ctype-graph: Likewise.
25867         * modules/unictype/ctype-lower: Likewise.
25868         * modules/unictype/ctype-print: Likewise.
25869         * modules/unictype/ctype-punct: Likewise.
25870         * modules/unictype/ctype-space: Likewise.
25871         * modules/unictype/ctype-upper: Likewise.
25872         * modules/unictype/ctype-xdigit: Likewise.
25873         * modules/unictype/decimal-digit: Likewise.
25874         * modules/unictype/digit: Likewise.
25875         * modules/unictype/mirror: Likewise.
25876         * modules/unictype/numeric: Likewise.
25877         * modules/unictype/property-alphabetic: Likewise.
25878         * modules/unictype/property-ascii-hex-digit: Likewise.
25879         * modules/unictype/property-bidi-arabic-digit: Likewise.
25880         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
25881         * modules/unictype/property-bidi-block-separator: Likewise.
25882         * modules/unictype/property-bidi-boundary-neutral: Likewise.
25883         * modules/unictype/property-bidi-common-separator: Likewise.
25884         * modules/unictype/property-bidi-control: Likewise.
25885         * modules/unictype/property-bidi-embedding-or-override: Likewise.
25886         * modules/unictype/property-bidi-eur-num-separator: Likewise.
25887         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
25888         * modules/unictype/property-bidi-european-digit: Likewise.
25889         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
25890         * modules/unictype/property-bidi-left-to-right: Likewise.
25891         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
25892         * modules/unictype/property-bidi-other-neutral: Likewise.
25893         * modules/unictype/property-bidi-pdf: Likewise.
25894         * modules/unictype/property-bidi-segment-separator: Likewise.
25895         * modules/unictype/property-bidi-whitespace: Likewise.
25896         * modules/unictype/property-byname: Likewise.
25897         * modules/unictype/property-combining: Likewise.
25898         * modules/unictype/property-composite: Likewise.
25899         * modules/unictype/property-currency-symbol: Likewise.
25900         * modules/unictype/property-dash: Likewise.
25901         * modules/unictype/property-decimal-digit: Likewise.
25902         * modules/unictype/property-default-ignorable-code-point: Likewise.
25903         * modules/unictype/property-deprecated: Likewise.
25904         * modules/unictype/property-diacritic: Likewise.
25905         * modules/unictype/property-extender: Likewise.
25906         * modules/unictype/property-format-control: Likewise.
25907         * modules/unictype/property-grapheme-base: Likewise.
25908         * modules/unictype/property-grapheme-extend: Likewise.
25909         * modules/unictype/property-grapheme-link: Likewise.
25910         * modules/unictype/property-hex-digit: Likewise.
25911         * modules/unictype/property-hyphen: Likewise.
25912         * modules/unictype/property-id-continue: Likewise.
25913         * modules/unictype/property-id-start: Likewise.
25914         * modules/unictype/property-ideographic: Likewise.
25915         * modules/unictype/property-ids-binary-operator: Likewise.
25916         * modules/unictype/property-ids-trinary-operator: Likewise.
25917         * modules/unictype/property-ignorable-control: Likewise.
25918         * modules/unictype/property-iso-control: Likewise.
25919         * modules/unictype/property-join-control: Likewise.
25920         * modules/unictype/property-left-of-pair: Likewise.
25921         * modules/unictype/property-line-separator: Likewise.
25922         * modules/unictype/property-logical-order-exception: Likewise.
25923         * modules/unictype/property-lowercase: Likewise.
25924         * modules/unictype/property-math: Likewise.
25925         * modules/unictype/property-non-break: Likewise.
25926         * modules/unictype/property-not-a-character: Likewise.
25927         * modules/unictype/property-numeric: Likewise.
25928         * modules/unictype/property-other-alphabetic: Likewise.
25929         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
25930         * modules/unictype/property-other-grapheme-extend: Likewise.
25931         * modules/unictype/property-other-id-continue: Likewise.
25932         * modules/unictype/property-other-id-start: Likewise.
25933         * modules/unictype/property-other-lowercase: Likewise.
25934         * modules/unictype/property-other-math: Likewise.
25935         * modules/unictype/property-other-uppercase: Likewise.
25936         * modules/unictype/property-paired-punctuation: Likewise.
25937         * modules/unictype/property-paragraph-separator: Likewise.
25938         * modules/unictype/property-pattern-syntax: Likewise.
25939         * modules/unictype/property-pattern-white-space: Likewise.
25940         * modules/unictype/property-private-use: Likewise.
25941         * modules/unictype/property-punctuation: Likewise.
25942         * modules/unictype/property-quotation-mark: Likewise.
25943         * modules/unictype/property-radical: Likewise.
25944         * modules/unictype/property-sentence-terminal: Likewise.
25945         * modules/unictype/property-soft-dotted: Likewise.
25946         * modules/unictype/property-space: Likewise.
25947         * modules/unictype/property-terminal-punctuation: Likewise.
25948         * modules/unictype/property-test: Likewise.
25949         * modules/unictype/property-titlecase: Likewise.
25950         * modules/unictype/property-unassigned-code-value: Likewise.
25951         * modules/unictype/property-unified-ideograph: Likewise.
25952         * modules/unictype/property-uppercase: Likewise.
25953         * modules/unictype/property-variation-selector: Likewise.
25954         * modules/unictype/property-white-space: Likewise.
25955         * modules/unictype/property-xid-continue: Likewise.
25956         * modules/unictype/property-xid-start: Likewise.
25957         * modules/unictype/property-zero-width: Likewise.
25958         * modules/unictype/scripts: Likewise.
25959         * modules/unictype/syntax-c-ident: Likewise.
25960         * modules/unictype/syntax-c-whitespace: Likewise.
25961         * modules/unictype/syntax-java-ident: Likewise.
25962         * modules/unictype/syntax-java-whitespace: Likewise.
25963         * modules/unilbrk/u8-possible-linebreaks: Likewise.
25964         * modules/unilbrk/u8-width-linebreaks: Likewise.
25965         * modules/unilbrk/u16-possible-linebreaks: Likewise.
25966         * modules/unilbrk/u16-width-linebreaks: Likewise.
25967         * modules/unilbrk/u32-possible-linebreaks: Likewise.
25968         * modules/unilbrk/u32-width-linebreaks: Likewise.
25969         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
25970         * modules/unilbrk/ulc-width-linebreaks: Likewise.
25971         * modules/uniname/uniname: Likewise.
25972         * modules/uninorm/canonical-decomposition: Likewise.
25973         * modules/uninorm/composition: Likewise.
25974         * modules/uninorm/decomposing-form: Likewise.
25975         * modules/uninorm/decomposition: Likewise.
25976         * modules/uninorm/filter: Likewise.
25977         * modules/uninorm/nfc: Likewise.
25978         * modules/uninorm/nfd: Likewise.
25979         * modules/uninorm/nfkc: Likewise.
25980         * modules/uninorm/nfkd: Likewise.
25981         * modules/uninorm/u8-normalize: Likewise.
25982         * modules/uninorm/u8-normcmp: Likewise.
25983         * modules/uninorm/u8-normcoll: Likewise.
25984         * modules/uninorm/u8-normxfrm: Likewise.
25985         * modules/uninorm/u16-normalize: Likewise.
25986         * modules/uninorm/u16-normcmp: Likewise.
25987         * modules/uninorm/u16-normcoll: Likewise.
25988         * modules/uninorm/u16-normxfrm: Likewise.
25989         * modules/uninorm/u32-normalize: Likewise.
25990         * modules/uninorm/u32-normcmp: Likewise.
25991         * modules/uninorm/u32-normcoll: Likewise.
25992         * modules/uninorm/u32-normxfrm: Likewise.
25993         * modules/unistdio/u8-asnprintf: Likewise.
25994         * modules/unistdio/u8-asprintf: Likewise.
25995         * modules/unistdio/u8-snprintf: Likewise.
25996         * modules/unistdio/u8-sprintf: Likewise.
25997         * modules/unistdio/u8-u8-asnprintf: Likewise.
25998         * modules/unistdio/u8-u8-asprintf: Likewise.
25999         * modules/unistdio/u8-u8-snprintf: Likewise.
26000         * modules/unistdio/u8-u8-sprintf: Likewise.
26001         * modules/unistdio/u8-u8-vasnprintf: Likewise.
26002         * modules/unistdio/u8-u8-vasprintf: Likewise.
26003         * modules/unistdio/u8-u8-vsnprintf: Likewise.
26004         * modules/unistdio/u8-u8-vsprintf: Likewise.
26005         * modules/unistdio/u8-vasnprintf: Likewise.
26006         * modules/unistdio/u8-vasprintf: Likewise.
26007         * modules/unistdio/u8-vsnprintf: Likewise.
26008         * modules/unistdio/u8-vsprintf: Likewise.
26009         * modules/unistdio/u16-asnprintf: Likewise.
26010         * modules/unistdio/u16-asprintf: Likewise.
26011         * modules/unistdio/u16-snprintf: Likewise.
26012         * modules/unistdio/u16-sprintf: Likewise.
26013         * modules/unistdio/u16-u16-asnprintf: Likewise.
26014         * modules/unistdio/u16-u16-asprintf: Likewise.
26015         * modules/unistdio/u16-u16-snprintf: Likewise.
26016         * modules/unistdio/u16-u16-sprintf: Likewise.
26017         * modules/unistdio/u16-u16-vasnprintf: Likewise.
26018         * modules/unistdio/u16-u16-vasprintf: Likewise.
26019         * modules/unistdio/u16-u16-vsnprintf: Likewise.
26020         * modules/unistdio/u16-u16-vsprintf: Likewise.
26021         * modules/unistdio/u16-vasnprintf: Likewise.
26022         * modules/unistdio/u16-vasprintf: Likewise.
26023         * modules/unistdio/u16-vsnprintf: Likewise.
26024         * modules/unistdio/u16-vsprintf: Likewise.
26025         * modules/unistdio/u32-asnprintf: Likewise.
26026         * modules/unistdio/u32-asprintf: Likewise.
26027         * modules/unistdio/u32-snprintf: Likewise.
26028         * modules/unistdio/u32-sprintf: Likewise.
26029         * modules/unistdio/u32-u32-asnprintf: Likewise.
26030         * modules/unistdio/u32-u32-asprintf: Likewise.
26031         * modules/unistdio/u32-u32-snprintf: Likewise.
26032         * modules/unistdio/u32-u32-sprintf: Likewise.
26033         * modules/unistdio/u32-u32-vasnprintf: Likewise.
26034         * modules/unistdio/u32-u32-vasprintf: Likewise.
26035         * modules/unistdio/u32-u32-vsnprintf: Likewise.
26036         * modules/unistdio/u32-u32-vsprintf: Likewise.
26037         * modules/unistdio/u32-vasnprintf: Likewise.
26038         * modules/unistdio/u32-vasprintf: Likewise.
26039         * modules/unistdio/u32-vsnprintf: Likewise.
26040         * modules/unistdio/u32-vsprintf: Likewise.
26041         * modules/unistdio/ulc-asnprintf: Likewise.
26042         * modules/unistdio/ulc-asprintf: Likewise.
26043         * modules/unistdio/ulc-fprintf: Likewise.
26044         * modules/unistdio/ulc-snprintf: Likewise.
26045         * modules/unistdio/ulc-sprintf: Likewise.
26046         * modules/unistdio/ulc-vasnprintf: Likewise.
26047         * modules/unistdio/ulc-vasprintf: Likewise.
26048         * modules/unistdio/ulc-vfprintf: Likewise.
26049         * modules/unistdio/ulc-vsnprintf: Likewise.
26050         * modules/unistdio/ulc-vsprintf: Likewise.
26051         * modules/unistr/u8-check: Likewise.
26052         * modules/unistr/u8-chr: Likewise.
26053         * modules/unistr/u8-cmp: Likewise.
26054         * modules/unistr/u8-cmp2: Likewise.
26055         * modules/unistr/u8-cpy: Likewise.
26056         * modules/unistr/u8-cpy-alloc: Likewise.
26057         * modules/unistr/u8-endswith: Likewise.
26058         * modules/unistr/u8-mblen: Likewise.
26059         * modules/unistr/u8-mbsnlen: Likewise.
26060         * modules/unistr/u8-mbtouc: Likewise.
26061         * modules/unistr/u8-mbtouc-unsafe: Likewise.
26062         * modules/unistr/u8-mbtoucr: Likewise.
26063         * modules/unistr/u8-move: Likewise.
26064         * modules/unistr/u8-next: Likewise.
26065         * modules/unistr/u8-prev: Likewise.
26066         * modules/unistr/u8-set: Likewise.
26067         * modules/unistr/u8-startswith: Likewise.
26068         * modules/unistr/u8-stpcpy: Likewise.
26069         * modules/unistr/u8-stpncpy: Likewise.
26070         * modules/unistr/u8-strcat: Likewise.
26071         * modules/unistr/u8-strchr: Likewise.
26072         * modules/unistr/u8-strcmp: Likewise.
26073         * modules/unistr/u8-strcoll: Likewise.
26074         * modules/unistr/u8-strcpy: Likewise.
26075         * modules/unistr/u8-strcspn: Likewise.
26076         * modules/unistr/u8-strdup: Likewise.
26077         * modules/unistr/u8-strlen: Likewise.
26078         * modules/unistr/u8-strmblen: Likewise.
26079         * modules/unistr/u8-strmbtouc: Likewise.
26080         * modules/unistr/u8-strncat: Likewise.
26081         * modules/unistr/u8-strncmp: Likewise.
26082         * modules/unistr/u8-strncpy: Likewise.
26083         * modules/unistr/u8-strnlen: Likewise.
26084         * modules/unistr/u8-strpbrk: Likewise.
26085         * modules/unistr/u8-strrchr: Likewise.
26086         * modules/unistr/u8-strspn: Likewise.
26087         * modules/unistr/u8-strstr: Likewise.
26088         * modules/unistr/u8-strtok: Likewise.
26089         * modules/unistr/u8-to-u16: Likewise.
26090         * modules/unistr/u8-to-u32: Likewise.
26091         * modules/unistr/u8-uctomb: Likewise.
26092         * modules/unistr/u16-check: Likewise.
26093         * modules/unistr/u16-chr: Likewise.
26094         * modules/unistr/u16-cmp: Likewise.
26095         * modules/unistr/u16-cmp2: Likewise.
26096         * modules/unistr/u16-cpy: Likewise.
26097         * modules/unistr/u16-cpy-alloc: Likewise.
26098         * modules/unistr/u16-endswith: Likewise.
26099         * modules/unistr/u16-mblen: Likewise.
26100         * modules/unistr/u16-mbsnlen: Likewise.
26101         * modules/unistr/u16-mbtouc: Likewise.
26102         * modules/unistr/u16-mbtouc-unsafe: Likewise.
26103         * modules/unistr/u16-mbtoucr: Likewise.
26104         * modules/unistr/u16-move: Likewise.
26105         * modules/unistr/u16-next: Likewise.
26106         * modules/unistr/u16-prev: Likewise.
26107         * modules/unistr/u16-set: Likewise.
26108         * modules/unistr/u16-startswith: Likewise.
26109         * modules/unistr/u16-stpcpy: Likewise.
26110         * modules/unistr/u16-stpncpy: Likewise.
26111         * modules/unistr/u16-strcat: Likewise.
26112         * modules/unistr/u16-strchr: Likewise.
26113         * modules/unistr/u16-strcmp: Likewise.
26114         * modules/unistr/u16-strcoll: Likewise.
26115         * modules/unistr/u16-strcpy: Likewise.
26116         * modules/unistr/u16-strcspn: Likewise.
26117         * modules/unistr/u16-strdup: Likewise.
26118         * modules/unistr/u16-strlen: Likewise.
26119         * modules/unistr/u16-strmblen: Likewise.
26120         * modules/unistr/u16-strmbtouc: Likewise.
26121         * modules/unistr/u16-strncat: Likewise.
26122         * modules/unistr/u16-strncmp: Likewise.
26123         * modules/unistr/u16-strncpy: Likewise.
26124         * modules/unistr/u16-strnlen: Likewise.
26125         * modules/unistr/u16-strpbrk: Likewise.
26126         * modules/unistr/u16-strrchr: Likewise.
26127         * modules/unistr/u16-strspn: Likewise.
26128         * modules/unistr/u16-strstr: Likewise.
26129         * modules/unistr/u16-strtok: Likewise.
26130         * modules/unistr/u16-to-u32: Likewise.
26131         * modules/unistr/u16-to-u8: Likewise.
26132         * modules/unistr/u16-uctomb: Likewise.
26133         * modules/unistr/u32-check: Likewise.
26134         * modules/unistr/u32-chr: Likewise.
26135         * modules/unistr/u32-cmp: Likewise.
26136         * modules/unistr/u32-cmp2: Likewise.
26137         * modules/unistr/u32-cpy: Likewise.
26138         * modules/unistr/u32-cpy-alloc: Likewise.
26139         * modules/unistr/u32-endswith: Likewise.
26140         * modules/unistr/u32-mblen: Likewise.
26141         * modules/unistr/u32-mbsnlen: Likewise.
26142         * modules/unistr/u32-mbtouc: Likewise.
26143         * modules/unistr/u32-mbtouc-unsafe: Likewise.
26144         * modules/unistr/u32-mbtoucr: Likewise.
26145         * modules/unistr/u32-move: Likewise.
26146         * modules/unistr/u32-next: Likewise.
26147         * modules/unistr/u32-prev: Likewise.
26148         * modules/unistr/u32-set: Likewise.
26149         * modules/unistr/u32-startswith: Likewise.
26150         * modules/unistr/u32-stpcpy: Likewise.
26151         * modules/unistr/u32-stpncpy: Likewise.
26152         * modules/unistr/u32-strcat: Likewise.
26153         * modules/unistr/u32-strchr: Likewise.
26154         * modules/unistr/u32-strcmp: Likewise.
26155         * modules/unistr/u32-strcoll: Likewise.
26156         * modules/unistr/u32-strcpy: Likewise.
26157         * modules/unistr/u32-strcspn: Likewise.
26158         * modules/unistr/u32-strdup: Likewise.
26159         * modules/unistr/u32-strlen: Likewise.
26160         * modules/unistr/u32-strmblen: Likewise.
26161         * modules/unistr/u32-strmbtouc: Likewise.
26162         * modules/unistr/u32-strncat: Likewise.
26163         * modules/unistr/u32-strncmp: Likewise.
26164         * modules/unistr/u32-strncpy: Likewise.
26165         * modules/unistr/u32-strnlen: Likewise.
26166         * modules/unistr/u32-strpbrk: Likewise.
26167         * modules/unistr/u32-strrchr: Likewise.
26168         * modules/unistr/u32-strspn: Likewise.
26169         * modules/unistr/u32-strstr: Likewise.
26170         * modules/unistr/u32-strtok: Likewise.
26171         * modules/unistr/u32-to-u16: Likewise.
26172         * modules/unistr/u32-to-u8: Likewise.
26173         * modules/unistr/u32-uctomb: Likewise.
26174         * modules/uniwbrk/u8-wordbreaks: Likewise.
26175         * modules/uniwbrk/u16-wordbreaks: Likewise.
26176         * modules/uniwbrk/u32-wordbreaks: Likewise.
26177         * modules/uniwbrk/ulc-wordbreaks: Likewise.
26178         * modules/uniwbrk/wordbreak-property: Likewise.
26179         * modules/uniwidth/u8-strwidth: Likewise.
26180         * modules/uniwidth/u8-width: Likewise.
26181         * modules/uniwidth/u16-strwidth: Likewise.
26182         * modules/uniwidth/u16-width: Likewise.
26183         * modules/uniwidth/u32-strwidth: Likewise.
26184         * modules/uniwidth/u32-width: Likewise.
26185         * modules/uniwidth/width: Likewise.
26186         * modules/unicase/cased-tests (Makefile.am): Link all test programs
26187         with $(LIBUNISTRING).
26188         * modules/unicase/ignorable-tests: Likewise.
26189         * modules/unicase/locale-language-tests: Likewise.
26190         * modules/unicase/tolower-tests: Likewise.
26191         * modules/unicase/totitle-tests: Likewise.
26192         * modules/unicase/toupper-tests: Likewise.
26193         * modules/unicase/u8-casecmp-tests: Likewise.
26194         * modules/unicase/u8-casecoll-tests: Likewise.
26195         * modules/unicase/u8-casefold-tests: Likewise.
26196         * modules/unicase/u8-is-cased-tests: Likewise.
26197         * modules/unicase/u8-is-casefolded-tests: Likewise.
26198         * modules/unicase/u8-is-lowercase-tests: Likewise.
26199         * modules/unicase/u8-is-titlecase-tests: Likewise.
26200         * modules/unicase/u8-is-uppercase-tests: Likewise.
26201         * modules/unicase/u8-tolower-tests: Likewise.
26202         * modules/unicase/u8-totitle-tests: Likewise.
26203         * modules/unicase/u8-toupper-tests: Likewise.
26204         * modules/unicase/u16-casecmp-tests: Likewise.
26205         * modules/unicase/u16-casecoll-tests: Likewise.
26206         * modules/unicase/u16-casefold-tests: Likewise.
26207         * modules/unicase/u16-is-cased-tests: Likewise.
26208         * modules/unicase/u16-is-casefolded-tests: Likewise.
26209         * modules/unicase/u16-is-lowercase-tests: Likewise.
26210         * modules/unicase/u16-is-titlecase-tests: Likewise.
26211         * modules/unicase/u16-is-uppercase-tests: Likewise.
26212         * modules/unicase/u16-tolower-tests: Likewise.
26213         * modules/unicase/u16-totitle-tests: Likewise.
26214         * modules/unicase/u16-toupper-tests: Likewise.
26215         * modules/unicase/u32-casecmp-tests: Likewise.
26216         * modules/unicase/u32-casecoll-tests: Likewise.
26217         * modules/unicase/u32-casefold-tests: Likewise.
26218         * modules/unicase/u32-is-cased-tests: Likewise.
26219         * modules/unicase/u32-is-casefolded-tests: Likewise.
26220         * modules/unicase/u32-is-lowercase-tests: Likewise.
26221         * modules/unicase/u32-is-titlecase-tests: Likewise.
26222         * modules/unicase/u32-is-uppercase-tests: Likewise.
26223         * modules/unicase/u32-tolower-tests: Likewise.
26224         * modules/unicase/u32-totitle-tests: Likewise.
26225         * modules/unicase/u32-toupper-tests: Likewise.
26226         * modules/unicase/ulc-casecmp-tests: Likewise.
26227         * modules/unicase/ulc-casecoll-tests: Likewise.
26228         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
26229         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
26230         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
26231         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
26232         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
26233         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
26234         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
26235         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
26236         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
26237         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
26238         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
26239         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
26240         * modules/unictype/bidicategory-byname-tests: Likewise.
26241         * modules/unictype/bidicategory-name-tests: Likewise.
26242         * modules/unictype/bidicategory-of-tests: Likewise.
26243         * modules/unictype/bidicategory-test-tests: Likewise.
26244         * modules/unictype/block-list-tests: Likewise.
26245         * modules/unictype/block-of-tests: Likewise.
26246         * modules/unictype/block-test-tests: Likewise.
26247         * modules/unictype/category-C-tests: Likewise.
26248         * modules/unictype/category-Cc-tests: Likewise.
26249         * modules/unictype/category-Cf-tests: Likewise.
26250         * modules/unictype/category-Cn-tests: Likewise.
26251         * modules/unictype/category-Co-tests: Likewise.
26252         * modules/unictype/category-Cs-tests: Likewise.
26253         * modules/unictype/category-L-tests: Likewise.
26254         * modules/unictype/category-Ll-tests: Likewise.
26255         * modules/unictype/category-Lm-tests: Likewise.
26256         * modules/unictype/category-Lo-tests: Likewise.
26257         * modules/unictype/category-Lt-tests: Likewise.
26258         * modules/unictype/category-Lu-tests: Likewise.
26259         * modules/unictype/category-M-tests: Likewise.
26260         * modules/unictype/category-Mc-tests: Likewise.
26261         * modules/unictype/category-Me-tests: Likewise.
26262         * modules/unictype/category-Mn-tests: Likewise.
26263         * modules/unictype/category-N-tests: Likewise.
26264         * modules/unictype/category-Nd-tests: Likewise.
26265         * modules/unictype/category-Nl-tests: Likewise.
26266         * modules/unictype/category-No-tests: Likewise.
26267         * modules/unictype/category-P-tests: Likewise.
26268         * modules/unictype/category-Pc-tests: Likewise.
26269         * modules/unictype/category-Pd-tests: Likewise.
26270         * modules/unictype/category-Pe-tests: Likewise.
26271         * modules/unictype/category-Pf-tests: Likewise.
26272         * modules/unictype/category-Pi-tests: Likewise.
26273         * modules/unictype/category-Po-tests: Likewise.
26274         * modules/unictype/category-Ps-tests: Likewise.
26275         * modules/unictype/category-S-tests: Likewise.
26276         * modules/unictype/category-Sc-tests: Likewise.
26277         * modules/unictype/category-Sk-tests: Likewise.
26278         * modules/unictype/category-Sm-tests: Likewise.
26279         * modules/unictype/category-So-tests: Likewise.
26280         * modules/unictype/category-Z-tests: Likewise.
26281         * modules/unictype/category-Zl-tests: Likewise.
26282         * modules/unictype/category-Zp-tests: Likewise.
26283         * modules/unictype/category-Zs-tests: Likewise.
26284         * modules/unictype/category-and-not-tests: Likewise.
26285         * modules/unictype/category-and-tests: Likewise.
26286         * modules/unictype/category-byname-tests: Likewise.
26287         * modules/unictype/category-name-tests: Likewise.
26288         * modules/unictype/category-none-tests: Likewise.
26289         * modules/unictype/category-of-tests: Likewise.
26290         * modules/unictype/category-or-tests: Likewise.
26291         * modules/unictype/category-test-withtable-tests: Likewise.
26292         * modules/unictype/combining-class-tests: Likewise.
26293         * modules/unictype/ctype-alnum-tests: Likewise.
26294         * modules/unictype/ctype-alpha-tests: Likewise.
26295         * modules/unictype/ctype-blank-tests: Likewise.
26296         * modules/unictype/ctype-cntrl-tests: Likewise.
26297         * modules/unictype/ctype-digit-tests: Likewise.
26298         * modules/unictype/ctype-graph-tests: Likewise.
26299         * modules/unictype/ctype-lower-tests: Likewise.
26300         * modules/unictype/ctype-print-tests: Likewise.
26301         * modules/unictype/ctype-punct-tests: Likewise.
26302         * modules/unictype/ctype-space-tests: Likewise.
26303         * modules/unictype/ctype-upper-tests: Likewise.
26304         * modules/unictype/ctype-xdigit-tests: Likewise.
26305         * modules/unictype/decimal-digit-tests: Likewise.
26306         * modules/unictype/digit-tests: Likewise.
26307         * modules/unictype/mirror-tests: Likewise.
26308         * modules/unictype/numeric-tests: Likewise.
26309         * modules/unictype/property-alphabetic-tests: Likewise.
26310         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
26311         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
26312         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
26313         * modules/unictype/property-bidi-block-separator-tests: Likewise.
26314         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
26315         * modules/unictype/property-bidi-common-separator-tests: Likewise.
26316         * modules/unictype/property-bidi-control-tests: Likewise.
26317         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
26318         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
26319         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
26320         * modules/unictype/property-bidi-european-digit-tests: Likewise.
26321         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
26322         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
26323         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
26324         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
26325         * modules/unictype/property-bidi-pdf-tests: Likewise.
26326         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
26327         * modules/unictype/property-bidi-whitespace-tests: Likewise.
26328         * modules/unictype/property-byname-tests: Likewise.
26329         * modules/unictype/property-combining-tests: Likewise.
26330         * modules/unictype/property-composite-tests: Likewise.
26331         * modules/unictype/property-currency-symbol-tests: Likewise.
26332         * modules/unictype/property-dash-tests: Likewise.
26333         * modules/unictype/property-decimal-digit-tests: Likewise.
26334         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
26335         * modules/unictype/property-deprecated-tests: Likewise.
26336         * modules/unictype/property-diacritic-tests: Likewise.
26337         * modules/unictype/property-extender-tests: Likewise.
26338         * modules/unictype/property-format-control-tests: Likewise.
26339         * modules/unictype/property-grapheme-base-tests: Likewise.
26340         * modules/unictype/property-grapheme-extend-tests: Likewise.
26341         * modules/unictype/property-grapheme-link-tests: Likewise.
26342         * modules/unictype/property-hex-digit-tests: Likewise.
26343         * modules/unictype/property-hyphen-tests: Likewise.
26344         * modules/unictype/property-id-continue-tests: Likewise.
26345         * modules/unictype/property-id-start-tests: Likewise.
26346         * modules/unictype/property-ideographic-tests: Likewise.
26347         * modules/unictype/property-ids-binary-operator-tests: Likewise.
26348         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
26349         * modules/unictype/property-ignorable-control-tests: Likewise.
26350         * modules/unictype/property-iso-control-tests: Likewise.
26351         * modules/unictype/property-join-control-tests: Likewise.
26352         * modules/unictype/property-left-of-pair-tests: Likewise.
26353         * modules/unictype/property-line-separator-tests: Likewise.
26354         * modules/unictype/property-logical-order-exception-tests: Likewise.
26355         * modules/unictype/property-lowercase-tests: Likewise.
26356         * modules/unictype/property-math-tests: Likewise.
26357         * modules/unictype/property-non-break-tests: Likewise.
26358         * modules/unictype/property-not-a-character-tests: Likewise.
26359         * modules/unictype/property-numeric-tests: Likewise.
26360         * modules/unictype/property-other-alphabetic-tests: Likewise.
26361         * modules/unictype/property-other-default-ignorable-code-point-tests:
26362         Likewise.
26363         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
26364         * modules/unictype/property-other-id-continue-tests: Likewise.
26365         * modules/unictype/property-other-id-start-tests: Likewise.
26366         * modules/unictype/property-other-lowercase-tests: Likewise.
26367         * modules/unictype/property-other-math-tests: Likewise.
26368         * modules/unictype/property-other-uppercase-tests: Likewise.
26369         * modules/unictype/property-paired-punctuation-tests: Likewise.
26370         * modules/unictype/property-paragraph-separator-tests: Likewise.
26371         * modules/unictype/property-pattern-syntax-tests: Likewise.
26372         * modules/unictype/property-pattern-white-space-tests: Likewise.
26373         * modules/unictype/property-private-use-tests: Likewise.
26374         * modules/unictype/property-punctuation-tests: Likewise.
26375         * modules/unictype/property-quotation-mark-tests: Likewise.
26376         * modules/unictype/property-radical-tests: Likewise.
26377         * modules/unictype/property-sentence-terminal-tests: Likewise.
26378         * modules/unictype/property-soft-dotted-tests: Likewise.
26379         * modules/unictype/property-space-tests: Likewise.
26380         * modules/unictype/property-terminal-punctuation-tests: Likewise.
26381         * modules/unictype/property-test-tests: Likewise.
26382         * modules/unictype/property-titlecase-tests: Likewise.
26383         * modules/unictype/property-unassigned-code-value-tests: Likewise.
26384         * modules/unictype/property-unified-ideograph-tests: Likewise.
26385         * modules/unictype/property-uppercase-tests: Likewise.
26386         * modules/unictype/property-variation-selector-tests: Likewise.
26387         * modules/unictype/property-white-space-tests: Likewise.
26388         * modules/unictype/property-xid-continue-tests: Likewise.
26389         * modules/unictype/property-xid-start-tests: Likewise.
26390         * modules/unictype/property-zero-width-tests: Likewise.
26391         * modules/unictype/scripts-tests: Likewise.
26392         * modules/unictype/syntax-c-ident-tests: Likewise.
26393         * modules/unictype/syntax-c-whitespace-tests: Likewise.
26394         * modules/unictype/syntax-java-ident-tests: Likewise.
26395         * modules/unictype/syntax-java-whitespace-tests: Likewise.
26396         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
26397         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
26398         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
26399         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
26400         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
26401         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
26402         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
26403         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
26404         * modules/uniname/uniname-tests: Likewise.
26405         * modules/uninorm/canonical-decomposition-tests: Likewise.
26406         * modules/uninorm/compat-decomposition-tests: Likewise.
26407         * modules/uninorm/composition-tests: Likewise.
26408         * modules/uninorm/decomposing-form-tests: Likewise.
26409         * modules/uninorm/decomposition-tests: Likewise.
26410         * modules/uninorm/filter-tests: Likewise.
26411         * modules/uninorm/nfc-tests: Likewise.
26412         * modules/uninorm/nfd-tests: Likewise.
26413         * modules/uninorm/nfkc-tests: Likewise.
26414         * modules/uninorm/nfkd-tests: Likewise.
26415         * modules/uninorm/u8-normcmp-tests: Likewise.
26416         * modules/uninorm/u8-normcoll-tests: Likewise.
26417         * modules/uninorm/u16-normcmp-tests: Likewise.
26418         * modules/uninorm/u16-normcoll-tests: Likewise.
26419         * modules/uninorm/u32-normcmp-tests: Likewise.
26420         * modules/uninorm/u32-normcoll-tests: Likewise.
26421         * modules/unistdio/u8-asnprintf-tests: Likewise.
26422         * modules/unistdio/u8-vasnprintf-tests: Likewise.
26423         * modules/unistdio/u8-vasprintf-tests: Likewise.
26424         * modules/unistdio/u8-vsnprintf-tests: Likewise.
26425         * modules/unistdio/u8-vsprintf-tests: Likewise.
26426         * modules/unistdio/u16-asnprintf-tests: Likewise.
26427         * modules/unistdio/u16-vasnprintf-tests: Likewise.
26428         * modules/unistdio/u16-vasprintf-tests: Likewise.
26429         * modules/unistdio/u16-vsnprintf-tests: Likewise.
26430         * modules/unistdio/u16-vsprintf-tests: Likewise.
26431         * modules/unistdio/u32-asnprintf-tests: Likewise.
26432         * modules/unistdio/u32-vasnprintf-tests: Likewise.
26433         * modules/unistdio/u32-vasprintf-tests: Likewise.
26434         * modules/unistdio/u32-vsnprintf-tests: Likewise.
26435         * modules/unistdio/u32-vsprintf-tests: Likewise.
26436         * modules/unistdio/ulc-asnprintf-tests: Likewise.
26437         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
26438         * modules/unistdio/ulc-vasprintf-tests: Likewise.
26439         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
26440         * modules/unistdio/ulc-vsprintf-tests: Likewise.
26441         * modules/unistr/u8-check-tests: Likewise.
26442         * modules/unistr/u8-chr-tests: Likewise.
26443         * modules/unistr/u8-cmp-tests: Likewise.
26444         * modules/unistr/u8-cmp2-tests: Likewise.
26445         * modules/unistr/u8-cpy-alloc-tests: Likewise.
26446         * modules/unistr/u8-cpy-tests: Likewise.
26447         * modules/unistr/u8-mblen-tests: Likewise.
26448         * modules/unistr/u8-mbsnlen-tests: Likewise.
26449         * modules/unistr/u8-mbtouc-tests: Likewise.
26450         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
26451         * modules/unistr/u8-mbtoucr-tests: Likewise.
26452         * modules/unistr/u8-move-tests: Likewise.
26453         * modules/unistr/u8-next-tests: Likewise.
26454         * modules/unistr/u8-prev-tests: Likewise.
26455         * modules/unistr/u8-set-tests: Likewise.
26456         * modules/unistr/u8-stpcpy-tests: Likewise.
26457         * modules/unistr/u8-stpncpy-tests: Likewise.
26458         * modules/unistr/u8-strcat-tests: Likewise.
26459         * modules/unistr/u8-strcmp-tests: Likewise.
26460         * modules/unistr/u8-strcoll-tests: Likewise.
26461         * modules/unistr/u8-strcpy-tests: Likewise.
26462         * modules/unistr/u8-strdup-tests: Likewise.
26463         * modules/unistr/u8-strlen-tests: Likewise.
26464         * modules/unistr/u8-strmblen-tests: Likewise.
26465         * modules/unistr/u8-strmbtouc-tests: Likewise.
26466         * modules/unistr/u8-strncat-tests: Likewise.
26467         * modules/unistr/u8-strncmp-tests: Likewise.
26468         * modules/unistr/u8-strncpy-tests: Likewise.
26469         * modules/unistr/u8-strnlen-tests: Likewise.
26470         * modules/unistr/u8-to-u16-tests: Likewise.
26471         * modules/unistr/u8-to-u32-tests: Likewise.
26472         * modules/unistr/u8-uctomb-tests: Likewise.
26473         * modules/unistr/u16-check-tests: Likewise.
26474         * modules/unistr/u16-chr-tests: Likewise.
26475         * modules/unistr/u16-cmp-tests: Likewise.
26476         * modules/unistr/u16-cmp2-tests: Likewise.
26477         * modules/unistr/u16-cpy-alloc-tests: Likewise.
26478         * modules/unistr/u16-cpy-tests: Likewise.
26479         * modules/unistr/u16-mblen-tests: Likewise.
26480         * modules/unistr/u16-mbsnlen-tests: Likewise.
26481         * modules/unistr/u16-mbtouc-tests: Likewise.
26482         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
26483         * modules/unistr/u16-mbtoucr-tests: Likewise.
26484         * modules/unistr/u16-move-tests: Likewise.
26485         * modules/unistr/u16-next-tests: Likewise.
26486         * modules/unistr/u16-prev-tests: Likewise.
26487         * modules/unistr/u16-set-tests: Likewise.
26488         * modules/unistr/u16-stpcpy-tests: Likewise.
26489         * modules/unistr/u16-stpncpy-tests: Likewise.
26490         * modules/unistr/u16-strcat-tests: Likewise.
26491         * modules/unistr/u16-strcmp-tests: Likewise.
26492         * modules/unistr/u16-strcoll-tests: Likewise.
26493         * modules/unistr/u16-strcpy-tests: Likewise.
26494         * modules/unistr/u16-strdup-tests: Likewise.
26495         * modules/unistr/u16-strlen-tests: Likewise.
26496         * modules/unistr/u16-strmblen-tests: Likewise.
26497         * modules/unistr/u16-strmbtouc-tests: Likewise.
26498         * modules/unistr/u16-strncat-tests: Likewise.
26499         * modules/unistr/u16-strncmp-tests: Likewise.
26500         * modules/unistr/u16-strncpy-tests: Likewise.
26501         * modules/unistr/u16-strnlen-tests: Likewise.
26502         * modules/unistr/u16-to-u32-tests: Likewise.
26503         * modules/unistr/u16-to-u8-tests: Likewise.
26504         * modules/unistr/u16-uctomb-tests: Likewise.
26505         * modules/unistr/u32-check-tests: Likewise.
26506         * modules/unistr/u32-chr-tests: Likewise.
26507         * modules/unistr/u32-cmp-tests: Likewise.
26508         * modules/unistr/u32-cmp2-tests: Likewise.
26509         * modules/unistr/u32-cpy-alloc-tests: Likewise.
26510         * modules/unistr/u32-cpy-tests: Likewise.
26511         * modules/unistr/u32-mblen-tests: Likewise.
26512         * modules/unistr/u32-mbsnlen-tests: Likewise.
26513         * modules/unistr/u32-mbtouc-tests: Likewise.
26514         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
26515         * modules/unistr/u32-mbtoucr-tests: Likewise.
26516         * modules/unistr/u32-move-tests: Likewise.
26517         * modules/unistr/u32-next-tests: Likewise.
26518         * modules/unistr/u32-prev-tests: Likewise.
26519         * modules/unistr/u32-set-tests: Likewise.
26520         * modules/unistr/u32-stpcpy-tests: Likewise.
26521         * modules/unistr/u32-stpncpy-tests: Likewise.
26522         * modules/unistr/u32-strcat-tests: Likewise.
26523         * modules/unistr/u32-strcmp-tests: Likewise.
26524         * modules/unistr/u32-strcoll-tests: Likewise.
26525         * modules/unistr/u32-strcpy-tests: Likewise.
26526         * modules/unistr/u32-strdup-tests: Likewise.
26527         * modules/unistr/u32-strlen-tests: Likewise.
26528         * modules/unistr/u32-strmblen-tests: Likewise.
26529         * modules/unistr/u32-strmbtouc-tests: Likewise.
26530         * modules/unistr/u32-strncat-tests: Likewise.
26531         * modules/unistr/u32-strncmp-tests: Likewise.
26532         * modules/unistr/u32-strncpy-tests: Likewise.
26533         * modules/unistr/u32-strnlen-tests: Likewise.
26534         * modules/unistr/u32-to-u16-tests: Likewise.
26535         * modules/unistr/u32-to-u8-tests: Likewise.
26536         * modules/unistr/u32-uctomb-tests: Likewise.
26537         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
26538         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
26539         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
26540         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
26541         * modules/uniwidth/u8-strwidth-tests: Likewise.
26542         * modules/uniwidth/u8-width-tests: Likewise.
26543         * modules/uniwidth/u16-strwidth-tests: Likewise.
26544         * modules/uniwidth/u16-width-tests: Likewise.
26545         * modules/uniwidth/u32-strwidth-tests: Likewise.
26546         * modules/uniwidth/u32-width-tests: Likewise.
26547         * modules/uniwidth/width-tests: Likewise.
26548
26549 2010-05-18  Richard Jones  <rjones@redhat.com>
26550
26551         doc: users.txt: list hivex
26552         * users.txt: Add hivex.
26553
26554 2010-05-18  Richard Jones  <rjones@redhat.com>
26555
26556         doc: users.txt: list febootstrap
26557         * users.txt: Add febootstrap.
26558
26559 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
26560
26561         bootstrap: fix an error when gnulib is not used as a git submodule
26562         * build-aux/bootstrap (gnulib_path): If its length is zero then
26563         assign "gnulib" to it.
26564         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
26565
26566 2010-05-16  Bruno Haible  <bruno@clisp.org>
26567
26568         Avoid autoconf warnings about AM_ICONV.
26569         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
26570         2.64.
26571
26572 2010-05-16  Bruno Haible  <bruno@clisp.org>
26573
26574         absolute-header: Make the macro usable in more situations.
26575         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
26576         from gl_ABSOLUTE_HEADER.
26577         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
26578
26579 2010-05-16  James Youngman  <jay@gnu.org>
26580
26581         doc: update users.txt
26582         * users.txt: Add CSSC.
26583
26584 2010-05-16  Jim Meyering  <meyering@redhat.com>
26585
26586         init.sh: fix an error in the previous change; add more comments
26587         * tests/init.sh: Compare exit code in loop against 9, not 2.
26588         Patch by Bruno Haible.
26589         Make the two tests more similar by adding an empty "then" clause.
26590         Add comments.
26591
26592         init.sh: avoid unnecessary shell re-exec
26593         * tests/init.sh: Improve the re-exec-required check to first test the
26594         current shell.  If it passes the test, do not search for a shell that
26595         does pass, and do not re-exec.  This test is particularly contorted to
26596         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
26597         of $(...) evokes a syntax error and causes immediate shell exit with
26598         status 2.  Bruno Haible reported that the re-exec made it impossible
26599         to single-step through any init.sh-using script.
26600
26601 2010-05-16  Bruno Haible  <bruno@clisp.org>
26602
26603         Fix collision between gnulib's and libintl's printf replacements.
26604         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
26605         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
26606         (printf): When using GNU C, map the __printf__ function to rpl_printf
26607         via __asm__. When not using GNU C, define rpl_printf instead of
26608         __printf__.
26609         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
26610         commit.
26611         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
26612         commit.
26613         * m4/asm-underscore.m4: New file.
26614         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
26615         * modules/stdio (Files): Add m4/asm-underscore.m4.
26616         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
26617         Reported by Ben Pfaff.
26618
26619 2010-05-16  Bruno Haible  <bruno@clisp.org>
26620
26621         verify: Avoid skipping the test on openSUSE 11.0.
26622         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
26623
26624 2010-05-13  Bruno Haible  <bruno@clisp.org>
26625
26626         Avoid useless warnings from G++.
26627         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
26628         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
26629         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
26630
26631 2010-05-11  Jim Meyering  <meyering@redhat.com>
26632
26633         maint.mk: tweak preceding change
26634         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
26635         regexps tighter by anchoring at EOL, and make the new group "shy"
26636         for slightly decreased overhead.
26637
26638 2010-05-11  Eric Blake  <eblake@redhat.com>
26639
26640         maint.mk: gnulib doesn't guarantee NSIG
26641         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
26642
26643 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
26644
26645         test-pwrite.c: Remove unused variable declaration.
26646         * tests/test-pwrite.c (main): Remove read_buf declaration.
26647
26648         Remove useless test-pwrite.sh file.
26649         * tests/test-pwrite.sh: Delete file.
26650         * modules/pwrite-tests: Remove references.
26651         Reported by Bruno Haible.
26652
26653 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
26654
26655         init.sh: fix a typo
26656         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
26657
26658 2010-05-10  Jim Meyering  <meyering@redhat.com>
26659
26660         maint.mk: avoid using a temporary file in the always-defined-macros check
26661         * top/maint.mk (.re-defmac): Remove rule.
26662         (gl_trap_): Remove definition.
26663         (sc_prohibit_always-defined_macros): Rewrite not to create and
26664         depend on a temporary file.  Instead, depend on GNU grep's ability
26665         to read a list of regular expressions from stdin when given "-f -".
26666
26667 2010-05-09  Bruno Haible  <bruno@clisp.org>
26668
26669         Update to GNU gettext 0.18, part 1.
26670         * m4/gettext.m4: Update to GNU gettext 0.18.
26671         * m4/intl.m4: Likewise.
26672         * m4/po.m4: Likewise.
26673         * modules/gettext (Files): Add m4/fcntl-o.m4.
26674         (configure.ac): Require gettext infrastructure from version 0.18.
26675
26676 2010-05-09  Jim Meyering  <meyering@redhat.com>
26677
26678         init.sh: enable MALLOC_PERTURB_
26679         * tests/init.sh: Enable glibc's malloc-perturbing option.
26680
26681         maint.mk: improve sc_cross_check_PATH_usage_in_tests
26682         With my recent change in init.sh from the two-line form:
26683             -#   : ${srcdir=.}
26684             -#   . "$srcdir/init.sh"; path_prepend_ .
26685             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
26686         I noticed that using the one-line form would cause this test
26687         to fail with a false-positive, or to stop working altogether,
26688         depending on whether help-version changed or all the tests did.
26689         * top/maint.mk (_hv_regex): Remove this definition.
26690         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
26691         (_hv_regex_strong): Use a stronger regex to check for conformance.
26692         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
26693         Give a separate diagnostic for lack of conforming use.
26694
26695         maint.mk: prohibit definition of symbols defined by gnulib
26696         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
26697         definition of symbols defined by gnulib.
26698
26699 2010-05-09  Bruno Haible  <bruno@clisp.org>
26700
26701         acl: Avoid test failure on Cygwin-hosted mingw.
26702         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
26703
26704 2010-05-09  Bruno Haible  <bruno@clisp.org>
26705
26706         error: Use system's fcntl function.
26707         * lib/error.c (fcntl): Undefine.
26708
26709 2010-05-09  Jim Meyering  <meyering@redhat.com>
26710
26711         verify: adjust formatting to be more consistent
26712         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
26713         argument-list '('s, and after one comma.
26714
26715 2010-05-09  Bruno Haible  <bruno@clisp.org>
26716
26717         error: More reliable output on mingw.
26718         * lib/error.c: Include <windows.h>.
26719         (is_open): New function.
26720         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
26721         defined.
26722
26723 2010-05-09  Bruno Haible  <bruno@clisp.org>
26724
26725         vasnprintf: Fix syntax errors in libintl build on mingw.
26726         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
26727         pad_ourselves and prec_ourselves after use.
26728
26729 2010-05-08  Bruno Haible  <bruno@clisp.org>
26730
26731         * lib/config.charset: Update comments for Cygwin 1.7.
26732         * lib/localcharset.c: Likewise.
26733
26734 2010-05-07  Jim Meyering  <meyering@redhat.com>
26735
26736         init.sh: improve comments
26737         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
26738         . "${srcdir=.}/init.sh"; path_prepend_ .
26739         Add a note about path_prepend_ and the alternative of using
26740         TESTS_ENVIRONMENT.
26741
26742 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
26743
26744         exclude: Unescape hashed patterns in wildcard mode.
26745         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
26746         to the hash list.
26747         * tests/test-exclude8.sh: New test case.
26748         * modules/exclude-tests: Add new test.
26749
26750 2010-05-05  Eric Blake  <eblake@redhat.com>
26751
26752         verify: automate tests
26753         * modules/verify-tests: New module.
26754         * tests/test-verify.sh: New file.
26755         * tests/test-verify.c: Guard each negative test with a unique id.
26756         Also avoid warning about unused left hand of comma expressions.
26757
26758 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
26759
26760         Further improvements to verify.h, suggested by Eric Blake.
26761         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
26762         the GL_* versions, to avoid collision with OpenGL.
26763         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
26764         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
26765         than testing merely whether it's defined.
26766
26767         Modify verify.h to pacify gcc -Wredundant_decls.
26768         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
26769         These use the prefix "GL_" since they're likely to be useful elsewhere.
26770         We may need to break them out into a different .h file.
26771         (__COUNTER__): Define to 0 if the compiler doesn't support it.
26772         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
26773         of verify_function__.
26774
26775 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
26776
26777         Tests for module pwrite.
26778         * modules/pwrite-tests: New file.
26779         * tests/test-pwrite.sh: New file.
26780         * tests/test-pwrite.c: New file.
26781
26782         New module pwrite.
26783         * lib/unistd.in.h (pwrite): New declaration.
26784         * lib/pwrite.c: New file, from glibc with modifications.
26785         * m4/pwrite.m4: New file.
26786         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
26787         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
26788         REPLACE_PWRITE.
26789         * modules/pwrite: New file.
26790         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
26791         REPLACE_PWRITE.
26792         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
26793         * doc/posix-functions/pwrite.texi: Mention the new module.
26794
26795 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
26796
26797         pread: Update documentation.
26798         * doc/posix-functions/pread.texi: Mention the 'pread' module.
26799
26800 2010-05-04  Eric Blake  <eblake@redhat.com>
26801
26802         docs: update cygwin progress
26803         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
26804         this bug.
26805         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
26806         Added in cygwin 1.7.2.
26807         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
26808         Likewise.
26809         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
26810         Likewise.
26811         * doc/glibc-functions/dup3.texi (dup3): Likewise.
26812         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
26813         * doc/glibc-functions/accept4.texi (accept4): Likewise.
26814         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
26815         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
26816         Mention nproc module.
26817         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
26818         bug in cygwin 1.7.5 addition.
26819         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
26820         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
26821         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
26822         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
26823         1.7.5.
26824         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
26825         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
26826         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
26827         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
26828         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
26829         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
26830         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
26831         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
26832         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
26833         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
26834         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
26835         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
26836         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
26837         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
26838         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
26839         Likewise.
26840         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
26841         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
26842         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
26843         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
26844         Likewise.
26845         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
26846         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
26847         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
26848         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
26849         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
26850         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
26851         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
26852         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
26853         Likewise.
26854         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
26855         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
26856         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
26857         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
26858         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
26859         Likewise.
26860         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
26861         Likewise.
26862         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
26863         Likewise.
26864         * doc/glibc-functions/xdrrec_endofrecord.texi
26865         (xdrrec_endofrecord): Likewise.
26866         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
26867         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
26868         Likewise.
26869         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
26870         Likewise.
26871
26872 2010-05-04  Jim Meyering  <meyering@redhat.com>
26873
26874         gendocs.sh: make its "-s FILE" option more useful
26875         * build-aux/gendocs.sh: When honoring the -s FILE option, update
26876         $PACKAGE to reflect the probably-different basename of "FILE".
26877
26878 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
26879
26880         bootstrap: don't ignore download_po_files failure
26881         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
26882         failure.
26883
26884 2010-05-03  Jim Meyering  <meyering@redhat.com>
26885
26886         maint.mk: allow to pass options to gendocs.sh
26887         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
26888         (gendocs_options_): New overridable variable.
26889
26890         gnu-web-doc-update: don't ignore configure or build failure
26891         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
26892
26893         announce-gen: backslash-escape '@'s in --help output
26894         * build-aux/announce-gen: Fix syntax errors.
26895
26896         maint.mk, announce-gen: allow project-specific announcement mail headers
26897         * top/maint.mk (translation_project_): Define default.
26898         (announcement_Cc_, announcement_mail_headers_): Likewise.
26899         (announcement): Invoke announce-gen with new --mail-headers option.
26900         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
26901
26902         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
26903         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
26904         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
26905         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
26906         line in the "err2" output file when running "make check" in verbose
26907         mode (i.e., with set -x enabled).
26908
26909 2010-05-03  Bruno Haible  <bruno@clisp.org>
26910
26911         wctob: Fix for weird platforms.
26912         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
26913         argument value.
26914
26915 2010-05-03  Jim Meyering  <meyering@redhat.com>
26916
26917         maint.mk: prohibit unwarranted use of <strings.h>
26918         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
26919         strings.h in a file that does not also use strcasecmp, strncasecmp,
26920         ffs or ffsll.
26921
26922         maint.mk: remove obsolete comments
26923         * top/maint.mk: Remove stale, commented-out rules.
26924
26925 2010-05-02  Bruno Haible  <bruno@clisp.org>
26926
26927         wcwidth: Declare also when it's aliased.
26928         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
26929         macro.
26930
26931 2010-05-02  Bruno Haible  <bruno@clisp.org>
26932
26933         Fix regression from 2010-04-25.
26934         * gnulib-tool (func_modules_transitive_closure): Check the status of
26935         all modules, not only of the tests that are of the form foo-tests where
26936         foo is a module.
26937
26938 2010-05-02  Bruno Haible  <bruno@clisp.org>
26939
26940         wctob: Work around nasty Cygwin 1.7.2 bug.
26941         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
26942         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
26943
26944 2010-05-01  Bruno Haible  <bruno@clisp.org>
26945
26946         fpurge: Sharper test.
26947         * tests/test-fpurge.c (main): Add one more ftell check.
26948         * modules/fpurge-tests (Depends-on): Add ftell.
26949         Suggested by Eric Blake.
26950
26951 2010-05-01  Bruno Haible  <bruno@clisp.org>
26952
26953         ftello: Another test.
26954         * tests/test-ftello3.c: New file.
26955         * modules/ftello-tests (Files): Add it.
26956         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
26957         MOSTLYCLEANFILES.
26958
26959         ftell: Another test.
26960         * tests/test-ftell3.c: New file.
26961         * modules/ftell-tests (Files): Add it.
26962         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
26963         MOSTLYCLEANFILES.
26964
26965 2010-05-01  Bruno Haible  <bruno@clisp.org>
26966
26967         ftell, ftello: Work around Solaris bug.
26968         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
26969         * lib/ftello.c: Include stdio-impl.h.
26970         (ftello): On Solaris, when _IOWRT is set, compute the result without
26971         looking at _IOREAD.
26972         * modules/ftello (Files): Add lib/stdio-impl.h.
26973         * doc/posix-functions/ftell.texi: Mention Solaris bug.
26974         * doc/posix-functions/ftello.texi: Likewise.
26975         Reported by Eric Blake.
26976
26977 2010-05-01  Bruno Haible  <bruno@clisp.org>
26978
26979         freading: Adapt to special meaning of _IOREAD flag on Solaris.
26980         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
26981         the _IOWRT flag is also set.
26982
26983 2010-05-01  Bruno Haible  <bruno@clisp.org>
26984
26985         Fix doc about a HP-UX stdio bug.
26986         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
26987         * doc/posix-functions/ftello.texi: Likewise.
26988
26989 2010-05-01  Bruno Haible  <bruno@clisp.org>
26990
26991         lseek test: Fix failure on Solaris.
26992         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
26993         output.
26994
26995 2010-04-30  Jim Meyering  <meyering@redhat.com>
26996
26997         bootstrap: don't ignore failure to generate po*/Makevars
26998         * build-aux/bootstrap (with_gettext): Don't ignore failure
26999         to create po/Makevars or runtime-po/Makevars.
27000
27001 2010-04-29  Eric Blake  <eblake@redhat.com>
27002
27003         headers: relax license to LGPLv2+
27004         * modules/fcntl-h (License): Relax license.
27005         * modules/getopt-posix (License): Likewise.
27006         * modules/locale (License): Likewise.
27007         * modules/math (License): Likewise.
27008         * modules/pty (License): Likewise.
27009         * modules/sched (License): Likewise.
27010         * modules/search (License): Likewise.
27011         * modules/spawn (License): Likewise.
27012         * modules/stdarg (License): Likewise.
27013         * modules/sysexits (License): Likewise.
27014
27015 2010-04-29  Jim Meyering  <meyering@redhat.com>
27016
27017         inttypes: relax license to LGPLv2+
27018         * modules/inttypes (License): Relax license.
27019
27020 2010-04-29  Simon Josefsson  <simon@josefsson.org>
27021
27022         * top/maint.mk (indent): Run twice to produce idempotent results.
27023
27024 2010-04-28  Bruno Haible  <bruno@clisp.org>
27025
27026         getdate: Generate getdate.c in the source directory.
27027         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
27028         MOSTLYCLEANFILES.
27029         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
27030
27031 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
27032
27033         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
27034         is not declared as a const *; avoid warnings in that case.
27035
27036 2010-04-28  Eric Blake  <eblake@redhat.com>
27037
27038         canonicalize-lgpl: avoid compiler warning
27039         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
27040         declaration' / 'extraneous semicolon' warning with some compilers.
27041         Reported by Andreas Gruenbacher.
27042
27043 2010-04-28  Jim Meyering  <meyering@redhat.com>
27044
27045         init.sh: ensure a more reliable exit status when exiting via trap
27046         * tests/init.sh (setup_): Don't rely on $? in signal handler.
27047         Inspired by patches from Dmitry V. Levin.
27048         Also trap on signal 3 (SIGQUIT).
27049
27050 2010-04-27  Bruno Haible  <bruno@clisp.org>
27051
27052         Update doc about utimes().
27053         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
27054         'utimens' module.
27055         Reported by Andreas Gruenbacher <agruen@suse.de>.
27056
27057 2010-04-27  Eric Blake  <eblake@redhat.com>
27058
27059         full-read, full-write: relax license
27060         * modules/full-read (License): Drop to LGPLv2+.
27061         * modules/full-write (License): Likewise.
27062         * modules/safe-read (License): Likewise.
27063         * modules/safe-write (License): Likewise.
27064
27065         pthread: mention library for linking
27066         * modules/pthread (Link): Mention $(LIB_PTHREAD).
27067
27068 2010-04-27  Jim Meyering  <meyering@redhat.com>
27069
27070         maint.mk: fix a bug introduced in last change
27071         * top/maint.mk (gl_assured_headers_): Now that all names are on
27072         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
27073         is not anchored to end of word, it should be adequate.
27074
27075         maint.mk: avoid side-effect in latest syntax-check
27076         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
27077         to run commands via $(shell...), and hence to incur cost only when
27078         the new rule is actually run.
27079
27080         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
27081         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
27082         and use that to create a regexp used to detect all #if HAVE_..._H uses.
27083         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
27084         (gl_assured_headers_, az_, AZ_): Define.
27085         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
27086
27087 2010-04-26  Jim Meyering  <jim@meyering.net>
27088             Bruno Haible  <bruno@clisp.org>
27089
27090         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
27091         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
27092         Prompted by an exchange with Gilles Espinasse.
27093
27094 2010-04-26  Jim Meyering  <meyering@redhat.com>
27095
27096         git-version-gen: aesthetic tweak
27097         * build-aux/git-version-gen: Use "$nl" rather than a literal,
27098         so that the command remains on a single line.
27099
27100 2010-04-26  Eric Blake  <eblake@redhat.com>
27101
27102         git-version-gen: allow use on EBCDIC hosts
27103         * build-aux/git-version-gen (dirty): Use literal rather than tying
27104         ourselves to ascii.
27105         Reported by Steve Goetze.
27106
27107 2010-04-25  Bruno Haible  <bruno@clisp.org>
27108
27109         netdb: Add support for GNULIB_POSIXCHECK.
27110         * lib/netdb.in.h: Include warn-on-use.h.
27111         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
27112         functions are used when GNULIB_POSIXCHECK is defined and the
27113         getaddrinfo module is not in use.
27114         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
27115         freeaddrinfo, gai_strerror, getnameinfo are declared.
27116         * modules/netdb (Depends-on): Add warn-on-use.
27117         (Makefile.am): Include warn-on-use.h in netdb.h.
27118
27119 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
27120
27121         build: avoid "make check" failure without .git/ directory
27122         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
27123         there is no .git/ directory.
27124
27125 2010-04-25  Bruno Haible  <bruno@clisp.org>
27126
27127         ptsname: Fix misuse of ttyname_r.
27128         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
27129         of errno.
27130
27131 2010-04-25  Bruno Haible  <bruno@clisp.org>
27132
27133         ttyname_r: Make it work on Solaris 10.
27134         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
27135         if the system function has the POSIX declaration. Test whether the
27136         function fails if the buffer is less than 128 bytes large.
27137         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
27138         system's ttyname_r function. Provide a reasonably large buffer.
27139         * modules/ttyname_r (Depends-on): Add extensions.
27140         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
27141
27142 2010-04-25  Bruno Haible  <bruno@clisp.org>
27143
27144         Use the 'extensions' module for some more functions on Solaris.
27145         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
27146         module.
27147         * doc/posix-functions/ctime_r.texi: Likewise.
27148         * doc/posix-functions/getgrgid_r.texi: Likewise.
27149         * doc/posix-functions/getgrnam_r.texi: Likewise.
27150         * doc/posix-functions/getpwnam_r.texi: Likewise.
27151         * doc/posix-functions/getpwuid_r.texi: Likewise.
27152         * doc/posix-functions/readdir_r.texi: Likewise.
27153         * doc/posix-functions/sigwait.texi: Likewise.
27154         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
27155         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
27156
27157 2010-04-25  Bruno Haible  <bruno@clisp.org>
27158
27159         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
27160         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
27161         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
27162         * lib/ttyname_r.c: Include <limits.h>.
27163         (ttyname_r): Define using the system's ttyname_r function, if it exists
27164         and not on Solaris.
27165         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
27166         set.
27167         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
27168         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
27169         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
27170         Reported by Simon Josefsson.
27171
27172 2010-04-25  Bruno Haible  <bruno@clisp.org>
27173
27174         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
27175         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
27176         * doc/posix-functions/ctime_r.texi: Likewise.
27177         * doc/posix-functions/getgrgid_r.texi: Likewise.
27178         * doc/posix-functions/getgrnam_r.texi: Likewise.
27179         * doc/posix-functions/getlogin_r.texi: Likewise.
27180         * doc/posix-functions/getpwnam_r.texi: Likewise.
27181         * doc/posix-functions/getpwuid_r.texi: Likewise.
27182         * doc/posix-functions/readdir_r.texi: Likewise.
27183         * doc/posix-functions/sigwait.texi: Likewise.
27184         * doc/posix-functions/ttyname_r.texi: Likewise.
27185         Reported by Simon Josefsson.
27186
27187 2010-04-25  Bruno Haible  <bruno@clisp.org>
27188
27189         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
27190         * gnulib-tool (func_usage): Document that --with-*-tests options apply
27191         also to --create-testdir.
27192         (func_acceptable): Don't consider the status of *-tests modules here.
27193         (func_modules_transitive_closure): Consider it here, before including a
27194         test module.
27195         (func_import, func_create_testdir): Set inc_all_direct_tests,
27196         inc_all_indirect_tests.
27197         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
27198         --create-testdir and --create-megatestdir.
27199
27200 2010-04-25  Bruno Haible  <bruno@clisp.org>
27201
27202         gnulib-tool: Add --without-*-tests options.
27203         * gnulib-tool (func_usage): Document the --without-*-tests options.
27204         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
27205         excl_unportable_tests): New variables.
27206         Fail if they are specified with --import or --update.
27207         (func_acceptable): Respect the excl_*_tests variables.
27208         (func_import): Set the excl_*_tests variables to empty.
27209
27210 2010-04-25  Simon Josefsson  <simon@josefsson.org>
27211             Bruno Haible  <bruno@clisp.org>
27212
27213         Work around a MacOS X 10.4 bug with openpty.
27214         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
27215         * tests/test-openpty.c (main): Close the master side explicitly.
27216
27217 2010-04-25  Bruno Haible  <bruno@clisp.org>
27218
27219         strnlen: Fix a C++ test error on MacOS X and Solaris.
27220         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
27221         the function is not declared.
27222         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
27223         Simon Josefsson.
27224
27225 2010-04-24  Bruno Haible  <bruno@clisp.org>
27226
27227         Avoid a gcc warning.
27228         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
27229         of correct type for %08lx directive.
27230         Reported by Eric Blake.
27231
27232 2010-04-24  Bruno Haible  <bruno@clisp.org>
27233
27234         vasnprintf: Correct errno value in case of out-of-memory.
27235         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
27236         or sprintf. Use the errno value from SNPRINTF or sprintf.
27237         Reported by Ian Beckwith <ianb@erislabs.net>.
27238
27239 2010-04-24  Bruno Haible  <bruno@clisp.org>
27240
27241         ansi-c++-opt: Find correct compiler when cross-compiling.
27242         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
27243         AC_CHECK_PROGS.
27244         Reported by Simon Josefsson.
27245
27246 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
27247
27248         vc-list-files: Add support for subversion
27249         * build-aux/vc-list-files: Use "svn list" to generate the list of
27250         files controlled by subversion.
27251
27252 2010-04-23  Jim Meyering  <meyering@redhat.com>
27253
27254         vc-list-files tests: convert to use init.sh
27255         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
27256         path_prepend_.
27257         Use Exit, not exit.
27258         Use skip_ rather than open coding it.
27259         Remove trap set-up and compare definitions.
27260         * tests/test-vc-list-files-git.sh: Likewise.
27261         * modules/vc-list-files-tests (Files): Add tests/init.sh.
27262
27263 2010-04-22  Simon Josefsson  <simon@josefsson.org>
27264
27265         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
27266         backup files.
27267
27268 2010-04-21  Simon Josefsson  <simon@josefsson.org>
27269
27270         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
27271
27272 2010-04-20  Eric Blake  <eblake@redhat.com>
27273
27274         tests: be robust to ignored SIGPIPE
27275         * tests/test-select-in.sh: Consume all output.
27276         * tests/test-lseek.sh: Check correct exit status, while avoiding
27277         EPIPE.
27278
27279 2010-04-20  Simon Josefsson  <simon@josefsson.org>
27280             Bruno Haible  <bruno@clisp.org>
27281
27282         visibility: Don't use -fvisibility if it leads to a warning.
27283         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
27284         yes, don't pretend that visibility works if it leads to a warning.
27285         Reported by Mike Gran <spk121@yahoo.com>.
27286
27287 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
27288
27289         * build-aux/bootstrap: Use "git -h" for testing for supported options
27290         instead of "git --help".  The short-form option only shows a summary,
27291         and doesn't layout the full man page.  Grep for the full option name
27292         in the summary, too.
27293
27294 2010-04-19  Bruno Haible  <bruno@clisp.org>
27295
27296         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
27297         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
27298         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
27299         mention of RELOCATABLE_STRIP.
27300         Reported by Sylvain Beucler <beuc@beuc.net>.
27301
27302 2010-04-19  Bruno Haible  <bruno@clisp.org>
27303
27304         * lib/diffseq.h: Fix typo in comment.
27305         Reported by Eric Blake.
27306
27307 2010-04-19  Bruno Haible  <bruno@clisp.org>
27308
27309         ioctl: Move autoconf macro to a .m4 file.
27310         * m4/ioctl.m4: New file, extracted from modules/ioctl.
27311         * modules/ioctl (Files): Add it.
27312         (configure.ac): Simply invoke gl_FUNC_IOCTL.
27313         Reported by Ian Beckwith <ianb@erislabs.net>.
27314
27315 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
27316             Bruno Haible  <bruno@clisp.org>
27317
27318         diffseq: Accommodate use-case with abstract arrays.
27319         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
27320         is not defined.
27321         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
27322         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
27323
27324 2010-04-18  Bruno Haible  <bruno@clisp.org>
27325
27326         * doc/posix-headers/stdbool.texi: More precise wording.
27327
27328 2010-04-17  Jim Meyering  <meyering@redhat.com>
27329
27330         maint.mk: use gnu-style indentation in an embedded perl script
27331         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
27332         Rename variable: s/two/last_two_bytes/
27333
27334 2010-04-16  Eric Blake  <eblake@redhat.com>
27335
27336         test-stdbool: skip test that fails with Solaris CC
27337         * tests/test-stdbool.c (f): Skip test that causes compilation
27338         error under buggy C++ compiler.
27339         * lib/stdbool.in.h: Document the limitation.
27340         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
27341
27342         setenv: allow compilation with C++
27343         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
27344         register keyword.
27345
27346         stdint: allow test to pass with C++
27347         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
27348
27349         getopt: allow compilation with C++
27350         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
27351         struct.
27352         * lib/getopt.c (_getopt_internal_r): Use correct type.
27353         Reported by Dagobert Michelson, via Joel E. Denny.
27354
27355 2010-04-16  Bruno Haible  <bruno@clisp.org>
27356
27357         Override netdb.h always.
27358         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
27359         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
27360         Reported by Ludovic Courtès <ludo@gnu.org>.
27361
27362 2010-04-15  Bruno Haible  <bruno@clisp.org>
27363
27364         openpty: Fix mistake from 2010-03-21.
27365         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
27366         Reported by Simon Josefsson.
27367
27368 2010-04-15  Eric Blake  <eblake@redhat.com>
27369
27370         test-forkpty: fix expected signature
27371         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
27372         Reported by Simon Josefsson.
27373
27374 2010-04-15  Jim Meyering  <meyering@redhat.com>
27375
27376         maint.mk: texinfo_suffix_re_: correct the default regexp
27377         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
27378
27379         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
27380         make it configurable via texinfo_suffix_re_.
27381
27382 2010-04-14  Eric Blake  <eblake@redhat.com>
27383
27384         strtok_r: relax license to LGPLv2+
27385         * modules/strtok_r (License): Relax license.
27386         Reported by Matthias Bolte.
27387
27388 2010-04-14  Simon Josefsson  <simon@josefsson.org>
27389
27390         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
27391         version 1.4.4 by default instead of requiring the libgcrypt
27392         version used during build.  This makes it possible to use the
27393         application with older but still binary compatible libgcrypt
27394         versions.
27395
27396 2010-04-13  Eric Blake  <eblake@redhat.com>
27397
27398         getopt-gnu: match recent glibc fixes and posix ruling
27399         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
27400         '+' handling, when requesting extensions.
27401         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
27402         'W;' handling.
27403         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
27404         * doc/posix-functions/getopt.texi (getopt): Document this.
27405         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
27406         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
27407         Likewise.
27408
27409         getopt: merge bug fixes from glibc
27410         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
27411         diagnostics.  Honor '+:' correctly.  Reject ';'.
27412
27413         getopt-posix: detect MacOS bug
27414         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
27415         optind when missing a required argument.
27416         * doc/posix-functions/getopt.texi (getopt): Document the bug.
27417         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
27418         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
27419         Likewise.
27420
27421         getopt-posix: avoid spurious failure on Solaris
27422         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
27423         an indicator that setting optind=1 is sufficient for reset.
27424
27425         getopt-posix: avoid spurious failure on FreeBSD
27426         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
27427         in POSIX mode, since the m4 test uses it.
27428
27429         gnulib-tool: silence warning on BSD sh
27430         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
27431
27432 2010-04-13  Jim Meyering  <meyering@redhat.com>
27433
27434         doc: users.txt: GNU patch now uses gnulib
27435         * users.txt: Add patch.
27436
27437 2010-04-12  Jim Meyering  <meyering@redhat.com>
27438
27439         maint.mk: generate more concise timing data for syntax-check rules
27440         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
27441         " done" from each line that reports a syntax-check test duration.
27442
27443 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
27444
27445         git-version-gen: use "git update-index..." rather than "git status"
27446         * build-aux/git-version-gen: Use git update-index --refresh, not
27447         "git status".  With some versions of git, "git status" would fail
27448         to update the index and result in an unwarranted "-dirty" suffix.
27449
27450 2010-04-11  Jim Meyering  <meyering@redhat.com>
27451
27452         openat: correct formatting (no semantic change)
27453         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
27454         Suggested by Bruno Haible.
27455
27456 2010-04-11  Bruno Haible  <bruno@clisp.org>
27457
27458         Stricter declaration checking in testdirs.
27459         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
27460         If for_tests is true, augment AM_CPPFLAGS to define
27461         GNULIB_STRICT_CHECKING.
27462         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
27463         GNULIB_STRICT_CHECKING is defined, verify that the function is
27464         declared.
27465
27466 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
27467             Bruno Haible  <bruno@clisp.org>
27468
27469         libunistring: Improve configure output.
27470         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
27471         Don't say "consider installing GNU libunistring" when checking again
27472         with libiconv.
27473
27474 2010-04-11  Bruno Haible  <bruno@clisp.org>
27475
27476         libunistring: Correct value of $LTLIBUNISTRING.
27477         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
27478         correct the value of $LTLIBUNISTRING.
27479
27480 2010-04-11  Bruno Haible  <bruno@clisp.org>
27481
27482         havelib: Add static libraries to LIBS in the right order.
27483         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
27484         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
27485
27486 2010-04-11  Bruno Haible  <bruno@clisp.org>
27487
27488         libunistring: Detect libunistring also when it depends on libiconv.
27489         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
27490         the second AC_LIB_HAVE_LINKFLAGS invocation.
27491
27492 2010-04-11  James Youngman  <jay@gnu.org>
27493
27494         close-stream: declare local scalars to be "const"
27495         * lib/close-stream.c (close_stream): Make boolean variables const
27496         to document the fact that we set but do not change them.
27497
27498 2010-04-11  Bruno Haible  <bruno@clisp.org>
27499
27500         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
27501
27502 2010-04-11  Jim Meyering  <meyering@redhat.com>
27503
27504         maint.mk: don't include dist-check.mk
27505         * top/maint.mk: Remove bogus include directive.
27506
27507         maint.mk: improve empty-line-at-EOF check
27508         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
27509         solution, rather than tail+Perl-based one.  The latter would read
27510         a few kilobytes from the end of each file, and did not handle empty
27511         files properly.
27512
27513         maint.mk: print the elapsed time for each syntax-check rule
27514         * top/maint.mk (sc_m_rules_): Save start time in a file.
27515         (sc_z_rules_): New rules: remove temp file and print elapsed time.
27516         (local-check): Interpose the .z rules
27517
27518 2010-04-11  Jim Meyering  <meyering@redhat.com>
27519
27520         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
27521         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
27522         empty file with one that ends in an empty line.
27523
27524 2010-04-10  Bruno Haible  <bruno@clisp.org>
27525
27526         mkdir: Make it work on mingw64.
27527         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
27528         * lib/mkdir.c: Update comment.
27529         Reported by Roman Donchenko (Роман Ð”онченко) <dxdragon@yandex.ru>.
27530
27531 2010-04-10  Bruno Haible  <bruno@clisp.org>
27532
27533         Don't override improved macro from newer autoconf.
27534         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
27535         autoconf >= 2.62.
27536         Reported by Joel E. Denny <jdenny@clemson.edu>.
27537
27538 2010-04-10  Jim Meyering  <meyering@redhat.com>
27539
27540         maint.mk: new syntax-check rule: prohibit empty lines at end of file
27541         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
27542
27543         maint.mk: correct a diagnostic
27544         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
27545         in diagnostic; now use $prohibit.
27546
27547 2010-04-10  Bruno Haible  <address@hidden>
27548
27549         fchownat: Fix a C++ test error on Solaris 8.
27550         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
27551         the function does not exist.
27552
27553 2010-04-10  Bruno Haible  <bruno@clisp.org>
27554
27555         vasnprintf: Add more tests.
27556         * tests/test-vasnprintf-posix.c: Include <errno.h>.
27557         (test_function): Test converting an invalid wide string.
27558
27559         vasnprintf: Correct handling of unconvertible wide string arguments.
27560         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
27561         VASNPRINTF.
27562         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
27563         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
27564         smaller than the expected maximum need for the directive. Set errno to
27565         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
27566         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
27567         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
27568         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
27569         * modules/vasnprintf (Files): Add m4/printf.m4.
27570         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
27571
27572 2010-04-10  Bruno Haible  <bruno@clisp.org>
27573
27574         vasnprintf: Fix crash in %ls directive.
27575         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
27576         string is passed as argument to %ls, with no precision and no width.
27577         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
27578
27579 2010-04-10  Bruno Haible  <bruno@clisp.org>
27580
27581         vasnprintf: Fix multiple test failures on mingw.
27582         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
27583         _snprintf, or snwprintf, not _snwprintf.
27584
27585 2010-04-10  Bruno Haible  <bruno@clisp.org>
27586
27587         write: Fix a C++ test error on mingw.
27588         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
27589
27590 2010-04-10  Bruno Haible  <bruno@clisp.org>
27591
27592         vasnprintf test: Reduce code duplication.
27593         * tests/test-vasnprintf.c (test_function): New function, extracted from
27594         test_vasnprintf.
27595         (test_vasnprintf, test_asnprintf): Invoke it.
27596
27597 2010-04-10  Bruno Haible  <bruno@clisp.org>
27598
27599         strnlen: Fix warning in C++ mode on MacOS X.
27600         * lib/string.in.h (strnlen): Use the modern idiom.
27601         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
27602         defining strnlen as a macro already in <config.h>.
27603         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
27604         REPLACE_STRNLEN.
27605         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
27606         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
27607
27608 2010-04-08  James Youngman  <jay@gnu.org>
27609
27610         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
27611         the example.
27612
27613 2010-04-09  Jim Meyering  <meyering@redhat.com>
27614
27615         maint.mk: print better diagnostic when there is no $(_hv_file)
27616         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
27617         announce that when $(_hv_file) (aka help-version) does not exist.
27618
27619         init.sh: run tr in the "C" locale to avoid multibyte interpretation
27620         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
27621         not try to interpret its random input bytes.  Jarno Rajahalme reported
27622         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
27623         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
27624         (mktempd_): Likewise, just in case.
27625
27626         ftruncate: add two years to projected module removal date: 2012
27627         * m4/ftruncate.m4: Adjust comments.
27628
27629         ftruncate: mark module as obsolete; even MinGW provides it, now
27630         * modules/ftruncate (Status): Obsolete.
27631         (Notice): Say that.
27632         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
27633         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
27634
27635 2010-04-08  Bruno Haible  <bruno@clisp.org>
27636
27637         Fix side effects from tests-related modules.
27638         * modules/dprintf-posix (Comment): New section.
27639         * modules/fprintf-posix (Comment): Likewise.
27640         * modules/obstack-printf-posix (Comment): Likewise.
27641         * modules/printf-posix (Comment): Likewise.
27642         * modules/snprintf-posix (Comment): Likewise.
27643         * modules/sprintf-posix (Comment): Likewise.
27644         * modules/vasnprintf-posix (Comment): Likewise.
27645         * modules/vasprintf-posix (Comment): Likewise.
27646         * modules/vdprintf-posix (Comment): Likewise.
27647         * modules/vfprintf-posix (Comment): Likewise.
27648         * modules/vprintf-posix (Comment): Likewise.
27649         * modules/vsnprintf-posix (Comment): Likewise.
27650         * modules/vsprintf-posix (Comment): Likewise.
27651         * modules/xprintf-posix (Comment): Likewise.
27652         * modules/xvasprintf-posix (Comment): Likewise.
27653         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
27654         * modules/floorf-tests (Depends-on): Likewise.
27655         * modules/round-tests (Depends-on): Likewise.
27656         * modules/roundf-tests (Depends-on): Likewise.
27657         * modules/trunc-tests (Depends-on): Likewise.
27658         * modules/truncf-tests (Depends-on): Likewise.
27659         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
27660         'fprintf-posix' module is not present.
27661         * tests/test-floorf2.c (check): Likewise.
27662         * tests/test-trunc2.c (check): Likewise.
27663         * tests/test-truncf2.c (check): Likewise.
27664         * tests/test-round2.c (equal): Likewise.
27665         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
27666
27667 2010-04-07  Karl Berry  <karl@gnu.org>
27668
27669         * config/srclist.txt,
27670         * config/srclistvars.sh,
27671         * config/srclist-update: doc fixes.
27672
27673 2010-04-07  Jim Meyering  <meyering@redhat.com>
27674
27675         maint.mk: add a PATH crosschecking syntax-check rule
27676         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
27677         Useful if you use a test like the one in help-version (coreutils,
27678         diffutils, grep, gzip) that ensures $(VERSION) matches what is
27679         printed by prog --version.
27680
27681 2010-04-06  Bruno Haible  <bruno@clisp.org>
27682
27683         Fix link error on mingw.
27684         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
27685         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
27686
27687 2010-04-06  Bruno Haible  <bruno@clisp.org>
27688
27689         Assume rmdir exists.
27690         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
27691
27692 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
27693
27694         doc: update users.txt
27695         * users.txt: Add gcal.
27696
27697 2010-04-06  Jim Meyering  <meyering@redhat.com>
27698
27699         init.sh: simply unset TMPDIR rather than risking env -i
27700         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
27701         although it probably works fine on all Unix-based systems, some
27702         systems (Cygwin?) cannot tolerate a totally cleared environment.
27703         Suggestion from Eric Blake.
27704
27705 2010-04-06  Jim Meyering  <meyering@redhat.com>
27706
27707         init.sh: portability fix: use env's POSIX-specified -i option not -u
27708         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
27709         than unportable env -u.  Solaris 5.11's env lacks support for -u.
27710
27711 2010-04-05  Bruno Haible  <bruno@clisp.org>
27712
27713         btowc: Work around Cygwin 1.7.2 bug.
27714         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
27715         does not map NUL to 0.
27716         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
27717
27718 2010-04-05  Bruno Haible  <bruno@clisp.org>
27719
27720         Make the multithread modules work on Cygwin 1.7.2.
27721         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
27722         imported symbols can be declared weak, so that it returns "no" on
27723         Cygwin 1.7.2.
27724
27725 2010-04-05  Bruno Haible  <bruno@clisp.org>
27726
27727         Use the module 'strncat'.
27728         * modules/unistr/u8-strncat (Depends-on): Add strncat.
27729
27730         Tests for module 'strncat'.
27731         * modules/strncat-tests: New file.
27732         * tests/test-strncat.c: New file.
27733
27734         New module 'strncat'.
27735         * lib/string.in.h (strncat): New declaration.
27736         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
27737         * m4/strncat.m4: New file, based on m4/memchr.m4.
27738         * modules/strncat: New file.
27739         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
27740         is declared.
27741         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
27742         REPLACE_STRNCAT.
27743         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
27744         REPLACE_STRNCAT.
27745         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
27746         module.
27747         * tests/test-string-c++.cc: Check signature of strncat.
27748
27749 2010-04-05  Jim Meyering  <meyering@redhat.com>
27750
27751         xstrtoumax-tests: convert to use init.sh
27752         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
27753         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
27754         Use Exit, not exit.
27755         Remove uses of $EXEEXT and "./" to run a program in the current dir.
27756
27757         xstrtoimax-tests: convert to use init.sh
27758         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
27759         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
27760         Use Exit, not exit.
27761         Remove uses of $EXEEXT and "./" to run a program in the current dir.
27762
27763 2010-04-05  Bruno Haible  <bruno@clisp.org>
27764
27765         sys_socket: Avoid #define replacements in C++ mode.
27766         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
27767         warning to the function if possible, rather than #defining the symbol
27768         to a dysfunctional alias.
27769
27770 2010-04-05  Bruno Haible  <bruno@clisp.org>
27771
27772         fseeko: Fix C++ test error on mingw.
27773         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
27774         gl_FUNC_FSEEKO.
27775         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
27776         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
27777         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
27778         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
27779
27780 2010-04-05  Bruno Haible  <bruno@clisp.org>
27781
27782         duplocale: Improve test output.
27783         * tests/test-duplocale.c (main): Print reason for skipped test.
27784
27785 2010-04-05  Bruno Haible  <bruno@clisp.org>
27786
27787         Assume rmdir exists.
27788         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
27789         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
27790
27791 2010-04-05  Bruno Haible  <bruno@clisp.org>
27792
27793         Fix link error on Solaris 8 with cc.
27794         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
27795
27796 2010-04-05  Bruno Haible  <bruno@clisp.org>
27797
27798         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
27799         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
27800
27801 2010-04-05  Bruno Haible  <bruno@clisp.org>
27802
27803         vasprintf: Update documentation.
27804         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
27805
27806 2010-04-05  Bruno Haible  <bruno@clisp.org>
27807
27808         ptsname: Improve test.
27809         * tests/test-ptsname.c (main): Also try the various master names of BSD
27810         systems.
27811
27812 2010-04-05  Bruno Haible  <bruno@clisp.org>
27813
27814         memchr: Avoid a possible C++ test error.
27815         * lib/string.in.h (memchr): Provide declaration if function is missing.
27816         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
27817         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
27818         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
27819         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
27820
27821 2010-04-05  Bruno Haible  <bruno@clisp.org>
27822
27823         strtok_r: Improve idiom.
27824         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
27825         AC_LIBOBJ is used.
27826
27827 2010-04-05  Bruno Haible  <bruno@clisp.org>
27828
27829         strdup: Improve idiom.
27830         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
27831         AC_LIBOBJ is used.
27832         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
27833         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
27834         when AC_LIBOBJ is used.
27835
27836 2010-04-05  Bruno Haible  <bruno@clisp.org>
27837
27838         mbsinit, mbrtowc, wcrtomb: Improve idioms.
27839         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
27840         don't set REPLACE_MBSINIT to 1.
27841         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
27842         don't set REPLACE_MBRTOWC to 1.
27843         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
27844         exist, don't set REPLACE_MBSRTOWCS to 1.
27845         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
27846         exist, don't set REPLACE_MBSNRTOWCS to 1.
27847         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
27848         don't set REPLACE_WCRTOMB to 1.
27849         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
27850         exist, don't set REPLACE_WCSRTOMBS to 1.
27851         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
27852         exist, don't set REPLACE_WCSNRTOMBS to 1.
27853
27854 2010-04-05  Bruno Haible  <bruno@clisp.org>
27855
27856         ldexpl: Improve idiom.
27857         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
27858         make sure to set HAVE_DECL_LDEXPL to 0.
27859
27860 2010-04-05  Jim Meyering  <meyering@redhat.com>
27861
27862         xstrtol-tests: convert to use init.sh
27863         * modules/xstrtol-tests (Files): Add tests/init.sh.
27864         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
27865         Use Exit, not exit.
27866         Remove uses of $EXEEXT and "./" to run a program in the current dir.
27867
27868         atexit-tests: convert to use init.sh
27869         * modules/atexit-tests (Files): Add tests/init.sh.
27870         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
27871         Use Exit, not exit.
27872         Remove uses of $EXEEXT and "./" to run a program in the current dir.
27873
27874         init.sh: fix typo
27875         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
27876
27877         init.sh: make it easier for a test script to write to the tty, ...
27878         when using automake's parallel-tests mode.
27879         * tests/init.sh (stderr_fileno_): Define overridable variable.
27880         (warn_): New function, to use it.
27881         (fail_, skip_, framework_failure_): Use warn_.
27882
27883 2010-04-04  Bruno Haible  <bruno@clisp.org>
27884
27885         btowc: Avoid warning.
27886         * lib/btowc.c: Include <stdlib.h>.
27887         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
27888
27889 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
27890             Bruno Haible  <bruno@clisp.org>
27891
27892         wchar: Port to NetBSD 1.5.
27893         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
27894         * lib/wctype.in.h (WEOF): Likewise.
27895
27896 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
27897             Bruno Haible  <bruno@clisp.org>
27898
27899         Port extended stdio to NetBSD 1.5.
27900         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
27901         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
27902         older.
27903
27904 2010-04-04  Bruno Haible  <bruno@clisp.org>
27905
27906         string: Remove unused substitution.
27907         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
27908         HAVE_DECL_STRERROR.
27909         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
27910
27911 2010-04-04  Bruno Haible  <bruno@clisp.org>
27912
27913         strtod: Avoid a possible C++ test error.
27914         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
27915         set REPLACE_STRTOD.
27916
27917 2010-04-04  Bruno Haible  <bruno@clisp.org>
27918
27919         strerror: Update documentation.
27920         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
27921
27922 2010-04-04  Bruno Haible  <bruno@clisp.org>
27923
27924         stdio: Fix some C++ test errors on Solaris 8 with GCC.
27925         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
27926         _GL_CXXALIAS_SYS_CAST.
27927
27928 2010-04-04  Bruno Haible  <bruno@clisp.org>
27929
27930         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
27931         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
27932         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
27933         REPLACE_FREXPL to 1.
27934         * doc/posix-functions/frexpl.texi: Update documentation.
27935
27936 2010-04-04  Bruno Haible  <bruno@clisp.org>
27937
27938         math: Fix some C++ test errors on Solaris 8 and Cygwin.
27939         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
27940
27941 2010-04-04  Bruno Haible  <bruno@clisp.org>
27942
27943         Implement nanosleep for native Windows.
27944         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
27945
27946 2010-04-04  Bruno Haible  <bruno@clisp.org>
27947
27948         math: Fix some C++ test errors on Solaris 8.
27949         * lib/math.in.h (truncf, trunc): Use simpler idiom.
27950
27951 2010-04-04  Bruno Haible  <bruno@clisp.org>
27952
27953         math: Fix some C++ test errors on Cygwin.
27954         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
27955         truncl): Provide declaration if the system does not have it.
27956         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
27957         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
27958         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
27959         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
27960         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
27961         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
27962         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
27963         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
27964         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
27965         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
27966         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
27967         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
27968         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
27969         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
27970         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
27971         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
27972         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
27973         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
27974         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
27975         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
27976         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
27977         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
27978
27979 2010-04-04  Bruno Haible  <bruno@clisp.org>
27980
27981         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
27982         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
27983         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
27984         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
27985         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
27986         * m4/isinf.m4 (gl_ISINF): Likewise.
27987         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
27988
27989 2010-04-04  Bruno Haible  <bruno@clisp.org>
27990
27991         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
27992         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
27993
27994 2010-04-04  Bruno Haible  <bruno@clisp.org>
27995
27996         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
27997         * modules/tmpfile (configure.ac): Update.
27998
27999         tmpfile: Fix C++ test error on mingw.
28000         * lib/stdio.in.h (tmpfile): New declaration.
28001         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
28002         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
28003         * modules/tmpfile (Depends-on): Add stdio.
28004         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
28005         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
28006         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
28007         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
28008         REPLACE_TMPFILE.
28009         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
28010
28011 2010-04-04  Bruno Haible  <bruno@clisp.org>
28012
28013         ioctl: Fix C++ test error on mingw.
28014         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
28015         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
28016         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
28017
28018 2010-04-03  Bruno Haible  <bruno@clisp.org>
28019
28020         wcwidth: Fix C++ test error on mingw.
28021         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
28022         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
28023         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
28024
28025 2010-04-03  Bruno Haible  <bruno@clisp.org>
28026
28027         nanosleep: Fix C++ test error on mingw.
28028         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
28029         * lib/time.in.h (nanosleep): Use modern idiom.
28030         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
28031         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
28032         REPLACE_NANOSLEEP to 1.
28033         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
28034         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
28035
28036 2010-04-03  Bruno Haible  <bruno@clisp.org>
28037
28038         strptime: Fix C++ test error on mingw.
28039         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
28040         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
28041         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
28042         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
28043         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
28044         not REPLACE_STRPTIME.
28045         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
28046         REPLACE_STRPTIME.
28047
28048 2010-04-03  Bruno Haible  <bruno@clisp.org>
28049
28050         timegm: Fix C++ test error on mingw.
28051         * lib/time.in.h (timegm): Use modern idiom.
28052         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
28053         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
28054         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
28055         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
28056
28057 2010-04-03  Bruno Haible  <bruno@clisp.org>
28058
28059         timegm: Assume declaration if function exists.
28060         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
28061         if it exists. Don't clobber ac_cv_func_timegm.
28062
28063 2010-04-03  Bruno Haible  <bruno@clisp.org>
28064
28065         time_r: Fix C++ test error on mingw.
28066         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
28067         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
28068         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
28069         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
28070         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
28071
28072 2010-04-03  Bruno Haible  <bruno@clisp.org>
28073
28074         time_r: Minor updates.
28075         * modules/time_r (Description): Mention the provided functions.
28076         * lib/time_r.c: Don't include <string.h>.
28077         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
28078         * doc/posix-functions/localtime_r.texi: Likewise.
28079
28080 2010-04-03  Bruno Haible  <bruno@clisp.org>
28081
28082         time: Fix regression introduced on 2010-03-08.
28083         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
28084         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
28085
28086 2010-04-03  Jim Meyering  <meyering@redhat.com>
28087
28088         maint.mk: don't silently disable project-specific syntax-check rules
28089         * top/maint.mk (_prohibit_regexp): Define, to help people realize
28090         that they need to convert their project-specific syntax-check rules
28091         to use the new _sc_search_regexp.
28092
28093 2010-04-03  Bruno Haible  <bruno@clisp.org>
28094
28095         fchdir: Fix regression introduced on 2010-03-08.
28096         * lib/unistd.in.h (fchdir): Fix declaration.
28097         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
28098         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
28099         REPLACE_FCHDIR.
28100         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
28101         REPLACE_FCHDIR.
28102
28103 2010-04-03  Bruno Haible  <bruno@clisp.org>
28104
28105         getpagesize: Fix C++ test error on mingw.
28106         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
28107         system does not declare the function.
28108         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
28109         declared.
28110         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
28111         HAVE_DECL_GETPAGESIZE.
28112         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
28113
28114 2010-04-03  Bruno Haible  <bruno@clisp.org>
28115
28116         stdio: Make C++ tests work on mingw.
28117         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
28118         does not declare the function.
28119
28120 2010-04-03  Bruno Haible  <bruno@clisp.org>
28121
28122         ftello: Fix C++ test error on mingw.
28123         * lib/stdio.in.h (ftello): Use modern idiom.
28124         * lib/ftello.c (ftello): Renamed from rpl_ftello.
28125         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
28126         is missing and that it needs to be replaced.
28127         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
28128         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
28129         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
28130
28131 2010-04-03  Bruno Haible  <bruno@clisp.org>
28132
28133         fseeko: Fix C++ test error on mingw.
28134         * lib/stdio.in.h (fseeko): Use modern idiom.
28135         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
28136         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
28137         is missing and that it needs to be replaced.
28138         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
28139         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
28140         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
28141
28142 2010-04-03  Bruno Haible  <bruno@clisp.org>
28143
28144         mkstemp: Fix C++ test error on mingw.
28145         * lib/stdlib.in.h (mkstemp): Use modern idiom.
28146         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
28147         function is missing and that it needs to be replaced.
28148         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
28149         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
28150
28151 2010-04-03  Bruno Haible  <bruno@clisp.org>
28152
28153         stpncpy: Fix C++ test error on mingw.
28154         * lib/string.in.h (stpncpy): Use modern idiom.
28155         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
28156         function is missing and that it needs to be replaced.
28157         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
28158         REPLACE_STPNCPY.
28159         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
28160
28161 2010-04-03  Bruno Haible  <bruno@clisp.org>
28162
28163         sys_stat: Fix C++ test error on mingw.
28164         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
28165         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
28166
28167 2010-04-03  Bruno Haible  <bruno@clisp.org>
28168
28169         pty: Update doc.
28170         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
28171
28172 2010-04-03  Bruno Haible  <bruno@clisp.org>
28173
28174         unistd: Fix C++ test error on mingw.
28175         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
28176
28177 2010-04-03  Bruno Haible  <bruno@clisp.org>
28178
28179         Update doc regarding mingw.
28180         * doc/glibc-functions/openpty.texi: Update regarding mingw.
28181         * doc/glibc-functions/login_tty.texi: Likewise.
28182         * doc/glibc-functions/forkpty.texi: Likewise.
28183
28184 2010-04-03  Bruno Haible  <bruno@clisp.org>
28185
28186         stdlib: Avoid compilation failure of c-strtold on mingw.
28187         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
28188
28189 2010-04-03  Bruno Haible  <bruno@clisp.org>
28190
28191         locale: Make C++ tests work on Cygwin and mingw.
28192         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
28193         cannot provide the function.
28194         Reported by Simon Josefsson.
28195
28196 2010-04-03  Bruno Haible  <bruno@clisp.org>
28197
28198         localename: Port to MacOS X 10.6.
28199         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
28200         memory layout of the locales in MacOS X 10.6 as well.
28201         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
28202
28203 2010-04-02  Bruno Haible  <bruno@clisp.org>
28204
28205         gnulib-tool: Ensure that long-running tests are executed last.
28206         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
28207         running tests after the one for the other tests.
28208
28209 2010-04-02  Bruno Haible  <bruno@clisp.org>
28210
28211         gnulib-tool: Ensure the tests in the main directory are executed first.
28212         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
28213         start with the current directory.
28214
28215 2010-04-02  Bruno Haible  <bruno@clisp.org>
28216
28217         Tests for module 'havelib', moved here from GNU gettext.
28218         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
28219         modifications.
28220         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
28221         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
28222         with modifications.
28223         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
28224         modifications.
28225         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
28226         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
28227         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
28228         with modifications.
28229         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
28230         with modifications.
28231         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
28232         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
28233         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
28234         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
28235         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
28236         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
28237         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
28238         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
28239         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
28240         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
28241         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
28242         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
28243         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
28244         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
28245         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
28246         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
28247         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
28248         with modifications.
28249         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
28250         with modifications.
28251         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
28252         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
28253         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
28254         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
28255         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
28256         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
28257         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
28258         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
28259         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
28260         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
28261         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
28262         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
28263         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
28264         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
28265         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
28266         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
28267         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
28268         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
28269         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
28270         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
28271         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
28272         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
28273         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
28274         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
28275         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
28276         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
28277         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
28278         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
28279         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
28280         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
28281         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
28282         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
28283         * tests/havelib/rpathx/rpathx.c: New file, from
28284         gettext/autoconf-lib-link.
28285         * tests/havelib/rpathx/Makefile.am: New file, from
28286         gettext/autoconf-lib-link.
28287         * tests/havelib/rpathx/configure.ac: New file, from
28288         gettext/autoconf-lib-link with modifications.
28289         * tests/havelib/rpathy/rpathy.c: New file, from
28290         gettext/autoconf-lib-link.
28291         * tests/havelib/rpathy/Makefile.am: New file, from
28292         gettext/autoconf-lib-link.
28293         * tests/havelib/rpathy/configure.ac: New file, from
28294         gettext/autoconf-lib-link with modifications.
28295         * tests/havelib/rpathz/rpathz.c: New file, from
28296         gettext/autoconf-lib-link.
28297         * tests/havelib/rpathz/Makefile.am: New file, from
28298         gettext/autoconf-lib-link.
28299         * tests/havelib/rpathz/configure.ac: New file, from
28300         gettext/autoconf-lib-link with modifications.
28301         * tests/havelib/rpathlx/usex.c: New file, from
28302         gettext/autoconf-lib-link.
28303         * tests/havelib/rpathlx/Makefile.am: New file, from
28304         gettext/autoconf-lib-link.
28305         * tests/havelib/rpathlx/configure.ac: New file, from
28306         gettext/autoconf-lib-link with modifications.
28307         * tests/havelib/rpathly/usey.c: New file, from
28308         gettext/autoconf-lib-link.
28309         * tests/havelib/rpathly/Makefile.am: New file, from
28310         gettext/autoconf-lib-link.
28311         * tests/havelib/rpathly/configure.ac: New file, from
28312         gettext/autoconf-lib-link with modifications.
28313         * tests/havelib/rpathlz/usez.c: New file, from
28314         gettext/autoconf-lib-link.
28315         * tests/havelib/rpathlz/Makefile.am: New file, from
28316         gettext/autoconf-lib-link.
28317         * tests/havelib/rpathlz/configure.ac: New file, from
28318         gettext/autoconf-lib-link with modifications.
28319         * tests/havelib/rpathlyx/usey.c: New file, from
28320         gettext/autoconf-lib-link.
28321         * tests/havelib/rpathlyx/Makefile.am: New file, from
28322         gettext/autoconf-lib-link.
28323         * tests/havelib/rpathlyx/configure.ac: New file, from
28324         gettext/autoconf-lib-link with modifications.
28325         * tests/havelib/rpathlzyx/usez.c: New file, from
28326         gettext/autoconf-lib-link.
28327         * tests/havelib/rpathlzyx/Makefile.am: New file, from
28328         gettext/autoconf-lib-link.
28329         * tests/havelib/rpathlzyx/configure.ac: New file, from
28330         gettext/autoconf-lib-link with modifications.
28331         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
28332         with modifications.
28333
28334 2010-04-02  Bruno Haible  <bruno@clisp.org>
28335
28336         gnulib-tool: Create distributed built sources also for the tests.
28337         * gnulib-tool (func_create_testdir): Also generate distributed built
28338         sources in the tests directory.
28339
28340 2010-04-02  Bruno Haible  <bruno@clisp.org>
28341
28342         gnulib-tool: Obey user's environment variables.
28343         * gnulib-tool (func_create_testdir): When creating built sources,
28344         respect the environment variables for autoconf, automake, etc. given by
28345         the user.
28346
28347 2010-04-02  Bruno Haible  <bruno@clisp.org>
28348
28349         gnulib-tool: Provide the value of --m4-base to modules.
28350         * gnulib-tool (func_import, func_create_testdir): Emit a definition
28351         of gl_m4_base.
28352
28353 2010-04-02  Eric Blake  <eblake@redhat.com>
28354
28355         maint.mk: fix some fallout
28356         * NEWS: Document the incompatible change, and its effect on cfg.mk.
28357         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
28358
28359 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
28360
28361         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
28362         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
28363         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
28364         (sc_cast_of_x_alloc_return_value): Likewise.
28365         (sc_cast_of_alloca_return_value): Likewise.
28366         (sc_space_tab): Likewise.
28367         (sc_prohibit_atoi_atof): Likewise.
28368         (sc_prohibit_magic_number_exit): Likewise.
28369         (sc_error_exit_success): Likewise.
28370         (sc_file_system): Likewise.
28371         (sc_prohibit_have_config_h): Likewise.
28372         (sc_require_config_h): Likewise.
28373         (sc_prohibit_HAVE_MBRTOWC): Likewise.
28374         (sc_obsolete_symbols): Likewise.
28375         (sc_changelog): Likewise.
28376         (sc_program_name): Likewise.
28377         (sc_the_the): Likewise.
28378         (sc_trailing_blank): Likewise.
28379         (sc_two_space_separator_in_usage): Likewise.
28380         (sc_useless_cpp_parens): Likewise.
28381         (sc_GPL_version): Likewise.
28382         (sc_GFDL_version): Likewise.
28383         (sc_texinfo_acronym): Likewise.
28384         (sc_prohibit_cvs_keyword): Likewise.
28385         (sc_prohibit_stat_st_blocks): Likewise.
28386         (sc_prohibit_S_IS_definition): Likewise.
28387         (sc_redundant_const): Likewise.
28388         (sc_makefile_TAB_only_indentation): Likewise.
28389         (sc_m4_quote_check): Likewise.
28390         (sc_makefile_path_separator_check): Likewise.
28391         (sc_copyright_check): Likewise.
28392         (sc_Wundef_boolean): Likewise.
28393         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
28394
28395         maint.mk: match 0 or more whitespace-before-function-call '('
28396         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
28397         that have zero or two-and-more spaces between the function name
28398         and the open parenthesis.
28399         (sc_error_message_warn_fatal): Likewise.
28400         (sc_error_message_uppercase): Likewise.
28401         (sc_error_message_period): Likewise.
28402
28403 2010-03-31  Eric Blake  <eblake@redhat.com>
28404
28405         maint.mk: check for [ as well as test
28406         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
28407         Based on a libvirt report by Matthias Bolte.
28408
28409         gnumakefile: don't squelch _version output
28410         * top/GNUmakefile (_version): Create one-shot dependency rather
28411         than using $(shell) when version must be regenerated.
28412         (_autoreconf): Run verbosely, by default.
28413
28414         sys_time: avoid compiler warnings
28415         * lib/sys_time.in.h (includes): Ensure gcc pragma is
28416         unconditional, fixing regression from 2010-03-29.
28417         Reported by Simon Josefsson.
28418
28419 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
28420
28421         maint.mk: s/_header_without_use/_sc_header_without_use/
28422         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
28423         (sc_prohibit_assert_without_use): Use the new name.
28424         (sc_prohibit_close_stream_without_use): Likewise.
28425         (sc_prohibit_getopt_without_use): Likewise.
28426         (sc_prohibit_quotearg_without_use): Likewise.
28427         (sc_prohibit_quote_without_use): Likewise.
28428         (sc_prohibit_long_options_without_use): Likewise.
28429         (sc_prohibit_inttostr_without_use): Likewise.
28430         (sc_prohibit_ignore_value_without_use): Likewise.
28431         (sc_prohibit_error_without_use): Likewise.
28432         (sc_prohibit_xalloc_without_use): Likewise.
28433         (sc_prohibit_hash_without_use): Likewise.
28434         (sc_prohibit_hash_pjw_without_use): Likewise.
28435         (sc_prohibit_safe_read_without_use): Likewise.
28436         (sc_prohibit_argmatch_without_use): Likewise.
28437         (sc_prohibit_canonicalize_without_use): Likewise.
28438         (sc_prohibit_root_dev_ino_without_use): Likewise.
28439         (sc_prohibit_openat_without_use): Likewise.
28440         (sc_prohibit_c_ctype_without_use): Likewise.
28441         (sc_prohibit_signal_without_use): Likewise.
28442         (sc_prohibit_intprops_without_use): Likewise.
28443
28444 2010-03-30  Eric Blake  <eblake@redhat.com>
28445
28446         maint: improve module indicators
28447         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
28448         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
28449         columns, and avoid extra macro expansion.
28450
28451         fdopendir: work around FreeBSD bug
28452         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
28453         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
28454         * modules/dirent (Makefile.am): Substitute it.
28455         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
28456         declaration.
28457         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
28458         fix.
28459         Reported by Christian Weisgerber <naddy@mips.inka.de>.
28460
28461 2010-03-29  Bruno Haible  <bruno@clisp.org>
28462
28463         Emit #pragma system_header after the inclusion guard, not before.
28464         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
28465         guard that spans the entire file, not before. This enables an
28466         optimization in GCC's preprocessor.
28467         * lib/ctype.in.h: Likewise.
28468         * lib/dirent.in.h: Likewise.
28469         * lib/errno.in.h: Likewise.
28470         * lib/float.in.h: Likewise.
28471         * lib/getopt.in.h: Likewise.
28472         * lib/iconv.in.h: Likewise.
28473         * lib/langinfo.in.h: Likewise.
28474         * lib/locale.in.h: Likewise.
28475         * lib/math.in.h: Likewise.
28476         * lib/netdb.in.h: Likewise.
28477         * lib/netinet_in.in.h: Likewise.
28478         * lib/pty.in.h: Likewise.
28479         * lib/sched.in.h: Likewise.
28480         * lib/se-selinux.in.h: Likewise.
28481         * lib/search.in.h: Likewise.
28482         * lib/spawn.in.h: Likewise.
28483         * lib/stdarg.in.h: Likewise.
28484         * lib/stdint.in.h: Likewise.
28485         * lib/string.in.h: Likewise.
28486         * lib/strings.in.h: Likewise.
28487         * lib/sys_file.in.h: Likewise.
28488         * lib/sys_ioctl.in.h: Likewise.
28489         * lib/sys_time.in.h: Likewise.
28490         * lib/sys_times.in.h: Likewise.
28491         * lib/sys_utsname.in.h: Likewise.
28492         * lib/sys_wait.in.h: Likewise.
28493         * lib/sysexits.in.h: Likewise.
28494         * lib/wctype.in.h: Likewise.
28495
28496 2010-03-28  James Youngman  <jay@gnu.org>
28497
28498         save-cwd: don't leak a file descriptor when the caller execs.
28499         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
28500         saved file descriptor.
28501         * modules/save-cwd (Depends-on): Depend on cloexec.
28502
28503 2010-03-29  Bruno Haible  <bruno@clisp.org>
28504
28505         Remove vestiges of fts-lgpl module.
28506         * lib/fts_.h: Assume GNULIB_FTS is 1.
28507         * lib/fts.c: Likewise.
28508         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
28509
28510 2010-03-28  Bruno Haible  <bruno@clisp.org>
28511
28512         Fix definition of tests witness macro.
28513         * gnulib-tool (func_import): Fix definition of witness macro.
28514
28515 2010-03-28  Bruno Haible  <bruno@clisp.org>
28516
28517         Fix ioctl's protoype on glibc systems.
28518         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
28519         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
28520         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
28521         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
28522         signature. If not, arrange to replace the ioctl function.
28523         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
28524         REPLACE_IOCTL.
28525         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
28526         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
28527         Reported by Ludovic Courtès <ludo@gnu.org>.
28528
28529 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
28530
28531         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
28532         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
28533         made it so grep -r --include=GLOB* ... did not work.
28534
28535 2010-03-26  Jim Meyering  <meyering@redhat.com>
28536             Eric Blake  <eblake@redhat.com>
28537
28538         maint.mk: prohibit use of test's -o and -a operators
28539         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
28540
28541 2010-03-28  Bruno Haible  <bruno@clisp.org>
28542
28543         Remove unused GNULIB_XYZ macro definitions.
28544         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
28545         invocation.
28546
28547 2010-03-28  Bruno Haible  <bruno@clisp.org>
28548
28549         Mark privileged tests modules.
28550         * modules/idpriv-drop-tests (Status): New section.
28551         * modules/idpriv-droptemp-tests (Status): New section.
28552
28553 2010-03-28  Bruno Haible  <bruno@clisp.org>
28554
28555         Split C++ tests into separate tests modules.
28556         * modules/dirent-c++-tests: New file, extracted from
28557         modules/dirent-tests.
28558         * modules/dirent-tests: Depend on it.
28559         * modules/fcntl-h-c++-tests: New file, extracted from
28560         modules/fcntl-h-tests.
28561         * modules/fcntl-h-tests: Depend on it.
28562         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
28563         * modules/glob-tests: Depend on it.
28564         * modules/iconv-h-c++-tests: New file, extracted from
28565         modules/iconv-h-tests.
28566         * modules/iconv-h-tests: Depend on it.
28567         * modules/langinfo-c++-tests: New file, extracted from
28568         modules/langinfo-tests.
28569         * modules/langinfo-tests: Depend on it.
28570         * modules/locale-c++-tests: New file, extracted from
28571         modules/locale-tests.
28572         * modules/locale-tests: Depend on it.
28573         * modules/math-c++-tests: New file, extracted from modules/math-tests.
28574         * modules/math-tests: Depend on it.
28575         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
28576         * modules/pty-tests: Depend on it.
28577         * modules/search-c++-tests: New file, extracted from
28578         modules/search-tests.
28579         * modules/search-tests: Depend on it.
28580         * modules/signal-c++-tests: New file, extracted from
28581         modules/signal-tests.
28582         * modules/signal-tests: Depend on it.
28583         * modules/spawn-c++-tests: New file, extracted from
28584         modules/spawn-tests.
28585         * modules/spawn-tests: Depend on it.
28586         * modules/stdio-c++-tests: New file, extracted from
28587         modules/stdio-tests.
28588         * modules/stdio-tests: Depend on it.
28589         * modules/stdlib-c++-tests: New file, extracted from
28590         modules/stdlib-tests.
28591         * modules/stdlib-tests: Depend on it.
28592         * modules/string-c++-tests: New file, extracted from
28593         modules/string-tests.
28594         * modules/string-tests: Depend on it.
28595         * modules/sys_ioctl-c++-tests: New file, extracted from
28596         modules/sys_ioctl-tests.
28597         * modules/sys_ioctl-tests: Depend on it.
28598         * modules/sys_select-c++-tests: New file, extracted from
28599         modules/sys_select-tests.
28600         * modules/sys_select-tests: Depend on it.
28601         * modules/sys_socket-c++-tests: New file, extracted from
28602         modules/sys_socket-tests.
28603         * modules/sys_socket-tests: Depend on it.
28604         * modules/sys_stat-c++-tests: New file, extracted from
28605         modules/sys_stat-tests.
28606         * modules/sys_stat-tests: Depend on it.
28607         * modules/sys_time-c++-tests: New file, extracted from
28608         modules/sys_time-tests.
28609         * modules/sys_time-tests: Depend on it.
28610         * modules/time-c++-tests: New file, extracted from modules/time-tests.
28611         * modules/time-tests: Depend on it.
28612         * modules/unistd-c++-tests: New file, extracted from
28613         modules/unistd-tests.
28614         * modules/unistd-tests: Depend on it.
28615         * modules/wchar-c++-tests: New file, extracted from
28616         modules/wchar-tests.
28617         * modules/wchar-tests: Depend on it.
28618         * modules/wctype-c++-tests: New file, extracted from
28619         modules/wctype-tests.
28620         * modules/wctype-tests: Depend on it.
28621         Reported by Simon Josefsson.
28622
28623 2010-03-28  Bruno Haible  <bruno@clisp.org>
28624
28625         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
28626         * gnulib-tool (func_exists_module): New function, extracted from
28627         func_verify_module.
28628         (func_verify_module): Use it.
28629         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
28630         'foo' only if 'foo' exists.
28631         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
28632         module.
28633
28634 2010-03-28  Bruno Haible  <bruno@clisp.org>
28635
28636         gnulib-tool: Add support for special categories of tests.
28637         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
28638         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
28639         (func_usage): Document them.
28640         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
28641         inc_unportable_tests, inc_all_tests): New variables.
28642         (func_acceptable): Consider these variables.
28643         (func_modules_transitive_closure): Make it work when the 'Status' field
28644         consists of multiple words.
28645         (func_import): Store and restore the values of inc_cxx_tests,
28646         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
28647         inc_all_tests in gnulib-comp.m4.
28648         (func_create_testdir): Set inc_all_tests to true.
28649         * doc/gnulib.texi (Extra tests modules): New section.
28650         Suggested by Jim Meyering.
28651
28652 2010-03-28  Bruno Haible  <bruno@clisp.org>
28653
28654         ansi-c++-opt: Allow turning off the C++ build by default.
28655         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
28656         gl_CXX_CHOICE_DEFAULT_NO is defined.
28657         Requested by Eric Blake.
28658
28659 2010-03-28  Bruno Haible  <bruno@clisp.org>
28660
28661         unistd: Avoid #define replacements in C++ mode.
28662         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
28663         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
28664         setsockopt, shutdown, select): In C++, attach a warning to the function
28665         if possible, rather than #defining the symbol to a dysfunctional alias.
28666         Reported by John W. Eaton <jwe@gnu.org>.
28667
28668 2010-03-28  Bruno Haible  <bruno@clisp.org>
28669
28670         Fix link errors on mingw.
28671         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
28672         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
28673         $(LIBSOCKET).
28674         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
28675         $(LIBSOCKET).
28676
28677 2010-03-28  Bruno Haible  <bruno@clisp.org>
28678             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28679
28680         lib-ignore: Determine different options for different compilers.
28681         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
28682         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
28683         Add comments.
28684         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
28685         * NEWS: Mention the change.
28686
28687 2010-03-27  Bruno Haible  <bruno@clisp.org>
28688
28689         Remove unused GNULIB_XYZ macro definitions.
28690         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
28691         * modules/fseek (configure.ac): Likewise.
28692         * modules/ioctl (configure.ac): Likewise.
28693         * modules/open (configure.ac): Likewise.
28694         * modules/stdlib-safer (configure.ac): Likewise.
28695
28696 2010-03-27  Bruno Haible  <bruno@clisp.org>
28697
28698         Add a remark about certain modules.
28699         * modules/malloc (Comment): New section.
28700         * modules/realloc (Comment): Likewise.
28701         * modules/sigpipe (Comment): Likewise.
28702
28703 2010-03-27  Bruno Haible  <bruno@clisp.org>
28704
28705         Resolve conflict between the two kinds of module indicators.
28706         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
28707         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
28708         * modules/canonicalize (configure.ac): Invoke
28709         gl_MODULE_INDICATOR_FOR_TESTS.
28710         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
28711         GNULIB_XYZ.
28712         * tests/test-dirent-c++.cc: Likewise.
28713         * tests/test-dirent-safer.c: Likewise.
28714         * tests/test-dup2.c: Likewise.
28715         * tests/test-fchdir.c: Likewise.
28716         * tests/test-fcntl-h-c++.cc: Likewise.
28717         * tests/test-getopt.c: Likewise.
28718         * tests/test-getopt.h: Likewise.
28719         * tests/test-langinfo-c++.cc: Likewise.
28720         * tests/test-locale-c++.cc: Likewise.
28721         * tests/test-math-c++.cc: Likewise.
28722         * tests/test-pty-c++.cc: Likewise.
28723         * tests/test-search-c++.cc: Likewise.
28724         * tests/test-signal-c++.cc: Likewise.
28725         * tests/test-spawn-c++.cc: Likewise.
28726         * tests/test-stdio-c++.cc: Likewise.
28727         * tests/test-stdlib-c++.cc: Likewise.
28728         * tests/test-string-c++.cc: Likewise.
28729         * tests/test-sys_ioctl-c++.cc: Likewise.
28730         * tests/test-sys_select-c++.cc: Likewise.
28731         * tests/test-sys_socket-c++.cc: Likewise.
28732         * tests/test-sys_stat-c++.cc: Likewise.
28733         * tests/test-sys_time-c++.cc: Likewise.
28734         * tests/test-time-c++.cc: Likewise.
28735         * tests/test-unistd-c++.cc: Likewise.
28736         * tests/test-wchar-c++.cc: Likewise.
28737         * tests/uninorm/test-u8-nfc.c: Likewise.
28738         * tests/uninorm/test-u8-nfd.c: Likewise.
28739         * tests/uninorm/test-u8-nfkc.c: Likewise.
28740         * tests/uninorm/test-u8-nfkd.c: Likewise.
28741         * tests/uninorm/test-u16-nfc.c: Likewise.
28742         * tests/uninorm/test-u16-nfd.c: Likewise.
28743         * tests/uninorm/test-u16-nfkc.c: Likewise.
28744         * tests/uninorm/test-u16-nfkd.c: Likewise.
28745         * tests/uninorm/test-u32-nfc.c: Likewise.
28746         * tests/uninorm/test-u32-nfc-big.c: Likewise.
28747         * tests/uninorm/test-u32-nfd.c: Likewise.
28748         * tests/uninorm/test-u32-nfd-big.c: Likewise.
28749         * tests/uninorm/test-u32-nfkc.c: Likewise.
28750         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
28751         * tests/uninorm/test-u32-nfkd.c: Likewise.
28752         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
28753         * tests/uninorm/test-u32-normalize-big.c: Likewise.
28754
28755 2010-03-27  Bruno Haible  <bruno@clisp.org>
28756
28757         Distinguish two kinds of module indicators.
28758         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
28759         gl_MODULE_INDICATOR.
28760         (gl_MODULE_INDICATOR): New macro.
28761         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
28762         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
28763         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
28764         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
28765         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
28766         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
28767         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
28768         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
28769         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
28770         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
28771         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
28772         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
28773         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
28774         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
28775         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
28776         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
28777         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
28778         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
28779         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
28780         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
28781         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
28782         * modules/cloexec (configure.ac): Likewise.
28783         * modules/getopt-gnu (configure.ac): Likewise.
28784         * modules/uninorm/u8-normalize (configure.ac): Likewise.
28785         * modules/uninorm/u16-normalize (configure.ac): Likewise.
28786         * modules/uninorm/u32-normalize (configure.ac): Likewise.
28787         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
28788
28789 2010-03-27  Bruno Haible  <bruno@clisp.org>
28790
28791         New module description field 'Comment'.
28792         * gnulib-tool: New option --extract-comment.
28793         (func_usage): Document it.
28794         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
28795         (func_get_comment): New function.
28796         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
28797
28798 2010-03-27  Bruno Haible  <bruno@clisp.org>
28799
28800         Addendum to 2010-02-07 commit.
28801         * gnulib-tool (func_usage): Document --extract-applicability option.
28802
28803 2010-03-27  Bruno Haible  <bruno@clisp.org>
28804
28805         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
28806         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
28807         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
28808         rather than link errors.
28809
28810 2010-03-27  Bruno Haible  <bruno@clisp.org>
28811
28812         Avoid side effects from tests-related modules on the compilation of lib.
28813         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
28814         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
28815         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
28816         parameter. Emit into AM_CPPFLAGS a definition of the designated C
28817         macro.
28818         (func_import): Define a witness macro. Assign it a value that depends
28819         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
28820         tests-related modules.
28821         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
28822         Reported by Jim Meyering.
28823
28824 2010-03-27  Bruno Haible  <bruno@clisp.org>
28825
28826         Factorize common .m4 code.
28827         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
28828         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
28829         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
28830         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
28831         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
28832         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
28833         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
28834         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
28835         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
28836         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
28837         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
28838         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
28839         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
28840         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
28841         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
28842         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
28843         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
28844         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
28845         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
28846         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
28847         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
28848         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
28849         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
28850         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
28851         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
28852         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
28853         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
28854         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
28855         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
28856         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
28857         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
28858         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
28859
28860 2010-03-27  Bruno Haible  <bruno@clisp.org>
28861
28862         Fix a compilation error on Cygwin with g++ >= 4.3.
28863         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
28864         if it is undefined or if we alias it to chmod.
28865         (lstat): Don't warn about the use of this function if it is undefined
28866         or if we alias it to stat.
28867         Reported by Simon Josefsson.
28868
28869 2010-03-27  Bruno Haible  <bruno@clisp.org>
28870
28871         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
28872         * modules/getlogin (configure.ac): Update.
28873
28874         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
28875         * modules/getlogin_r (configure.ac): Update.
28876
28877         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
28878         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
28879         * modules/inet_ntop (configure.ac): Update.
28880
28881         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
28882         * modules/inet_pton (configure.ac): Update.
28883
28884         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
28885         * modules/mbslen (configure.ac): Update.
28886
28887         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
28888         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
28889         * modules/forkpty (configure.ac): Update.
28890         * modules/openpty (configure.ac): Update.
28891
28892 2010-03-26  Simon Josefsson  <simon@josefsson.org>
28893
28894         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
28895         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
28896
28897 2010-03-25  Eric Blake  <eblake@redhat.com>
28898
28899         maint: use pragma consistently across replacement headers
28900         * lib/ctype.in.h (system_header): Hoist for consistent placement.
28901         * lib/dirent.in.h (system_header): Likewise.
28902         * lib/errno.in.h (system_header): Likewise.
28903         * lib/float.in.h (system_header): Likewise.
28904         * lib/getopt.in.h (system_header): Likewise.
28905         * lib/iconv.in.h (system_header): Likewise.
28906         * lib/inttypes.in.h (system_header): Likewise.
28907         * lib/langinfo.in.h (system_header): Likewise.
28908         * lib/locale.in.h (system_header): Likewise.
28909         * lib/math.in.h (system_header): Likewise.
28910         * lib/netdb.in.h (system_header): Likewise.
28911         * lib/netinet_in.in.h (system_header): Likewise.
28912         * lib/pty.in.h (system_header): Likewise.
28913         * lib/sched.in.h (system_header): Likewise.
28914         * lib/se-selinux.in.h (system_header): Likewise.
28915         * lib/search.in.h (system_header): Likewise.
28916         * lib/spawn.in.h (system_header): Likewise.
28917         * lib/stdarg.in.h (system_header): Likewise.
28918         * lib/stdint.in.h (system_header): Likewise.
28919         * lib/string.in.h (system_header): Likewise.
28920         * lib/strings.in.h (system_header): Likewise.
28921         * lib/sys_file.in.h (system_header): Likewise.
28922         * lib/sys_ioctl.in.h (system_header): Likewise.
28923         * lib/sys_socket.in.h (system_header): Likewise.
28924         * lib/sys_times.in.h (system_header): Likewise.
28925         * lib/sys_utsname.in.h (system_header): Likewise.
28926         * lib/sys_wait.in.h (system_header): Likewise.
28927         * lib/sysexits.in.h (system_header): Likewise.
28928         * lib/unistd.in.h (system_header): Likewise.
28929         * lib/wctype.in.h (system_header): Likewise.
28930
28931         arpa/inet: fix mingw compilation warning
28932         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
28933         Reported by Matthew Bolte.
28934
28935 2010-03-25  Bruno Haible  <bruno@clisp.org>
28936
28937         Avoid collision between gnulib wrapper and libintl wrapper.
28938         * lib/printf.c (printf): Don't define if a printf wrapper is already
28939         defined in intl/printf.c.
28940         Reported by Michel Boaventura <michel@michelboaventura.com>.
28941
28942 2010-03-25  Bruno Haible  <bruno@clisp.org>
28943
28944         Use ANSI C.
28945         * lib/readutmp.h (getutent): Provide ANSI C prototype.
28946
28947 2010-03-25  Bruno Haible  <bruno@clisp.org>
28948
28949         Minor formatting changes.
28950         * lib/acosl.c: Insert space before function argument list.
28951         * lib/argz.c: Likewise.
28952         * lib/asinl.c: Likewise.
28953         * lib/expl.c: Likewise.
28954         * lib/gen-uni-tables.c: Likewise.
28955         * lib/gettext.h: Likewise.
28956         * lib/glthread/lock.h: Likewise.
28957         * lib/tanl.c: Likewise.
28958         * lib/uniname/uniname.c: Likewise.
28959         * tests/test-idpriv-drop.c: Likewise.
28960         * tests/test-idpriv-droptemp.c: Likewise.
28961         * tests/test-lock.c: Likewise.
28962         * tests/test-tls.c: Likewise.
28963         * lib/argp-help.c: Insert space before function-like macro argument
28964         list.
28965         * lib/memcmp.c: Likewise.
28966         * tests/test-base64.c: Likewise.
28967         * lib/localename.c: Insert space before sizeof's argument list.
28968         * lib/safe-alloc.h: Likewise.
28969         * lib/file-set.h: Insert space before macro argument list.
28970         * tests/test-argp.c: Likewise.
28971         * lib/argp-namefrob.h: Insert space before function parameter list.
28972         * lib/getaddrinfo.c: Likewise.
28973         * lib/netdb.in.h: Likewise.
28974         * lib/parse-duration.h: Likewise.
28975         * lib/parse-duration.c: Likewise.
28976         * lib/poll.c: Likewise.
28977         * lib/select.c: Likewise.
28978         * lib/trim.h: Likewise.
28979         * tests/test-usleep.c: Likewise.
28980         * lib/ldexpl.c: Insert space before function parameter list and before
28981         function argument list.
28982         * lib/logl.c: Likewise.
28983         * lib/sqrtl.c: Likewise.
28984         * lib/trim.c: Likewise.
28985         * lib/cosl.c: Use GNU style indentation. Insert space before function
28986         argument list.
28987         * lib/sinl.c: Likewise.
28988         * lib/tsearch.c: Insert space after 'for'.
28989         Reported by Jim Meyering.
28990
28991 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
28992
28993         * maint.mk (sc_Wundef_boolean): Check for the presence of the
28994         config header before grepping, as it's not present before
28995         autoreconf/configure are run.  Reported by Simon Josefsson.
28996
28997 2010-03-23  Bruno Haible  <bruno@clisp.org>
28998
28999         pt_chown: Make it work with automake < 1.11.
29000         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
29001         Reported by Simon Josefsson.
29002
29003 2010-03-23  Bruno Haible  <bruno@clisp.org>
29004
29005         pt_chown: Don't depend on GPLed modules.
29006         * lib/pt_chown.c: Don't include idpriv.h.
29007         (main): Don't drop privileges.
29008         * modules/pt_chown (Depends-on): Remove idpriv-drop.
29009         Reported by Simon Josefsson.
29010
29011 2010-03-24  Simon Josefsson  <simon@josefsson.org>
29012
29013         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
29014         suggestions from karl@freefriends.org (Karl Berry).
29015
29016 2010-03-22  Eric Blake  <eblake@redhat.com>
29017
29018         gethostname: further tweaks
29019         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
29020         are overriding gethostname.
29021         Suggested by Bruno Haible.
29022
29023 2010-03-21  Bruno Haible  <bruno@clisp.org>
29024
29025         Fix comments.
29026         * lib/forkpty.c (rpl_forkpty): Fix comment.
29027         * lib/openpty.c (rpl_openpty): Likewise.
29028         Reported by Eric Blake.
29029
29030 2010-03-22  Eric Blake  <eblake@redhat.com>
29031
29032         gethostname: fix build on mingw
29033         * lib/unistd.in.h (includes): Work around fact that mingw
29034         <winsock2.h> re-includes <unistd.h>, by avoiding any
29035         redeclarations if we are being included by <winsock2.h>.
29036         Reported by Matthias Bolte.
29037
29038 2010-03-21  Bruno Haible  <bruno@clisp.org>
29039
29040         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
29041         * lib/forkpty.c (forkpty): New replacement function, from glibc with
29042         modifications.
29043         * lib/pty.in.h (forkpty): Update declaration. Add comments.
29044         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
29045         provide the replacement.
29046         * modules/forkpty (Depends-on): Add openpty, login_tty.
29047         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
29048         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
29049         * doc/glibc-functions/forkpty.texi: More supported platforms.
29050         * config/srclist.txt: Add forkpty.c (commented).
29051
29052 2010-03-21  Bruno Haible  <bruno@clisp.org>
29053
29054         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
29055         (Makefile.am): Verify that PTY_LIB is defined.
29056
29057         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
29058
29059 2010-03-21  Bruno Haible  <bruno@clisp.org>
29060
29061         Tests for module 'login_tty'.
29062         * modules/login_tty-tests: New file.
29063         * tests/test-login_tty.c: New file.
29064
29065         New module 'login_tty'.
29066         * lib/login_tty.c: New file.
29067         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
29068         * modules/login_tty: New file.
29069         * doc/glibc-functions/login_tty.texi: Mention the new module.
29070
29071 2010-03-21  Bruno Haible  <bruno@clisp.org>
29072
29073         login_tty: Documentation.
29074         * doc/glibc-functions/login_tty.texi: New file.
29075         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
29076
29077 2010-03-21  Bruno Haible  <bruno@clisp.org>
29078
29079         pty: Consistent macro naming.
29080         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
29081         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
29082         * modules/pty (configure.ac): Update.
29083
29084 2010-03-21  Bruno Haible  <bruno@clisp.org>
29085
29086         Tests for openpty: Make stricter.
29087         * tests/test-openpty.c (main): Add test of canonical processing and
29088         erase.
29089         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
29090
29091         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
29092         * lib/openpty.c (openpty): New replacement function.
29093         * lib/pty.in.h: Include <termios.h>.
29094         (openpty): Update declaration. Add comments.
29095         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
29096         is not declared, arrange to provide the replacement. Check for _getpty
29097         and posix_openpt.
29098         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
29099         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
29100         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
29101         * modules/pty-tests (test_pty_c___LDADD): New variable.
29102         * doc/glibc-functions/openpty.texi: More supported platforms.
29103
29104 2010-03-21  Bruno Haible  <bruno@clisp.org>
29105
29106         setenv: Tweaks.
29107         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
29108         the test program.
29109         * doc/posix-functions/setenv.texi: Update platforms list.
29110
29111 2010-03-21  Bruno Haible  <bruno@clisp.org>
29112
29113         New module 'unlockpt'.
29114         * lib/unlockpt.c: New file, from glibc with modifications.
29115         * m4/unlockpt.m4: New file.
29116         * modules/unlockpt: New file.
29117         * lib/stdlib.in.h (unlockpt): New declaration.
29118         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
29119         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
29120         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
29121         HAVE_UNLOCKPT.
29122         * doc/posix-functions/unlockpt.texi: Mention the new module.
29123         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
29124         * config/srclist.txt: Add unlockpt.c (commented).
29125
29126 2010-03-21  Jim Meyering  <meyering@redhat.com>
29127
29128         maint.mk: prohibit inclusion of "intprops.h" without use
29129         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
29130
29131 2010-03-21  Bruno Haible  <bruno@clisp.org>
29132
29133         New module 'grantpt'.
29134         * lib/grantpt.c: New file, from glibc with modifications.
29135         * m4/grantpt.m4: New file.
29136         * modules/grantpt: New file.
29137         * lib/stdlib.in.h (grantpt): New declaration.
29138         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
29139         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
29140         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
29141         HAVE_GRANTPT.
29142         * doc/posix-functions/grantpt.texi: Mention the new module.
29143         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
29144         * config/srclist.txt: Add grantpt.c (commented).
29145
29146 2010-03-21  Bruno Haible  <bruno@clisp.org>
29147
29148         New module 'pt_chown'.
29149         * lib/pt_chown.c: New file, from glibc with modifications.
29150         * lib/pty-private.h: New file, from glibc with modifications.
29151         * modules/pt_chown: New file.
29152         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
29153
29154 2010-03-21  Bruno Haible  <bruno@clisp.org>
29155
29156         Tests for module 'ptsname'.
29157         * modules/ptsname-tests: New file.
29158         * tests/test-ptsname.c: New file.
29159
29160         New module 'ptsname'.
29161         * lib/ptsname.c: New file, from glibc with modifications.
29162         * m4/ptsname.m4: New file.
29163         * modules/ptsname: New file.
29164         * lib/stdlib.in.h (ptsname): New declaration.
29165         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
29166         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
29167         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
29168         HAVE_PTSNAME.
29169         * doc/posix-functions/ptsname.texi: Mention the new module.
29170         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
29171         * config/srclist.txt: Add ptsname.c (commented).
29172
29173 2010-03-21  Bruno Haible  <bruno@clisp.org>
29174
29175         Tests for module 'ttyname_r'.
29176         * modules/ttyname_r-tests: New file.
29177         * tests/test-ttyname_r.c: New file.
29178
29179         New module 'ttyname_r'.
29180         * lib/ttyname_r.c: New file.
29181         * m4/ttyname_r.m4: New file.
29182         * modules/ttyname_r: New file.
29183         * lib/unistd.in.h (ttyname_r): New declaration.
29184         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
29185         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
29186         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
29187         HAVE_TTYNAME_R.
29188         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
29189         * doc/posix-functions/ttyname_r.texi: Mention the new module.
29190
29191 2010-03-20  Bruno Haible  <bruno@clisp.org>
29192
29193         signal: Undefine macro definitions in C++ mode.
29194         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
29195         sigfillset): Undefine macro definitions from the system header in C++
29196         mode.
29197         Reported by John W. Eaton <jwe@gnu.org>.
29198
29199 2010-03-20  Bruno Haible  <bruno@clisp.org>
29200
29201         Ensure no #include statements inside extern "C" { ... }.
29202         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
29203         contain #include statements.
29204         * lib/time.in.h: Likewise.
29205
29206 2010-03-20  Bruno Haible  <bruno@clisp.org>
29207
29208         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
29209         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
29210         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
29211         Reported by John W. Eaton <jwe@gnu.org>.
29212
29213 2010-03-20  Bruno Haible  <bruno@clisp.org>
29214
29215         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
29216         Reported by Jim Meyering.
29217
29218 2010-03-20  Bruno Haible  <bruno@clisp.org>
29219
29220         pipe: Set errno upon failure.
29221         * lib/pipe.h: Specify that when -1 is returned, errno is set.
29222         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
29223         errno value in error message.
29224
29225 2010-03-20  Bruno Haible  <bruno@clisp.org>
29226             Jim Meyering  <meyering@redhat.com>
29227
29228         lchown: Avoid "unused variable" warning.
29229         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
29230
29231 2010-03-20  Bruno Haible  <bruno@clisp.org>
29232
29233         Work around unlink() bug on MacOS X 10.5.6.
29234         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
29235         attempting to unlink a parent directory.
29236         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
29237         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
29238         activate for the replacement function.
29239         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
29240
29241 2010-03-20  Bruno Haible  <bruno@clisp.org>
29242
29243         Fix link errors on Solaris 8.
29244         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
29245         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
29246
29247 2010-03-19  Jim Meyering  <meyering@redhat.com>
29248
29249         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
29250         The _LIBC implementation of build_range_exp correctly honors the
29251         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
29252         However, the non-_LIBC implementation would ignore that syntax-bit
29253         flag and return REG_ERANGE unconditionally.
29254         This change makes it honor that flag.
29255         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
29256         Make two pointer parameters "const".
29257         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
29258         (parse_bracket_exp): Update caller.
29259
29260         regex.m4: correct the reversed range endpoint ([b-a]) test
29261         * m4/regex.m4: When requiring that [b-a] evoke failure,
29262         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
29263         test pass once again for x86-based systems.
29264
29265 2010-03-19  Bruno Haible  <bruno@clisp.org>
29266
29267         scandir: Fix link error on Solaris 8.
29268         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
29269         macros.
29270
29271 2010-03-19  Bruno Haible  <bruno@clisp.org>
29272
29273         getusershell: Fix documentation.
29274         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
29275         module.
29276         * doc/glibc-functions/setusershell.texi: Likewise.
29277
29278         getusershell: Provide declaration, missing on Solaris 9.
29279         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
29280         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
29281         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
29282         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
29283         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
29284         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
29285         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
29286         HAVE_GETUSERSHELL.
29287         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
29288
29289 2010-03-19  Bruno Haible  <bruno@clisp.org>
29290
29291         wctype: Provide iswblank function.
29292         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
29293         exists and is fine.
29294         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
29295         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
29296         * tests/test-wctype.c (main): Re-enable the iswblank tests.
29297         * doc/posix-functions/iswblank.texi: Update.
29298
29299 2010-03-19  Bruno Haible  <bruno@clisp.org>
29300
29301         Tests of module 'pty' in C++ mode.
29302         * modules/pty-tests: New file.
29303         * tests/test-pty-c++.cc: New file.
29304         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
29305
29306 2010-03-19  Eric Blake  <eblake@redhat.com>
29307
29308         logb: fix documentation
29309         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
29310         1.5 declaration bug.
29311
29312         forkpty, openpty: prefer glibc's const-safe prototype
29313         * lib/forkpty.c (rpl_forkpty): New file.
29314         * lib/openpty.c (rpl_openpty): Likewise.
29315         * modules/forkpty (Files): Distribute it.
29316         * modules/openpty (Files): Likewise.
29317         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
29318         check...
29319         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
29320         replacement for for non-const BSD signature.
29321         * modules/pty (Makefile.am): Substitute witnesses.
29322         * lib/pty.in.h (forkpty, openpty): Declare replacements.
29323         * tests/test-forkpty.c: Update signature check.
29324         * tests/test-openpty.c: Likewise.
29325         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
29326         * doc/glibc-functions/openpty.texi (openpty): Likewise.
29327
29328         forkpty, openpty: split functions into new modules
29329         * modules/pty (Makefile.am): Substitute new witnesses.
29330         (Libraries): Move library detection...
29331         * modules/forkpty: ...into new module.
29332         * modules/openpty: Another new module.
29333         * modules/pty-tests: Rename and split...
29334         * modules/forkpty-tests: ...to this...
29335         * modules/openpty-tests: ...and this.
29336         * tests/test-pty.c: Rename and split...
29337         * tests/test-forkpty.c: ...to this...
29338         * tests/test-openpty.c: ...and this.
29339         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
29340         (gl_PTY): Split library searching...
29341         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
29342         (gl_FORKPTY, gl_OPENPTY): New macros.
29343         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
29344         * NEWS: Mention the split.
29345         * MODULES.html.sh (Misc): Document the modules.
29346         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
29347         * doc/glibc-functions/openpty.texi (openpty): Likewise.
29348
29349         pty: improve replacement header
29350         * lib/pty.in.h: New file.
29351         * modules/pty (Files): Ship it.
29352         (Makefile.am): Always build replacement.
29353         * m4/pty.m4: Rename...
29354         * m4/pty_h.m4: ...to this.
29355         (gl_PTY): Modernize setting of witness macros; update check of
29356         forkpty to take proper advantage of cache.
29357         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
29358
29359         getopt: avoid compiler warning
29360         * lib/getopt.c (attribute_hidden): Remove unused macro.
29361
29362 2010-03-18  Bruno Haible  <bruno@clisp.org>
29363
29364         Fix link errors on Solaris 8.
29365         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
29366         * modules/search-tests (test_search_c___LDADD): Likewise.
29367         * modules/signal-tests (test_signal_c___LDADD): Likewise.
29368         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
29369         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
29370         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
29371         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
29372         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
29373         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
29374
29375 2010-03-18  Bruno Haible  <bruno@clisp.org>
29376
29377         Fix bug introduced on 2010-03-14.
29378         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
29379         (gl_SPAWN_H): Require it.
29380         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
29381         Reported by Simon Josefsson.
29382
29383 2010-03-18  Bruno Haible  <bruno@clisp.org>
29384
29385         Fix typo introduced on 2009-12-31.
29386         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
29387         posix_spawn_file_actions_adddup2.
29388
29389 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
29390         and Eric Blake  <eblake@redhat.com>
29391
29392         test-vc-list-files-git: make more robust
29393         * tests/test-vc-list-files-git.sh: Unset problematic environment
29394         variables.  Chain commands together.
29395
29396 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
29397
29398         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
29399         `AC_CHECK_DECL' invocation.
29400
29401 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
29402
29403         * lib/inttostr.c (inttostr): Make sure the invocation of verify
29404         appears before executable statements. Suggested by Petr Sumbera
29405         <Petr.Sumbera@Sun.COM>.
29406
29407 2010-03-14  Bruno Haible  <bruno@clisp.org>
29408
29409         * tests/test-flock.c (test_exclusive): Comment out a test that causes
29410         portability problems. Instead use a simpler test.
29411         (main): Check that invalid arguments are rejected only on Linux.
29412
29413 2010-03-14  Bruno Haible  <bruno@clisp.org>
29414
29415         Fix bug introduced on 2009-12-31.
29416         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
29417         gl_PREREQ_SYS_H_WINSOCK2 always.
29418         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
29419         SYS_SOCKET_H variable.
29420         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
29421         Update comments.
29422         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
29423         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
29424         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
29425         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
29426         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
29427
29428 2010-03-14  Bruno Haible  <bruno@clisp.org>
29429
29430         Fix values returned by sinl, cosl.
29431         * lib/trigl.h: Add specification comments.
29432         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
29433         that combines the values from the precomputed table with the values of
29434         the Chebyshev polynomials.
29435
29436 2010-03-14  Bruno Haible  <bruno@clisp.org>
29437
29438         Fix compilation error when modules 'posix_spawn[p]' are not used.
29439         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
29440         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
29441
29442 2010-03-14  Bruno Haible  <bruno@clisp.org>
29443
29444         Fix compilation error on mingw when module 'time_r' is not used.
29445         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
29446         is 1.
29447         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
29448         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
29449         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
29450         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
29451
29452 2010-03-14  Bruno Haible  <bruno@clisp.org>
29453
29454         Fix compilation error with Sun C.
29455         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
29456         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
29457         instead of GCC specific ULONG_LONG_MAX.
29458         * lib/xstrtoll.c: Likewise.
29459         * lib/xstrtoull.c: Likewise.
29460
29461 2010-03-13  Bruno Haible  <bruno@clisp.org>
29462
29463         Allow the user to disable C++ code and tests.
29464         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
29465         (gl_PROG_ANSI_CXX): Require it.
29466
29467 2010-03-13  Bruno Haible  <bruno@clisp.org>
29468
29469         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
29470         cases.
29471
29472 2010-03-13  Bruno Haible  <bruno@clisp.org>
29473
29474         Test that gnulib does not break the standard C++ headers.
29475         * tests/test-locale-c++2.cc: New file.
29476         * modules/locale-tests (Files): Add it.
29477         (Makefile.am): Compile it for test-locale-c++.
29478         * tests/test-math-c++2.cc: New file.
29479         * modules/math-tests (Files): Add it.
29480         (Makefile.am): Compile it for test-math-c++.
29481         * tests/test-signal-c++2.cc: New file.
29482         * modules/signal-tests (Files): Add it.
29483         (Makefile.am): Compile it for test-signal-c++.
29484         * tests/test-stdio-c++2.cc: New file.
29485         * modules/stdio-tests (Files): Add it.
29486         (Makefile.am): Compile it for test-stdio-c++.
29487         * tests/test-stdlib-c++2.cc: New file.
29488         * modules/stdlib-tests (Files): Add it.
29489         (Makefile.am): Compile it for test-stdlib-c++.
29490         * tests/test-string-c++2.cc: New file.
29491         * modules/string-tests (Files): Add it.
29492         (Makefile.am): Compile it for test-string-c++.
29493         * tests/test-time-c++2.cc: New file.
29494         * modules/time-tests (Files): Add it.
29495         (Makefile.am): Compile it for test-time-c++.
29496         Reported by John W. Eaton <jwe@gnu.org>.
29497
29498 2010-03-13  Bruno Haible  <bruno@clisp.org>
29499
29500         * gnulib-tool (func_usage): Clarify which options are available for
29501         --create-testdir and --create-megatestdir.
29502
29503 2010-03-13  Bruno Haible  <bruno@clisp.org>
29504
29505         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
29506         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
29507         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
29508         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
29509         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
29510         when appropriate.
29511         Reported by Jim Meyering.
29512
29513 2010-03-12  Simon Josefsson  <simon@josefsson.org>
29514
29515         * gnulib-tool (func_import): Explain origin of code.
29516
29517 2010-03-12  Bruno Haible  <bruno@clisp.org>
29518
29519         Fix problem with automake's definition of CXXLINK.
29520         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
29521         Reported by Simon Josefsson and Ludovic Courtès.
29522
29523 2010-03-12  Bruno Haible  <bruno@clisp.org>
29524
29525         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
29526         stable releases.
29527
29528 2010-03-11  Bruno Haible  <bruno@clisp.org>
29529
29530         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
29531         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
29532         whether the system provides one variant or multiple variants of the
29533         function.
29534         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
29535         C++ compilers.
29536         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
29537         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
29538         Reported by Jim Meyering.
29539
29540 2010-03-09  Simon Josefsson  <simon@josefsson.org>
29541
29542         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
29543
29544 2010-03-08  Bruno Haible  <bruno@clisp.org>
29545
29546         gnulib-tool: Add support for --libtool in --create-testdir.
29547         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
29548         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
29549
29550 2010-03-08  Eric Blake  <eblake@redhat.com>
29551
29552         gnulib-tool.texi: mention possibility of git submodule
29553         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
29554         submodules.
29555         * doc/.gitignore: Ignore another generated file.
29556
29557 2010-03-08  Karl Berry  <karl@gnu.org>
29558
29559         * doc/gnulib-tool.texi (VCS Issues): Mention third option
29560         of committing gnulib files while skipping others.
29561
29562 2010-03-07  Bruno Haible  <bruno@clisp.org>
29563
29564         Tests of module 'wctype' in C++ mode.
29565         * tests/test-wctype-c++.cc: New file.
29566         * modules/wctype-tests (Files): Add it and tests/signature.h.
29567         (Depends-on): Add ansi-c++-opt.
29568         (Makefile.am): Arrange to compile and run test-wctype-c++.
29569
29570         Tests of module 'wchar' in C++ mode.
29571         * tests/test-wchar-c++.cc: New file.
29572         * modules/wchar-tests (Files): Add it and tests/signature.h.
29573         (Depends-on): Add ansi-c++-opt.
29574         (Makefile.am): Arrange to compile and run test-wchar-c++.
29575         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
29576         gl_MODULE_INDICATOR.
29577
29578         Tests of module 'unistd' in C++ mode.
29579         * tests/test-unistd-c++.cc: New file.
29580         * modules/unistd-tests (Files): Add it and tests/signature.h.
29581         (Depends-on): Add ansi-c++-opt.
29582         (Makefile.am): Arrange to compile and run test-unistd-c++.
29583         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
29584         gl_MODULE_INDICATOR.
29585
29586         Tests of module 'time' in C++ mode.
29587         * tests/test-time-c++.cc: New file.
29588         * modules/time-tests (Files): Add it and tests/signature.h.
29589         (Depends-on): Add ansi-c++-opt.
29590         (Makefile.am): Arrange to compile and run test-time-c++.
29591         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
29592
29593         Tests of module 'sys_time' in C++ mode.
29594         * tests/test-sys_time-c++.cc: New file.
29595         * modules/sys_time-tests (Files): Add it and tests/signature.h.
29596         (Depends-on): Add ansi-c++-opt.
29597         (Makefile.am): Arrange to compile and run test-sys_time-c++.
29598         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
29599         gl_MODULE_INDICATOR.
29600
29601         Tests of module 'sys_stat' in C++ mode.
29602         * tests/test-sys_stat-c++.cc: New file.
29603         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
29604         (Depends-on): Add ansi-c++-opt.
29605         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
29606         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
29607         gl_MODULE_INDICATOR.
29608
29609         Tests of module 'sys_socket' in C++ mode.
29610         * tests/test-sys_socket-c++.cc: New file.
29611         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
29612         (Depends-on): Add ansi-c++-opt.
29613         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
29614         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
29615         gl_MODULE_INDICATOR.
29616
29617         Tests of module 'sys_select' in C++ mode.
29618         * tests/test-sys_select-c++.cc: New file.
29619         * modules/sys_select-tests (Files): Add it and tests/signature.h.
29620         (Depends-on): Add ansi-c++-opt.
29621         (Makefile.am): Arrange to compile and run test-sys_select-c++.
29622         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
29623         gl_MODULE_INDICATOR.
29624
29625         Tests of module 'sys_ioctl' in C++ mode.
29626         * tests/test-sys_ioctl-c++.cc: New file.
29627         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
29628         (Depends-on): Add ansi-c++-opt.
29629         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
29630         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
29631         gl_MODULE_INDICATOR.
29632
29633         Tests of module 'string' in C++ mode.
29634         * tests/test-string-c++.cc: New file.
29635         * modules/string-tests (Files): Add it and tests/signature.h.
29636         (Depends-on): Add ansi-c++-opt.
29637         (Makefile.am): Arrange to compile and run test-string-c++.
29638         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
29639         gl_MODULE_INDICATOR.
29640
29641         Tests of module 'stdlib' in C++ mode.
29642         * tests/test-stdlib-c++.cc: New file.
29643         * modules/stdlib-tests (Files): Add it and tests/signature.h.
29644         (Depends-on): Add ansi-c++-opt.
29645         (Makefile.am): Arrange to compile and run test-stdlib-c++.
29646         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
29647         gl_MODULE_INDICATOR.
29648
29649         Tests of module 'stdio' in C++ mode.
29650         * tests/test-stdio-c++.cc: New file.
29651         * modules/stdio-tests (Files): Add it and tests/signature.h.
29652         (Depends-on): Add ansi-c++-opt.
29653         (Makefile.am): Arrange to compile and run test-stdio-c++.
29654         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
29655         gl_MODULE_INDICATOR.
29656
29657         Tests of module 'spawn' in C++ mode.
29658         * tests/test-spawn-c++.cc: New file.
29659         * modules/spawn-tests (Files): Add it and tests/signature.h.
29660         (Depends-on): Add ansi-c++-opt.
29661         (Makefile.am): Arrange to compile and run test-spawn-c++.
29662         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
29663         gl_MODULE_INDICATOR.
29664
29665         Tests of module 'signal' in C++ mode.
29666         * tests/test-signal-c++.cc: New file.
29667         * modules/signal-tests (Files): Add it and tests/signature.h.
29668         (Depends-on): Add ansi-c++-opt.
29669         (Makefile.am): Arrange to compile and run test-signal-c++.
29670         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
29671         gl_MODULE_INDICATOR.
29672
29673         Tests of module 'search' in C++ mode.
29674         * tests/test-search-c++.cc: New file.
29675         * modules/search-tests (Files): Add it and tests/signature.h.
29676         (Depends-on): Add ansi-c++-opt.
29677         (Makefile.am): Arrange to compile and run test-search-c++.
29678         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
29679         gl_MODULE_INDICATOR.
29680
29681         Tests of module 'math' in C++ mode.
29682         * tests/test-math-c++.cc: New file.
29683         * modules/math-tests (Files): Add it and tests/signature.h.
29684         (Depends-on): Add ansi-c++-opt.
29685         (Makefile.am): Arrange to compile and run test-math-c++.
29686         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
29687
29688         Tests of module 'locale' in C++ mode.
29689         * tests/test-locale-c++.cc: New file.
29690         * modules/locale-tests (Files): Add it and tests/signature.h.
29691         (Depends-on): Add ansi-c++-opt.
29692         (Makefile.am): Arrange to compile and run test-locale-c++.
29693         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
29694         gl_MODULE_INDICATOR.
29695
29696         Tests of module 'langinfo' in C++ mode.
29697         * tests/test-langinfo-c++.cc: New file.
29698         * modules/langinfo-tests (Files): Add it and tests/signature.h.
29699         (Depends-on): Add ansi-c++-opt.
29700         (Makefile.am): Arrange to compile and run test-langinfo-c++.
29701         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
29702         gl_MODULE_INDICATOR.
29703
29704         Tests of module 'iconv-h' in C++ mode.
29705         * tests/test-iconv-h-c++.cc: New file.
29706         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
29707         (Depends-on): Add ansi-c++-opt.
29708         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
29709
29710         Tests of module 'glob' in C++ mode.
29711         * tests/test-glob-c++.cc: New file.
29712         * modules/glob-tests (Files): Add it.
29713         (Depends-on): Add ansi-c++-opt.
29714         (Makefile.am): Arrange to compile and run test-glob-c++.
29715
29716         Tests of module 'fcntl-h' in C++ mode.
29717         * tests/test-fcntl-h-c++.cc: New file.
29718         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
29719         (Depends-on): Add ansi-c++-opt.
29720         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
29721         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
29722         gl_MODULE_INDICATOR.
29723
29724         Tests of module 'dirent' in C++ mode.
29725         * tests/test-dirent-c++.cc: New file.
29726         * modules/dirent-tests (Files): Add it and tests/signature.h.
29727         (Depends-on): Add ansi-c++-opt.
29728         (Makefile.am): Arrange to compile and run test-dirent-c++.
29729         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
29730         gl_MODULE_INDICATOR.
29731
29732         New module 'ansi-c++-opt'.
29733         * modules/ansi-c++-opt: New file.
29734         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
29735
29736         Document C++ namespace mode.
29737         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
29738
29739         wctype: Avoid #define replacements in C++ mode.
29740         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
29741         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
29742         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
29743         In C++, define a namespaced alias symbol.
29744         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
29745         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
29746         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
29747         rule.
29748
29749         wchar: Avoid #define replacements in C++ mode.
29750         * lib/wchar.in.h: Include c++defs.h.
29751         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
29752         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
29753         symbol.
29754         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
29755         * modules/wchar (Depends-on): Add c++defs.
29756         (Makefile.am): Update wchar.h rule.
29757
29758         unistd: Avoid #define replacements in C++ mode.
29759         * lib/unistd.in.h: Include c++defs.h.
29760         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
29761         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
29762         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
29763         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
29764         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
29765         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
29766         symbol.
29767         (environ): Update.
29768         * modules/unistd (Depends-on): Add c++defs.
29769         (Makefile.am): Update unistd.h rule.
29770
29771         time: Avoid #define replacements in C++ mode.
29772         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
29773         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
29774         define a namespaced alias symbol.
29775         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
29776         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
29777         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
29778         * modules/time (Depends-on): Add c++defs, warn-on-use.
29779         (Makefile.am): Update time.h rule.
29780         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
29781         * modules/nanosleep (configure.ac): Likewise.
29782         * modules/strptime (configure.ac): Likewise.
29783         * modules/timegm (configure.ac): Likewise.
29784
29785         sys_time: Avoid #define replacements in C++ mode.
29786         * lib/sys_time.in.h: Include c++defs.h.
29787         (gettimeofday): In C++, define a namespaced alias symbol.
29788         * modules/sys_time (Depends-on): Add c++defs.
29789         (Makefile.am): Update sys/time.h rule.
29790
29791         sys_stat: Avoid #define replacements in C++ mode.
29792         * lib/sys_stat.in.h: Include c++defs.h.
29793         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
29794         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
29795         namespaced alias symbol.
29796         In C++, define a namespaced alias symbol.
29797         * modules/sys_stat (Depends-on): Add c++defs.
29798         (Makefile.am): Update sys/stat.h rule.
29799
29800         sys_socket: Avoid #define replacements in C++ mode.
29801         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
29802         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
29803         definitions also when the system has a <sys/socket.h>.
29804         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
29805         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
29806         In C++, define a namespaced alias symbol.
29807         * modules/sys_socket (Depends-on): Add c++defs.
29808         (Makefile.am): Update sys/socket.h rule.
29809
29810         sys_select: Avoid #define replacements in C++ mode.
29811         * lib/sys_select.in.h: Include c++defs.h. Enable the function
29812         definitions also when the system has a <sys/select.h>.
29813         (select): In C++, define a namespaced alias symbol.
29814         * modules/sys_select (Depends-on): Add c++defs.
29815         (Makefile.am): Update sys/select.h rule.
29816
29817         sys_ioctl: Avoid #define replacements in C++ mode.
29818         * lib/sys_ioctl.in.h: Include c++defs.h.
29819         (ioctl): In C++, define a namespaced alias symbol.
29820         * modules/sys_ioctl (Depends-on): Add c++defs.
29821         (Makefile.am): Update sys/ioctl.h rule.
29822
29823         string: Avoid #define replacements in C++ mode.
29824         * lib/string.in.h: Include c++defs.h.
29825         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
29826         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
29827         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
29828         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
29829         strsignal, strverscmp): In C++, define a namespaced alias symbol.
29830         * modules/string (Depends-on): Add c++defs.
29831         (Makefile.am): Update string.h rule.
29832
29833         stdlib: Avoid #define replacements in C++ mode.
29834         * lib/stdlib.in.h: Include c++defs.h.
29835         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
29836         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
29837         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
29838         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
29839         symbol.
29840         * modules/stdlib (Depends-on): Add c++defs.
29841         (Makefile.am): Update stdlib.h rule.
29842
29843         stdio: Avoid #define replacements in C++ mode.
29844         * lib/stdio.in.h: Include c++defs.h.
29845         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
29846         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
29847         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
29848         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
29849         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
29850         namespaced alias symbol.
29851         * modules/stdio (Depends-on): Add c++defs.
29852         (Makefile.am): Update stdio.h rule.
29853
29854         spawn: Avoid #define replacements in C++ mode.
29855         * lib/spawn.in.h: Include c++defs.h.
29856         (posix_spawn, posix_spawnp, posix_spawnattr_init,
29857         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
29858         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
29859         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
29860         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
29861         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
29862         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
29863         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
29864         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
29865         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
29866         In C++, define a namespaced alias symbol.
29867         * modules/spawn (Depends-on): Add c++defs.
29868         (Makefile.am): Update spawn.h rule.
29869
29870         signal: Avoid #define replacements in C++ mode.
29871         * lib/signal.in.h: Include c++defs.h.
29872         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
29873         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
29874         namespaced alias symbol.
29875         * modules/signal (Depends-on): Add c++defs.
29876         (Makefile.am): Update signal.h rule.
29877
29878         search: Avoid #define replacements in C++ mode.
29879         * lib/search.in.h: Include c++defs.h.
29880         (_gl_search_compar_fn, _gl_search_action_fn): New types.
29881         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
29882         symbol.
29883         * modules/search (Depends-on): Add c++defs.
29884         (Makefile.am): Update search.h rule.
29885
29886         math: Avoid #define replacements in C++ mode.
29887         * lib/math.in.h: Include c++defs.h.
29888         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
29889         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
29890         trunc, truncl): In C++, define a namespaced alias symbol.
29891         * modules/math (Depends-on): Add c++defs.
29892         (Makefile.am): Update math.h rule.
29893
29894         locale: Avoid #define replacements in C++ mode.
29895         * lib/locale.in.h: Include c++defs.h.
29896         (duplocale): In C++, define a namespaced alias symbol.
29897         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
29898         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
29899         * modules/locale (Depends-on): Add c++defs.
29900         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
29901
29902         langinfo: Avoid #define replacements in C++ mode.
29903         * lib/langinfo.in.h: Include c++defs.h.
29904         (nl_langinfo): In C++, define a namespaced alias symbol.
29905         * modules/langinfo (Depends-on): Add c++defs.
29906         (Makefile.am): Update langinfo.h rule.
29907
29908         iconv-h: Avoid #define replacements in C++ mode.
29909         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
29910         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
29911         symbol.
29912         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
29913         whenever iconv is present.
29914         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
29915         (Makefile.am): Update iconv.h rule.
29916
29917         glob: Avoid #define replacements in C++ mode.
29918         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
29919         (_gl_glob_errfunc_fn): New type.
29920         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
29921         symbol.
29922         * modules/glob (Depends-on): Add c++defs, warn-on-use.
29923         (Makefile.am): Update glob.h rule.
29924
29925         fcntl-h: Avoid #define replacements in C++ mode.
29926         * lib/fcntl.in.h: Include c++defs.h.
29927         (fcntl, open, openat): In C++, define a namespaced alias symbol.
29928         * modules/fcntl-h (Depends-on): Add c++defs.
29929         (Makefile.am): Update fcntl.h rule.
29930
29931         dirent: Avoid #define replacements in C++ mode.
29932         * lib/dirent.in.h: Include c++defs.h.
29933         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
29934         namespaced alias symbol.
29935         (dirfd): Update declaration.
29936         * modules/dirent (Depends-on): Add c++defs.
29937         (Makefile.am): Update dirent.h rule.
29938
29939         ctype: Make it usable in C++ code.
29940         * lib/ctype.in.h: Include c++defs.h.
29941         (isblank): Declare as extern "C".
29942         * modules/ctype (Depends-on): Add c++defs.
29943         (Makefile.am): Update ctype.h rule.
29944
29945         New module 'c++defs'.
29946         * modules/c++defs: New file.
29947         * build-aux/c++defs.h: New file.
29948         Reported by John W. Eaton <jwe@gnu.org>.
29949
29950 2010-03-07  Bruno Haible  <bruno@clisp.org>
29951
29952         logb: Provide missing declaration for Cygwin.
29953         * lib/math.in.h (logb): New declaration.
29954         * m4/logb.m4: New file.
29955         * modules/logb (Files): Add m4/logb.m4.
29956         (Depends-on): Add math.
29957         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
29958         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
29959         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
29960         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
29961         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
29962
29963 2010-03-07  Bruno Haible  <bruno@clisp.org>
29964
29965         Fix test-cond link error.
29966         * tests/test-cond.c: Include <stdio.h>.
29967
29968 2010-03-07  Bruno Haible  <bruno@clisp.org>
29969
29970         Fix test-dirent-safer link error.
29971         * modules/dirent-safer-tests (Makefile.am): Define
29972         test_dirent_safer_LDADD.
29973
29974 2010-03-07  Bruno Haible  <bruno@clisp.org>
29975
29976         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
29977         among default module list.
29978
29979 2010-03-07  Bruno Haible  <bruno@clisp.org>
29980
29981         Fix link error on platforms with GNU libiconv.
29982         * modules/unistr/u8-strcoll-tests (Makefile): Define
29983         test_u8_strcoll_LDADD.
29984         * modules/unistr/u16-strcoll-tests (Makefile): Define
29985         test_u16_strcoll_LDADD.
29986         * modules/unistr/u32-strcoll-tests (Makefile): Define
29987         test_u32_strcoll_LDADD.
29988
29989 2010-03-07  Bruno Haible  <bruno@clisp.org>
29990
29991         Use POSIX declarations for socket functions.
29992         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
29993         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
29994         rpl_sendto): Change declaration to match POSIX.
29995         * lib/connect.c (rpl_connect): Likewise.
29996         * lib/accept.c (rpl_accept): Likewise.
29997         * lib/bind.c (rpl_bind): Likewise.
29998         * lib/getpeername.c (rpl_getpeername): Likewise.
29999         * lib/getsockname.c (rpl_getsockname): Likewise.
30000         * lib/recv.c (rpl_recv): Likewise.
30001         * lib/send.c (rpl_send): Likewise.
30002         * lib/recvfrom.c (rpl_recvfrom): Likewise.
30003         * lib/sendto.c (rpl_sendto): Likewise.
30004
30005 2010-03-06  Bruno Haible  <bruno@clisp.org>
30006
30007         Clarify access, euidaccess, faccessat.
30008         * doc/posix-functions/faccessat.texi: Mention security problem under
30009         "Other problems", not "Portability problems".
30010         * doc/posix-functions/access.texi: Likewise. Mention a related security
30011         problem.
30012         * doc/glibc-functions/euidaccess.texi: Mention security problems.
30013         * lib/euidaccess.c: Add comments about platforms.
30014         * lib/unistd.in.h (access, euidaccess): Add warnings.
30015
30016 2010-03-07  Bruno Haible  <bruno@clisp.org>
30017
30018         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
30019         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
30020         (POSIX_SPAWN_SETSCHEDULER): Likewise.
30021         (POSIX_SPAWN_USEVFORK): Define in a way that works when
30022         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
30023         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
30024         declare when POSIX_SPAWN_SETSCHEDULER is zero.
30025         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
30026         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
30027         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
30028         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
30029         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
30030         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
30031         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
30032         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
30033         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
30034         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
30035         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
30036         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
30037         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
30038         Likewise.
30039         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
30040         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
30041         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
30042         Likewise.
30043         * tests/test-spawn.c (main): Make it work when
30044         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
30045
30046 2010-03-07  Bruno Haible  <bruno@clisp.org>
30047
30048         Fix incorrect Makefile.am generation in German locale.
30049         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
30050         Execute sed command with character range in C locale.
30051
30052 2010-03-06  Bruno Haible  <bruno@clisp.org>
30053
30054         Tests for module 'iconv-h'.
30055         * modules/iconv-h-tests: New file.
30056         * tests/test-iconv-h.c: New file.
30057
30058         New module 'iconv-h'.
30059         * modules/iconv-h: New file.
30060         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
30061         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
30062         (configure.ac): Remove gl_ICONV_H.
30063         (Makefile.am): Remove rule for iconv.h.
30064
30065 2010-03-06  Bruno Haible  <bruno@clisp.org>
30066
30067         More consistent naming of *.m4 files.
30068         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
30069         * modules/wctype (Files): Update.
30070
30071         More consistent naming of *.m4 files.
30072         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
30073         * modules/wchar (Files): Update.
30074
30075 2010-03-06  Jim Meyering  <meyering@redhat.com>
30076
30077         euidaccess: relax license to LGPLv2+
30078         * modules/euidaccess (License): Relax to LGPLv2+.
30079
30080 2010-03-06  Bruno Haible  <bruno@clisp.org>
30081
30082         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
30083         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
30084         (Makefile.am): Augment lib_SOURCES instead.
30085
30086 2010-03-04  Jim Meyering  <meyering@redhat.com>
30087
30088         utime: remove obsolete module
30089         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
30090         unnecessary for years, and has been marked as obsolete for 10 months.
30091         * modules/utime: Remove file.
30092         * lib/utime.c: Remove file.
30093         * m4/utime.m4: Remove file.
30094         * m4/utimes-null.m4: Remove file.
30095         * doc/posix-functions/utime.texi (utime): Remove reference to
30096         the module.  Move the sole "fixed by gnulib" item into the
30097         "problems not fixed by Gnulib" list.
30098         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
30099
30100 2010-03-05  Simon Josefsson  <simon@josefsson.org>
30101
30102         * modules/exit (License): Relax license to LGPLv2+.
30103         (Status): Mark as obsolete.
30104         * NEWS: Mention deprecated 'exit' module.
30105         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
30106         of now obsolete 'exit'.
30107
30108 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30109
30110         fts-lgpl: remove unused module
30111         * modules/fts-lgpl: Remove.
30112         * MODULES.html.sh (func_all_modules): Adjust.
30113         * check-module (find_included_lib_files): Adjust.
30114         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
30115
30116 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
30117
30118         copy-acl: enhance Solaris ACL error handling
30119         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
30120         * lib/set-mode-acl.c (qset_acl): Likewise.
30121
30122 2010-03-02  Bruno Haible  <bruno@clisp.org>
30123
30124         spawn: Don't override the system defined values on FreeBSD 8.
30125         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
30126         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
30127         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
30128         if HAVE_POSIX_SPAWN is 1.
30129         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
30130
30131 2010-03-01  Bruno Haible  <bruno@clisp.org>
30132
30133         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
30134         regarding Automake.
30135
30136 2010-02-25  Bruno Haible  <bruno@clisp.org>
30137
30138         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
30139         * gnulib-tool: Define 'echo' as a function only before the ksh alias
30140         setting, not afterwards.
30141         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
30142
30143 2010-02-24  Eric Blake  <eblake@redhat.com>
30144
30145         bootstrap, git-version-gen: use timestamp
30146         * build-aux/git-version-gen (scriptversion): Force UTC.
30147         * build-aux/bootstrap (scriptversion): New variable.
30148
30149         bootstrap: allow older git
30150         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
30151         older than 1.6.4.  Requested by the libvirt project.
30152
30153 2010-02-23  Eric Blake  <eblake@redhat.com>
30154
30155         warn-on-use: work with old autoconf
30156         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
30157         AS_VAR semantics of autoconf 2.60.
30158         Reported by Bruno Haible.
30159
30160         bootstrap: improve some comments
30161         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
30162         clarification comments.
30163
30164         gettimeofday: provide correct function
30165         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
30166         when replacement is declared, otherwise provide gettimeofday.
30167         Reported by Michael Goffioul.
30168
30169 2010-02-23  Jim Meyering  <meyering@redhat.com>
30170
30171         lib-ignore: relax license to "unlimited", not LGPLv2+
30172         * modules/lib-ignore (License): Relax to "unlimited".
30173
30174 2010-02-23  Jim Meyering  <meyering@redhat.com>
30175
30176         lib-ignore: relax license to LGPLv2+
30177         * modules/lib-ignore (License): Relax to LGPLv2+.
30178
30179 2010-02-22  Eric Blake  <eblake@redhat.com>
30180
30181         lseek: avoid bash 3.2 broken pipe bug
30182         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
30183         warning from bash 3.2.
30184         Reported by Ben Pfaff, with analysis from Bruno Haible.
30185
30186         bootstrap: support non-FSF copyright holder
30187         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
30188         bootstrap.conf override of COPYRIGHT_HOLDER.
30189         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
30190
30191         bootstrap: interoperate with gettext 0.14.1
30192         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
30193
30194         bootstrap: allow for alternate submodule location
30195         * build-aux/bootstrap (gnulib_path): New variable; use instead of
30196         hardcoding submodule location.
30197         (gnulib_mk): Allow direct use of Makefile.am.
30198
30199         bootstrap: use GNULIB_SRCDIR to reduce disk usage
30200         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
30201         rather than reconfiguring where the submodule points.
30202
30203         gettimeofday: restore support for platforms that lack function
30204         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
30205         replacement if function is missing.
30206         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
30207         * modules/sys_time (Makefile.am): Substitute it.
30208         * lib/sys_time.in.h (gettimeofday): Check it.
30209         Reported by Michael Goffioul.
30210
30211 2010-02-21  Bruno Haible  <bruno@clisp.org>
30212
30213         * lib/stdio.in.h (obstack_printf): Fix typo.
30214
30215 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
30216
30217         vc-list-files: use bzr ls's -R option
30218         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
30219         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
30220
30221 2010-02-21  Jim Meyering  <meyering@redhat.com>
30222
30223         init.sh: fix EXEEXT shims to work also for names like test-prog
30224         * tests/init.sh: Re-exec a better shell, when needed.
30225         If the current shell lacks support for posix $(...), an init.sh-using
30226         test will now try to find a shell that supports that.  If EXEEXT is
30227         nonempty, we also require support for hyphen-in-alias-name and shell
30228         substitutions like ${var#glob}.  Failure to find such a shell results
30229         in a skipped test.
30230
30231 2010-02-21  Bruno Haible  <bruno@clisp.org>
30232
30233         Really work around around "broken pipe" error message from bash 3.2.
30234         * gnulib-tool (func_reset_sigpipe): Remove function.
30235         (echo): In bash 3.2, define to a function that uses printf.
30236         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
30237
30238 2010-02-20  Bruno Haible  <bruno@clisp.org>
30239
30240         Restore support for automake 1.9.6 with autoconf 2.61.
30241         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
30242         Reported by James Youngman <jay@gnu.org>.
30243
30244 2010-02-20  Bruno Haible  <bruno@clisp.org>
30245
30246         Improve *printf warning condition.
30247         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
30248         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
30249         and the function is overridden due to SIGPIPE emulation.
30250
30251 2010-02-20  Bruno Haible  <bruno@clisp.org>
30252
30253         * lib/stdio.in.h: Tweak comments.
30254
30255 2010-02-19  Bruno Haible  <bruno@clisp.org>
30256
30257         Make it easier to find modules. New gnulib-tool option '--find'.
30258         * gnulib-tool: New option --find.
30259         (func_usage): Document it.
30260         (func_sanitize_modulelist): New function, extracted from
30261         func_all_modules.
30262         (func_all_modules): Invoke it.
30263         * doc/gnulib-tool.texi (Which modules?): New node.
30264
30265 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
30266
30267         * lib/sys_select.in.h: Provide select replacement even if
30268         sys/select.h exists on a system, for Interix.
30269
30270 2010-02-18  Jim Meyering  <meyering@redhat.com>
30271
30272         init.sh: don't use $(...) just yet
30273         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
30274         to accommodate e.g., Solaris' /bin/sh.
30275
30276 2010-02-17  Bruno Haible  <bruno@clisp.org>
30277
30278         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
30279         Reported by Ludovic Courtès <ludo@gnu.org>.
30280
30281 2010-02-16  Simon Josefsson  <simon@josefsson.org>
30282
30283         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
30284         linking with -lintl.
30285
30286 2010-02-17  Simon Josefsson  <simon@josefsson.org>
30287
30288         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
30289         if not provided by the system's netdb.h.  Reported by
30290         ludo@gnu.org (Ludovic Courtès).
30291
30292 2010-02-15  Jim Meyering  <meyering@redhat.com>
30293
30294         init.sh: improve portability and efficiency
30295         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
30296         "dummy" in a for loop.
30297         Use '!', not '^' to select the complement of a character set used
30298         in a "case" statement.
30299         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
30300         Suggestions from Eric Blake.
30301
30302         init.sh: automatically accommodate programs with the .exe suffix
30303         Automatically arrange for an invocation of "prog" to execute the
30304         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
30305         may use the simpler "prog", yet still work when built on a system
30306         that requires specifying the added suffix.
30307         Do this by constructing a function named "prog" that invokes
30308         "prog.exe" for each .exe file in selected directories.
30309         * tests/init.sh (find_exe_basenames_): New function.
30310         (create_exe_shim_functions_): New function.
30311         (path_prepend_): Use it.
30312
30313         maint.mk: mark syntax-check sc_*.m rules as .PHONY
30314         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
30315         "make -t syntax-check" doesn't create a ton of sc_*.m files.
30316
30317 2010-02-14  Jim Meyering  <meyering@redhat.com>
30318
30319         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
30320         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
30321         (sc_prohibit_hash_pjw_without_use): New rule.
30322
30323         maint.mk: allow the default upload destination dir to be overridden
30324         * top/maint.mk (upload_dest_dir_): Define with a default that
30325         preserves the status quo.
30326         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
30327         Reported by Peter Simons.
30328
30329         maint.mk: prohibit inclusion of "hash.h" without_use
30330         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
30331
30332 2010-02-10  Jim Meyering  <meyering@redhat.com>
30333
30334         maint.mk: prohibit inclusion of "ignore-value.h" without_use
30335         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
30336
30337 2010-02-09  Eric Blake  <ebb9@byu.net>
30338         and Bruno Haible  <bruno@clisp.org>
30339
30340         obstack-printf-posix: ensure declaration
30341         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
30342         extracted from gl_FUNC_OBSTACK_PRINTF.
30343         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
30344         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
30345         Likewise.
30346         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
30347         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
30348         0.
30349
30350 2010-02-08  Bruno Haible  <bruno@clisp.org>
30351
30352         gnulib-tool: Fix typo in 2010-02-07 commit.
30353         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
30354         Reported by Eric Blake.
30355
30356 2010-02-07  Bruno Haible  <bruno@clisp.org>
30357
30358         gnulib-tool: Fix up caching patches.
30359         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
30360         option --no-cache. Use associative arrays when supported by the shell.
30361         (sed_comments): New variable.
30362         (modcache): Renamed from do_cache.
30363         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
30364         abbreviate unnecessarily.
30365         (have_associative): New variable.
30366         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
30367         way also for ksh and zsh.
30368         (func_init_sed_convert_to_cache_statements): New function, extracted
30369         from func_cache_lookup_module. Add support for associative arrays.
30370         Don't set the c_MODULE_cached variable here. Ignore all lines before
30371         the first field header. Remove only the final newline, not all trailing
30372         newlines. Support empty fields correctly. Limit the use of 'eval' to
30373         assignments.
30374         (func_get_description, func_get_status, func_get_notice,
30375         func_get_applicability, func_get_filelist, func_get_dependencies,
30376         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
30377         func_get_automake_snippet, func_get_include_directive,
30378         func_get_link_directive, func_get_license, func_get_maintainer):
30379         Update documentation. List the unoptimized code first. Add support for
30380         associative arrays. Limit the use of 'eval' to assignments.
30381         (func_get_applicability): Undo stylistic pessimisations.
30382         (func_get_automake_snippet, func_get_include_directive): Reduce code
30383         duplication.
30384         (func_modules_transitive_closure, func_modules_add_dummy,
30385         func_modules_notice, func_modules_to_filelist, func_add_file,
30386         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
30387         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
30388         func_create_testdir, func_create_megatestdir): Update documentation.
30389
30390 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30391
30392         * gnulib-tool (func_cache_lookup_module): Store the module name
30393         belonging to the cache variable; error out if two different
30394         module names map to the same cache variable name.
30395
30396 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30397
30398         gnulib-tool: Make caching optional.
30399         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
30400         Update matching short versions of --no-changelog.
30401         (func_usage): Update.
30402         (sed_extract_cache_prog): Renamed from ...
30403         (sed_extract_prog): ... this; revert to old extraction script.
30404         (func_get_description, func_get_status)
30405         (func_get_notice, func_get_applicability, func_get_filelist)
30406         (func_get_dependencies, func_get_autoconf_early_snippet)
30407         (func_get_autoconf_snippet, func_get_automake_snippet)
30408         (func_get_include_directive, func_get_link_directive)
30409         (func_get_license, func_get_maintainer): If $do_cache is false,
30410         use old, non-caching extraction scripts.
30411         Suggestion by Bruno Haible.
30412
30413 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30414
30415         gnulib-tool: cache module metainformation.
30416         * gnulib-tool (sed_extract_prog): Match newline before each
30417         header, and rewrite header to a shell variable suffix.
30418         (func_cache_var, func_cache_lookup_module): New functions,
30419         to turn a module name into a cache variable prefix, and to
30420         look up and cache module metainformation.
30421         (func_get_description, func_get_status)
30422         (func_get_notice, func_get_applicability, func_get_filelist)
30423         (func_get_dependencies, func_get_autoconf_early_snippet)
30424         (func_get_autoconf_snippet, func_get_automake_snippet)
30425         (func_get_include_directive, func_get_link_directive)
30426         (func_get_license, func_get_maintainer): Use
30427         func_cache_lookup_module.
30428
30429 2010-02-07  Bruno Haible  <bruno@clisp.org>
30430
30431         fnctl: Fix missing dependency.
30432         * modules/fcntl (Depends-on): Add getdtablesize.
30433         Reported by John W. Eaton <jwe@gnu.org>.
30434
30435 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
30436
30437         Argp: fix recognition of short alias options.
30438
30439         * lib/argp-parse.c (convert_options): Fix improper use of
30440         `|' between character values.
30441         * tests/test-argp.c (group1_option): New alias option
30442         --read (-r).
30443         (group1_parser): Special handling for 'r'.
30444         (test15): New test case.
30445         (test_fun): Add test15.
30446         * tests/test-argp-2.sh: Update expected --help and --usage
30447         outputs.
30448
30449 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
30450
30451         * tests/test-argp.c: Fix indentation.
30452
30453 2010-02-04  Eric Blake  <ebb9@byu.net>
30454
30455         gettimeofday: expose type of second argument
30456         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
30457         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
30458         * tests/test-gettimeofday.c: Use it to silence warning.
30459         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
30460         the issue.
30461
30462 2010-02-03  Jim Meyering  <meyering@redhat.com>
30463
30464         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
30465         * lib/regcomp.c (TYPE_SIGNED): Define.
30466         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
30467
30468         regcomp.c: avoid a new -Wshadow warning
30469         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
30470
30471 2010-02-01  Jim Meyering  <meyering@redhat.com>
30472
30473         removing useless parentheses in cpp #define directives
30474         For motivation, see commit c0221df4, "define STREQ(a,b)
30475         consistently, removing useless parentheses"
30476         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
30477         * lib/mountlist.c (MNT_IGNORE): Likewise.
30478         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
30479
30480 2010-02-01  Eric Blake  <ebb9@byu.net>
30481
30482         sys_time: use link-warning
30483         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
30484         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
30485         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
30486         * modules/sys_time (Depends-on): Add warn-on-use.
30487         (Makefile.am): Always build replacement.
30488         (configure.ac): Update substitutions.
30489         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
30490         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
30491         bother with SYS_TIME_H.
30492         * modules/gettimeofday (configure.ac): Declare indicator.
30493         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
30494         in use.
30495
30496         closein-tests: silence compiler warning
30497         * tests/test-closein.c (main): Ignore fread result.
30498         * modules/closein-tests (Depends-on): Add ignore-value.
30499
30500         tests: silence warning about system return
30501         * tests/test-areadlink-with-size.c (main): Ignore system result.
30502         * tests/test-areadlink.c (main): Likewise.
30503         * tests/test-areadlinkat-with-size.c (main): Likewise.
30504         * tests/test-areadlinkat.c (main): Likewise.
30505         * tests/test-canonicalize-lgpl.c (main): Likewise.
30506         * tests/test-canonicalize.c (main): Likewise.
30507         * tests/test-chown.c (main): Likewise.
30508         * tests/test-fchownat.c (main): Likewise.
30509         * tests/test-fdutimensat.c (main): Likewise.
30510         * tests/test-fstatat.c (main): Likewise.
30511         * tests/test-futimens.c (main): Likewise.
30512         * tests/test-lchown.c (main): Likewise.
30513         * tests/test-link.c (main): Likewise.
30514         * tests/test-linkat.c (main): Likewise.
30515         * tests/test-lstat.c (main): Likewise.
30516         * tests/test-mkdir.c (main): Likewise.
30517         * tests/test-mkdirat.c (main): Likewise.
30518         * tests/test-mkfifo.c (main): Likewise.
30519         * tests/test-mkfifoat.c (main): Likewise.
30520         * tests/test-mknod.c (main): Likewise.
30521         * tests/test-readlink.c (main): Likewise.
30522         * tests/test-remove.c (main): Likewise.
30523         * tests/test-rename.c (main): Likewise.
30524         * tests/test-renameat.c (main): Likewise.
30525         * tests/test-rmdir.c (main): Likewise.
30526         * tests/test-symlink.c (main): Likewise.
30527         * tests/test-symlinkat.c (main): Likewise.
30528         * tests/test-unlink.c (main): Likewise.
30529         * tests/test-unlinkat.c (main): Likewise.
30530         * tests/test-utimens.c (main): Likewise.
30531         * tests/test-utimensat.c (main): Likewise.
30532         * modules/areadlink-tests (Depends-on): Add ignore-value.
30533         * modules/areadlink-with-size-tests (Depends-on): Likewise.
30534         * modules/areadlinkat-tests (Depends-on): Likewise.
30535         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
30536         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
30537         * modules/canonicalize-tests (Depends-on): Likewise.
30538         * modules/chown-tests (Depends-on): Likewise.
30539         * modules/fdutimensat-tests (Depends-on): Likewise.
30540         * modules/futimens-tests (Depends-on): Likewise.
30541         * modules/lchown-tests (Depends-on): Likewise.
30542         * modules/link-tests (Depends-on): Likewise.
30543         * modules/linkat-tests (Depends-on): Likewise.
30544         * modules/lstat-tests (Depends-on): Likewise.
30545         * modules/mkdir-tests (Depends-on): Likewise.
30546         * modules/mkfifo-tests (Depends-on): Likewise.
30547         * modules/mkfifoat-tests (Depends-on): Likewise.
30548         * modules/mknod-tests (Depends-on): Likewise.
30549         * modules/openat-tests (Depends-on): Likewise.
30550         * modules/readlink-tests (Depends-on): Likewise.
30551         * modules/remove-tests (Depends-on): Likewise.
30552         * modules/rename-tests (Depends-on): Likewise.
30553         * modules/renameat-tests (Depends-on): Likewise.
30554         * modules/rmdir-tests (Depends-on): Likewise.
30555         * modules/symlink-tests (Depends-on): Likewise.
30556         * modules/symlinkat-tests (Depends-on): Likewise.
30557         * modules/unlink-tests (Depends-on): Likewise.
30558         * modules/utimens-tests (Depends-on): Likewise.
30559         * modules/utimensat-tests (Depends-on): Likewise.
30560
30561 2010-01-31  Bruno Haible  <bruno@clisp.org>
30562
30563         Perform the same test for many <math.h> functions.
30564         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
30565         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
30566         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
30567         of gl_MATHFUNC.
30568         * modules/acos (configure.ac): Likewise.
30569         * modules/asin (configure.ac): Likewise.
30570         * modules/atan (configure.ac): Likewise.
30571         * modules/atan2 (configure.ac): Likewise.
30572         * modules/cbrt (configure.ac): Likewise.
30573         * modules/copysign (configure.ac): Likewise.
30574         * modules/cos (configure.ac): Likewise.
30575         * modules/cosh (configure.ac): Likewise.
30576         * modules/erf (configure.ac): Likewise.
30577         * modules/erfc (configure.ac): Likewise.
30578         * modules/exp (configure.ac): Likewise.
30579         * modules/fmod (configure.ac): Likewise.
30580         * modules/hypot (configure.ac): Likewise.
30581         * modules/j0 (configure.ac): Likewise.
30582         * modules/j1 (configure.ac): Likewise.
30583         * modules/jn (configure.ac): Likewise.
30584         * modules/lgamma (configure.ac): Likewise.
30585         * modules/log (configure.ac): Likewise.
30586         * modules/log10 (configure.ac): Likewise.
30587         * modules/log1p (configure.ac): Likewise.
30588         * modules/pow (configure.ac): Likewise.
30589         * modules/remainder (configure.ac): Likewise.
30590         * modules/sin (configure.ac): Likewise.
30591         * modules/sinh (configure.ac): Likewise.
30592         * modules/tan (configure.ac): Likewise.
30593         * modules/tanh (configure.ac): Likewise.
30594         * modules/y0 (configure.ac): Likewise.
30595         * modules/y1 (configure.ac): Likewise.
30596         * modules/yn (configure.ac): Likewise.
30597         Suggested by Paolo Bonzini.
30598
30599 2010-01-31  Bruno Haible  <bruno@clisp.org>
30600
30601         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
30602
30603 2010-01-31  Bruno Haible  <bruno@clisp.org>
30604
30605         Work around getdelim() bug on FreeBSD 8.0.
30606         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
30607         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
30608         not work.
30609         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
30610         is 1.
30611         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
30612         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
30613         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
30614         a non-zero size.
30615         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
30616
30617 2010-01-31  Bruno Haible  <bruno@clisp.org>
30618
30619         Work around getline() bug on FreeBSD 8.0.
30620         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
30621         and a non-zero size.
30622         * tests/test-getline.c (main): Likewise.
30623         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
30624         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
30625
30626 2010-01-28  Eric Blake  <ebb9@byu.net>
30627
30628         regex: fix build failure
30629         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
30630         platforms.
30631
30632 2010-01-28  Jim Meyering  <meyering@redhat.com>
30633
30634         regex: do not ignore memory allocation failure
30635         * lib/regex_internal.c (create_cd_newstate): Detect
30636         re_node_set_init_copy failure.   Extracted from glibc commit
30637         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
30638
30639         regex: sync more white-space changes from libc
30640         * lib/regex_internal.c: White-space only changes.
30641         * lib/regexec.c: Likewise.
30642
30643         regex: add many uses of __attribute_warn_unused_result__
30644         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
30645         * lib/regexec.c: Likewise.
30646         Extracted from a messy glibc commit.
30647
30648         regcomp.c: spelling and merge-artifact from glibc
30649         * lib/regcomp.c: Merge remainder of glibc's
30650         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
30651
30652         regcomp.c: sync white-space changes from glibc
30653         * lib/regcomp.c: Merge to accommodate white space
30654         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
30655
30656         regcomp.c: do not ignore internal return values
30657         * lib/regcomp.c: Do not ignore internal return values.
30658         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
30659         but without its white-space changes and spelling fixes.
30660
30661         regex_internal.h: define __attribute_warn_unused_result__
30662         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
30663
30664         maint: add a syntax-check rule to check for vulnerable Makefile.in
30665         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
30666
30667 2010-01-27  Jim Meyering  <meyering@redhat.com>
30668
30669         ncftpput-ftp: clean up spaces
30670         * build-aux/ncftpput-ftp: Make Copyright line consistent.
30671         Remove trailing blanks.
30672
30673 2010-01-27  Simon Josefsson  <simon@josefsson.org>
30674
30675         * build-aux/git-version-gen: Fix copyright statement.
30676         * build-aux/gnupload: Likewise.
30677         * tests/test-arcfour.c: Likewise.
30678         * tests/test-arctwo.c: Likewise.
30679         * tests/test-count-one-bits.c: Likewise.
30680         * tests/test-crc.c: Likewise.
30681         * tests/test-des.c: Likewise.
30682         * tests/test-gc-arcfour.c: Likewise.
30683         * tests/test-gc-arctwo.c: Likewise.
30684         * tests/test-gc-des.c: Likewise.
30685         * tests/test-gc-hmac-md5.c: Likewise.
30686         * tests/test-gc-hmac-sha1.c: Likewise.
30687         * tests/test-gc-md2.c: Likewise.
30688         * tests/test-gc-md4.c: Likewise.
30689         * tests/test-gc-md5.c: Likewise.
30690         * tests/test-gc-pbkdf2-sha1.c: Likewise.
30691         * tests/test-gc-rijndael.c: Likewise.
30692         * tests/test-gc-sha1.c: Likewise.
30693         * tests/test-gc.c: Likewise.
30694         * tests/test-gethostname.c: Likewise.
30695         * tests/test-gettimeofday.c: Likewise.
30696         * tests/test-hash.c: Likewise.
30697         * tests/test-hmac-md5.c: Likewise.
30698         * tests/test-hmac-sha1.c: Likewise.
30699         * tests/test-md2.c: Likewise.
30700         * tests/test-md4.c: Likewise.
30701         * tests/test-md5.c: Likewise.
30702         * tests/test-memchr.c: Likewise.
30703         * tests/test-memchr2.c: Likewise.
30704         * tests/test-memcmp.c: Likewise.
30705         * tests/test-memmem.c: Likewise.
30706         * tests/test-memrchr.c: Likewise.
30707         * tests/test-rawmemchr.c: Likewise.
30708         * tests/test-read-file.c: Likewise.
30709         * tests/test-rijndael.c: Likewise.
30710         * tests/test-sockets.c: Likewise.
30711         * tests/test-strchrnul.c: Likewise.
30712         * tests/test-strstr.c: Likewise.
30713         * tests/test-strtod.c: Likewise.
30714         * build-aux/ncftpput-ftp: Likewise.
30715
30716 2010-01-26  Eric Blake  <ebb9@byu.net>
30717
30718         ignore-value: update recommended header name
30719         * modules/ignore-value (Include): Only use <> for headers that
30720         exist in glibc.
30721
30722 2010-01-26  Jim Meyering  <meyering@redhat.com>
30723
30724         test-userspec.c: avoid compiler warnings
30725         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
30726         and "initialization discards qualifiers..." warnings.
30727         Put the first "uid" in its own scope, and make char* members "const".
30728
30729 2010-01-25  Bruno Haible  <bruno@clisp.org>
30730
30731         gnulib-tool: Make warning diagnostics consistent.
30732         * gnulib-tool (func_warning): New function.
30733         Use it everywhere where gnulib-tool produces output to stderr and it is
30734         not a fatal error.
30735
30736 2010-01-25  Bruno Haible  <bruno@clisp.org>
30737
30738         Fix test dependencies.
30739         * modules/xstrtol-tests (Depends-on): Add inttypes.
30740         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
30741
30742 2010-01-25 Pádraig Brady <P@draigBrady.com>
30743
30744         syntax-check: detect incorrect boolean macro values in config.h
30745         * modules/maintainer-makefile (configure.ac): Parameterize the location
30746         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
30747         The logic is from Eric Blake and the location indicated by Jim Meyering.
30748         Note the more natural CONFIG_HEADER name is prohibited by automake
30749         for backwards compatibility reasons.
30750         * top/maint.mk (sc_Wundef_boolean): New rule.
30751
30752 2010-01-25  Jim Meyering  <meyering@redhat.com>
30753
30754         bootstrap: detect MacOS 10.6's shasum, too
30755         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
30756         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
30757
30758 2010-01-23  Jim Meyering  <meyering@redhat.com>
30759
30760         xstrtoll: new module
30761         * modules/xstrtoll: New file.
30762         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
30763         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
30764         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
30765         ./configure fails if you use this module and lack "long long".
30766         * modules/xstrtoll-tests: New module.
30767         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
30768         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
30769         new init.sh-based test framework.
30770
30771 2010-01-24  Bruno Haible  <bruno@clisp.org>
30772
30773         Tests for module 'yn'.
30774         * modules/yn-tests: New file.
30775         * tests/test-yn.c: New file.
30776
30777         Tests for module 'y1'.
30778         * modules/y1-tests: New file.
30779         * tests/test-y1.c: New file.
30780
30781         Tests for module 'y0'.
30782         * modules/y0-tests: New file.
30783         * tests/test-y0.c: New file.
30784
30785         Tests for module 'tanh'.
30786         * modules/tanh-tests: New file.
30787         * tests/test-tanh.c: New file.
30788
30789         Tests for module 'tan'.
30790         * modules/tan-tests: New file.
30791         * tests/test-tan.c: New file.
30792
30793         Tests for module 'sqrt'.
30794         * modules/sqrt-tests: New file.
30795         * tests/test-sqrt.c: New file.
30796
30797         Tests for module 'sinh'.
30798         * modules/sinh-tests: New file.
30799         * tests/test-sinh.c: New file.
30800
30801         Tests for module 'sin'.
30802         * modules/sin-tests: New file.
30803         * tests/test-sin.c: New file.
30804
30805         Tests for module 'rint'.
30806         * modules/rint-tests: New file.
30807         * tests/test-rint.c: New file.
30808
30809         Tests for module 'remainder'.
30810         * modules/remainder-tests: New file.
30811         * tests/test-remainder.c: New file.
30812
30813         Tests for module 'pow'.
30814         * modules/pow-tests: New file.
30815         * tests/test-pow.c: New file.
30816
30817         Tests for module 'nextafter'.
30818         * modules/nextafter-tests: New file.
30819         * tests/test-nextafter.c: New file.
30820
30821         Tests for module 'modf'.
30822         * modules/modf-tests: New file.
30823         * tests/test-modf.c: New file.
30824
30825         Tests for module 'logb'.
30826         * modules/logb-tests: New file.
30827         * tests/test-logb.c: New file.
30828
30829         Tests for module 'log1p'.
30830         * modules/log1p-tests: New file.
30831         * tests/test-log1p.c: New file.
30832
30833         Tests for module 'log10'.
30834         * modules/log10-tests: New file.
30835         * tests/test-log10.c: New file.
30836
30837         Tests for module 'log'.
30838         * modules/log-tests: New file.
30839         * tests/test-log.c: New file.
30840
30841         Tests for module 'lgamma'.
30842         * modules/lgamma-tests: New file.
30843         * tests/test-lgamma.c: New file.
30844
30845         Tests for module 'ldexp'.
30846         * modules/ldexp-tests: New file.
30847         * tests/test-ldexp.c: New file.
30848
30849         Tests for module 'jn'.
30850         * modules/jn-tests: New file.
30851         * tests/test-jn.c: New file.
30852
30853         Tests for module 'j1'.
30854         * modules/j1-tests: New file.
30855         * tests/test-j1.c: New file.
30856
30857         Tests for module 'j0'.
30858         * modules/j0-tests: New file.
30859         * tests/test-j0.c: New file.
30860
30861         Tests for module 'hypot'.
30862         * modules/hypot-tests: New file.
30863         * tests/test-hypot.c: New file.
30864
30865         Tests for module 'fmod'.
30866         * modules/fmod-tests: New file.
30867         * tests/test-fmod.c: New file.
30868
30869         Tests for module 'fabs'.
30870         * modules/fabs-tests: New file.
30871         * tests/test-fabs.c: New file.
30872
30873         Tests for module 'exp'.
30874         * modules/exp-tests: New file.
30875         * tests/test-exp.c: New file.
30876
30877         Tests for module 'erfc'.
30878         * modules/erfc-tests: New file.
30879         * tests/test-erfc.c: New file.
30880
30881         Tests for module 'erf'.
30882         * modules/erf-tests: New file.
30883         * tests/test-erf.c: New file.
30884
30885         Tests for module 'cosh'.
30886         * modules/cosh-tests: New file.
30887         * tests/test-cosh.c: New file.
30888
30889         Tests for module 'cos'.
30890         * modules/cos-tests: New file.
30891         * tests/test-cos.c: New file.
30892
30893         Tests for module 'copysign'.
30894         * modules/copysign-tests: New file.
30895         * tests/test-copysign.c: New file.
30896
30897         Tests for module 'cbrt'.
30898         * modules/cbrt-tests: New file.
30899         * tests/test-cbrt.c: New file.
30900
30901         Tests for module 'atan2'.
30902         * modules/atan2-tests: New file.
30903         * tests/test-atan2.c: New file.
30904
30905         Tests for module 'atan'.
30906         * modules/atan-tests: New file.
30907         * tests/test-atan.c: New file.
30908
30909         Tests for module 'asin'.
30910         * modules/asin-tests: New file.
30911         * tests/test-asin.c: New file.
30912
30913         Tests for module 'acos'.
30914         * modules/acos-tests: New file.
30915         * tests/test-acos.c: New file.
30916
30917 2010-01-24  Bruno Haible  <bruno@clisp.org>
30918
30919         Fix tests for common <math.h> functions.
30920         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
30921         code snippet that references the function pointer, rather than merely
30922         calling the function. Substitute the FUNC_LIBM variable.
30923         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
30924         * modules/acos (configure.ac): Likewise.
30925         * modules/asin (configure.ac): Likewise.
30926         * modules/atan (configure.ac): Likewise.
30927         * modules/atan2 (configure.ac): Likewise.
30928         * modules/cbrt (configure.ac): Likewise.
30929         * modules/copysign (configure.ac): Likewise.
30930         * modules/cos (configure.ac): Likewise.
30931         * modules/cosh (configure.ac): Likewise.
30932         * modules/erf (configure.ac): Likewise.
30933         * modules/erfc (configure.ac): Likewise.
30934         * modules/exp (configure.ac): Likewise.
30935         * modules/fabs (configure.ac): Likewise.
30936         * modules/fmod (configure.ac): Likewise.
30937         * modules/hypot (configure.ac): Likewise.
30938         * modules/j0 (configure.ac): Likewise.
30939         * modules/j1 (configure.ac): Likewise.
30940         * modules/jn (configure.ac): Likewise.
30941         * modules/ldexp (configure.ac): Likewise.
30942         * modules/lgamma (configure.ac): Likewise.
30943         * modules/log (configure.ac): Likewise.
30944         * modules/log10 (configure.ac): Likewise.
30945         * modules/log1p (configure.ac): Likewise.
30946         * modules/logb (configure.ac): Likewise.
30947         * modules/modf (configure.ac): Likewise.
30948         * modules/nextafter (configure.ac): Likewise.
30949         * modules/pow (configure.ac): Likewise.
30950         * modules/remainder (configure.ac): Likewise.
30951         * modules/rint (configure.ac): Likewise.
30952         * modules/sin (configure.ac): Likewise.
30953         * modules/sinh (configure.ac): Likewise.
30954         * modules/tan (configure.ac): Likewise.
30955         * modules/tanh (configure.ac): Likewise.
30956         * modules/y0 (configure.ac): Likewise.
30957         * modules/y1 (configure.ac): Likewise.
30958         * modules/yn (configure.ac): Likewise.
30959
30960 2010-01-24  Bruno Haible  <bruno@clisp.org>
30961
30962         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
30963         * tests/test-acosl.c (x): New variable.
30964         (main): Store argument in x and fetch it from x.
30965         * tests/test-asinl.c (x): New variable.
30966         (main): Store argument in x and fetch it from x.
30967         * tests/test-atanl.c (x): New variable.
30968         (main): Store argument in x and fetch it from x.
30969         * tests/test-cosl.c (x): New variable.
30970         (main): Store argument in x and fetch it from x.
30971         * tests/test-expl.c (x): New variable.
30972         (main): Store argument in x and fetch it from x.
30973         * tests/test-logl.c (x): New variable.
30974         (main): Store argument in x and fetch it from x.
30975         * tests/test-sinl.c (x): New variable.
30976         (main): Store argument in x and fetch it from x.
30977         * tests/test-sqrtl.c (x): New variable.
30978         (main): Store argument in x and fetch it from x.
30979         * tests/test-tanl.c (x): New variable.
30980         (main): Store argument in x and fetch it from x.
30981
30982 2010-01-24  Bruno Haible  <bruno@clisp.org>
30983
30984         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
30985         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
30986         assignments to the initial TESTS_ENVIRONMENT.
30987         * doc/gnulib.texi (Unit test modules): Document it.
30988         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
30989         TESTS_ENVIRONMENT.
30990         * modules/btowc-tests (Makefile.am): Likewise.
30991         * modules/c-stack-tests (Makefile.am): Likewise.
30992         * modules/c-strcase-tests (Makefile.am): Likewise.
30993         * modules/copy-file-tests (Makefile.am): Likewise.
30994         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
30995         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
30996         * modules/mbrtowc-tests (Makefile.am): Likewise.
30997         * modules/mbscasecmp-tests (Makefile.am): Likewise.
30998         * modules/mbscasestr-tests (Makefile.am): Likewise.
30999         * modules/mbschr-tests (Makefile.am): Likewise.
31000         * modules/mbscspn-tests (Makefile.am): Likewise.
31001         * modules/mbsinit-tests (Makefile.am): Likewise.
31002         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
31003         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
31004         * modules/mbspbrk-tests (Makefile.am): Likewise.
31005         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
31006         * modules/mbsrchr-tests (Makefile.am): Likewise.
31007         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
31008         * modules/mbsspn-tests (Makefile.am): Likewise.
31009         * modules/mbsstr-tests (Makefile.am): Likewise.
31010         * modules/nl_langinfo-tests (Makefile.am): Likewise.
31011         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
31012         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
31013         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
31014         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
31015         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
31016         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
31017         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
31018         * modules/wcrtomb-tests (Makefile.am): Likewise.
31019         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
31020         * modules/wcsrtombs-tests (Makefile.am): Likewise.
31021         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
31022         assignments from TESTS_ENVIRONMENT.
31023         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
31024         augmentation.
31025         * modules/argp-version-etc-tests (Makefile.am): Likewise.
31026         * modules/atexit-tests (Makefile.am): Likewise.
31027         * modules/binary-io-tests (Makefile.am): Likewise.
31028         * modules/closein-tests (Makefile.am): Likewise.
31029         * modules/dprintf-posix-tests (Makefile.am): Likewise.
31030         * modules/exclude-tests (Makefile.am): Likewise.
31031         * modules/fflush-tests (Makefile.am): Likewise.
31032         * modules/fpending-tests (Makefile.am): Likewise.
31033         * modules/fprintf-posix-tests (Makefile.am): Likewise.
31034         * modules/freadahead-tests (Makefile.am): Likewise.
31035         * modules/freadptr-tests (Makefile.am): Likewise.
31036         * modules/freadseek-tests (Makefile.am): Likewise.
31037         * modules/fseek-tests (Makefile.am): Likewise.
31038         * modules/fseeko-tests (Makefile.am): Likewise.
31039         * modules/ftell-tests (Makefile.am): Likewise.
31040         * modules/ftello-tests (Makefile.am): Likewise.
31041         * modules/idpriv-drop-tests (Makefile.am): Likewise.
31042         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
31043         * modules/lseek-tests (Makefile.am): Likewise.
31044         * modules/parse-duration-tests (Makefile.am): Likewise.
31045         * modules/perror-tests (Makefile.am): Likewise.
31046         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
31047         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
31048         * modules/pipe-tests (Makefile.am): Likewise.
31049         * modules/pread-tests (Makefile.am): Likewise.
31050         * modules/printf-posix-tests (Makefile.am): Likewise.
31051         * modules/select-tests (Makefile.am): Likewise.
31052         * modules/sigpipe-tests (Makefile.am): Likewise.
31053         * modules/tsearch-tests (Makefile.am): Likewise.
31054         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
31055         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
31056         * modules/uniname/uniname-tests (Makefile.am): Likewise.
31057         * modules/uniwidth/width-tests (Makefile.am): Likewise.
31058         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
31059         * modules/version-etc-tests (Makefile.am): Likewise.
31060         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
31061         * modules/vprintf-posix-tests (Makefile.am): Likewise.
31062         * modules/xalloc-die-tests (Makefile.am): Likewise.
31063         * modules/xprintf-posix-tests (Makefile.am): Likewise.
31064         * modules/xstrtoimax-tests (Makefile.am): Likewise.
31065         * modules/xstrtol-tests (Makefile.am): Likewise.
31066         * modules/xstrtoumax-tests (Makefile.am): Likewise.
31067         * modules/yesno-tests (Makefile.am): Likewise.
31068         Suggested by Jim Meyering.
31069
31070 2010-01-24  Bruno Haible  <bruno@clisp.org>
31071
31072         More documentation.
31073         * doc/gnulib.texi (Writing modules): New chapter.
31074         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
31075         the new chapter.
31076
31077 2010-01-24  Jim Meyering  <meyering@redhat.com>
31078
31079         maint.mk: do not prepend "./" after filtering
31080         * top/maint.mk (_prepend_srcdir_prefix): New variable
31081         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
31082         "./" when $(srcdir) is ".".
31083
31084         define STREQ(a,b) consistently, removing useless parentheses
31085         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
31086         since the only risk is that "a" or "b" contains an unparenthesized
31087         comma, but if either did that, STREQ would have 3 or more arguments.
31088         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
31089         * lib/fts.c (STREQ): Remove unnecessary parentheses.
31090         * lib/hash-triple.c (STREQ): Likewise.
31091         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
31092         * lib/getugroups.c (STREQ): Likewise.
31093
31094 2010-01-23  Jim Meyering  <meyering@redhat.com>
31095
31096         maint.mk: fix syntax-check in a non-srcdir build directory
31097         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
31098         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
31099
31100 2010-01-22  Jim Meyering  <meyering@redhat.com>
31101
31102         userspec: add unit tests
31103         * tests/test-userspec.c: New file.
31104         * modules/userspec-tests: Likewise.
31105
31106 2010-01-21  Jim Meyering  <meyering@redhat.com>
31107
31108         maint.mk: handle source file names containing "." robustly
31109         * top/maint.mk (_dot_escaped_srcdir): Define.
31110         (VC_LIST): Use it in LHS of sed substitution.
31111
31112 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
31113
31114         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
31115         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
31116         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
31117         from a non-srcdir build.
31118
31119 2010-01-20  Eric Blake  <ebb9@byu.net>
31120
31121         warn-on-use: use instead of link-warning
31122         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
31123         * modules/unistd (Depends-on, Makefile.am): Likewise.
31124         * modules/arpa_inet (Depends-on): Replace link-warning with
31125         warn-on-use.
31126         (Makefile.am): Update rules accordingly.
31127         * modules/ctype (Depends-on, Makefile.am): Likewise.
31128         * modules/dirent (Depends-on, Makefile.am): Likewise.
31129         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
31130         * modules/inttypes (Depends-on, Makefile.am): Likewise.
31131         * modules/langinfo (Depends-on, Makefile.am): Likewise.
31132         * modules/locale (Depends-on, Makefile.am): Likewise.
31133         * modules/math (Depends-on, Makefile.am): Likewise.
31134         * modules/search (Depends-on, Makefile.am): Likewise.
31135         * modules/signal (Depends-on, Makefile.am): Likewise.
31136         * modules/spawn (Depends-on, Makefile.am): Likewise.
31137         * modules/stdlib (Depends-on, Makefile.am): Likewise.
31138         * modules/string (Depends-on, Makefile.am): Likewise.
31139         * modules/strings (Depends-on, Makefile.am): Likewise.
31140         * modules/sys_file (Depends-on, Makefile.am): Likewise.
31141         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
31142         * modules/sys_select (Depends-on, Makefile.am): Likewise.
31143         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
31144         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
31145         * modules/sys_times (Depends-on, Makefile.am): Likewise.
31146         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
31147         * modules/wchar (Depends-on, Makefile.am): Likewise.
31148         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
31149         should be poisoned.
31150         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
31151         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
31152         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
31153         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
31154         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
31155         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
31156         * m4/math_h.m4 (gl_MATH_H): Likewise.
31157         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
31158         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
31159         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
31160         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
31161         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
31162         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
31163         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
31164         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
31165         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
31166         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
31167         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
31168         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
31169         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
31170         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
31171         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
31172         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
31173         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
31174         GL_LINK_WARNING.
31175         * lib/ctype.in.h: Likewise.
31176         * lib/dirent.in.h: Likewise.
31177         * lib/fcntl.in.h: Likewise.
31178         * lib/inttypes.in.h: Likewise.
31179         * lib/langinfo.in.h: Likewise.
31180         * lib/locale.in.h: Likewise.
31181         * lib/math.in.h: Likewise.
31182         * lib/search.in.h: Likewise.
31183         * lib/signal.in.h: Likewise.
31184         * lib/spawn.in.h: Likewise.
31185         * lib/stdio.in.h: Likewise.
31186         * lib/stdlib.in.h: Likewise.
31187         * lib/string.in.h: Likewise.
31188         * lib/strings.in.h: Likewise.
31189         * lib/sys_file.in.h: Likewise.
31190         * lib/sys_ioctl.in.h: Likewise.
31191         * lib/sys_select.in.h: Likewise.
31192         * lib/sys_socket.in.h: Likewise.
31193         * lib/sys_stat.in.h: Likewise.
31194         * lib/sys_times.in.h: Likewise.
31195         * lib/sys_utsname.in.h: Likewise.
31196         * lib/unistd.in.h: Likewise.
31197         * lib/wchar.in.h: Likewise.
31198
31199 2010-01-20  Bruno Haible  <bruno@clisp.org>
31200
31201         Avoid duplicate -lm.
31202         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
31203         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
31204         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
31205         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
31206         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
31207         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
31208         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
31209         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
31210         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
31211         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
31212         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
31213         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
31214         Reported by Paolo Bonzini.
31215
31216 2010-01-19  Bruno Haible  <bruno@clisp.org>
31217
31218         langinfo, nl_langinfo: Relicense under LGPLv2+.
31219         * modules/langinfo (License): Change to LGPLv2+.
31220         * modules/nl_langinfo (License): Likewise.
31221         Patch by David Lutterkort <lutter@redhat.com>.
31222
31223 2010-01-19  Bruno Haible  <bruno@clisp.org>
31224
31225         Avoid compilation error with cc on OSF/1 5.1.
31226         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
31227         statement, not before.
31228         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
31229
31230 2010-01-18  Bruno Haible  <bruno@clisp.org>
31231
31232         Avoid a link error due to the __printf__ symbol.
31233         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
31234         and 2.6.x.
31235         (__format__, __printf__): Remove definitions.
31236         * lib/argp-fmtstream.h: Likewise.
31237         * lib/argp.h: Likewise.
31238         * lib/error.h: Likewise.
31239         * lib/vasnprintf.h: Likewise.
31240         * lib/xprintf.h: Likewise.
31241         * lib/xvasprintf.h: Likewise.
31242         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
31243
31244 2010-01-18  Bruno Haible  <bruno@clisp.org>
31245
31246         Tests for module 'tanl'.
31247         * modules/tanl-tests: New file.
31248         * tests/test-tanl.c: New file.
31249
31250         Tests for module 'sqrtl'.
31251         * modules/sqrtl-tests: New file.
31252         * tests/test-sqrtl.c: New file.
31253
31254         Tests for module 'sinl'.
31255         * modules/sinl-tests: New file.
31256         * tests/test-sinl.c: New file.
31257
31258         Tests for module 'logl'.
31259         * modules/logl-tests: New file.
31260         * tests/test-logl.c: New file.
31261
31262         Tests for module 'expl'.
31263         * modules/expl-tests: New file.
31264         * tests/test-expl.c: New file.
31265
31266         Tests for module 'cosl'.
31267         * modules/cosl-tests: New file.
31268         * tests/test-cosl.c: New file.
31269
31270         Tests for module 'atanl'.
31271         * modules/atanl-tests: New file.
31272         * tests/test-atanl.c: New file.
31273
31274         Tests for module 'asinl'.
31275         * modules/asinl-tests: New file.
31276         * tests/test-asinl.c: New file.
31277
31278         Tests for module 'acosl'.
31279         * modules/acosl-tests: New file.
31280         * tests/test-acosl.c: New file.
31281
31282         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
31283         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
31284         tanl): Use the standard gnulib idiom.
31285         * lib/cosl.c: Don't include trigl.c and sincosl.c.
31286         * lib/sinl.c: Likewise.
31287         * lib/tanl.c: Don't include trigl.c.
31288         (kernel_tanl): Make static.
31289         * lib/sincosl.c: Include trigl.h first.
31290         * lib/trigl.c: Likewise.
31291         * m4/acosl.m4: New file.
31292         * m4/asinl.m4: New file.
31293         * m4/atanl.m4: New file.
31294         * m4/cosl.m4: New file.
31295         * m4/expl.m4: New file.
31296         * m4/logl.m4: New file.
31297         * m4/sinl.m4: New file.
31298         * m4/sqrtl.m4: New file.
31299         * m4/tanl.m4: New file.
31300         * m4/mathl.m4: Remove file.
31301         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
31302         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
31303         Don't initialize GNULIB_MATHL.
31304         * modules/acosl: New file.
31305         * modules/asinl: New file.
31306         * modules/atanl: New file.
31307         * modules/cosl: New file.
31308         * modules/expl: New file.
31309         * modules/logl: New file.
31310         * modules/sinl: New file.
31311         * modules/sqrtl: New file.
31312         * modules/tanl: New file.
31313         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
31314         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
31315         substitute GNULIB_MATHL.
31316         * modules/mathl: Rewritten.
31317         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
31318         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
31319         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
31320         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
31321         * doc/posix-functions/expl.texi: Mention the 'expl' module.
31322         * doc/posix-functions/logl.texi: Mention the 'logl' module.
31323         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
31324         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
31325         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
31326
31327 2010-01-18  Bruno Haible  <bruno@clisp.org>
31328
31329         sqrt: Make gl_FUNC_SQRT requirable.
31330         * m4/sqrt.m4: New file.
31331         * modules/sqrt (Files): Add it.
31332         (configure.ac): Invoke gl_FUNC_SQRT.
31333
31334 2010-01-18  Bruno Haible  <bruno@clisp.org>
31335
31336         New modules for common <math.h> functions.
31337         * m4/mathfunc.m4: New file.
31338         * modules/acos: New file.
31339         * modules/asin: New file.
31340         * modules/atan: New file.
31341         * modules/atan2: New file.
31342         * modules/cbrt: New file.
31343         * modules/copysign: New file.
31344         * modules/cos: New file.
31345         * modules/cosh: New file.
31346         * modules/erf: New file.
31347         * modules/erfc: New file.
31348         * modules/exp: New file.
31349         * modules/fabs: New file.
31350         * modules/fmod: New file.
31351         * modules/hypot: New file.
31352         * modules/j0: New file.
31353         * modules/j1: New file.
31354         * modules/jn: New file.
31355         * modules/ldexp: New file.
31356         * modules/lgamma: New file.
31357         * modules/log: New file.
31358         * modules/log10: New file.
31359         * modules/log1p: New file.
31360         * modules/logb: New file.
31361         * modules/modf: New file.
31362         * modules/nextafter: New file.
31363         * modules/pow: New file.
31364         * modules/remainder: New file.
31365         * modules/rint: New file.
31366         * modules/sin: New file.
31367         * modules/sinh: New file.
31368         * modules/sqrt: New file.
31369         * modules/tan: New file.
31370         * modules/tanh: New file.
31371         * modules/y0: New file.
31372         * modules/y1: New file.
31373         * modules/yn: New file.
31374         * doc/posix-functions/acos.texi: Mention the 'acos' module.
31375         * doc/posix-functions/asin.texi: Mention the 'asin' module.
31376         * doc/posix-functions/atan.texi: Mention the 'atan' module.
31377         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
31378         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
31379         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
31380         * doc/posix-functions/cos.texi: Mention the 'cos' module.
31381         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
31382         * doc/posix-functions/erf.texi: Mention the 'erf' module.
31383         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
31384         * doc/posix-functions/exp.texi: Mention the 'exp' module.
31385         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
31386         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
31387         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
31388         * doc/posix-functions/j0.texi: Mention the 'j0' module.
31389         * doc/posix-functions/j1.texi: Mention the 'j1' module.
31390         * doc/posix-functions/jn.texi: Mention the 'jn' module.
31391         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
31392         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
31393         * doc/posix-functions/log.texi: Mention the 'log' module.
31394         * doc/posix-functions/log10.texi: Mention the 'log10' module.
31395         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
31396         * doc/posix-functions/logb.texi: Mention the 'logb' module.
31397         * doc/posix-functions/modf.texi: Mention the 'modf' module.
31398         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
31399         * doc/posix-functions/pow.texi: Mention the 'pow' module.
31400         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
31401         * doc/posix-functions/rint.texi: Mention the 'rint' module.
31402         * doc/posix-functions/sin.texi: Mention the 'sin' module.
31403         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
31404         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
31405         * doc/posix-functions/tan.texi: Mention the 'tan' module.
31406         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
31407         * doc/posix-functions/y0.texi: Mention the 'y0' module.
31408         * doc/posix-functions/y1.texi: Mention the 'y1' module.
31409         * doc/posix-functions/yn.texi: Mention the 'yn' module.
31410
31411 2010-01-18  Jim Meyering  <meyering@redhat.com>
31412
31413         ignore-value: relax license to LGPLv2+
31414         * modules/ignore-value (License): Relax to LGPLv2+.
31415
31416         getdate: don't leak when TZ contains two or more '"'s
31417         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
31418         double quote in TZ after the first one.
31419
31420         readtokens: do not leak internal token_lengths buffer
31421         * lib/readtokens.c (readtokens): Free the local, lengths,
31422         when the supplied "token_lengths" parameter is NULL.
31423
31424 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31425
31426         Fix a couple of missing LIBTHREAD link failures on AIX.
31427         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
31428         $(LIBTHREAD).
31429         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
31430
31431         Link test-poll against INET_PTON_LIB.
31432         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
31433         for inet_pton on Solaris 10.
31434
31435 2010-01-17  Bruno Haible  <bruno@clisp.org>
31436
31437         unistdio/*-sprintf: Fix typo in module description.
31438         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
31439         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
31440         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
31441         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
31442         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
31443         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
31444         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
31445         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
31446
31447 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31448
31449         gnulib-tool: fix filelist for AIX, HP-UX ksh.
31450         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
31451         variables in shell case patterns, for AIX and HP-UX ksh.
31452
31453         Split large sed scripts, for HP-UX sed.
31454         * modules/stdio: Split sed scripts around 50 sed commands,
31455         to avoid HP-UX limit of 99 commands, in the near future.
31456         * modules/string: Likewise.
31457         * modules/unistd: Likewise.
31458
31459         gnulib-tool: avoid writing in the current directory.
31460         * gnulib-tool (func_emit_lib_Makefile_am)
31461         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
31462         not in the current directory, so concurrent gnulib-tool
31463         instances do not interfere.
31464
31465 2010-01-16  Jim Meyering  <meyering@redhat.com>
31466
31467         doc: update users.txt
31468         * users.txt: Add grep.
31469         (diffutils, gzip): Update URLs.
31470
31471 2010-01-12  Bruno Haible  <bruno@clisp.org>
31472
31473         posix_spawn: Avoid test failure on Cygwin.
31474         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
31475         characters.
31476         Reported by Simon Josefsson.
31477
31478 2010-01-12  Bruno Haible  <bruno@clisp.org>
31479
31480         * tests/test-cond.c (main): When skipping the test, show the reason.
31481
31482 2010-01-12  Simon Josefsson  <simon@josefsson.org>
31483
31484         * lib/striconv.c (str_cd_iconv): Avoid if before free.
31485
31486 2010-01-12  Simon Josefsson  <simon@josefsson.org>
31487
31488         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
31489         VC_LIST_ALWAYS_EXCLUDE_REGEX.
31490
31491 2010-01-12  Eric Blake  <ebb9@byu.net>
31492
31493         build: guarantee AS_VAR_IF
31494         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
31495         (gl_AS_VAR_IF): Move...
31496         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
31497         Reported by Simon Josefsson.
31498
31499 2010-01-12  Simon Josefsson  <simon@josefsson.org>
31500
31501         * lib/stdio.in.h: Fix typo.
31502
31503 2010-01-12  Simon Josefsson  <simon@josefsson.org>
31504
31505         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
31506         libgpg-error.
31507
31508 2010-01-12  Simon Josefsson  <simon@josefsson.org>
31509
31510         * tests/test-xalloc-die.sh: Use $EXEEXT.
31511
31512 2010-01-12  Simon Josefsson  <simon@josefsson.org>
31513             Bruno Haible  <bruno@clisp.org>
31514
31515         getlogin, getlogin_r: Avoid test failure.
31516         * tests/test-getlogin.c: Include <stdio.h>.
31517         (main): Skip the test when the function fails because stdin is not a
31518         tty.
31519         * tests/test-getlogin_r.c: Include <stdio.h>.
31520         (main): Skip the test when the function fails because stdin is not a
31521         tty.
31522
31523 2010-01-11  Eric Blake  <ebb9@byu.net>
31524
31525         tests: avoid more large file warnings
31526         * tests/test-fflush.c: Avoid warning about ftell use.
31527         * tests/test-fseek.c: Avoid warning about fseek use.
31528
31529 2010-01-10  Bruno Haible  <bruno@clisp.org>
31530
31531         nproc: Work better on Linux when /proc and /sys are not mounted.
31532         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
31533         as lower bound when, on glibc/Linux systems,
31534         sysconf (_SC_NPROCESSORS_CONF) returns 1.
31535         Suggested by Pádraig Brady <P@draigbrady.com>.
31536         Reported by Dmitry V. Levin <ldv@altlinux.org>.
31537
31538         nproc: Refactor.
31539         * lib/nproc.c (num_processors_via_affinity_mask): New function,
31540         extracted from num_processors.
31541         (num_processors): Call it.
31542
31543 2010-01-11  Jim Meyering  <meyering@redhat.com>
31544
31545         utimecmp: avoid new warning from upcoming gcc-4.5.0
31546         * lib/utimecmp.c (BILLION): Define using #define rather than an
31547         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
31548
31549 2010-01-11  Eric Blake  <ebb9@byu.net>
31550
31551         math: add portability warnings for classification macros
31552         * modules/math (Depends-on): Add warn-on-use.
31553         (Makefile.am): Provide new substitutions.
31554         * m4/math_h.m4 (gl_MATH_H): Require inline.
31555         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
31556         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
31557         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
31558         implement warnings.
31559
31560         unistd: warn on use of environ without module
31561         * modules/unistd (Depends-on): Add warn-on-use.
31562         (Makefile.am): Provide new substitutions.
31563         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
31564         * lib/unistd.in.h (environ): Wrap with a warning helper function.
31565
31566         stdio: warn on suspicious uses
31567         * modules/stdio (Depends-on): Add warn-on-use.
31568         (Makefile.am): Provide new substitutions.
31569         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
31570         fseeko.
31571         * lib/stdio.in.h (gets): Always warn on use.
31572         (fseek, ftell): Adjust when warnings are issued, and honor
31573         _GL_NO_LARGE_FILES as a way to silence the warning.
31574         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
31575         any warning about large file offsets.
31576         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
31577         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
31578         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
31579         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
31580         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
31581         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
31582         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
31583         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
31584
31585         warn-on-use: new module
31586         * modules/warn-on-use: New file.
31587         * build-aux/warn-on-use.h: Likewise.
31588         * m4/warn-on-use.m4: Likewise.
31589         * MODULES.html.sh (Support for building): Mention it.
31590
31591 2010-01-10  Bruno Haible  <bruno@clisp.org>
31592
31593         Tests for module 'unistr/u32-strdup'.
31594         * modules/unistr/u32-strdup-tests: New file.
31595         * tests/unistr/test-u32-strdup.c: New file.
31596
31597         Tests for module 'unistr/u16-strdup'.
31598         * modules/unistr/u16-strdup-tests: New file.
31599         * tests/unistr/test-u16-strdup.c: New file.
31600
31601         Tests for module 'unistr/u8-strdup'.
31602         * modules/unistr/u8-strdup-tests: New file.
31603         * tests/unistr/test-u8-strdup.c: New file.
31604         * tests/unistr/test-strdup.h: New file.
31605
31606         Tests for module 'unistr/u32-strncmp'.
31607         * modules/unistr/u32-strncmp-tests: New file.
31608         * tests/unistr/test-u32-strncmp.c: New file.
31609
31610         Tests for module 'unistr/u16-strncmp'.
31611         * modules/unistr/u16-strncmp-tests: New file.
31612         * tests/unistr/test-u16-strncmp.c: New file.
31613
31614         Tests for module 'unistr/u8-strncmp'.
31615         * modules/unistr/u8-strncmp-tests: New file.
31616         * tests/unistr/test-u8-strncmp.c: New file.
31617         * tests/unistr/test-strncmp.h: New file.
31618
31619         Tests for module 'unistr/u32-strcoll'.
31620         * modules/unistr/u32-strcoll-tests: New file.
31621         * tests/unistr/test-u32-strcoll.c: New file.
31622
31623         Tests for module 'unistr/u16-strcoll'.
31624         * modules/unistr/u16-strcoll-tests: New file.
31625         * tests/unistr/test-u16-strcoll.c: New file.
31626
31627         Tests for module 'unistr/u8-strcoll'.
31628         * modules/unistr/u8-strcoll-tests: New file.
31629         * tests/unistr/test-u8-strcoll.c: New file.
31630
31631         Tests for module 'unistr/u32-strcmp'.
31632         * modules/unistr/u32-strcmp-tests: New file.
31633         * tests/unistr/test-u32-strcmp.c: New file.
31634         * tests/unistr/test-u32-strcmp.h: New file.
31635
31636         Tests for module 'unistr/u16-strcmp'.
31637         * modules/unistr/u16-strcmp-tests: New file.
31638         * tests/unistr/test-u16-strcmp.c: New file.
31639         * tests/unistr/test-u16-strcmp.h: New file.
31640
31641         Tests for module 'unistr/u8-strcmp'.
31642         * modules/unistr/u8-strcmp-tests: New file.
31643         * tests/unistr/test-u8-strcmp.c: New file.
31644         * tests/unistr/test-u8-strcmp.h: New file.
31645         * tests/unistr/test-strcmp.h: New file.
31646
31647         Tests for module 'unistr/u32-strncat'.
31648         * modules/unistr/u32-strncat-tests: New file.
31649         * tests/unistr/test-u32-strncat.c: New file.
31650
31651         Tests for module 'unistr/u16-strncat'.
31652         * modules/unistr/u16-strncat-tests: New file.
31653         * tests/unistr/test-u16-strncat.c: New file.
31654
31655         Tests for module 'unistr/u8-strncat'.
31656         * modules/unistr/u8-strncat-tests: New file.
31657         * tests/unistr/test-u8-strncat.c: New file.
31658         * tests/unistr/test-strncat.h: New file.
31659
31660         Tests for module 'unistr/u32-strcat'.
31661         * modules/unistr/u32-strcat-tests: New file.
31662         * tests/unistr/test-u32-strcat.c: New file.
31663
31664         Tests for module 'unistr/u16-strcat'.
31665         * modules/unistr/u16-strcat-tests: New file.
31666         * tests/unistr/test-u16-strcat.c: New file.
31667
31668         Tests for module 'unistr/u8-strcat'.
31669         * modules/unistr/u8-strcat-tests: New file.
31670         * tests/unistr/test-u8-strcat.c: New file.
31671         * tests/unistr/test-strcat.h: New file.
31672
31673         Tests for module 'unistr/u32-stpncpy'.
31674         * modules/unistr/u32-stpncpy-tests: New file.
31675         * tests/unistr/test-u32-stpncpy.c: New file.
31676
31677         Tests for module 'unistr/u16-stpncpy'.
31678         * modules/unistr/u16-stpncpy-tests: New file.
31679         * tests/unistr/test-u16-stpncpy.c: New file.
31680
31681         Tests for module 'unistr/u8-stpncpy'.
31682         * modules/unistr/u8-stpncpy-tests: New file.
31683         * tests/unistr/test-u8-stpncpy.c: New file.
31684         * tests/unistr/test-stpncpy.h: New file.
31685
31686         Tests for module 'unistr/u32-strncpy'.
31687         * modules/unistr/u32-strncpy-tests: New file.
31688         * tests/unistr/test-u32-strncpy.c: New file.
31689
31690         Tests for module 'unistr/u16-strncpy'.
31691         * modules/unistr/u16-strncpy-tests: New file.
31692         * tests/unistr/test-u16-strncpy.c: New file.
31693
31694         Tests for module 'unistr/u8-strncpy'.
31695         * modules/unistr/u8-strncpy-tests: New file.
31696         * tests/unistr/test-u8-strncpy.c: New file.
31697         * tests/unistr/test-strncpy.h: New file.
31698
31699         Tests for module 'unistr/u32-stpcpy'.
31700         * modules/unistr/u32-stpcpy-tests: New file.
31701         * tests/unistr/test-u32-stpcpy.c: New file.
31702
31703         Tests for module 'unistr/u16-stpcpy'.
31704         * modules/unistr/u16-stpcpy-tests: New file.
31705         * tests/unistr/test-u16-stpcpy.c: New file.
31706
31707         Tests for module 'unistr/u8-stpcpy'.
31708         * modules/unistr/u8-stpcpy-tests: New file.
31709         * tests/unistr/test-u8-stpcpy.c: New file.
31710         * tests/unistr/test-stpcpy.h: New file.
31711
31712         Tests for module 'unistr/u32-strcpy'.
31713         * modules/unistr/u32-strcpy-tests: New file.
31714         * tests/unistr/test-u32-strcpy.c: New file.
31715
31716         Tests for module 'unistr/u16-strcpy'.
31717         * modules/unistr/u16-strcpy-tests: New file.
31718         * tests/unistr/test-u16-strcpy.c: New file.
31719
31720         Tests for module 'unistr/u8-strcpy'.
31721         * modules/unistr/u8-strcpy-tests: New file.
31722         * tests/unistr/test-u8-strcpy.c: New file.
31723         * tests/unistr/test-strcpy.h: New file.
31724
31725         Tests for module 'unistr/u32-strnlen'.
31726         * modules/unistr/u32-strnlen-tests: New file.
31727         * tests/unistr/test-u32-strnlen.c: New file.
31728
31729         Tests for module 'unistr/u16-strnlen'.
31730         * modules/unistr/u16-strnlen-tests: New file.
31731         * tests/unistr/test-u16-strnlen.c: New file.
31732
31733         Tests for module 'unistr/u8-strnlen'.
31734         * modules/unistr/u8-strnlen-tests: New file.
31735         * tests/unistr/test-u8-strnlen.c: New file.
31736         * tests/unistr/test-strnlen.h: New file.
31737
31738         Tests for module 'unistr/u32-strlen'.
31739         * modules/unistr/u32-strlen-tests: New file.
31740         * tests/unistr/test-u32-strlen.c: New file.
31741
31742         Tests for module 'unistr/u16-strlen'.
31743         * modules/unistr/u16-strlen-tests: New file.
31744         * tests/unistr/test-u16-strlen.c: New file.
31745
31746         Tests for module 'unistr/u8-strlen'.
31747         * modules/unistr/u8-strlen-tests: New file.
31748         * tests/unistr/test-u8-strlen.c: New file.
31749
31750         Tests for module 'unistr/u32-prev'.
31751         * modules/unistr/u32-prev-tests: New file.
31752         * tests/unistr/test-u32-prev.c: New file.
31753
31754         Tests for module 'unistr/u16-prev'.
31755         * modules/unistr/u16-prev-tests: New file.
31756         * tests/unistr/test-u16-prev.c: New file.
31757
31758         Tests for module 'unistr/u8-prev'.
31759         * modules/unistr/u8-prev-tests: New file.
31760         * tests/unistr/test-u8-prev.c: New file.
31761
31762         Tests for module 'unistr/u32-next'.
31763         * modules/unistr/u32-next-tests: New file.
31764         * tests/unistr/test-u32-next.c: New file.
31765
31766         Tests for module 'unistr/u16-next'.
31767         * modules/unistr/u16-next-tests: New file.
31768         * tests/unistr/test-u16-next.c: New file.
31769
31770         Tests for module 'unistr/u8-next'.
31771         * modules/unistr/u8-next-tests: New file.
31772         * tests/unistr/test-u8-next.c: New file.
31773
31774         Tests for module 'unistr/u32-strmbtouc'.
31775         * modules/unistr/u32-strmbtouc-tests: New file.
31776         * tests/unistr/test-u32-strmbtouc.c: New file.
31777
31778         Tests for module 'unistr/u16-strmbtouc'.
31779         * modules/unistr/u16-strmbtouc-tests: New file.
31780         * tests/unistr/test-u16-strmbtouc.c: New file.
31781
31782         Tests for module 'unistr/u8-strmbtouc'.
31783         * modules/unistr/u8-strmbtouc-tests: New file.
31784         * tests/unistr/test-u8-strmbtouc.c: New file.
31785
31786         Tests for module 'unistr/u32-strmblen'.
31787         * modules/unistr/u32-strmblen-tests: New file.
31788         * tests/unistr/test-u32-strmblen.c: New file.
31789
31790         Tests for module 'unistr/u16-strmblen'.
31791         * modules/unistr/u16-strmblen-tests: New file.
31792         * tests/unistr/test-u16-strmblen.c: New file.
31793
31794         Tests for module 'unistr/u8-strmblen'.
31795         * modules/unistr/u8-strmblen-tests: New file.
31796         * tests/unistr/test-u8-strmblen.c: New file.
31797
31798         Tests for module 'unistr/u32-cpy-alloc'.
31799         * modules/unistr/u32-cpy-alloc-tests: New file.
31800         * tests/unistr/test-u32-cpy-alloc.c: New file.
31801
31802         Tests for module 'unistr/u16-cpy-alloc'.
31803         * modules/unistr/u16-cpy-alloc-tests: New file.
31804         * tests/unistr/test-u16-cpy-alloc.c: New file.
31805
31806         Tests for module 'unistr/u8-cpy-alloc'.
31807         * modules/unistr/u8-cpy-alloc-tests: New file.
31808         * tests/unistr/test-u8-cpy-alloc.c: New file.
31809         * tests/unistr/test-cpy-alloc.h: New file.
31810
31811         Tests for module 'unistr/u32-mbsnlen'.
31812         * modules/unistr/u32-mbsnlen-tests: New file.
31813         * tests/unistr/test-u32-mbsnlen.c: New file.
31814
31815         Tests for module 'unistr/u16-mbsnlen'.
31816         * modules/unistr/u16-mbsnlen-tests: New file.
31817         * tests/unistr/test-u16-mbsnlen.c: New file.
31818
31819         Tests for module 'unistr/u8-mbsnlen'.
31820         * modules/unistr/u8-mbsnlen-tests: New file.
31821         * tests/unistr/test-u8-mbsnlen.c: New file.
31822
31823         Tests for module 'unistr/u32-chr'.
31824         * modules/unistr/u32-chr-tests: New file.
31825         * tests/unistr/test-u32-chr.c: New file.
31826
31827         Tests for module 'unistr/u16-chr'.
31828         * modules/unistr/u16-chr-tests: New file.
31829         * tests/unistr/test-u16-chr.c: New file.
31830
31831         Tests for module 'unistr/u8-chr'.
31832         * modules/unistr/u8-chr-tests: New file.
31833         * tests/unistr/test-u8-chr.c: New file.
31834         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
31835
31836         Tests for module 'unistr/u32-cmp2'.
31837         * modules/unistr/u32-cmp2-tests: New file.
31838         * tests/unistr/test-u32-cmp2.c: New file.
31839
31840         Tests for module 'unistr/u16-cmp2'.
31841         * modules/unistr/u16-cmp2-tests: New file.
31842         * tests/unistr/test-u16-cmp2.c: New file.
31843
31844         Tests for module 'unistr/u8-cmp2'.
31845         * modules/unistr/u8-cmp2-tests: New file.
31846         * tests/unistr/test-u8-cmp2.c: New file.
31847         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
31848
31849         Tests for module 'unistr/u32-cmp'.
31850         * modules/unistr/u32-cmp-tests: New file.
31851         * tests/unistr/test-u32-cmp.c: New file.
31852
31853         Tests for module 'unistr/u16-cmp'.
31854         * modules/unistr/u16-cmp-tests: New file.
31855         * tests/unistr/test-u16-cmp.c: New file.
31856
31857         Tests for module 'unistr/u8-cmp'.
31858         * modules/unistr/u8-cmp-tests: New file.
31859         * tests/unistr/test-u8-cmp.c: New file.
31860         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
31861
31862         Tests for module 'unistr/u32-set'.
31863         * modules/unistr/u32-set-tests: New file.
31864         * tests/unistr/test-u32-set.c: New file.
31865
31866         Tests for module 'unistr/u16-set'.
31867         * modules/unistr/u16-set-tests: New file.
31868         * tests/unistr/test-u16-set.c: New file.
31869
31870         Tests for module 'unistr/u8-set'.
31871         * modules/unistr/u8-set-tests: New file.
31872         * tests/unistr/test-u8-set.c: New file.
31873         * tests/unistr/test-set.h: New file.
31874
31875         Tests for module 'unistr/u32-move'.
31876         * modules/unistr/u32-move-tests: New file.
31877         * tests/unistr/test-u32-move.c: New file.
31878
31879         Tests for module 'unistr/u16-move'.
31880         * modules/unistr/u16-move-tests: New file.
31881         * tests/unistr/test-u16-move.c: New file.
31882
31883         Tests for module 'unistr/u8-move'.
31884         * modules/unistr/u8-move-tests: New file.
31885         * tests/unistr/test-u8-move.c: New file.
31886         * tests/unistr/test-move.h: New file.
31887
31888         Tests for module 'unistr/u32-cpy'.
31889         * modules/unistr/u32-cpy-tests: New file.
31890         * tests/unistr/test-u32-cpy.c: New file.
31891
31892         Tests for module 'unistr/u16-cpy'.
31893         * modules/unistr/u16-cpy-tests: New file.
31894         * tests/unistr/test-u16-cpy.c: New file.
31895
31896         Tests for module 'unistr/u8-cpy'.
31897         * modules/unistr/u8-cpy-tests: New file.
31898         * tests/unistr/test-u8-cpy.c: New file.
31899         * tests/unistr/test-cpy.h: New file.
31900
31901 2010-01-09  Bruno Haible  <bruno@clisp.org>
31902
31903         Tests for module 'unistr/u32-uctomb'.
31904         * modules/unistr/u32-uctomb-tests: New file.
31905         * tests/unistr/test-u32-uctomb.c: New file.
31906
31907         Tests for module 'unistr/u16-uctomb'.
31908         * modules/unistr/u16-uctomb-tests: New file.
31909         * tests/unistr/test-u16-uctomb.c: New file.
31910
31911         Tests for module 'unistr/u8-uctomb'.
31912         * modules/unistr/u8-uctomb-tests: New file.
31913         * tests/unistr/test-u8-uctomb.c: New file.
31914
31915         Tests for module 'unistr/u32-mbtoucr'.
31916         * modules/unistr/u32-mbtoucr-tests: New file.
31917         * tests/unistr/test-u32-mbtoucr.c: New file.
31918
31919         Tests for module 'unistr/u16-mbtoucr'.
31920         * modules/unistr/u16-mbtoucr-tests: New file.
31921         * tests/unistr/test-u16-mbtoucr.c: New file.
31922
31923         Tests for module 'unistr/u8-mbtoucr'.
31924         * modules/unistr/u8-mbtoucr-tests: New file.
31925         * tests/unistr/test-u8-mbtoucr.c: New file.
31926
31927         Tests for module 'unistr/u32-mbtouc'.
31928         * modules/unistr/u32-mbtouc-tests: New file.
31929         * tests/unistr/test-u32-mbtouc.c: New file.
31930
31931         Tests for module 'unistr/u16-mbtouc'.
31932         * modules/unistr/u16-mbtouc-tests: New file.
31933         * tests/unistr/test-u16-mbtouc.c: New file.
31934
31935         Tests for module 'unistr/u8-mbtouc'.
31936         * modules/unistr/u8-mbtouc-tests: New file.
31937         * tests/unistr/test-u8-mbtouc.c: New file.
31938
31939         Tests for module 'unistr/u32-mbtouc-unsafe'.
31940         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
31941         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
31942         * tests/unistr/test-u32-mbtouc.h: New file.
31943
31944         Tests for module 'unistr/u16-mbtouc-unsafe'.
31945         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
31946         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
31947         * tests/unistr/test-u16-mbtouc.h: New file.
31948
31949         Tests for module 'unistr/u8-mbtouc-unsafe'.
31950         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
31951         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
31952         * tests/unistr/test-u8-mbtouc.h: New file.
31953
31954         Tests for module 'unistr/u32-mblen'.
31955         * modules/unistr/u32-mblen-tests: New file.
31956         * tests/unistr/test-u32-mblen.c: New file.
31957
31958         Tests for module 'unistr/u16-mblen'.
31959         * modules/unistr/u16-mblen-tests: New file.
31960         * tests/unistr/test-u16-mblen.c: New file.
31961
31962         Tests for module 'unistr/u8-mblen'.
31963         * modules/unistr/u8-mblen-tests: New file.
31964         * tests/unistr/test-u8-mblen.c: New file.
31965
31966         Tests for module 'unistr/u32-to-u16'.
31967         * modules/unistr/u32-to-u16-tests: New file.
31968         * tests/unistr/test-u32-to-u16.c: New file.
31969
31970         Tests for module 'unistr/u32-to-u8'.
31971         * modules/unistr/u32-to-u8-tests: New file.
31972         * tests/unistr/test-u32-to-u8.c: New file.
31973
31974         Tests for module 'unistr/u16-to-u32'.
31975         * modules/unistr/u16-to-u32-tests: New file.
31976         * tests/unistr/test-u16-to-u32.c: New file.
31977
31978         Tests for module 'unistr/u16-to-u8'.
31979         * modules/unistr/u16-to-u8-tests: New file.
31980         * tests/unistr/test-u16-to-u8.c: New file.
31981
31982         Tests for module 'unistr/u8-to-u32'.
31983         * modules/unistr/u8-to-u32-tests: New file.
31984         * tests/unistr/test-u8-to-u32.c: New file.
31985
31986         Tests for module 'unistr/u8-to-u16'.
31987         * modules/unistr/u8-to-u16-tests: New file.
31988         * tests/unistr/test-u8-to-u16.c: New file.
31989
31990         Tests for module 'unistr/u32-check'.
31991         * modules/unistr/u32-check-tests: New file.
31992         * tests/unistr/test-u32-check.c: New file.
31993
31994         Tests for module 'unistr/u16-check'.
31995         * modules/unistr/u16-check-tests: New file.
31996         * tests/unistr/test-u16-check.c: New file.
31997
31998         Tests for module 'unistr/u8-check'.
31999         * modules/unistr/u8-check-tests: New file.
32000         * tests/unistr/test-u8-check.c: New file.
32001
32002         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
32003         (category_equals): New function.
32004         (main): Add more tests.
32005         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
32006
32007         * tests/unictype/test-bidi_byname.c (main): Add more tests.
32008
32009 2010-01-10  Bruno Haible  <bruno@clisp.org>
32010
32011         unistr/u*-strcoll: Try harder to distinguish different strings.
32012         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
32013         compare s1 and s2 to see if they are different.
32014
32015 2010-01-10  Bruno Haible  <bruno@clisp.org>
32016
32017         unistr/u*-stpncpy: Fix the return value.
32018         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
32019         description of the return value consistent with stpncpy in glibc.
32020         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
32021         written non-NUL unit.
32022
32023 2010-01-10  Bruno Haible  <bruno@clisp.org>
32024
32025         unistr/u*-next: Add missing dependencies.
32026         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
32027         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
32028         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
32029
32030 2010-01-10  Bruno Haible  <bruno@clisp.org>
32031
32032         unistr/u8-mbsnlen: Fix return value for incomplete character.
32033         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
32034         u8_mblen.
32035         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
32036         Remove unistr/u8-mblen.
32037         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
32038         u16_mblen.
32039         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
32040         Remove unistr/u16-mblen.
32041
32042 2010-01-10  Bruno Haible  <bruno@clisp.org>
32043
32044         wchar: Fix compilation error when <wchar.h> is used from coreutils.
32045         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
32046         Reported by Brian Gough <bjg@gnu.org> and
32047         Chris Clayton <chris2553@googlemail.com> via
32048         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
32049
32050 2010-01-09  Bruno Haible  <bruno@clisp.org>
32051
32052         unistr/u16-to-u32: Reject invalid input.
32053         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
32054         u16_mbtouc.
32055         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
32056         Remove unistr/u16-mbtouc.
32057
32058         unistr/u16-to-u8: Reject invalid input.
32059         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
32060         u16_mbtouc.
32061         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
32062         Remove unistr/u16-mbtouc.
32063
32064         unistr/u8-to-u32: Reject invalid input.
32065         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
32066         u8_mbtouc.
32067         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
32068         Remove unistr/u8-mbtouc.
32069
32070         unistr/u8-to-u16: Reject invalid input.
32071         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
32072         u8_mbtouc.
32073         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
32074         Remove unistr/u8-mbtouc.
32075
32076 2010-01-09  Bruno Haible  <bruno@clisp.org>
32077
32078         Tests for module 'getlogin'.
32079         * modules/getlogin-tests: New file.
32080         * tests/test-getlogin.c: New file.
32081
32082         New module 'getlogin'.
32083         * lib/unistd.in.h (getlogin): New declaration.
32084         * lib/getlogin.c: New file.
32085         * m4/getlogin.m4: New file.
32086         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
32087         HAVE_GETLOGIN.
32088         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
32089         HAVE_GETLOGIN.
32090         * modules/getlogin: New file.
32091         * doc/posix-functions/getlogin.texi: Mention the new module.
32092         Reported by John W. Eaton <jwe@gnu.org>.
32093
32094 2010-01-09  Bruno Haible  <bruno@clisp.org>
32095
32096         getlogin_r: Support for native Windows.
32097         * lib/getlogin_r.c: Include <windows.h>
32098         (getlogin_r): Implement for native Windows.
32099         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
32100         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
32101         via John W. Eaton <jwe@gnu.org>.
32102
32103 2010-01-09  Bruno Haible  <bruno@clisp.org>
32104
32105         getlogin_r: Small fixes.
32106         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
32107         succeeds.
32108         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
32109         before testing whether getlogin_r is declared. No need to set
32110         HAVE_DECL_GETLOGIN_R to 1.
32111         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
32112
32113 2010-01-09  Bruno Haible  <bruno@clisp.org>
32114
32115         * lib/unistd.in.h (getlogin_r): Add comment.
32116
32117 2010-01-09  Bruno Haible  <bruno@clisp.org>
32118
32119         Tests for module 'getlogin_r'.
32120         * modules/getlogin_r-tests: New file.
32121         * tests/test-getlogin_r.c: New file.
32122
32123 2010-01-09  Jim Meyering  <meyering@redhat.com>
32124
32125         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
32126         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
32127         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
32128
32129 2010-01-08  Simon Josefsson  <simon@josefsson.org>
32130
32131         * lib/dup2.c (rpl_dup2): Improve comment.
32132
32133 2010-01-08  Eric Blake  <ebb9@byu.net>
32134
32135         maint.mk: allow packages to add makefile @@ exceptions
32136         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
32137         (sc_makefile_check): Rename...
32138         (sc_makefile_at_at_check): ...to this, and use hook.
32139
32140         dup2: work around mingw bug
32141         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
32142         Reported by Simon Josefsson.
32143
32144 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
32145
32146         glob: Fix C++ compilation.
32147         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
32148         C++.
32149
32150 2010-01-07  Bruno Haible  <bruno@clisp.org>
32151
32152         Fix indentation of wctype.in.h, broken since 2007-01-06.
32153         * lib/wctype.in.h: Fix indentation of preprocessor directives.
32154
32155 2010-01-07  Bruno Haible  <bruno@clisp.org>
32156
32157         mbslen: Avoid collision with system function.
32158         * lib/string.in.h [MirBSD]: Include <wchar.h>.
32159         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
32160         * m4/mbslen.m4: New file.
32161         * modules/mbslen (Files): Add it.
32162         (configure.ac): Invoke gl_MBSLEN.
32163         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
32164         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
32165         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
32166         via Ian Beckwith <ianb@erislabs.net>.
32167
32168 2010-01-07  Bruno Haible  <bruno@clisp.org>
32169
32170         dirent: Document the last fix.
32171         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
32172
32173 2010-01-07  Bruno Haible  <bruno@clisp.org>
32174
32175         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
32176         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
32177         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
32178         va_list are defined.
32179         * doc/posix-headers/stdio.texi: Document the bug of missing types.
32180         Reported by Eric Blake.
32181
32182 2010-01-07  Bruno Haible  <bruno@clisp.org>
32183
32184         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
32185         * modules/xlist (Depends-on): Add 'list',
32186         * modules/xoset (Depends-on): Add 'oset'.
32187         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
32188
32189 2010-01-07  Bruno Haible  <bruno@clisp.org>
32190
32191         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
32192         * doc/posix-functions/strncasecmp.texi: Likewise.
32193
32194 2010-01-07  Bruno Haible  <bruno@clisp.org>
32195
32196         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
32197
32198 2010-01-07  John W. Eaton  <jwe@octave.org>
32199
32200         wctype: allow C++ use
32201         * lib/wctype.in.h: Add extern "C" block for C++.
32202
32203 2010-01-06  Eric Blake  <ebb9@byu.net>
32204
32205         maint.mk: detect incorrect GFDL usage
32206         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
32207
32208 2010-01-06  Jim Meyering  <meyering@redhat.com>
32209         and Eric Blake  <ebb9@byu.net>
32210
32211         maint.mk: ignore multi-line copyright in NEWS
32212         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
32213
32214 2010-01-06  Eric Blake  <ebb9@byu.net>
32215
32216         select: add missing dependency
32217         * modules/select-tests (Depends-on): Move sockets dependency...
32218         * modules/select (Depends-on): ...here.
32219         Reported by Ian Beckwith.
32220
32221         doc: regenerate INSTALL
32222         * doc/INSTALL: Reflect recent autoconf update.
32223         * doc/INSTALL.ISO: Likewise.
32224         * doc/INSTALL.UTF-8: Likewise.
32225
32226         pread: fix compilation on glibc
32227         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
32228         Reported by Ralf Wildenhues.
32229
32230         dirent: fix test failure
32231         * lib/dirent.in.h (includes): Guarantee ino_t.
32232         Reported by Ralf Wildenhues.
32233
32234 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
32235
32236         linkat, renameat: avoid bad free
32237         * lib/at-func2.c (at_func2): Fix typo.
32238         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
32239
32240 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32241
32242         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
32243         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
32244         to avoid failure of symlink test later.
32245
32246 2010-01-06  Eric Blake  <ebb9@byu.net>
32247
32248         stdio, unistd: guarantee ssize_t
32249         * lib/unistd.in.h (includes): Ensure that types required by POSIX
32250         2008 are exposed when needed.
32251         * lib/stdio.in.h (includes): Likewise.
32252         Reported by Ralf Wildenhues.
32253
32254 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
32255
32256         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
32257         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
32258         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
32259
32260 2010-01-06  Jim Meyering  <meyering@redhat.com>
32261
32262         readtokens: this module *does* require xalloc.h
32263         It uses only functions that were omitted by the old syntax-check rule.
32264         * lib/readtokens.c: Include "xalloc.h" once again.
32265         * modules/readtokens (Depends-on): Add xalloc.
32266         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
32267
32268 2010-01-05  Eric Blake  <ebb9@byu.net>
32269
32270         maint: support 'make announcement' from a VPATH build
32271         * top/maint.mk (announcement): Look for correct NEWS file.
32272
32273 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
32274
32275         utimens (fdutimens): ignore a negative FD, per contract
32276         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
32277         when we have a valid file descriptor.  Otherwise, using a brand
32278         new glibc (with just-patched futimens that now fails with EBADF)
32279         would cause this function to fail with ENOSYS.
32280         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
32281         See also http://bugzilla.redhat.com/552320.
32282
32283 2010-01-05  Eric Blake  <ebb9@byu.net>
32284
32285         strcase: document what it provides
32286         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
32287         gnulib module.
32288         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
32289         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
32290
32291 2010-01-05  Jim Meyering  <meyering@redhat.com>
32292
32293         maint: remove useless inclusions of "xalloc.h"
32294         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
32295         * lib/readtokens.c: Likewise.
32296         * lib/same.c: Likewise.
32297         * modules/getloadavg (Depends-on): Remove xalloc.
32298         * modules/readtokens: Likewise.
32299         * modules/same: Likewise.
32300
32301         maint.mk: include 4 more function names in alloca.h-checking regexp
32302         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
32303         regexp.  Before, we would give a false-positive (saying alloca.h
32304         is included unnecessarily) when the only uses involved omitted symbols.
32305
32306         xalloc.h: use consistent formatting
32307         * lib/xalloc.h: Move declarations to start in the first column.
32308
32309 2010-01-05  Eric Blake  <ebb9@byu.net>
32310
32311         mkdir: avoid xalloc
32312         * lib/mkdir.c (includes): Drop unused header.
32313         Reported by John W. Eaton.
32314
32315 2010-01-04  Jim Meyering  <meyering@redhat.com>
32316
32317         nl_langinfo: avoid configure-time syntax error
32318         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
32319         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
32320         the empty string.  Don't let that provoke a shell syntax error.
32321
32322         regcomp, regexec, fnmatch: avoid array bounds read error
32323         * lib/regcomp.c (build_equiv_class): From glibc:
32324         Use only the low 24 bits of a findidx return value as an index
32325         into the weights array.  Patch by Ulrich Drepper:
32326         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
32327         * lib/regexec.c (check_node_accept_bytes): Likewise.
32328         * lib/fnmatch_loop.c (FCT): Likewise.
32329
32330         regcomp: skip collseq lookup when there are no rules
32331         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
32332         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
32333
32334         regcomp: recognize ill-formed { } expressions
32335         * lib/regcomp.c (parse_dup_op): From glibc:
32336         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
32337
32338         regcomp: fix typo in comment
32339         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
32340         s/satisfy/satisfies/.
32341
32342         regcomp: sync from glibc: remove dead store
32343         * lib/regcomp.c (duplicate_node_closure): Remove useless
32344         search_duplicated_node call and dead store.
32345
32346         regcomp: sync from glibc; always use nl_langinfo
32347         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
32348         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
32349         * modules/regex (Depends-on): Add nl_langinfo.
32350
32351 2010-01-04  Eric Blake  <ebb9@byu.net>
32352
32353         fdopendir: fix configure test
32354         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
32355
32356 2010-01-01  Bruno Haible  <bruno@clisp.org>
32357
32358         wchar: Remove unused configure check.
32359         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
32360
32361 2010-01-01  Eric Blake  <ebb9@byu.net>
32362
32363         headers: make check of system header explicit
32364         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
32365         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
32366         ourselves.
32367         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
32368         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
32369         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
32370         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
32371         internals.
32372         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
32373         missing.
32374         Suggested by Bruno Haible.
32375
32376 2010-01-01  Jim Meyering  <meyering@redhat.com>
32377
32378         ChangeLog: tweak to eliminate unnecessary copyright line
32379         * ChangeLog: Remove a copyright line that was mistakenly updated
32380         by today's update-copyright run.  Reported by Eric Blake.
32381
32382         test-update-copyright: don't let envvar setting cause test failure
32383         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
32384
32385 2010-01-01  Bruno Haible  <bruno@clisp.org>
32386
32387         localename: Avoid gcc warning.
32388         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
32389         function if it is not used.
32390
32391 2010-01-01  Jim Meyering  <meyering@redhat.com>
32392
32393         update nearly all FSF copyright year lists to include 2010
32394         Use the same procedure as for 2009, outlined in
32395         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
32396
32397         version-etc: set COPYRIGHT_YEAR to 2010
32398         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
32399
32400 2009-12-31  Eric Blake  <ebb9@byu.net>
32401
32402         doc: correct availability of cygwin 1.5.x getopt
32403         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
32404         variables.
32405         * doc/posix-functions/opterr.texi (opterr): Likewise.
32406         * doc/posix-functions/optind.texi (optind): Likewise.
32407         * doc/posix-functions/optopt.texi (optopt): Likewise.
32408         * doc/posix-functions/tzname.texi (tzname): Likewise.
32409
32410         openat: update maintainer
32411         * modules/openat (Maintainer): Add myself.
32412
32413         utimens: avoid shadowing warning
32414         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
32415         buffers into one, to avoid shadowing, as well as avoiding a
32416         redundant stat.
32417         Reported by Jim Meyering.
32418
32419         test-dup2: avoid compiler warning
32420         * tests/test-dup2.c (is_inheritable): Only define if used.
32421
32422 2010-01-01  Bruno Haible  <bruno@clisp.org>
32423
32424         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
32425         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
32426         defined, use wctomb instead of wcrtomb.
32427
32428 2010-01-01  Bruno Haible  <bruno@clisp.org>
32429
32430         iconv: Reject native Solaris iconv.
32431         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
32432         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
32433
32434 2009-12-31  Bruno Haible  <bruno@clisp.org>
32435
32436         * tests/test-signal.c (main): Remove test of 'SIG'.
32437
32438 2009-12-31  Bruno Haible  <bruno@clisp.org>
32439
32440         spawn: Fix incomplete fix.
32441         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
32442         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
32443         warnings for GNULIB_POSIXCHECK again.
32444         Reported by Eric Blake.
32445
32446 2009-12-31  Bruno Haible  <bruno@clisp.org>
32447
32448         Avoid namespace pollution on glibc systems.
32449         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
32450         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
32451         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
32452         glibc systems.
32453
32454 2009-12-31  Bruno Haible  <bruno@clisp.org>
32455
32456         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
32457         (gl_REPLACE_WCHAR_H): Turn into a no-op.
32458         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
32459         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
32460         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
32461         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
32462         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
32463
32464 2009-12-31  Bruno Haible  <bruno@clisp.org>
32465
32466         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
32467         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
32468         afterwards.
32469
32470 2009-12-31  Bruno Haible  <bruno@clisp.org>
32471
32472         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
32473         SYS_UTSNAME_H.
32474
32475 2009-12-31  Bruno Haible  <bruno@clisp.org>
32476
32477         spawn: Fix misapplied patch.
32478         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
32479         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
32480         warnings for GNULIB_POSIXCHECK.
32481
32482 2009-12-31  Bruno Haible  <bruno@clisp.org>
32483
32484         times: Update after sys_times changed.
32485         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
32486         * modules/times (Files): Add it.
32487         (configure.ac): Invoke gl_FUNC_TIMES.
32488
32489 2009-12-31  Bruno Haible  <bruno@clisp.org>
32490
32491         Use AC_C_INLINE where necessary.
32492         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
32493         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
32494         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
32495         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
32496         * m4/mbfile.m4 (gl_MBFILE): Likewise.
32497         * m4/mbiter.m4 (gl_MBITER): Likewise.
32498         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
32499         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
32500         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
32501         * modules/u64 (configure.ac): Likewise.
32502
32503 2009-12-31  Bruno Haible  <bruno@clisp.org>
32504
32505         Use AC_C_INLINE instead of module 'inline' where possible.
32506         * modules/inline (Description): Clarify purpose.
32507         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
32508         * modules/count-one-bits (Depends-on): Remove inline.
32509         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
32510         * modules/openat (Depends-on): Remove inline.
32511         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
32512         instead of depending on module 'inline'.
32513         * modules/filevercmp (Depends-on, configure.ac): Likewise.
32514         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
32515         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
32516         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
32517         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
32518         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
32519         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
32520         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
32521         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
32522         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
32523         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
32524         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
32525         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
32526         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
32527         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
32528         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
32529         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
32530         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
32531         Likewise.
32532         * modules/unictype/property-ascii-hex-digit (Depends-on,
32533         configure.ac): Likewise.
32534         * modules/unictype/property-bidi-arabic-digit (Depends-on,
32535         configure.ac): Likewise.
32536         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
32537         configure.ac): Likewise.
32538         * modules/unictype/property-bidi-block-separator (Depends-on,
32539         configure.ac): Likewise.
32540         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
32541         configure.ac): Likewise.
32542         * modules/unictype/property-bidi-common-separator (Depends-on,
32543         configure.ac): Likewise.
32544         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
32545         Likewise.
32546         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
32547         configure.ac): Likewise.
32548         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
32549         configure.ac): Likewise.
32550         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
32551         configure.ac): Likewise.
32552         * modules/unictype/property-bidi-european-digit (Depends-on,
32553         configure.ac): Likewise.
32554         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
32555         configure.ac): Likewise.
32556         * modules/unictype/property-bidi-left-to-right (Depends-on,
32557         configure.ac): Likewise.
32558         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
32559         configure.ac): Likewise.
32560         * modules/unictype/property-bidi-other-neutral (Depends-on,
32561         configure.ac): Likewise.
32562         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
32563         Likewise.
32564         * modules/unictype/property-bidi-segment-separator (Depends-on,
32565         configure.ac): Likewise.
32566         * modules/unictype/property-bidi-whitespace (Depends-on,
32567         configure.ac): Likewise.
32568         * modules/unictype/property-combining (Depends-on, configure.ac):
32569         Likewise.
32570         * modules/unictype/property-composite (Depends-on, configure.ac):
32571         Likewise.
32572         * modules/unictype/property-currency-symbol (Depends-on,
32573         configure.ac): Likewise.
32574         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
32575         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
32576         Likewise.
32577         * modules/unictype/property-default-ignorable-code-point (Depends-on,
32578         configure.ac): Likewise.
32579         * modules/unictype/property-deprecated (Depends-on, configure.ac):
32580         Likewise.
32581         * modules/unictype/property-diacritic (Depends-on, configure.ac):
32582         Likewise.
32583         * modules/unictype/property-extender (Depends-on, configure.ac):
32584         Likewise.
32585         * modules/unictype/property-format-control (Depends-on, configure.ac):
32586         Likewise.
32587         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
32588         Likewise.
32589         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
32590         Likewise.
32591         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
32592         Likewise.
32593         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
32594         Likewise.
32595         * modules/unictype/property-hyphen (Depends-on, configure.ac):
32596         Likewise.
32597         * modules/unictype/property-id-continue (Depends-on, configure.ac):
32598         Likewise.
32599         * modules/unictype/property-id-start (Depends-on, configure.ac):
32600         Likewise.
32601         * modules/unictype/property-ideographic (Depends-on, configure.ac):
32602         Likewise.
32603         * modules/unictype/property-ids-binary-operator (Depends-on,
32604         configure.ac): Likewise.
32605         * modules/unictype/property-ids-trinary-operator (Depends-on,
32606         configure.ac): Likewise.
32607         * modules/unictype/property-ignorable-control (Depends-on,
32608         configure.ac): Likewise.
32609         * modules/unictype/property-iso-control (Depends-on, configure.ac):
32610         Likewise.
32611         * modules/unictype/property-join-control (Depends-on, configure.ac):
32612         Likewise.
32613         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
32614         Likewise.
32615         * modules/unictype/property-line-separator (Depends-on, configure.ac):
32616         Likewise.
32617         * modules/unictype/property-logical-order-exception (Depends-on,
32618         configure.ac): Likewise.
32619         * modules/unictype/property-lowercase (Depends-on, configure.ac):
32620         Likewise.
32621         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
32622         * modules/unictype/property-non-break (Depends-on, configure.ac):
32623         Likewise.
32624         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
32625         Likewise.
32626         * modules/unictype/property-numeric (Depends-on, configure.ac):
32627         Likewise.
32628         * modules/unictype/property-other-alphabetic (Depends-on,
32629         configure.ac): Likewise.
32630         * modules/unictype/property-other-default-ignorable-code-point
32631         (Depends-on, configure.ac): Likewise.
32632         * modules/unictype/property-other-grapheme-extend (Depends-on,
32633         configure.ac): Likewise.
32634         * modules/unictype/property-other-id-continue (Depends-on,
32635         configure.ac): Likewise.
32636         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
32637         Likewise.
32638         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
32639         Likewise.
32640         * modules/unictype/property-other-math (Depends-on, configure.ac):
32641         Likewise.
32642         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
32643         Likewise.
32644         * modules/unictype/property-paired-punctuation (Depends-on,
32645         configure.ac): Likewise.
32646         * modules/unictype/property-paragraph-separator (Depends-on,
32647         configure.ac): Likewise.
32648         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
32649         Likewise.
32650         * modules/unictype/property-pattern-white-space (Depends-on,
32651         configure.ac): Likewise.
32652         * modules/unictype/property-private-use (Depends-on, configure.ac):
32653         Likewise.
32654         * modules/unictype/property-punctuation (Depends-on, configure.ac):
32655         Likewise.
32656         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
32657         Likewise.
32658         * modules/unictype/property-radical (Depends-on, configure.ac):
32659         Likewise.
32660         * modules/unictype/property-sentence-terminal (Depends-on,
32661         configure.ac): Likewise.
32662         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
32663         Likewise.
32664         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
32665         * modules/unictype/property-terminal-punctuation (Depends-on,
32666         configure.ac): Likewise.
32667         * modules/unictype/property-titlecase (Depends-on, configure.ac):
32668         Likewise.
32669         * modules/unictype/property-unassigned-code-value (Depends-on,
32670         configure.ac): Likewise.
32671         * modules/unictype/property-unified-ideograph (Depends-on,
32672         configure.ac): Likewise.
32673         * modules/unictype/property-uppercase (Depends-on, configure.ac):
32674         Likewise.
32675         * modules/unictype/property-variation-selector (Depends-on,
32676         configure.ac): Likewise.
32677         * modules/unictype/property-white-space (Depends-on, configure.ac):
32678         Likewise.
32679         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
32680         Likewise.
32681         * modules/unictype/property-xid-start (Depends-on, configure.ac):
32682         Likewise.
32683         * modules/unictype/property-zero-width (Depends-on, configure.ac):
32684         Likewise.
32685         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
32686         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
32687         Likewise.
32688
32689 2009-12-31  Bruno Haible  <bruno@clisp.org>
32690
32691         Remove unnecessary AC_C_INLINE invocation.
32692         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
32693         since 2009-08-21.
32694
32695 2009-12-31  Jim Meyering  <meyering@redhat.com>
32696
32697         maint.mk: don't require explicit gpg_key_ID in cfg.mk
32698         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
32699         With this change, we can all remove the gpg_key_ID = ... definition
32700         from our respective cfg.mk files.
32701
32702         maint.mk: create announcement template in ~/, not in /tmp
32703         * top/maint.mk (emit_upload_commands): Adjust.
32704         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
32705         Remove temporary file, .ci-msg.
32706
32707 2009-12-31  Eric Blake  <ebb9@byu.net>
32708
32709         link-warning: always build headers with link warnings
32710         * modules/arpa_inet (Makefile.am): Always build replacement
32711         header.
32712         * modules/ctype (Makefile.am): Likewise.
32713         * modules/dirent (Makefile.am): Likewise.
32714         * modules/inttypes (Makefile.am): Likewise.
32715         * modules/langinfo (Makefile.am): Likewise.
32716         * modules/locale (Makefile.am): Likewise.
32717         * modules/spawn (Makefile.am): Likewise.
32718         * modules/sys_file (Makefile.am): Likewise.
32719         * modules/sys_ioctl (Makefile.am): Likewise.
32720         * modules/sys_select (Makefile.am): Likewise.
32721         * modules/sys_socket (Makefile.am): Likewise.
32722         * modules/sys_times (Makefile.am): Likewise.
32723         * modules/sys_utsname (Makefile.am): Likewise.
32724         * modules/sys_wait (Makefile.am): Likewise.
32725         * modules/wchar (Makefile.am): Likewise.
32726         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
32727         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
32728         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
32729         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
32730         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
32731         Likewise.
32732         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
32733         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
32734         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
32735         Likewise.
32736         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
32737         Likewise.
32738         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
32739         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
32740         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
32741         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
32742         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
32743         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
32744         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
32745         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
32746         (gl_WCHAR_H_DEFAULTS): Likewise.
32747
32748 2009-12-31  Eric Blake  <ebb9@byu.net>
32749
32750         signal, spawn: use link warnings
32751         * lib/signal.in.h (sigset_t): Make unconditional.
32752         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
32753         (sigpending, sigprocmask, sigaction): Add link warnings.
32754         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
32755         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
32756         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
32757         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
32758         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
32759         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
32760         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
32761         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
32762         (posix_spawn_file_actions_destroy)
32763         (posix_spawn_file_actions_addopen)
32764         (posix_spawn_file_actions_addclose)
32765         (posix_spawn_file_actions_adddup2): Likewise.
32766         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
32767         * tests/test-signal.c (main): Enhance test.
32768
32769         spawn: improve wrapper support
32770         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
32771         (gl_SPAWN_H_DEFAULTS): New defaults.
32772         * modules/spawn (Makefile.am): Substitute them.
32773         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
32774         Only declare if missing or broken.
32775
32776         sys_times, sys_utsname: use include_next
32777         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
32778         header.
32779         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
32780         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
32781         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
32782         * modules/sys_times (Depends-on): Add include_next.
32783         (Makefile.am): Substitute additional values.
32784         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
32785         * lib/sys_times.in.h (includes): Include native header, if
32786         available.
32787         * lib/sys_utsname.in.h (includes): Likewise.
32788         * tests/test-sys_times.c (main): Enhance test.
32789
32790         fdutimensat: revert prior patch
32791         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
32792         utimens.h.
32793         Reported by Bruno Haible.
32794
32795 2009-12-30  Eric Blake  <ebb9@byu.net>
32796
32797         sys_wait: drop link-warning dependency
32798         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
32799         link-warning efforts.
32800         * lib/sys_wait.in.h: Likewise.
32801
32802         fdutimensat: remove bogus dependency
32803         * modules/fdutimensat (Depends-on): Drop inline.
32804
32805         unistd: fix typo
32806         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
32807
32808 2009-12-30  Bruno Haible  <bruno@clisp.org>
32809
32810         Fix compilation error with Solaris cc.
32811         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
32812         * lib/unicase/u16-is-invariant.c: Likewise.
32813         * lib/unicase/u32-is-invariant.c: Likewise.
32814         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
32815
32816 2009-12-30  Bruno Haible  <bruno@clisp.org>
32817
32818         Fix test crash.
32819         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
32820         locales.
32821         Reported by Simon Josefsson <simon@josefsson.org>.
32822
32823 2009-12-30  Bruno Haible  <bruno@clisp.org>
32824
32825         Fix compilation error on most platforms.
32826         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
32827         Reported by Simon Josefsson <simon@josefsson.org>
32828         and Nelson H. F. Beebe <beebe@math.utah.edu>.
32829
32830 2009-12-30  Eric Blake  <ebb9@byu.net>
32831
32832         futimens, utimensat: work around ntfs-3g bug
32833         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
32834         a ctime bug is present, and expand workaround to cover ntfs-3g.
32835         * lib/utimens.c (fdutimens, lutimens): Likewise.
32836         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
32837         (validate_timespec): Adjust return value.
32838         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
32839         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
32840         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
32841
32842 2009-12-29  Eric Blake  <ebb9@byu.net>
32843
32844         link-warning: make usage consistent
32845         * modules/ctype (Depends-on): Add link-warning.
32846         (Makefile.am): Update rules accordingly.
32847         * modules/langinfo (Depends-on, Makefile.am): Likewise.
32848         * modules/locale (Depends-on, Makefile.am): Likewise.
32849         * modules/sys_file (Makefile.am): Likewise.
32850         * modules/getopt-posix (Makefile.am): Delete unused link warning
32851         efforts.
32852         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
32853         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
32854         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
32855         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
32856
32857         stdio: remove unused variables
32858         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
32859         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
32860         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
32861
32862         tests: test more substitute headers
32863         * modules/ctype-tests: New file.
32864         * modules/dirent-tests: Likewise.
32865         * modules/spawn-tests: Likewise.
32866         * modules/sys_file-tests: Likewise.
32867         * modules/sys_ioctl-tests: Likewise.
32868         * modules/sys_wait-tests: Likewise.
32869         * tests/test-ctype.c: Likewise.
32870         * tests/test-dirent.c: Likewise.
32871         * tests/test-spawn.c: Likewise.
32872         * tests/test-sys_file.c: Likewise.
32873         * tests/test-sys_ioctl.c: Likewise.
32874         * tests/test-sys_wait.c: Likewise.
32875         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
32876         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
32877         whether or not flock is in use.
32878
32879         tests: remove License section from module
32880         * modules/arpa_inet-tests: Remove unneeded section.
32881         * modules/byteswap-tests: Likewise.
32882         * modules/ceilf-tests: Likewise.
32883         * modules/ceill-tests: Likewise.
32884         * modules/crypto/des-tests: Likewise.
32885         * modules/crypto/gc-arcfour-tests: Likewise.
32886         * modules/crypto/gc-arctwo-tests: Likewise.
32887         * modules/crypto/gc-des-tests: Likewise.
32888         * modules/crypto/gc-hmac-md5-tests: Likewise.
32889         * modules/crypto/gc-hmac-sha1-tests: Likewise.
32890         * modules/crypto/gc-md2-tests: Likewise.
32891         * modules/crypto/gc-md4-tests: Likewise.
32892         * modules/crypto/gc-md5-tests: Likewise.
32893         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
32894         * modules/crypto/gc-rijndael-tests: Likewise.
32895         * modules/crypto/gc-sha1-tests: Likewise.
32896         * modules/crypto/gc-tests: Likewise.
32897         * modules/crypto/md2-tests: Likewise.
32898         * modules/crypto/md4-tests: Likewise.
32899         * modules/fcntl-h-tests: Likewise.
32900         * modules/floorf-tests: Likewise.
32901         * modules/floorl-tests: Likewise.
32902         * modules/frexp-nolibm-tests: Likewise.
32903         * modules/frexp-tests: Likewise.
32904         * modules/frexpl-nolibm-tests: Likewise.
32905         * modules/frexpl-tests: Likewise.
32906         * modules/getaddrinfo-tests: Likewise.
32907         * modules/inttypes-tests: Likewise.
32908         * modules/isfinite-tests: Likewise.
32909         * modules/isinf-tests: Likewise.
32910         * modules/ldexpl-tests: Likewise.
32911         * modules/locale-tests: Likewise.
32912         * modules/math-tests: Likewise.
32913         * modules/netdb-tests: Likewise.
32914         * modules/netinet_in-tests: Likewise.
32915         * modules/printf-frexp-tests: Likewise.
32916         * modules/printf-frexpl-tests: Likewise.
32917         * modules/priv-set-tests: Likewise.
32918         * modules/random_r-tests: Likewise.
32919         * modules/round-tests: Likewise.
32920         * modules/roundf-tests: Likewise.
32921         * modules/roundl-tests: Likewise.
32922         * modules/search-tests: Likewise.
32923         * modules/select-tests: Likewise.
32924         * modules/signal-tests: Likewise.
32925         * modules/stdbool-tests: Likewise.
32926         * modules/stddef-tests: Likewise.
32927         * modules/stdint-tests: Likewise.
32928         * modules/stdio-tests: Likewise.
32929         * modules/stdlib-tests: Likewise.
32930         * modules/string-tests: Likewise.
32931         * modules/strings-tests: Likewise.
32932         * modules/sys_select-tests: Likewise.
32933         * modules/sys_socket-tests: Likewise.
32934         * modules/sys_stat-tests: Likewise.
32935         * modules/sys_time-tests: Likewise.
32936         * modules/sys_utsname-tests: Likewise.
32937         * modules/sysexits-tests: Likewise.
32938         * modules/time-tests: Likewise.
32939         * modules/trunc-tests: Likewise.
32940         * modules/truncf-tests: Likewise.
32941         * modules/truncl-tests: Likewise.
32942         * modules/tsearch-tests: Likewise.
32943         * modules/unistd-tests: Likewise.
32944         * modules/wchar-tests: Likewise.
32945         * modules/wctype-tests: Likewise.
32946
32947         tests: fix license on several tests
32948         * tests/test-des.c: Update to GPLv3+.
32949         * tests/test-flock.c: Likewise.
32950         * tests/test-fsync.c: Likewise.
32951         * tests/test-futimens.h: Likewise.
32952         * tests/test-gc-arcfour.c: Likewise.
32953         * tests/test-gc-arctwo.c: Likewise.
32954         * tests/test-gc-des.c: Likewise.
32955         * tests/test-gc-hmac-md5.c: Likewise.
32956         * tests/test-gc-hmac-sha1.c: Likewise.
32957         * tests/test-gc-md2.c: Likewise.
32958         * tests/test-gc-md4.c: Likewise.
32959         * tests/test-gc-md5.c: Likewise.
32960         * tests/test-gc-pbkdf2-sha1.c: Likewise.
32961         * tests/test-gc-rijndael.c: Likewise.
32962         * tests/test-gc-sha1.c: Likewise.
32963         * tests/test-gc.c: Likewise.
32964         * tests/test-getcwd.c: Likewise.
32965         * tests/test-link.c: Likewise.
32966         * tests/test-link.h: Likewise.
32967         * tests/test-lutimens.h: Likewise.
32968         * tests/test-md2.c: Likewise.
32969         * tests/test-md4.c: Likewise.
32970         * tests/test-mkdir.h: Likewise.
32971         * tests/test-rename.c: Likewise.
32972         * tests/test-rename.h: Likewise.
32973         * tests/test-safe-alloc.c: Likewise.
32974         * tests/test-utimens-common.h: Likewise.
32975         * tests/test-utimens.h: Likewise.
32976
32977         maint: sync license texts
32978         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
32979         * doc/gpl-3.0.texi: Revert copyright year update.
32980         * doc/lgpl-3.0.texi: Likewise.
32981
32982 2009-12-29  Jim Meyering  <meyering@redhat.com>
32983
32984         update nearly all FSF copyright year lists to include 2009
32985         The files named by the following are exempted:
32986             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
32987               test -f "$dst" && { echo "$dst"; continue; }
32988               test -d "$dst" || continue
32989               echo "$dst"/$(basename "$src")
32990             done > exempt
32991             git ls-files tests/unictype >> exempt
32992         In the remaining files, convert to all-interval notation if
32993         - there is already at least one year interval like 2000-2003
32994         - the file is maintained by me
32995         - the file is in lib/uni*/, where that style already prevails
32996         Otherwise, use update-copyright's default.
32997
32998 2009-12-29  Simon Josefsson  <simon@josefsson.org>
32999         and Eric Blake  <ebb9@byu.net>
33000
33001         tests: don't require debug system() to pass
33002         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
33003         * tests/test-rmdir.h (test_rmdir_func): Likewise.
33004         * tests/test-unlink.h (test_unlink_func): Likewise.
33005         * tests/test-fstatat.c (main): ...into callers.
33006         * tests/test-lstat.c (main): Likewise.
33007         * tests/test-rmdir.c (main): Likewise.
33008         * tests/test-unlink.c (main): Likewise.
33009         * tests/test-unlinkat.c (main): Likewise.
33010         * tests/test-areadlink-with-size.c (main): Don't require a
33011         debug-only system call to pass, aiding cross-testing to mingw.
33012         * tests/test-areadlink.c (main): Likewise.
33013         * tests/test-areadlinkat-with-size.c (main): Likewise.
33014         * tests/test-areadlinkat.c (main): Likewise.
33015         * tests/test-canonicalize-lgpl.c (main): Likewise.
33016         * tests/test-canonicalize.c (main): Likewise.
33017         * tests/test-chown.c (main): Likewise.
33018         * tests/test-fchownat.c (main): Likewise.
33019         * tests/test-lchown.c (main): Likewise.
33020         * tests/test-fdutimensat.c (main): Likewise.
33021         * tests/test-futimens.c (main): Likewise.
33022         * tests/test-link.c (main): Likewise.
33023         * tests/test-linkat.c (main): Likewise.
33024         * tests/test-mkdir.c (main): Likewise.
33025         * tests/test-mkdirat.c (main): Likewise.
33026         * tests/test-mkfifo.c (main): Likewise.
33027         * tests/test-mkfifoat.c (main): Likewise.
33028         * tests/test-mknod.c (main): Likewise.
33029         * tests/test-readlink.c (main): Likewise.
33030         * tests/test-remove.c (main): Likewise.
33031         * tests/test-rename.c (main): Likewise.
33032         * tests/test-renameat.c (main): Likewise.
33033         * tests/test-symlink.c (main): Likewise.
33034         * tests/test-symlinkat.c (main): Likewise.
33035         * tests/test-utimens.c (main): Likewise.
33036         * tests/test-utimensat.c (main): Likewise.
33037
33038 2009-12-29  Simon Josefsson  <simon@josefsson.org>
33039
33040         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
33041         on $(UNUSED_PARAMETER_H) to avoid build failure.
33042
33043 2009-12-28  Jim Meyering  <meyering@redhat.com>
33044
33045         update-copyright: you may specify a max. line length other than 72
33046         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
33047
33048         maint: use consistent FSF copyright line syntax
33049         * lib/posixtm.c: Add missing comma in FSF copyright line.
33050         * lib/posixtm.h: Likewise.
33051         * lib/getugroups.c: Add missing ", Inc.".
33052
33053         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
33054         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
33055         FSF copyright line.  Remove trailing blanks.
33056
33057 2009-12-28  Eric Blake  <ebb9@byu.net>
33058
33059         test-dup2: reduce dependencies
33060         * modules/cloexec (Configure.ac): Set witness.
33061         * modules/dup2-tests (Depends-on): Drop cloexec.
33062         * tests/test-dup2.c (main): Skip portion of test if cloexec module
33063         not present.
33064         Suggested by Bruno Haible.
33065
33066 2009-12-26  Bruno Haible  <bruno@clisp.org>
33067
33068         Remove an unneeded dependency.
33069         * modules/fseterr (Depends-on): Remove dup2.
33070
33071 2009-12-26  Eric Blake  <ebb9@byu.net>
33072
33073         tests: use macros.h in more places
33074         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
33075         (ASSERT_STREAM): Provide default of stderr.
33076         * tests/test-dirent-safer.c: Include macros.h, using alternate
33077         stream for assertions.
33078         * tests/test-dup-safer.c: Likewise.
33079         * tests/test-freopen-safer.c: Likewise.
33080         * tests/test-getopt.c: Likewise.
33081         * tests/test-openat-safer.c: Likewise.
33082         * tests/test-pipe.c: Likewise.
33083         * tests/test-popen-safer.c: Likewise.
33084         * modules/dirent-safer-tests (Files): Include macros.h.
33085         * modules/unistd-safer-tests (Files): Likewise.
33086         * modules/freopen-safer-tests (Files): Likewise.
33087         * modules/getopt-posix-tests (Files): Likewise.
33088         * modules/openat-safer-tests (Files): Likewise.
33089         * modules/pipe-tests (Files): Likewise.
33090
33091 2009-12-26  Bruno Haible  <bruno@clisp.org>
33092
33093         javacomp: Portability fix.
33094         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
33095         that it also works on Solaris.
33096
33097 2009-12-26  Bruno Haible  <bruno@clisp.org>
33098
33099         localename: Fix storage allocation of gl_locale_name_thread's result.
33100         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
33101         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
33102         all platforms that have 'uselocale'.
33103         (gl_locale_name_thread_unsafe): New function, extracted from
33104         gl_locale_name_thread.
33105         (gl_locale_name_thread): Call struniq on all platforms that have
33106         'uselocale'.
33107         * tests/test-localename.c (test_locale_name_thread): Check that the
33108         resulting strings are permanently allocated.
33109         * modules/localename-tests (Depends-on): Add strdup.
33110
33111 2009-12-26  Bruno Haible  <bruno@clisp.org>
33112
33113         * tests/test-localename.c (categories): Fill in the strings.
33114
33115 2009-12-26  Jim Meyering  <meyering@redhat.com>
33116
33117         isdir: complete the removal of m4/isdir.m4
33118         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
33119
33120         isdir: clean up, since at least grep still uses it
33121         * lib/isdir.c: Include "isdir.h".
33122         (S_ISDIR): Remove now-unneeded definition.
33123         * modules/isdir (Files): Add lib/isdir.h.
33124         * lib/isdir.h: New file, with declaration.
33125         * m4/isdir.m4: Remove file -- unneeded.
33126
33127 2009-12-25  Bruno Haible  <bruno@clisp.org>
33128
33129         selinux-h: Make generated .h files standalone.
33130         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
33131         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
33132         * lib/se-selinux.in.h: Likewise.
33133         * modules/selinux-h (Depends-on): Add unused-parameter.
33134         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
33135         selinux/selinux.h and selinux/context.h.
33136         Suggested by Eric Blake.
33137
33138 2009-12-25  Bruno Haible  <bruno@clisp.org>
33139
33140         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
33141         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
33142         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
33143         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
33144         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
33145
33146 2009-12-24  Bruno Haible  <bruno@clisp.org>
33147
33148         openat: Fix warning.
33149         * lib/openat-proc.c: Include <unistd.h>.
33150
33151 2009-12-24  Bruno Haible  <bruno@clisp.org>
33152
33153         New module 'unused-parameter'.
33154         * build-aux/unused-parameter.h: New file, extracted from earlier
33155         gnulib-common.m4.
33156         * modules/unused-parameter: New file.
33157         * lib/unistr.h: Include unused-parameter.h.
33158         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
33159         _GL_UNUSED.
33160         * modules/unistr/base (Depends-on): Add unused-parameter.
33161
33162 2009-12-24  Bruno Haible  <bruno@clisp.org>
33163
33164         Add missing dependencies to 'extensions' module.
33165         * m4/extensions.m4: Add comment.
33166         * modules/accept4 (Depends-on): Add extensions.
33167         * modules/dup3 (Depends-on): Likewise.
33168         * modules/fcntl (Depends-on): Likewise.
33169         * modules/futimens (Depends-on): Likewise.
33170         * modules/mknod (Depends-on): Likewise.
33171         * modules/pipe2 (Depends-on): Likewise.
33172         * modules/stat-time (Depends-on): Likewise.
33173         * modules/strcasestr-simple (Depends-on): Likewise.
33174         * modules/strsignal (Depends-on): Likewise.
33175         * modules/utimensat (Depends-on): Likewise.
33176         * modules/localcharset (Depends-on): Likewise. Needed because of
33177         gl_FCNTL_O_FLAGS.
33178         * modules/wcrtomb (Depends-on): Likewise. Needed because of
33179         AC_TYPE_MBSTATE_T.
33180         * modules/wcsnrtombs (Depends-on): Likewise.
33181         * modules/wcsrtombs (Depends-on): Likewise.
33182
33183 2009-12-24  Bruno Haible  <bruno@clisp.org>
33184
33185         binary-io: Avoid gcc warning due to SET_BINARY.
33186         * lib/binary-io.h (SET_BINARY): Cast the result to void.
33187         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
33188
33189 2009-12-24  Bruno Haible  <bruno@clisp.org>
33190
33191         Avoid future namespace pollution on glibc systems.
33192         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
33193         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
33194         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
33195         glibc systems.
33196
33197 2009-12-24  Bruno Haible  <bruno@clisp.org>
33198
33199         Refactor common macros used in tests.
33200         * tests/macros.h: New file.
33201         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
33202         and/or <stdlib.h>, if appropriate.
33203         (ASSERT, SIZEOF): Remove macros.
33204         * tests/test-areadlink-with-size.c: Likewise.
33205         * tests/test-areadlinkat.c: Likewise.
33206         * tests/test-areadlinkat-with-size.c: Likewise.
33207         * tests/test-argmatch.c: Likewise.
33208         * tests/test-argv-iter.c: Likewise.
33209         * tests/test-array-mergesort.c: Likewise.
33210         * tests/test-array_list.c: Likewise.
33211         * tests/test-array_oset.c: Likewise.
33212         * tests/test-avltree_list.c: Likewise.
33213         * tests/test-avltree_oset.c: Likewise.
33214         * tests/test-avltreehash_list.c: Likewise.
33215         * tests/test-base64.c: Likewise.
33216         * tests/test-binary-io.c: Likewise.
33217         * tests/test-bitrotate.c: Likewise.
33218         * tests/test-btowc.c: Likewise.
33219         * tests/test-byteswap.c: Likewise.
33220         * tests/test-c-ctype.c: Likewise.
33221         * tests/test-c-stack.c: Likewise.
33222         * tests/test-c-strcasecmp.c: Likewise.
33223         * tests/test-c-strcasestr.c: Likewise.
33224         * tests/test-c-strncasecmp.c: Likewise.
33225         * tests/test-c-strstr.c: Likewise.
33226         * tests/test-canonicalize-lgpl.c: Likewise.
33227         * tests/test-canonicalize.c: Likewise.
33228         * tests/test-carray_list.c: Likewise.
33229         * tests/test-ceilf1.c: Likewise.
33230         * tests/test-ceilf2.c: Likewise.
33231         * tests/test-ceill.c: Likewise.
33232         * tests/test-chown.c: Likewise.
33233         * tests/test-cloexec.c: Likewise.
33234         * tests/test-copy-acl.c: Likewise.
33235         * tests/test-copy-file.c: Likewise.
33236         * tests/test-count-one-bits.c: Likewise.
33237         * tests/test-dprintf-posix.c: Likewise.
33238         * tests/test-dup2.c: Likewise.
33239         * tests/test-dup3.c: Likewise.
33240         * tests/test-duplocale.c: Likewise.
33241         * tests/test-fbufmode.c: Likewise.
33242         * tests/test-fchdir.c: Likewise.
33243         * tests/test-fchownat.c: Likewise.
33244         * tests/test-fcntl-safer.c: Likewise.
33245         * tests/test-fcntl.c: Likewise.
33246         * tests/test-fdopendir.c: Likewise.
33247         * tests/test-fdutimensat.c: Likewise.
33248         * tests/test-fflush2.c: Likewise.
33249         * tests/test-file-has-acl.c: Likewise.
33250         * tests/test-filevercmp.c: Likewise.
33251         * tests/test-flock.c: Likewise.
33252         * tests/test-floorf1.c: Likewise.
33253         * tests/test-floorf2.c: Likewise.
33254         * tests/test-floorl.c: Likewise.
33255         * tests/test-fnmatch.c: Likewise.
33256         * tests/test-fopen.h: Likewise.
33257         * tests/test-fpending.c: Likewise.
33258         * tests/test-fprintf-posix.c: Likewise.
33259         * tests/test-fpurge.c: Likewise.
33260         * tests/test-freadable.c: Likewise.
33261         * tests/test-freadahead.c: Likewise.
33262         * tests/test-freading.c: Likewise.
33263         * tests/test-freadptr.c: Likewise.
33264         * tests/test-freadptr2.c: Likewise.
33265         * tests/test-freadseek.c: Likewise.
33266         * tests/test-freopen.c: Likewise.
33267         * tests/test-frexp.c: Likewise.
33268         * tests/test-frexpl.c: Likewise.
33269         * tests/test-fseek.c: Likewise.
33270         * tests/test-fseeko.c: Likewise.
33271         * tests/test-fstatat.c: Likewise.
33272         * tests/test-fstrcmp.c: Likewise.
33273         * tests/test-fsync.c: Likewise.
33274         * tests/test-ftell.c: Likewise.
33275         * tests/test-ftello.c: Likewise.
33276         * tests/test-func.c: Likewise.
33277         * tests/test-futimens.c: Likewise.
33278         * tests/test-fwritable.c: Likewise.
33279         * tests/test-fwriting.c: Likewise.
33280         * tests/test-getcwd.c: Likewise.
33281         * tests/test-getdate.c: Likewise.
33282         * tests/test-getdelim.c: Likewise.
33283         * tests/test-getdtablesize.c: Likewise.
33284         * tests/test-getgroups.c: Likewise.
33285         * tests/test-getline.c: Likewise.
33286         * tests/test-getndelim2.c: Likewise.
33287         * tests/test-glob.c: Likewise.
33288         * tests/test-hash.c: Likewise.
33289         * tests/test-i-ring.c: Likewise.
33290         * tests/test-iconv-utf.c: Likewise.
33291         * tests/test-iconv.c: Likewise.
33292         * tests/test-idpriv-drop.c: Likewise.
33293         * tests/test-idpriv-droptemp.c: Likewise.
33294         * tests/test-inet_ntop.c: Likewise.
33295         * tests/test-inet_pton.c: Likewise.
33296         * tests/test-isblank.c: Likewise.
33297         * tests/test-isfinite.c: Likewise.
33298         * tests/test-isinf.c: Likewise.
33299         * tests/test-isnan.c: Likewise.
33300         * tests/test-isnand.h: Likewise.
33301         * tests/test-isnanf.h: Likewise.
33302         * tests/test-isnanl.h: Likewise.
33303         * tests/test-lchown.c: Likewise.
33304         * tests/test-ldexpl.c: Likewise.
33305         * tests/test-link.c: Likewise.
33306         * tests/test-linkat.c: Likewise.
33307         * tests/test-linked_list.c: Likewise.
33308         * tests/test-linkedhash_list.c: Likewise.
33309         * tests/test-localename.c: Likewise.
33310         * tests/test-lseek.c: Likewise.
33311         * tests/test-lstat.c: Likewise.
33312         * tests/test-mbmemcasecmp.c: Likewise.
33313         * tests/test-mbmemcasecoll.c: Likewise.
33314         * tests/test-mbrtowc.c: Likewise.
33315         * tests/test-mbscasecmp.c: Likewise.
33316         * tests/test-mbscasestr1.c: Likewise.
33317         * tests/test-mbscasestr2.c: Likewise.
33318         * tests/test-mbscasestr3.c: Likewise.
33319         * tests/test-mbscasestr4.c: Likewise.
33320         * tests/test-mbschr.c: Likewise.
33321         * tests/test-mbscspn.c: Likewise.
33322         * tests/test-mbsinit.c: Likewise.
33323         * tests/test-mbsncasecmp.c: Likewise.
33324         * tests/test-mbsnrtowcs.c: Likewise.
33325         * tests/test-mbspbrk.c: Likewise.
33326         * tests/test-mbspcasecmp.c: Likewise.
33327         * tests/test-mbsrchr.c: Likewise.
33328         * tests/test-mbsrtowcs.c: Likewise.
33329         * tests/test-mbsspn.c: Likewise.
33330         * tests/test-mbsstr1.c: Likewise.
33331         * tests/test-mbsstr2.c: Likewise.
33332         * tests/test-mbsstr3.c: Likewise.
33333         * tests/test-memchr.c: Likewise.
33334         * tests/test-memchr2.c: Likewise.
33335         * tests/test-memcmp.c: Likewise.
33336         * tests/test-memmem.c: Likewise.
33337         * tests/test-memrchr.c: Likewise.
33338         * tests/test-mkdir.c: Likewise.
33339         * tests/test-mkdirat.c: Likewise.
33340         * tests/test-mkfifo.c: Likewise.
33341         * tests/test-mkfifoat.c: Likewise.
33342         * tests/test-mknod.c: Likewise.
33343         * tests/test-nanosleep.c: Likewise.
33344         * tests/test-nl_langinfo.c: Likewise.
33345         * tests/test-obstack-printf.c: Likewise.
33346         * tests/test-open.c: Likewise.
33347         * tests/test-openat.c: Likewise.
33348         * tests/test-pipe-filter-gi1.c: Likewise.
33349         * tests/test-pipe-filter-gi2-main.c: Likewise.
33350         * tests/test-pipe-filter-ii1.c: Likewise.
33351         * tests/test-pipe-filter-ii2-main.c: Likewise.
33352         * tests/test-pipe2.c: Likewise.
33353         * tests/test-popen.h: Likewise.
33354         * tests/test-posixtm.c: Likewise.
33355         * tests/test-pread.c: Likewise.
33356         * tests/test-printf-frexp.c: Likewise.
33357         * tests/test-printf-frexpl.c: Likewise.
33358         * tests/test-printf-posix.c: Likewise.
33359         * tests/test-priv-set.c: Likewise.
33360         * tests/test-quotearg.c: Likewise.
33361         * tests/test-random_r.c: Likewise.
33362         * tests/test-rawmemchr.c: Likewise.
33363         * tests/test-rbtree_list.c: Likewise.
33364         * tests/test-rbtree_oset.c: Likewise.
33365         * tests/test-rbtreehash_list.c: Likewise.
33366         * tests/test-readlink.c: Likewise.
33367         * tests/test-remove.c: Likewise.
33368         * tests/test-rename.c: Likewise.
33369         * tests/test-renameat.c: Likewise.
33370         * tests/test-rmdir.c: Likewise.
33371         * tests/test-round1.c: Likewise.
33372         * tests/test-roundf1.c: Likewise.
33373         * tests/test-roundl.c: Likewise.
33374         * tests/test-safe-alloc.c: Likewise.
33375         * tests/test-sameacls.c: Likewise.
33376         * tests/test-set-mode-acl.c: Likewise.
33377         * tests/test-setenv.c: Likewise.
33378         * tests/test-sigaction.c: Likewise.
33379         * tests/test-signbit.c: Likewise.
33380         * tests/test-sleep.c: Likewise.
33381         * tests/test-snprintf-posix.c: Likewise.
33382         * tests/test-snprintf.c: Likewise.
33383         * tests/test-sprintf-posix.c: Likewise.
33384         * tests/test-stat-time.c: Likewise.
33385         * tests/test-stat.c: Likewise.
33386         * tests/test-strcasestr.c: Likewise.
33387         * tests/test-strchrnul.c: Likewise.
33388         * tests/test-strerror.c: Likewise.
33389         * tests/test-striconv.c: Likewise.
33390         * tests/test-striconveh.c: Likewise.
33391         * tests/test-striconveha.c: Likewise.
33392         * tests/test-strsignal.c: Likewise.
33393         * tests/test-strstr.c: Likewise.
33394         * tests/test-strtod.c: Likewise.
33395         * tests/test-strverscmp.c: Likewise.
33396         * tests/test-symlink.c: Likewise.
33397         * tests/test-symlinkat.c: Likewise.
33398         * tests/test-trunc1.c: Likewise.
33399         * tests/test-trunc2.c: Likewise.
33400         * tests/test-truncf1.c: Likewise.
33401         * tests/test-truncf2.c: Likewise.
33402         * tests/test-truncl.c: Likewise.
33403         * tests/test-uname.c: Likewise.
33404         * tests/test-unlink.c: Likewise.
33405         * tests/test-unlinkat.c: Likewise.
33406         * tests/test-unsetenv.c: Likewise.
33407         * tests/test-usleep.c: Likewise.
33408         * tests/test-utimens.c: Likewise.
33409         * tests/test-utimensat.c: Likewise.
33410         * tests/test-vasnprintf-posix.c: Likewise.
33411         * tests/test-vasnprintf-posix2.c: Likewise.
33412         * tests/test-vasnprintf.c: Likewise.
33413         * tests/test-vasprintf-posix.c: Likewise.
33414         * tests/test-vasprintf.c: Likewise.
33415         * tests/test-vdprintf-posix.c: Likewise.
33416         * tests/test-vfprintf-posix.c: Likewise.
33417         * tests/test-vprintf-posix.c: Likewise.
33418         * tests/test-vsnprintf-posix.c: Likewise.
33419         * tests/test-vsnprintf.c: Likewise.
33420         * tests/test-vsprintf-posix.c: Likewise.
33421         * tests/test-wcrtomb.c: Likewise.
33422         * tests/test-wcsnrtombs.c: Likewise.
33423         * tests/test-wcsrtombs.c: Likewise.
33424         * tests/test-wctype.c: Likewise.
33425         * tests/test-wcwidth.c: Likewise.
33426         * tests/test-xfprintf-posix.c: Likewise.
33427         * tests/test-xmemdup0.c: Likewise.
33428         * tests/test-xprintf-posix.c: Likewise.
33429         * tests/test-xvasprintf.c: Likewise.
33430         * tests/unicase/test-locale-language.c: Likewise.
33431         * tests/unicase/test-mapping-part1.h: Likewise.
33432         * tests/unicase/test-predicate-part1.h: Likewise.
33433         * tests/unicase/test-u8-casecmp.c: Likewise.
33434         * tests/unicase/test-u8-casecoll.c: Likewise.
33435         * tests/unicase/test-u8-casefold.c: Likewise.
33436         * tests/unicase/test-u8-is-cased.c: Likewise.
33437         * tests/unicase/test-u8-is-casefolded.c: Likewise.
33438         * tests/unicase/test-u8-is-lowercase.c: Likewise.
33439         * tests/unicase/test-u8-is-titlecase.c: Likewise.
33440         * tests/unicase/test-u8-is-uppercase.c: Likewise.
33441         * tests/unicase/test-u8-tolower.c: Likewise.
33442         * tests/unicase/test-u8-totitle.c: Likewise.
33443         * tests/unicase/test-u8-toupper.c: Likewise.
33444         * tests/unicase/test-u16-casecmp.c: Likewise.
33445         * tests/unicase/test-u16-casecoll.c: Likewise.
33446         * tests/unicase/test-u16-casefold.c: Likewise.
33447         * tests/unicase/test-u16-is-cased.c: Likewise.
33448         * tests/unicase/test-u16-is-casefolded.c: Likewise.
33449         * tests/unicase/test-u16-is-lowercase.c: Likewise.
33450         * tests/unicase/test-u16-is-titlecase.c: Likewise.
33451         * tests/unicase/test-u16-is-uppercase.c: Likewise.
33452         * tests/unicase/test-u16-tolower.c: Likewise.
33453         * tests/unicase/test-u16-totitle.c: Likewise.
33454         * tests/unicase/test-u16-toupper.c: Likewise.
33455         * tests/unicase/test-u32-casecmp.c: Likewise.
33456         * tests/unicase/test-u32-casecoll.c: Likewise.
33457         * tests/unicase/test-u32-casefold.c: Likewise.
33458         * tests/unicase/test-u32-is-cased.c: Likewise.
33459         * tests/unicase/test-u32-is-casefolded.c: Likewise.
33460         * tests/unicase/test-u32-is-lowercase.c: Likewise.
33461         * tests/unicase/test-u32-is-titlecase.c: Likewise.
33462         * tests/unicase/test-u32-is-uppercase.c: Likewise.
33463         * tests/unicase/test-u32-tolower.c: Likewise.
33464         * tests/unicase/test-u32-totitle.c: Likewise.
33465         * tests/unicase/test-u32-toupper.c: Likewise.
33466         * tests/unicase/test-ulc-casecmp.c: Likewise.
33467         * tests/unicase/test-ulc-casecoll.c: Likewise.
33468         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
33469         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
33470         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
33471         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
33472         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
33473         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
33474         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
33475         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
33476         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
33477         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
33478         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
33479         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
33480         * tests/unictype/test-bidi_byname.c: Likewise.
33481         * tests/unictype/test-bidi_name.c: Likewise.
33482         * tests/unictype/test-bidi_of.c: Likewise.
33483         * tests/unictype/test-bidi_test.c: Likewise.
33484         * tests/unictype/test-block_list.c: Likewise.
33485         * tests/unictype/test-block_of.c: Likewise.
33486         * tests/unictype/test-block_test.c: Likewise.
33487         * tests/unictype/test-categ_and.c: Likewise.
33488         * tests/unictype/test-categ_and_not.c: Likewise.
33489         * tests/unictype/test-categ_byname.c: Likewise.
33490         * tests/unictype/test-categ_name.c: Likewise.
33491         * tests/unictype/test-categ_none.c: Likewise.
33492         * tests/unictype/test-categ_of.c: Likewise.
33493         * tests/unictype/test-categ_or.c: Likewise.
33494         * tests/unictype/test-categ_test_withtable.c: Likewise.
33495         * tests/unictype/test-combining.c: Likewise.
33496         * tests/unictype/test-decdigit.c: Likewise.
33497         * tests/unictype/test-digit.c: Likewise.
33498         * tests/unictype/test-mirror.c: Likewise.
33499         * tests/unictype/test-numeric.c: Likewise.
33500         * tests/unictype/test-pr_byname.c: Likewise.
33501         * tests/unictype/test-pr_test.c: Likewise.
33502         * tests/unictype/test-predicate-part1.h: Likewise.
33503         * tests/unictype/test-scripts.c: Likewise.
33504         * tests/unictype/test-sy_c_ident.c: Likewise.
33505         * tests/unictype/test-sy_java_ident.c: Likewise.
33506         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
33507         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
33508         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
33509         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
33510         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
33511         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
33512         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
33513         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
33514         * tests/uninorm/test-canonical-decomposition.c: Likewise.
33515         * tests/uninorm/test-compat-decomposition.c: Likewise.
33516         * tests/uninorm/test-composition.c: Likewise.
33517         * tests/uninorm/test-decomposing-form.c: Likewise.
33518         * tests/uninorm/test-decomposition.c: Likewise.
33519         * tests/uninorm/test-u8-nfc.c: Likewise.
33520         * tests/uninorm/test-u8-nfd.c: Likewise.
33521         * tests/uninorm/test-u8-nfkc.c: Likewise.
33522         * tests/uninorm/test-u8-nfkd.c: Likewise.
33523         * tests/uninorm/test-u8-normcmp.c: Likewise.
33524         * tests/uninorm/test-u8-normcoll.c: Likewise.
33525         * tests/uninorm/test-u16-nfc.c: Likewise.
33526         * tests/uninorm/test-u16-nfd.c: Likewise.
33527         * tests/uninorm/test-u16-nfkc.c: Likewise.
33528         * tests/uninorm/test-u16-nfkd.c: Likewise.
33529         * tests/uninorm/test-u16-normcmp.c: Likewise.
33530         * tests/uninorm/test-u16-normcoll.c: Likewise.
33531         * tests/uninorm/test-u32-nfc.c: Likewise.
33532         * tests/uninorm/test-u32-nfd.c: Likewise.
33533         * tests/uninorm/test-u32-nfkc.c: Likewise.
33534         * tests/uninorm/test-u32-nfkd.c: Likewise.
33535         * tests/uninorm/test-u32-normalize-big.c: Likewise.
33536         * tests/uninorm/test-u32-normcmp.c: Likewise.
33537         * tests/uninorm/test-u32-normcoll.c: Likewise.
33538         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
33539         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
33540         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
33541         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
33542         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
33543         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
33544         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
33545         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
33546         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
33547         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
33548         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
33549         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
33550         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
33551         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
33552         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
33553         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
33554         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
33555         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
33556         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
33557         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
33558         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
33559         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
33560         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
33561         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
33562         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
33563         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
33564         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
33565         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
33566         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
33567         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
33568         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
33569         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
33570         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
33571         * tests/uniwidth/test-u8-strwidth.c: Likewise.
33572         * tests/uniwidth/test-u8-width.c: Likewise.
33573         * tests/uniwidth/test-u16-strwidth.c: Likewise.
33574         * tests/uniwidth/test-u16-width.c: Likewise.
33575         * tests/uniwidth/test-u32-strwidth.c: Likewise.
33576         * tests/uniwidth/test-u32-width.c: Likewise.
33577         * tests/uniwidth/test-uc_width.c: Likewise.
33578         * tests/uniwidth/test-uc_width2.c: Likewise.
33579         * modules/acl-tests (Files): Add tests/macros.h.
33580         * modules/areadlink-tests (Files): Likewise.
33581         * modules/areadlink-with-size-tests (Files): Likewise.
33582         * modules/areadlinkat-tests (Files): Likewise.
33583         * modules/areadlinkat-with-size-tests (Files): Likewise.
33584         * modules/argmatch-tests (Files): Likewise.
33585         * modules/argv-iter-tests (Files): Likewise.
33586         * modules/array-list-tests (Files): Likewise.
33587         * modules/array-mergesort-tests (Files): Likewise.
33588         * modules/array-oset-tests (Files): Likewise.
33589         * modules/avltree-list-tests (Files): Likewise.
33590         * modules/avltree-oset-tests (Files): Likewise.
33591         * modules/avltreehash-list-tests (Files): Likewise.
33592         * modules/base64-tests (Files): Likewise.
33593         * modules/binary-io-tests (Files): Likewise.
33594         * modules/bitrotate-tests (Files): Likewise.
33595         * modules/btowc-tests (Files): Likewise.
33596         * modules/byteswap-tests (Files): Likewise.
33597         * modules/c-ctype-tests (Files): Likewise.
33598         * modules/c-stack-tests (Files): Likewise.
33599         * modules/c-strcase-tests (Files): Likewise.
33600         * modules/c-strcasestr-tests (Files): Likewise.
33601         * modules/c-strstr-tests (Files): Likewise.
33602         * modules/canonicalize-lgpl-tests (Files): Likewise.
33603         * modules/canonicalize-tests (Files): Likewise.
33604         * modules/carray-list-tests (Files): Likewise.
33605         * modules/ceilf-tests (Files): Likewise.
33606         * modules/ceill-tests (Files): Likewise.
33607         * modules/chown-tests (Files): Likewise.
33608         * modules/cloexec-tests (Files): Likewise.
33609         * modules/copy-file-tests (Files): Likewise.
33610         * modules/count-one-bits-tests (Files): Likewise.
33611         * modules/dprintf-posix-tests (Files): Likewise.
33612         * modules/dup2-tests (Files): Likewise.
33613         * modules/dup3-tests (Files): Likewise.
33614         * modules/duplocale-tests (Files): Likewise.
33615         * modules/fbufmode-tests (Files): Likewise.
33616         * modules/fchdir-tests (Files): Likewise.
33617         * modules/fcntl-safer-tests (Files): Likewise.
33618         * modules/fcntl-tests (Files): Likewise.
33619         * modules/fdopendir-tests (Files): Likewise.
33620         * modules/fdutimensat-tests (Files): Likewise.
33621         * modules/fflush-tests (Files): Likewise.
33622         * modules/filevercmp-tests (Files): Likewise.
33623         * modules/flock-tests (Files): Likewise.
33624         * modules/floorf-tests (Files): Likewise.
33625         * modules/floorl-tests (Files): Likewise.
33626         * modules/fnmatch-tests (Files): Likewise.
33627         * modules/fopen-safer-tests (Files): Likewise.
33628         * modules/fopen-tests (Files): Likewise.
33629         * modules/fpending-tests (Files): Likewise.
33630         * modules/fprintf-posix-tests (Files): Likewise.
33631         * modules/fpurge-tests (Files): Likewise.
33632         * modules/freadable-tests (Files): Likewise.
33633         * modules/freadahead-tests (Files): Likewise.
33634         * modules/freading-tests (Files): Likewise.
33635         * modules/freadptr-tests (Files): Likewise.
33636         * modules/freadseek-tests (Files): Likewise.
33637         * modules/freopen-tests (Files): Likewise.
33638         * modules/frexp-nolibm-tests (Files): Likewise.
33639         * modules/frexp-tests (Files): Likewise.
33640         * modules/frexpl-nolibm-tests (Files): Likewise.
33641         * modules/frexpl-tests (Files): Likewise.
33642         * modules/fseek-tests (Files): Likewise.
33643         * modules/fseeko-tests (Files): Likewise.
33644         * modules/fstrcmp-tests (Files): Likewise.
33645         * modules/fsync-tests (Files): Likewise.
33646         * modules/ftell-tests (Files): Likewise.
33647         * modules/ftello-tests (Files): Likewise.
33648         * modules/func-tests (Files): Likewise.
33649         * modules/futimens-tests (Files): Likewise.
33650         * modules/fwritable-tests (Files): Likewise.
33651         * modules/fwriting-tests (Files): Likewise.
33652         * modules/getcwd-tests (Files): Likewise.
33653         * modules/getdate-tests (Files): Likewise.
33654         * modules/getdelim-tests (Files): Likewise.
33655         * modules/getdtablesize-tests (Files): Likewise.
33656         * modules/getgroups-tests (Files): Likewise.
33657         * modules/getline-tests (Files): Likewise.
33658         * modules/getndelim2-tests (Files): Likewise.
33659         * modules/glob-tests (Files): Likewise.
33660         * modules/hash-tests (Files): Likewise.
33661         * modules/i-ring-tests (Files): Likewise.
33662         * modules/iconv-tests (Files): Likewise.
33663         * modules/iconv_open-utf-tests (Files): Likewise.
33664         * modules/idpriv-drop-tests (Files): Likewise.
33665         * modules/idpriv-droptemp-tests (Files): Likewise.
33666         * modules/inet_ntop-tests (Files): Likewise.
33667         * modules/inet_pton-tests (Files): Likewise.
33668         * modules/isblank-tests (Files): Likewise.
33669         * modules/isfinite-tests (Files): Likewise.
33670         * modules/isinf-tests (Files): Likewise.
33671         * modules/isnan-tests (Files): Likewise.
33672         * modules/isnand-nolibm-tests (Files): Likewise.
33673         * modules/isnand-tests (Files): Likewise.
33674         * modules/isnanf-nolibm-tests (Files): Likewise.
33675         * modules/isnanf-tests (Files): Likewise.
33676         * modules/isnanl-nolibm-tests (Files): Likewise.
33677         * modules/isnanl-tests (Files): Likewise.
33678         * modules/lchown-tests (Files): Likewise.
33679         * modules/ldexpl-tests (Files): Likewise.
33680         * modules/link-tests (Files): Likewise.
33681         * modules/linkat-tests (Files): Likewise.
33682         * modules/linked-list-tests (Files): Likewise.
33683         * modules/linkedhash-list-tests (Files): Likewise.
33684         * modules/localename-tests (Files): Likewise.
33685         * modules/lseek-tests (Files): Likewise.
33686         * modules/lstat-tests (Files): Likewise.
33687         * modules/mbmemcasecmp-tests (Files): Likewise.
33688         * modules/mbmemcasecoll-tests (Files): Likewise.
33689         * modules/mbrtowc-tests (Files): Likewise.
33690         * modules/mbscasecmp-tests (Files): Likewise.
33691         * modules/mbscasestr-tests (Files): Likewise.
33692         * modules/mbschr-tests (Files): Likewise.
33693         * modules/mbscspn-tests (Files): Likewise.
33694         * modules/mbsinit-tests (Files): Likewise.
33695         * modules/mbsncasecmp-tests (Files): Likewise.
33696         * modules/mbsnrtowcs-tests (Files): Likewise.
33697         * modules/mbspbrk-tests (Files): Likewise.
33698         * modules/mbspcasecmp-tests (Files): Likewise.
33699         * modules/mbsrchr-tests (Files): Likewise.
33700         * modules/mbsrtowcs-tests (Files): Likewise.
33701         * modules/mbsspn-tests (Files): Likewise.
33702         * modules/mbsstr-tests (Files): Likewise.
33703         * modules/memchr-tests (Files): Likewise.
33704         * modules/memchr2-tests (Files): Likewise.
33705         * modules/memcmp-tests (Files): Likewise.
33706         * modules/memmem-tests (Files): Likewise.
33707         * modules/memrchr-tests (Files): Likewise.
33708         * modules/mkdir-tests (Files): Likewise.
33709         * modules/mkfifo-tests (Files): Likewise.
33710         * modules/mkfifoat-tests (Files): Likewise.
33711         * modules/mknod-tests (Files): Likewise.
33712         * modules/nanosleep-tests (Files): Likewise.
33713         * modules/nl_langinfo-tests (Files): Likewise.
33714         * modules/obstack-printf-tests (Files): Likewise.
33715         * modules/open-tests (Files): Likewise.
33716         * modules/openat-tests (Files): Likewise.
33717         * modules/pipe-filter-gi-tests (Files): Likewise.
33718         * modules/pipe-filter-ii-tests (Files): Likewise.
33719         * modules/pipe2-tests (Files): Likewise.
33720         * modules/popen-safer-tests (Files): Likewise.
33721         * modules/popen-tests (Files): Likewise.
33722         * modules/posixtm-tests (Files): Likewise.
33723         * modules/pread-tests (Files): Likewise.
33724         * modules/printf-frexp-tests (Files): Likewise.
33725         * modules/printf-frexpl-tests (Files): Likewise.
33726         * modules/printf-posix-tests (Files): Likewise.
33727         * modules/priv-set-tests (Files): Likewise.
33728         * modules/quotearg-tests (Files): Likewise.
33729         * modules/random_r-tests (Files): Likewise.
33730         * modules/rawmemchr-tests (Files): Likewise.
33731         * modules/rbtree-list-tests (Files): Likewise.
33732         * modules/rbtree-oset-tests (Files): Likewise.
33733         * modules/rbtreehash-list-tests (Files): Likewise.
33734         * modules/readlink-tests (Files): Likewise.
33735         * modules/remove-tests (Files): Likewise.
33736         * modules/rename-tests (Files): Likewise.
33737         * modules/renameat-tests (Files): Likewise.
33738         * modules/rmdir-tests (Files): Likewise.
33739         * modules/round-tests (Files): Likewise.
33740         * modules/roundf-tests (Files): Likewise.
33741         * modules/roundl-tests (Files): Likewise.
33742         * modules/safe-alloc-tests (Files): Likewise.
33743         * modules/setenv-tests (Files): Likewise.
33744         * modules/sigaction-tests (Files): Likewise.
33745         * modules/signbit-tests (Files): Likewise.
33746         * modules/sleep-tests (Files): Likewise.
33747         * modules/snprintf-posix-tests (Files): Likewise.
33748         * modules/snprintf-tests (Files): Likewise.
33749         * modules/sprintf-posix-tests (Files): Likewise.
33750         * modules/stat-tests (Files): Likewise.
33751         * modules/stat-time-tests (Files): Likewise.
33752         * modules/strcasestr-tests (Files): Likewise.
33753         * modules/strchrnul-tests (Files): Likewise.
33754         * modules/strerror-tests (Files): Likewise.
33755         * modules/striconv-tests (Files): Likewise.
33756         * modules/striconveh-tests (Files): Likewise.
33757         * modules/striconveha-tests (Files): Likewise.
33758         * modules/strsignal-tests (Files): Likewise.
33759         * modules/strstr-tests (Files): Likewise.
33760         * modules/strtod-tests (Files): Likewise.
33761         * modules/strverscmp-tests (Files): Likewise.
33762         * modules/symlink-tests (Files): Likewise.
33763         * modules/symlinkat-tests (Files): Likewise.
33764         * modules/trunc-tests (Files): Likewise.
33765         * modules/truncf-tests (Files): Likewise.
33766         * modules/truncl-tests (Files): Likewise.
33767         * modules/uname-tests (Files): Likewise.
33768         * modules/unicase/cased-tests (Files): Likewise.
33769         * modules/unicase/ignorable-tests (Files): Likewise.
33770         * modules/unicase/locale-language-tests (Files): Likewise.
33771         * modules/unicase/tolower-tests (Files): Likewise.
33772         * modules/unicase/totitle-tests (Files): Likewise.
33773         * modules/unicase/toupper-tests (Files): Likewise.
33774         * modules/unicase/u8-casecmp-tests (Files): Likewise.
33775         * modules/unicase/u8-casecoll-tests (Files): Likewise.
33776         * modules/unicase/u8-casefold-tests (Files): Likewise.
33777         * modules/unicase/u8-is-cased-tests (Files): Likewise.
33778         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
33779         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
33780         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
33781         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
33782         * modules/unicase/u8-tolower-tests (Files): Likewise.
33783         * modules/unicase/u8-totitle-tests (Files): Likewise.
33784         * modules/unicase/u8-toupper-tests (Files): Likewise.
33785         * modules/unicase/u16-casecmp-tests (Files): Likewise.
33786         * modules/unicase/u16-casecoll-tests (Files): Likewise.
33787         * modules/unicase/u16-casefold-tests (Files): Likewise.
33788         * modules/unicase/u16-is-cased-tests (Files): Likewise.
33789         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
33790         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
33791         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
33792         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
33793         * modules/unicase/u16-tolower-tests (Files): Likewise.
33794         * modules/unicase/u16-totitle-tests (Files): Likewise.
33795         * modules/unicase/u16-toupper-tests (Files): Likewise.
33796         * modules/unicase/u32-casecmp-tests (Files): Likewise.
33797         * modules/unicase/u32-casecoll-tests (Files): Likewise.
33798         * modules/unicase/u32-casefold-tests (Files): Likewise.
33799         * modules/unicase/u32-is-cased-tests (Files): Likewise.
33800         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
33801         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
33802         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
33803         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
33804         * modules/unicase/u32-tolower-tests (Files): Likewise.
33805         * modules/unicase/u32-totitle-tests (Files): Likewise.
33806         * modules/unicase/u32-toupper-tests (Files): Likewise.
33807         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
33808         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
33809         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
33810         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
33811         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
33812         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
33813         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
33814         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
33815         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
33816         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
33817         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
33818         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
33819         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
33820         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
33821         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
33822         * modules/unictype/bidicategory-name-tests (Files): Likewise.
33823         * modules/unictype/bidicategory-of-tests (Files): Likewise.
33824         * modules/unictype/bidicategory-test-tests (Files): Likewise.
33825         * modules/unictype/block-list-tests (Files): Likewise.
33826         * modules/unictype/block-of-tests (Files): Likewise.
33827         * modules/unictype/block-test-tests (Files): Likewise.
33828         * modules/unictype/category-C-tests (Files): Likewise.
33829         * modules/unictype/category-Cc-tests (Files): Likewise.
33830         * modules/unictype/category-Cf-tests (Files): Likewise.
33831         * modules/unictype/category-Cn-tests (Files): Likewise.
33832         * modules/unictype/category-Co-tests (Files): Likewise.
33833         * modules/unictype/category-Cs-tests (Files): Likewise.
33834         * modules/unictype/category-L-tests (Files): Likewise.
33835         * modules/unictype/category-Ll-tests (Files): Likewise.
33836         * modules/unictype/category-Lm-tests (Files): Likewise.
33837         * modules/unictype/category-Lo-tests (Files): Likewise.
33838         * modules/unictype/category-Lt-tests (Files): Likewise.
33839         * modules/unictype/category-Lu-tests (Files): Likewise.
33840         * modules/unictype/category-M-tests (Files): Likewise.
33841         * modules/unictype/category-Mc-tests (Files): Likewise.
33842         * modules/unictype/category-Me-tests (Files): Likewise.
33843         * modules/unictype/category-Mn-tests (Files): Likewise.
33844         * modules/unictype/category-N-tests (Files): Likewise.
33845         * modules/unictype/category-Nd-tests (Files): Likewise.
33846         * modules/unictype/category-Nl-tests (Files): Likewise.
33847         * modules/unictype/category-No-tests (Files): Likewise.
33848         * modules/unictype/category-P-tests (Files): Likewise.
33849         * modules/unictype/category-Pc-tests (Files): Likewise.
33850         * modules/unictype/category-Pd-tests (Files): Likewise.
33851         * modules/unictype/category-Pe-tests (Files): Likewise.
33852         * modules/unictype/category-Pf-tests (Files): Likewise.
33853         * modules/unictype/category-Pi-tests (Files): Likewise.
33854         * modules/unictype/category-Po-tests (Files): Likewise.
33855         * modules/unictype/category-Ps-tests (Files): Likewise.
33856         * modules/unictype/category-S-tests (Files): Likewise.
33857         * modules/unictype/category-Sc-tests (Files): Likewise.
33858         * modules/unictype/category-Sk-tests (Files): Likewise.
33859         * modules/unictype/category-Sm-tests (Files): Likewise.
33860         * modules/unictype/category-So-tests (Files): Likewise.
33861         * modules/unictype/category-Z-tests (Files): Likewise.
33862         * modules/unictype/category-Zl-tests (Files): Likewise.
33863         * modules/unictype/category-Zp-tests (Files): Likewise.
33864         * modules/unictype/category-Zs-tests (Files): Likewise.
33865         * modules/unictype/category-and-not-tests (Files): Likewise.
33866         * modules/unictype/category-and-tests (Files): Likewise.
33867         * modules/unictype/category-byname-tests (Files): Likewise.
33868         * modules/unictype/category-name-tests (Files): Likewise.
33869         * modules/unictype/category-none-tests (Files): Likewise.
33870         * modules/unictype/category-of-tests (Files): Likewise.
33871         * modules/unictype/category-or-tests (Files): Likewise.
33872         * modules/unictype/category-test-withtable-tests (Files): Likewise.
33873         * modules/unictype/combining-class-tests (Files): Likewise.
33874         * modules/unictype/ctype-alnum-tests (Files): Likewise.
33875         * modules/unictype/ctype-alpha-tests (Files): Likewise.
33876         * modules/unictype/ctype-blank-tests (Files): Likewise.
33877         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
33878         * modules/unictype/ctype-digit-tests (Files): Likewise.
33879         * modules/unictype/ctype-graph-tests (Files): Likewise.
33880         * modules/unictype/ctype-lower-tests (Files): Likewise.
33881         * modules/unictype/ctype-print-tests (Files): Likewise.
33882         * modules/unictype/ctype-punct-tests (Files): Likewise.
33883         * modules/unictype/ctype-space-tests (Files): Likewise.
33884         * modules/unictype/ctype-upper-tests (Files): Likewise.
33885         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
33886         * modules/unictype/decimal-digit-tests (Files): Likewise.
33887         * modules/unictype/digit-tests (Files): Likewise.
33888         * modules/unictype/mirror-tests (Files): Likewise.
33889         * modules/unictype/numeric-tests (Files): Likewise.
33890         * modules/unictype/property-alphabetic-tests (Files): Likewise.
33891         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
33892         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
33893         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
33894         Likewise.
33895         * modules/unictype/property-bidi-block-separator-tests (Files):
33896         Likewise.
33897         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
33898         Likewise.
33899         * modules/unictype/property-bidi-common-separator-tests (Files):
33900         Likewise.
33901         * modules/unictype/property-bidi-control-tests (Files): Likewise.
33902         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
33903         Likewise.
33904         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
33905         Likewise.
33906         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
33907         Likewise.
33908         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
33909         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
33910         Likewise.
33911         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
33912         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
33913         Likewise.
33914         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
33915         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
33916         * modules/unictype/property-bidi-segment-separator-tests (Files):
33917         Likewise.
33918         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
33919         * modules/unictype/property-byname-tests (Files): Likewise.
33920         * modules/unictype/property-combining-tests (Files): Likewise.
33921         * modules/unictype/property-composite-tests (Files): Likewise.
33922         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
33923         * modules/unictype/property-dash-tests (Files): Likewise.
33924         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
33925         * modules/unictype/property-default-ignorable-code-point-tests (Files):
33926         Likewise.
33927         * modules/unictype/property-deprecated-tests (Files): Likewise.
33928         * modules/unictype/property-diacritic-tests (Files): Likewise.
33929         * modules/unictype/property-extender-tests (Files): Likewise.
33930         * modules/unictype/property-format-control-tests (Files): Likewise.
33931         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
33932         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
33933         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
33934         * modules/unictype/property-hex-digit-tests (Files): Likewise.
33935         * modules/unictype/property-hyphen-tests (Files): Likewise.
33936         * modules/unictype/property-id-continue-tests (Files): Likewise.
33937         * modules/unictype/property-id-start-tests (Files): Likewise.
33938         * modules/unictype/property-ideographic-tests (Files): Likewise.
33939         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
33940         * modules/unictype/property-ids-trinary-operator-tests (Files):
33941         Likewise.
33942         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
33943         * modules/unictype/property-iso-control-tests (Files): Likewise.
33944         * modules/unictype/property-join-control-tests (Files): Likewise.
33945         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
33946         * modules/unictype/property-line-separator-tests (Files): Likewise.
33947         * modules/unictype/property-logical-order-exception-tests (Files):
33948         Likewise.
33949         * modules/unictype/property-lowercase-tests (Files): Likewise.
33950         * modules/unictype/property-math-tests (Files): Likewise.
33951         * modules/unictype/property-non-break-tests (Files): Likewise.
33952         * modules/unictype/property-not-a-character-tests (Files): Likewise.
33953         * modules/unictype/property-numeric-tests (Files): Likewise.
33954         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
33955         * modules/unictype/property-other-default-ignorable-code-point-tests
33956         (Files): Likewise.
33957         * modules/unictype/property-other-grapheme-extend-tests (Files):
33958         Likewise.
33959         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
33960         * modules/unictype/property-other-id-start-tests (Files): Likewise.
33961         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
33962         * modules/unictype/property-other-math-tests (Files): Likewise.
33963         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
33964         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
33965         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
33966         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
33967         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
33968         * modules/unictype/property-private-use-tests (Files): Likewise.
33969         * modules/unictype/property-punctuation-tests (Files): Likewise.
33970         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
33971         * modules/unictype/property-radical-tests (Files): Likewise.
33972         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
33973         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
33974         * modules/unictype/property-space-tests (Files): Likewise.
33975         * modules/unictype/property-terminal-punctuation-tests (Files):
33976         Likewise.
33977         * modules/unictype/property-test-tests (Files): Likewise.
33978         * modules/unictype/property-titlecase-tests (Files): Likewise.
33979         * modules/unictype/property-unassigned-code-value-tests (Files):
33980         Likewise.
33981         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
33982         * modules/unictype/property-uppercase-tests (Files): Likewise.
33983         * modules/unictype/property-variation-selector-tests (Files): Likewise.
33984         * modules/unictype/property-white-space-tests (Files): Likewise.
33985         * modules/unictype/property-xid-continue-tests (Files): Likewise.
33986         * modules/unictype/property-xid-start-tests (Files): Likewise.
33987         * modules/unictype/property-zero-width-tests (Files): Likewise.
33988         * modules/unictype/scripts-tests (Files): Likewise.
33989         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
33990         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
33991         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
33992         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
33993         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
33994         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
33995         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
33996         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
33997         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
33998         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
33999         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
34000         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
34001         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
34002         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
34003         * modules/uninorm/composition-tests (Files): Likewise.
34004         * modules/uninorm/decomposing-form-tests (Files): Likewise.
34005         * modules/uninorm/decomposition-tests (Files): Likewise.
34006         * modules/uninorm/filter-tests (Files): Likewise.
34007         * modules/uninorm/nfc-tests (Files): Likewise.
34008         * modules/uninorm/nfd-tests (Files): Likewise.
34009         * modules/uninorm/nfkc-tests (Files): Likewise.
34010         * modules/uninorm/nfkd-tests (Files): Likewise.
34011         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
34012         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
34013         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
34014         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
34015         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
34016         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
34017         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
34018         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
34019         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
34020         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
34021         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
34022         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
34023         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
34024         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
34025         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
34026         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
34027         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
34028         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
34029         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
34030         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
34031         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
34032         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
34033         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
34034         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
34035         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
34036         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
34037         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
34038         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
34039         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
34040         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
34041         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
34042         * modules/uniwidth/u8-width-tests (Files): Likewise.
34043         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
34044         * modules/uniwidth/u16-width-tests (Files): Likewise.
34045         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
34046         * modules/uniwidth/u32-width-tests (Files): Likewise.
34047         * modules/uniwidth/width-tests (Files): Likewise.
34048         * modules/unlink-tests (Files): Likewise.
34049         * modules/unsetenv-tests (Files): Likewise.
34050         * modules/usleep-tests (Files): Likewise.
34051         * modules/utimens-tests (Files): Likewise.
34052         * modules/utimensat-tests (Files): Likewise.
34053         * modules/vasnprintf-posix-tests (Files): Likewise.
34054         * modules/vasnprintf-tests (Files): Likewise.
34055         * modules/vasprintf-posix-tests (Files): Likewise.
34056         * modules/vasprintf-tests (Files): Likewise.
34057         * modules/vdprintf-posix-tests (Files): Likewise.
34058         * modules/vfprintf-posix-tests (Files): Likewise.
34059         * modules/vprintf-posix-tests (Files): Likewise.
34060         * modules/vsnprintf-posix-tests (Files): Likewise.
34061         * modules/vsnprintf-tests (Files): Likewise.
34062         * modules/vsprintf-posix-tests (Files): Likewise.
34063         * modules/wcrtomb-tests (Files): Likewise.
34064         * modules/wcsnrtombs-tests (Files): Likewise.
34065         * modules/wcsrtombs-tests (Files): Likewise.
34066         * modules/wctype-tests (Files): Likewise.
34067         * modules/wcwidth-tests (Files): Likewise.
34068         * modules/xmemdup0-tests (Files): Likewise.
34069         * modules/xprintf-posix-tests (Files): Likewise.
34070         * modules/xvasprintf-tests (Files): Likewise.
34071
34072 2009-12-24  Eric Blake  <ebb9@byu.net>
34073
34074         test-nanosleep: fix typo
34075         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
34076         patch.
34077         Reported by Bruno Haible.
34078
34079 2009-12-24  Bruno Haible  <bruno@clisp.org>
34080
34081         Reduce namespace pollution on glibc systems.
34082         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
34083         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
34084         systems.
34085         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
34086         <getopt.h> on glibc systems.
34087         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
34088         systems.
34089         * lib/fcntl.c: Include <unistd.h> here instead.
34090
34091 2009-12-24  Bruno Haible  <bruno@clisp.org>
34092
34093         * lib/stdlib.in.h (includes): Fix typo in today's commit.
34094
34095 2009-12-24  Eric Blake  <ebb9@byu.net>
34096
34097         tests: add signature checks
34098         * tests/signature.h (SIGNATURE_CHECK): New file.
34099         * modules/atexit-tests (Files): Use it.
34100         * modules/btowc-tests (Files): Likewise.
34101         * modules/canonicalize-lgpl-tests (Files): Likewise.
34102         * modules/ceilf-tests (Files): Likewise.
34103         * modules/ceill-tests (Files): Likewise.
34104         * modules/chown-tests (Files): Likewise.
34105         * modules/dprintf-posix-tests (Files): Likewise.
34106         * modules/dup2-tests (Files): Likewise.
34107         * modules/dup3-tests (Files): Likewise.
34108         * modules/duplocale-tests (Files): Likewise.
34109         * modules/fchdir-tests (Files): Likewise.
34110         * modules/fcntl-tests (Files): Likewise.
34111         * modules/fdopendir-tests (Files): Likewise.
34112         * modules/fflush-tests (Files): Likewise.
34113         * modules/flock-tests (Files): Likewise.
34114         * modules/floorf-tests (Files): Likewise.
34115         * modules/floorl-tests (Files): Likewise.
34116         * modules/fnmatch-tests (Files): Likewise.
34117         * modules/fopen-tests (Files): Likewise.
34118         * modules/fprintf-posix-tests (Files): Likewise.
34119         * modules/freopen-tests (Files): Likewise.
34120         * modules/frexp-nolibm-tests (Files): Likewise.
34121         * modules/frexp-tests (Files): Likewise.
34122         * modules/frexpl-nolibm-tests (Files): Likewise.
34123         * modules/frexpl-tests (Files): Likewise.
34124         * modules/fseek-tests (Files): Likewise.
34125         * modules/fseeko-tests (Files): Likewise.
34126         * modules/fsync-tests (Files): Likewise.
34127         * modules/ftell-tests (Files): Likewise.
34128         * modules/ftello-tests (Files): Likewise.
34129         * modules/futimens-tests (Files): Likewise.
34130         * modules/getaddrinfo-tests (Files): Likewise.
34131         * modules/getcwd-tests (Files): Likewise.
34132         * modules/getdelim-tests (Files): Likewise.
34133         * modules/getdtablesize-tests (Files): Likewise.
34134         * modules/getgroups-tests (Files): Likewise.
34135         * modules/gethostname-tests (Files): Likewise.
34136         * modules/getline-tests (Files): Likewise.
34137         * modules/getopt-posix-tests (Files): Likewise.
34138         * modules/gettimeofday-tests (Files): Likewise.
34139         * modules/glob-tests (Files): Likewise.
34140         * modules/iconv-tests (Files): Likewise.
34141         * modules/inet_ntop-tests (Files): Likewise.
34142         * modules/inet_pton-tests (Files): Likewise.
34143         * modules/isblank-tests (Files): Likewise.
34144         * modules/lchown-tests (Files): Likewise.
34145         * modules/ldexpl-tests (Files): Likewise.
34146         * modules/link-tests (Files): Likewise.
34147         * modules/linkat-tests (Files): Likewise.
34148         * modules/lseek-tests (Files): Likewise.
34149         * modules/lstat-tests (Files): Likewise.
34150         * modules/mbrtowc-tests (Files): Likewise.
34151         * modules/mbsinit-tests (Files): Likewise.
34152         * modules/mbsnrtowcs-tests (Files): Likewise.
34153         * modules/mbsrtowcs-tests (Files): Likewise.
34154         * modules/memchr-tests (Files): Likewise.
34155         * modules/memcmp-tests (Files): Likewise.
34156         * modules/memmem-tests (Files): Likewise.
34157         * modules/memrchr-tests (Files): Likewise.
34158         * modules/mkdir-tests (Files): Likewise.
34159         * modules/mkfifo-tests (Files): Likewise.
34160         * modules/mkfifoat-tests (Files): Likewise.
34161         * modules/mknod-tests (Files): Likewise.
34162         * modules/nanosleep-tests (Files): Likewise.
34163         * modules/nl_langinfo-tests (Files): Likewise.
34164         * modules/obstack-printf-tests (Files): Likewise.
34165         * modules/open-tests (Files): Likewise.
34166         * modules/openat-tests (Files): Likewise.
34167         * modules/perror-tests (Files): Likewise.
34168         * modules/pipe2-tests (Files): Likewise.
34169         * modules/poll-tests (Files): Likewise.
34170         * modules/popen-tests (Files): Likewise.
34171         * modules/posix_spawn-tests (Files): Likewise.
34172         * modules/posix_spawnp-tests (Files): Likewise.
34173         * modules/pread-tests (Files): Likewise.
34174         * modules/printf-posix-tests (Files): Likewise.
34175         * modules/pty-tests (Files): Likewise.
34176         * modules/random_r-tests (Files): Likewise.
34177         * modules/rawmemchr-tests (Files): Likewise.
34178         * modules/readlink-tests (Files): Likewise.
34179         * modules/remove-tests (Files): Likewise.
34180         * modules/rename-tests (Files): Likewise.
34181         * modules/renameat-tests (Files): Likewise.
34182         * modules/rmdir-tests (Files): Likewise.
34183         * modules/round-tests (Files): Likewise.
34184         * modules/roundf-tests (Files): Likewise.
34185         * modules/roundl-tests (Files): Likewise.
34186         * modules/select-tests (Files): Likewise.
34187         * modules/setenv-tests (Files): Likewise.
34188         * modules/sigaction-tests (Files): Likewise.
34189         * modules/sleep-tests (Files): Likewise.
34190         * modules/snprintf-posix-tests (Files): Likewise.
34191         * modules/snprintf-tests (Files): Likewise.
34192         * modules/sprintf-posix-tests (Files): Likewise.
34193         * modules/stat-tests (Files): Likewise.
34194         * modules/strcasestr-tests (Files): Likewise.
34195         * modules/strchrnul-tests (Files): Likewise.
34196         * modules/strerror-tests (Files): Likewise.
34197         * modules/strsignal-tests (Files): Likewise.
34198         * modules/strstr-tests (Files): Likewise.
34199         * modules/strtod-tests (Files): Likewise.
34200         * modules/strverscmp-tests (Files): Likewise.
34201         * modules/symlink-tests (Files): Likewise.
34202         * modules/symlinkat-tests (Files): Likewise.
34203         * modules/times-tests (Files): Likewise.
34204         * modules/trunc-tests (Files): Likewise.
34205         * modules/truncf-tests (Files): Likewise.
34206         * modules/truncl-tests (Files): Likewise.
34207         * modules/tsearch-tests (Files): Likewise.
34208         * modules/uname-tests (Files): Likewise.
34209         * modules/unlink-tests (Files): Likewise.
34210         * modules/unsetenv-tests (Files): Likewise.
34211         * modules/usleep-tests (Files): Likewise.
34212         * modules/utimensat-tests (Files): Likewise.
34213         * modules/vasprintf-tests (Files): Likewise.
34214         * modules/vdprintf-posix-tests (Files): Likewise.
34215         * modules/vfprintf-posix-tests (Files): Likewise.
34216         * modules/vprintf-posix-tests (Files): Likewise.
34217         * modules/vsnprintf-posix-tests (Files): Likewise.
34218         * modules/vsnprintf-tests (Files): Likewise.
34219         * modules/vsprintf-posix-tests (Files): Likewise.
34220         * modules/wcrtomb-tests (Files): Likewise.
34221         * modules/wcsnrtombs-tests (Files): Likewise.
34222         * modules/wcsrtombs-tests (Files): Likewise.
34223         * modules/wcwidth-tests (Files): Likewise.
34224         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
34225         * tests/test-isinf.c (isinf): Likewise.
34226         * tests/test-isnan.c (isnan): Likewise.
34227         * tests/test-signbit.c (signbit): Likewise.
34228         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
34229         declaration, either as macro or with correct signature.
34230         (select): Ensure function under test is declared with correct
34231         signature in correct header.
34232         * tests/test-atexit.c (atexit): Likewise.
34233         * tests/test-btowc.c (btowc): Likewise.
34234         * tests/test-canonicalize-lgpl.c (realpath)
34235         (canonicalize_file_name): Likewise.
34236         * tests/test-ceilf1.c (ceilf): Likewise.
34237         * tests/test-ceill.c (ceill): Likewise.
34238         * tests/test-chown.c (chown): Likewise.
34239         * tests/test-dprintf-posix.c (dprintf): Likewise.
34240         * tests/test-dup2.c (dup2): Likewise.
34241         * tests/test-dup3.c (dup3): Likewise.
34242         * tests/test-duplocale.c (duplocale): Likewise.
34243         * tests/test-fchdir.c (fchdir): Likewise.
34244         * tests/test-fchownat.c (fchownat): Likewise.
34245         * tests/test-fcntl.c (fcntl): Likewise.
34246         * tests/test-fdopendir.c (fdopendir): Likewise.
34247         * tests/test-fflush.c (fflush): Likewise.
34248         * tests/test-flock.c (flock): Likewise.
34249         * tests/test-floorf1.c (floorf): Likewise.
34250         * tests/test-floorl.c (floorl): Likewise.
34251         * tests/test-fnmatch.c (fnmatch): Likewise.
34252         * tests/test-fopen.c (fopen): Likewise.
34253         * tests/test-fprintf-posix.c (fprintf): Likewise.
34254         * tests/test-freopen.c (freopen): Likewise.
34255         * tests/test-frexp.c (frexp): Likewise.
34256         * tests/test-frexpl.c (frexpl): Likewise.
34257         * tests/test-fseek.c (fseek): Likewise.
34258         * tests/test-fseeko.c (fseeko): Likewise.
34259         * tests/test-fstatat.c (fstatat): Likewise.
34260         * tests/test-fsync.c (fsync): Likewise.
34261         * tests/test-ftell.c (ftell): Likewise.
34262         * tests/test-ftello.c (ftello): Likewise.
34263         * tests/test-futimens.c (futimens): Likewise.
34264         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
34265         (gai_strerror): Likewise.
34266         * tests/test-getcwd.c (getcwd): Likewise.
34267         * tests/test-getdelim.c (getdelim): Likewise.
34268         * tests/test-getdtablesize.c (getdtablesize): Likewise.
34269         * tests/test-getgroups.c (getgroups): Likewise.
34270         * tests/test-gethostname.c (gethostname): Likewise.
34271         * tests/test-getline.c (getline): Likewise.
34272         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
34273         Likewise.
34274         * tests/test-gettimeofday.c (gettimeofday): Likewise.
34275         * tests/test-glob.c (glob, globfree): Likewise.
34276         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
34277         * tests/test-inet_ntop.c (inet_ntop): Likewise.
34278         * tests/test-inet_pton.c (inet_pton): Likewise.
34279         * tests/test-isblank.c (isblank): Likewise.
34280         * tests/test-lchown.c (lchown): Likewise.
34281         * tests/test-ldexpl.c (ldexpl): Likewise.
34282         * tests/test-link.c (link): Likewise.
34283         * tests/test-linkat.c (linkat): Likewise.
34284         * tests/test-lseek.c (lseek): Likewise.
34285         * tests/test-lstat.c (lstat): Likewise.
34286         * tests/test-mbrtowc.c (mbrtowc): Likewise.
34287         * tests/test-mbsinit.c (mbsinit): Likewise.
34288         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
34289         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
34290         * tests/test-memchr.c (memchr): Likewise.
34291         * tests/test-memcmp.c (memcmp): Likewise.
34292         * tests/test-memmem.c (memmem): Likewise.
34293         * tests/test-memrchr.c (memrchr): Likewise.
34294         * tests/test-mkdir.c (mkdir): Likewise.
34295         * tests/test-mkdirat.c (mkdirat): Likewise.
34296         * tests/test-mkfifo.c (mkfifo): Likewise.
34297         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
34298         * tests/test-mknod.c (mknod): Likewise.
34299         * tests/test-nanosleep.c (nanosleep): Likewise.
34300         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
34301         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
34302         Likewise.
34303         * tests/test-open.c (open): Likewise.
34304         * tests/test-openat.c (openat): Likewise.
34305         * tests/test-perror.c (perror): Likewise.
34306         * tests/test-pipe2.c (pipe2): Likewise.
34307         * tests/test-poll.c (poll): Likewise.
34308         * tests/test-popen.c (popen, pclose): Likewise.
34309         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
34310         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
34311         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
34312         (posix_spawn_file_actions_destroy)
34313         (posix_spawn_file_actions_addclose)
34314         (posix_spawn_file_actions_addopen)
34315         (posix_spawn_file_actions_adddup2): Likewise.
34316         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
34317         * tests/test-pread.c (pread): Likewise.
34318         * tests/test-printf-posix.c (printf): Likewise.
34319         * tests/test-pty.c (openpty, forkpty): Likewise.
34320         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
34321         (random_r): Likewise.
34322         * tests/test-rawmemchr.c (rawmemchr): Likewise.
34323         * tests/test-readlink.c (readlink): Likewise.
34324         * tests/test-remove.c (remove): Likewise.
34325         * tests/test-rename.c (rename): Likewise.
34326         * tests/test-renameat.c (renameat): Likewise.
34327         * tests/test-rmdir.c (rmdir): Likewise.
34328         * tests/test-round1.c (round): Likewise.
34329         * tests/test-roundf1.c (roundf): Likewise.
34330         * tests/test-roundl.c (roundl): Likewise.
34331         * tests/test-setenv.c (setenv): Likewise.
34332         * tests/test-sigaction.c (sigaction): Likewise.
34333         * tests/test-sleep.c (sleep): Likewise.
34334         * tests/test-snprintf.c (snprintf): Likewise.
34335         * tests/test-sprintf-posix.c (sprintf): Likewise.
34336         * tests/test-stat.c (stat): Likewise.
34337         * tests/test-stpncpy.c (stpncpy): Likewise.
34338         * tests/test-strcasestr.c (strcasestr): Likewise.
34339         * tests/test-strchrnul.c (strchrnul): Likewise.
34340         * tests/test-strerror.c (strerror): Likewise.
34341         * tests/test-strsignal.c (strsignal): Likewise.
34342         * tests/test-strstr.c (strstr): Likewise.
34343         * tests/test-strtod.c (strtod): Likewise.
34344         * tests/test-strverscmp.c (strverscmp): Likewise.
34345         * tests/test-symlink.c (symlink): Likewise.
34346         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
34347         * tests/test-times.c (times): Likewise.
34348         * tests/test-trunc1.c (trunc): Likewise.
34349         * tests/test-truncf1.c (truncf): Likewise.
34350         * tests/test-truncl.c (truncl): Likewise.
34351         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
34352         Likewise.
34353         * tests/test-uname.c (uname): Likewise.
34354         * tests/test-unlink.c (unlink): Likewise.
34355         * tests/test-unlinkat.c (unlinkat): Likewise.
34356         * tests/test-unsetenv.c (unsetenv): Likewise.
34357         * tests/test-usleep.c (usleep): Likewise.
34358         * tests/test-utimensat.c (utimensat): Likewise.
34359         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
34360         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
34361         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
34362         * tests/test-vprintf-posix.c (vprintf): Likewise.
34363         * tests/test-vsnprintf.c (vsnprintf): Likewise.
34364         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
34365         * tests/test-wcrtomb.c (wcrtomb): Likewise.
34366         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
34367         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
34368         * tests/test-wcwidth.c (wcwidth): Likewise.
34369
34370         build: pull in conditional headers during GNULIB_POSIXCHECK
34371         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
34372         definitions from any conditionally-included headers.
34373         * lib/stdlib.in.h (includes): Likewise.
34374         * lib/unistd.in.h (includes): Likewise.
34375
34376 2009-12-24  Bruno Haible  <bruno@clisp.org>
34377
34378         * tests/test-argv-iter.c: Include header file being tested immediately
34379         after config.h.
34380         * tests/test-base64.c: Likewise.
34381         * tests/test-flock.c: Likewise.
34382         * tests/test-fsync.c: Likewise.
34383         * tests/test-getdate.c: Likewise.
34384         * tests/test-getndelim2.c: Likewise.
34385         * tests/test-isfinite.c: Likewise.
34386         * tests/test-isinf.c: Likewise.
34387         * tests/test-strerror.c: Likewise.
34388         * tests/test-strsignal.c: Likewise.
34389
34390 2009-12-23  Eric Blake  <ebb9@byu.net>
34391
34392         unistd: work around cygwin bug
34393         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
34394         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
34395         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
34396
34397 2009-12-23  Bruno Haible  <bruno@clisp.org>
34398
34399         localename: More tests.
34400         * tests/test-localename.c (SIZEOF): New macro.
34401         (categories): New variable.
34402         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
34403         test_locale_name_default): Add test w.r.t. thread locale.
34404         (test_locale_name_thread): New function.
34405         (main): Invoke it.
34406
34407         localename: Make aware of thread locale.
34408         * lib/localename.h (gl_locale_name_thread): New declaration.
34409         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
34410         behaviour with respect to thread locale.
34411         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
34412         <langinfo.h>, glthread/lock.h.
34413         (SIZE_BITS): New macro.
34414         (string_hash): New function.
34415         (struct hash_node): New type.
34416         (HASH_TABLE_SIZE): New macro.
34417         (struniq_hash_table, struniq_lock): New variables.
34418         (struniq): New function.
34419         (gl_locale_name_thread): New function.
34420         (gl_locale_name): Invoke it.
34421         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
34422         * modules/localename (Depends-on): Add lock.
34423         Reported by Mike Gran <spk121@yahoo.com>.
34424
34425 2009-12-23  Eric Blake  <ebb9@byu.net>
34426
34427         va-args: new module
34428         * modules/va-args: New file.
34429         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
34430         * MODULES.html.sh (Core language properties): Mention it.
34431
34432         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
34433         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
34434         named alias for __attribute__((__unused__)).
34435         * lib/chown.c: Update client.
34436         * lib/fchmodat.c: Likewise.
34437         * lib/fts.c: Likewise.
34438         * lib/getdate.y: Likewise.
34439         * lib/getgroups.c: Likewise.
34440         * lib/getopt.c: Likewise.
34441         * lib/getugroups.c: Likewise.
34442         * lib/mkdir.c: Likewise.
34443         * lib/mkfifo.c: Likewise.
34444         * lib/mkfifoat.c: Likewise.
34445         * lib/mknod.c: Likewise.
34446         * lib/mknodat.c: Likewise.
34447         * lib/readlink.c: Likewise.
34448         * lib/se-context.in.h: Likewise.
34449         * lib/se-selinux.in.h: Likewise.
34450         * lib/sockets.c: Likewise.
34451         * lib/symlink.c: Likewise.
34452         * lib/symlinkat.c: Likewise.
34453         * lib/unicodeio.c: Likewise.
34454         * lib/unistr.h: Likewise.
34455         * tests/test-areadlink.c: Likewise.
34456         * tests/test-areadlinkat.c: Likewise.
34457         * tests/test-filenamecat.c: Likewise.
34458         * tests/test-fseeko.c: Likewise.
34459         * tests/test-ftello.c: Likewise.
34460         * tests/test-getdate.c: Likewise.
34461         * tests/test-getgroups.c: Likewise.
34462         * tests/test-gethostname.c: Likewise.
34463         * tests/test-quotearg.c: Likewise.
34464         * tests/test-version-etc.c: Likewise.
34465         * tests/test-xalloc-die.c: Likewise.
34466         * tests/test-xfprintf-posix.c: Likewise.
34467         * tests/test-xprintf-posix.c: Likewise.
34468         * tests/test-xvasprintf.c: Likewise.
34469
34470         tests: avoid compiler warnings
34471         * tests/test-fcntl.c (main): Delete unused parameters.
34472         * tests/test-freopen-safer.c (main): Likewise.
34473         * tests/test-xalloc-die.c (main): Mark unused parameters.
34474         * tests/test-fseeko.c (main): Likewise.
34475         * tests/test-ftello.c (main): Likewise.
34476         * tests/test-nanosleep.c (main): Avoid declaration warning.
34477         * tests/test-sleep.c (main): Likewise.
34478         * tests/test-unsetenv.c (main): Silence warning about string
34479         literal.
34480         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
34481
34482 2009-12-23  Bruno Haible  <bruno@clisp.org>
34483
34484         * tests/test-localename.c (test_locale_name): New function, extracted
34485         from main. Also test mixed situations.
34486         (test_locale_name_posix, test_locale_name_environ,
34487         test_locale_name_default): New functions.
34488         (main): Invoke them all.
34489         * modules/localename-tests (configure.ac): Test for newlocale.
34490
34491 2009-12-23  Bruno Haible  <bruno@clisp.org>
34492
34493         unistd: Ensure getcwd gets declared before being overridden.
34494         * lib/unistd.in.h: Conditionally include <io.h>.
34495
34496 2009-12-22  Bruno Haible  <bruno@clisp.org>
34497
34498         wchar: Diagnose broken combination of glibc and gcc versions and flags.
34499         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
34500         (gl_WCHAR_H): Invoke it.
34501         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
34502         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
34503         Reported by Karl Berry <karl@freefriends.org>.
34504
34505 2009-12-22  Eric Blake  <ebb9@byu.net>
34506
34507         math, unistd: avoid redundant includes
34508         * lib/math.in.h (isnan): No need to re-include <math.h>.
34509         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
34510
34511         getsubopt: work around cygwin bug
34512         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
34513         avoid conflicting with system getsubopt.
34514         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
34515         bug.
34516
34517         getopt: synchronize from glibc
34518         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
34519         parameter order.  Adjust all callers.
34520         (_getopt_internal_r, main): Adjust quoting in error messages.
34521         Drop considerations for outdated POSIX 1003.2 error message.
34522         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
34523         callers.
34524         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
34525
34526         test-getopt: test stderr behavior
34527         * modules/getopt-posix-tests (Depends-on): Add dup2.
34528         * tests/test-getopt.c (ASSERT): Avoid stderr.
34529         (main): Move stderr to a temporary file.
34530         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
34531         Instead, add parameter to inform caller if output occurred.
34532         (test_getopt): Adjust all existing tests to expect silence, and
34533         add new tests of leading ":".
34534         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
34535         glibc shortcomings with leading "-:" or "+:" in optstring.
34536         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
34537         Likewise.
34538         * doc/posix-functions/getopt.texi (getopt): Likewise.
34539
34540         test-getopt: enhance test
34541         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
34542         supports optind=0.
34543         * tests/test-getopt.c (OPTIND_MIN): Move...
34544         * tests/test-getopt.h (OPTIND_MIN): ...here.
34545         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
34546         Require that optind=0 works, since modern BSD supports it in
34547         addition to optreset, and since coreutils expects it.
34548         (test_getopt_long_only): New test.
34549         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
34550         glibc shortcomings with 'W;', and enforcement of optind=0.
34551         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
34552         Likewise.
34553
34554 2009-12-21  Bruno Haible  <bruno@clisp.org>
34555
34556         localename: Improvements for MacOS X and Cygwin.
34557         * lib/localename.h (gl_locale_name_environ): New declaration.
34558         * lib/localename.c (gl_locale_name_environ): New function, extracted from
34559         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
34560         (gl_locale_name_posix): Invoke it.
34561         (gl_locale_name_default): Add comments. Use Windows native API also on
34562         Cygwin.
34563
34564 2009-12-21  Bruno Haible  <bruno@clisp.org>
34565
34566         Update list of Win32 locale ids.
34567         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
34568         (LANG_SAMI): Renamed from LANG_SAAMI.
34569         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
34570         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
34571         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
34572         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
34573         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
34574         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
34575         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
34576         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
34577         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
34578         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
34579         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
34580         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
34581         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
34582         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
34583         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
34584         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
34585         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
34586         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
34587         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
34588         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
34589         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
34590         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
34591         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
34592         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
34593         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
34594         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
34595         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
34596         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
34597         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
34598         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
34599         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
34600         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
34601         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
34602         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
34603         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
34604         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
34605         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
34606         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
34607         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
34608         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
34609         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
34610         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
34611         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
34612         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
34613         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
34614         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
34615         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
34616         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
34617         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
34618         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
34619         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
34620         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
34621         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
34622         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
34623         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
34624         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
34625         Add more languages and countries for Sami, Sorbian. Add more countries
34626         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
34627         for Pashto. Change country for Syriac, Tswana.
34628
34629 2009-12-21  Eric Blake  <ebb9@byu.net>
34630
34631         test-utimens: avoid spurious failure
34632         * tests/test-chown.h (nap): Factor...
34633         * tests/nap.h: ...into new file.
34634         * tests/test-lchown.h (nap): Avoid duplication.
34635         * tests/test-utimens-common.h (nap): Use shared implementation,
34636         necessary on file systems with 1-second resolution.
34637         * modules/chown-tests (Files): Include new file.
34638         * modules/fdutimensat-tests (Files): Likewise.
34639         * modules/futimens-tests (Files): Likewise.
34640         * modules/lchown-tests (Files): Likewise.
34641         * modules/openat-tests (Files): Likewise.
34642         * modules/utimens-tests (Files): Likewise.
34643         * modules/utimensat-tests (Files): Likewise.
34644
34645 2009-12-19  Eric Blake  <ebb9@byu.net>
34646
34647         futimens, utimensat: work around Linux bug
34648         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
34649         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
34650         * lib/utimensat.c (rpl_utimensat): Work around it.
34651         * lib/futimens.c (rpl_futimens): Adjust comment.
34652
34653         utimens: work around Linux ctime bug
34654         * lib/utimens.c (detect_ctime_bug): New helper function.
34655         (update_timespec): Differentiate between workaround needed for
34656         this bug vs. what is needed for systems that lack utimensat.
34657         (fdutimens, lutimens): Work around bug.
34658
34659         utimens: check for ctime update
34660         * tests/test-utimens-common.h (check_ctime): Define.
34661         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
34662         * tests/test-futimens.h (test_futimens): Likewise.
34663         * tests/test-lutimens.h (test_lutimens): Likewise.
34664         * doc/posix-functions/futimens.texi (futimens): Document the bug.
34665         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
34666
34667 2009-12-19  Bruno Haible  <bruno@clisp.org>
34668
34669         dprintf-posix: Check against memory leak fixed on 2009-12-15.
34670         * tests/test-dprintf-posix2.sh: New file.
34671         * tests/test-dprintf-posix2.c: New file.
34672         * modules/dprintf-posix-tests (Files): Add them.
34673         (configure.ac): Check for getrlimit and setrlimit.
34674         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
34675
34676 2009-12-19  Bruno Haible  <bruno@clisp.org>
34677
34678         fprintf-posix: Check against memory leak fixed on 2009-12-15.
34679         * tests/test-fprintf-posix3.sh: New file.
34680         * tests/test-fprintf-posix3.c: New file.
34681         * modules/fprintf-posix-tests (Files): Add them.
34682         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
34683
34684 2009-12-19  Eric Blake  <ebb9@byu.net>
34685
34686         dirfd: fix prototype
34687         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
34688         * lib/dirfd.c (dirfd): Likewise.
34689
34690         canonicalize: reduce memory usage
34691         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
34692         allocation to size.
34693         Reported by Solar Designer <solar@openwall.com>.
34694
34695 2009-12-19  Bruno Haible  <bruno@clisp.org>
34696
34697         New module attribute 'Applicability'.
34698         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
34699         * gnulib-tool: New option --extract-applicability.
34700         (func_usage): Document it.
34701         (sed_extract_prog): Recognize it.
34702         (func_get_applicability): New function.
34703         (func_import): Generalize handling of 'link-warning' module.
34704         * modules/link-warning (Applicability): New section.
34705         * modules/arg-nonnull (Applicability): New section.
34706         Repoted by Simon Josefsson <simon@josefsson.org>.
34707
34708 2009-12-19  Bruno Haible  <bruno@clisp.org>
34709
34710         fflush: tweak
34711         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
34712         * lib/fseeko.c (rpl_fseeko): Likewise.
34713
34714 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
34715
34716         * lib/gl_list.h: Fix typo in comment.
34717
34718 2009-12-16  Eric Blake  <ebb9@byu.net>
34719
34720         fcntl: use to simplify other modules
34721         * modules/cloexec (Depends-on): Add fcntl.
34722         * modules/fchdir (Depends-on): Likewise.
34723         * modules/fd-safer-flag (Depends-on): Likewise.
34724         * modules/unistd-safer (Depends-on): Likewise.
34725         * modules/dup3 (configure.ac): Set module indicator.
34726         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
34727         missing.
34728         * lib/fchdir.c (_gl_register_dup): Fix comment.
34729         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
34730         * lib/dup-safer.c (dup_safer): Likewise.
34731         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
34732         * lib/dup3.c (dup3): Likewise.
34733         * tests/test-fchdir.c (main): Enhance test.
34734         Fixes a dup_cloexec bug reported by OndÅ™ej Vašík.
34735
34736         fcntl: port portions of fcntl to mingw
34737         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
34738         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
34739         replacement for mingw.
34740         * modules/fcntl (Description): Update.
34741         (Depends-on): Add dup2.
34742         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
34743         * modules/fcntl-h (Makefile.am): Substitute it.
34744         * lib/fcntl.in.h (fcntl): Update declaration.
34745         (F_DUPFD, F_GETFD): New macros, when needed.
34746         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
34747         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
34748         * tests/test-fcntl.c (check_flags, main): Enhance test for items
34749         we now guarantee.
34750
34751         fcntl: work around cygwin bug in F_DUPFD
34752         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
34753         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
34754         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
34755         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
34756         * doc/posix-functions/fcntl.texi (fcntl): Document it.
34757
34758         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
34759         * modules/fcntl (Files): List new files.
34760         (configure.ac): Run a test.
34761         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
34762         * lib/fcntl.c (rpl_fcntl): Likewise.
34763         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
34764         (gl_FCNTL_H): Always replace fcntl.h.
34765         * modules/fcntl-h (Makefile.am): Substitute witnesses.
34766         * lib/fcntl.in.h (fcntl): Declare replacement.
34767         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
34768         needed, plus a witness.
34769         * doc/posix-functions/fcntl.texi (fcntl): Document this.
34770         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
34771         * tests/test-fcntl.c: New file.
34772         * modules/fcntl-tests: Likewise.
34773
34774         binary-io: avoid potential compilation warning
34775         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
34776         directives.
34777
34778         fflush: avoid compilation error on NetBSD
34779         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
34780         between off_t and fpos_t, since the latter is sometimes a struct.
34781         * lib/fseeko.c (rpl_fseeko): Likewise.
34782         Reported by Alexander Nasonov <alnsn@yandex.ru>.
34783
34784 2009-12-15  Eric Blake  <ebb9@byu.net>
34785
34786         fcntl-h, stdio, sys_ioctl: fix declarations
34787         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
34788         function must not take arguments.
34789         * lib/sys_ioctl.in.h (ioctl): Likewise.
34790         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
34791         (open): Add a link warning.
34792
34793 2009-12-15  Jim Meyering  <meyering@redhat.com>
34794
34795         areadlink, areadlink-with-size: relax license to LGPLv2+
34796         * modules/areadlink (License): Relax to LGPLv2+.
34797         * modules/areadlink-with-size (License): Likewise.
34798
34799 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
34800             Bruno Haible  <bruno@clisp.org>
34801
34802         *printf: Fix memory leak.
34803         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
34804         * lib/vfprintf.c (vfprintf): Likewise.
34805         * lib/dprintf.c (dprintf): Likewise.
34806         * lib/vdprintf.c (vdprintf): Likewise.
34807
34808 2009-12-14  Eric Blake  <ebb9@byu.net>
34809
34810         accept4: adjust module dependencies
34811         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
34812
34813         utimens: one more try at avoiding compiler warning
34814         * lib/utimens.c (lutimens): Lower scope of result.
34815
34816 2009-12-13  Bruno Haible  <bruno@clisp.org>
34817
34818         Move the malloc checking from module 'list' to new module 'xlist'.
34819         * modules/xlist: New file.
34820         * lib/gl_xlist.h: New file.
34821         * lib/gl_xlist.c: New file.
34822         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
34823         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
34824         gl_list_add_last, gl_list_add_before, gl_list_add_after,
34825         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
34826         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
34827         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
34828         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
34829         gl_sortedlist_nx_add): New declarations.
34830         (struct gl_list_implementation): Rename and change methods accordingly.
34831         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
34832         (gl_list_nx_create): Renamed from gl_list_create.
34833         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
34834         (gl_list_nx_set_at): Renamed from gl_list_set_at.
34835         (gl_list_nx_add_first): Renamed from gl_list_add_first.
34836         (gl_list_nx_add_last): Renamed from gl_list_add_last.
34837         (gl_list_nx_add_before): Renamed from gl_list_add_before.
34838         (gl_list_nx_add_after): Renamed from gl_list_add_after.
34839         (gl_list_nx_add_at): Renamed from gl_list_add_at.
34840         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
34841         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
34842         gl_list_create_empty.
34843         (gl_list_nx_create): Renamed from gl_list_create.
34844         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
34845         (gl_list_nx_set_at): Renamed from gl_list_set_at.
34846         (gl_list_nx_add_first): Renamed from gl_list_add_first.
34847         (gl_list_nx_add_last): Renamed from gl_list_add_last.
34848         (gl_list_nx_add_before): Renamed from gl_list_add_before.
34849         (gl_list_nx_add_after): Renamed from gl_list_add_after.
34850         (gl_list_nx_add_at): Renamed from gl_list_add_at.
34851         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
34852         * lib/gl_array_list.c: Don't include xalloc.h.
34853         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
34854         NULL upon out-of-memory.
34855         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
34856         out-of-memory.
34857         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
34858         Change return type to 'int'.
34859         (gl_array_nx_set_at): Renamed from gl_array_set_at.
34860         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
34861         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
34862         upon out-of-memory.
34863         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
34864         upon out-of-memory.
34865         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
34866         upon out-of-memory.
34867         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
34868         upon out-of-memory.
34869         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
34870         out-of-memory.
34871         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
34872         Update.
34873         (gl_array_list_implementation): Update.
34874         * lib/gl_carray_list.c: Don't include xalloc.h.
34875         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
34876         Return NULL upon out-of-memory.
34877         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
34878         out-of-memory.
34879         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
34880         Change return type to 'int'.
34881         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
34882         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
34883         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
34884         upon out-of-memory.
34885         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
34886         upon out-of-memory.
34887         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
34888         out-of-memory.
34889         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
34890         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
34891         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
34892         Update.
34893         (gl_carray_list_implementation): Update.
34894         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
34895         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
34896         gl_linked_create_empty. Return NULL upon out-of-memory.
34897         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
34898         out-of-memory.
34899         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
34900         Change return type to 'int'. Return -1 upon out-of-memory.
34901         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
34902         out-of-memory.
34903         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
34904         upon out-of-memory.
34905         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
34906         upon out-of-memory.
34907         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
34908         NULL upon out-of-memory.
34909         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
34910         upon out-of-memory.
34911         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
34912         out-of-memory.
34913         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
34914         Update.
34915         * lib/gl_linked_list.c: Don't include xalloc.h.
34916         (gl_linked_list_implementation): Update.
34917         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
34918         (add_to_bucket): Change return type to 'int'.
34919         (gl_linkedhash_list_implementation): Update.
34920         * lib/gl_anytree_list1.h (free_subtree): New function.
34921         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
34922         gl_tree_create_empty. Return NULL upon out-of-memory.
34923         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
34924         Change return type to 'int'. Return -1 upon out-of-memory.
34925         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
34926         out-of-memory.
34927         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
34928         (gl_tree_remove_node): New function, moved here from
34929         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
34930         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
34931         Update.
34932         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
34933         malloc, not xmalloc. Return NULL upon out-of-memory.
34934         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
34935         out-of-memory.
34936         (gl_tree_remove_node_from_tree): New function, extracted from
34937         gl_tree_remove_node.
34938         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
34939         upon out-of-memory.
34940         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
34941         out-of-memory.
34942         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
34943         upon out-of-memory.
34944         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
34945         upon out-of-memory.
34946         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
34947         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
34948         not xmalloc. Return NULL upon out-of-memory.
34949         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
34950         out-of-memory.
34951         (gl_tree_remove_node_from_tree): New function, extracted from
34952         gl_tree_remove_node.
34953         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
34954         upon out-of-memory.
34955         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
34956         out-of-memory.
34957         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
34958         upon out-of-memory.
34959         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
34960         upon out-of-memory.
34961         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
34962         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
34963         gl_anytree_list1.h before gl_anyavltree_list2.h.
34964         (gl_avltree_list_implementation): Update.
34965         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
34966         gl_anytree_list1.h before gl_anyavltree_list2.h.
34967         (gl_rbtree_list_implementation): Update.
34968         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
34969         Change return type to 'int'. Return -1 upon out-of-memory. Use
34970         __builtin_expect.
34971         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
34972         (gl_avltreehash_list_implementation): Update.
34973         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
34974         (gl_rbtreehash_list_implementation): Update.
34975         * modules/array-list (Depends-on): Remove xalloc.
34976         * modules/carray-list (Depends-on): Likewise.
34977         * modules/linked-list (Depends-on): Likewise.
34978         * modules/linkedhash-list (Depends-on): Likewise.
34979         * modules/avltree-list (Depends-on): Likewise.
34980         * modules/rbtree-list (Depends-on): Likewise.
34981         * modules/avltreehash-list (Depends-on): Likewise.
34982         * modules/rbtreehash-list (Depends-on): Likewise.
34983
34984         * modules/xsublist: New file.
34985         * lib/gl_xsublist.h: New file.
34986         * lib/gl_xsublist.c: New file.
34987         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
34988         (gl_sublist_nx_create): New declaration.
34989         * lib/gl_sublist.c: Don't include xalloc.h.
34990         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
34991         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
34992         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
34993         Change return type to 'int'. Return -1 upon out-of-memory.
34994         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
34995         upon out-of-memory.
34996         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
34997         NULL upon out-of-memory.
34998         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
34999         upon out-of-memory.
35000         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
35001         NULL upon out-of-memory.
35002         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
35003         NULL upon out-of-memory.
35004         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
35005         upon out-of-memory.
35006         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
35007         (gl_sublist_list_implementation): Update.
35008         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
35009         upon out-of-memory.
35010         * modules/sublist (Depends-on): Remove xalloc.
35011
35012         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
35013         * tests/test-carray_list.c: Likewise.
35014         * tests/test-linked_list.c: Likewise.
35015         * tests/test-linkedhash_list.c: Likewise.
35016         * tests/test-avltree_list.c: Likewise.
35017         * tests/test-rbtree_list.c: Likewise.
35018         * tests/test-avltreehash_list.c: Likewise.
35019         * tests/test-rbtreehash_list.c: Likewise.
35020         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
35021         * modules/carray-list-tests (Makefile.am): Likewise.
35022         * modules/linked-list-tests (Makefile.am): Likewise.
35023         * modules/linkedhash-list-tests (Makefile.am): Likewise.
35024         * modules/avltree-list-tests (Makefile.am): Likewise.
35025         * modules/rbtree-list-tests (Makefile.am): Likewise.
35026         * modules/avltreehash-list-tests (Makefile.am): Likewise.
35027         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
35028
35029         * NEWS: Mention the changes.
35030
35031         * lib/clean-temp.c: Include gl_xlist.h.
35032         * modules/clean-temp (Depends-on): Add xlist.
35033
35034         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
35035         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
35036
35037         * tests/test-array_oset.c: Include gl_xlist.h.
35038         * modules/array-oset-tests (Depends-on): Add xlist.
35039
35040         Reported by José E. Marchesi <jemarch@gnu.org>.
35041
35042 2009-12-13  Bruno Haible  <bruno@clisp.org>
35043
35044         Move the malloc checking from module 'oset' to new module 'xoset'.
35045         * modules/xoset: New file.
35046         * lib/gl_xoset.h: New file.
35047         * lib/gl_xoset.c: New file.
35048         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
35049         declarations.
35050         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
35051         (struct gl_oset_implementation): Rename and change methods accordingly.
35052         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
35053         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
35054         'int'. Mark as __warn_unused_result__.
35055         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
35056         gl_oset_create_empty.
35057         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
35058         'int'.
35059         * lib/gl_array_oset.c: Don't include xalloc.h.
35060         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
35061         malloc, not xmalloc.
35062         (grow): Change return type to 'int'. Don't call xalloc_die.
35063         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
35064         to 'int'.
35065         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
35066         'int'.
35067         (gl_array_oset_implementation): Update.
35068         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
35069         gl_tree_create_empty.
35070         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
35071         'int'.
35072         * lib/gl_avltree_oset.c: Don't include xalloc.h.
35073         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
35074         xmalloc.
35075         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
35076         not xmalloc.
35077         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
35078         xmalloc.
35079         (gl_avltree_oset_implementation): Update.
35080         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
35081         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
35082         xmalloc.
35083         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
35084         not xmalloc.
35085         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
35086         xmalloc.
35087         (gl_rbtree_oset_implementation): Update.
35088         * modules/array-oset (Depends-on): Remove xalloc.
35089         * modules/avltree-oset (Depends-on): Likewise.
35090         * modules/rbtree-oset (Depends-on): Likewise.
35091         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
35092         * tests/test-avltree_oset.c: Likewise.
35093         * tests/test-rbtree_oset.c: Likewise.
35094         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
35095         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
35096         * modules/rbtree-oset-tests (Makefile.am): Likewise.
35097         * NEWS: Mention the change.
35098
35099 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
35100
35101         maint.mk: allow a project to override release-prep commands
35102         * top/maint.mk (alpha, beta, stable): Move release-preparatory
35103         commands into a new rule.
35104         (release-prep): New rule.
35105         (release-prep-hook): New overridable variable.
35106
35107 2009-12-13  Bruno Haible  <bruno@clisp.org>
35108
35109         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
35110
35111 2009-12-13  Jim Meyering  <meyering@redhat.com>
35112
35113         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
35114         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
35115
35116 2009-12-12  Bruno Haible  <bruno@clisp.org>
35117
35118         duplocale: Tweak.
35119         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
35120
35121 2009-12-12  Karl Berry  <karl@gnu.org>
35122
35123         * config/srclist.txt (strtoll.c): tab changes, no more sync.
35124
35125 2009-12-12  Bruno Haible  <bruno@clisp.org>
35126
35127         * m4/po.m4: Undo incorrect untabification.
35128
35129 2009-12-12  Bruno Haible  <bruno@clisp.org>
35130
35131         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
35132         * modules/c-strtod (Depends-on): Add locale.
35133         * modules/c-strtold (Depends-on): Likewise.
35134
35135 2009-12-12  Bruno Haible  <bruno@clisp.org>
35136
35137         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
35138
35139 2009-12-11  Eric Blake  <ebb9@byu.net>
35140
35141         setenv: relax requirement in light of POSIX ruling
35142         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
35143         not NULL.
35144         * tests/test-setenv.c (main): Relax test.
35145         * tests/test-unsetenv.c (main): Likewise.
35146         * doc/posix-functions/setenv.texi (setenv): Document this.
35147         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
35148
35149 2009-12-11  Bruno Haible  <bruno@clisp.org>
35150
35151         New module 'fd-safer-flag'.
35152         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
35153         * lib/dup-safer.c (dup_safer_flag): Remove function.
35154         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
35155         * lib/fd-safer.c (fd_safer_flag): Remove function.
35156         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
35157         * modules/cloexec (configure.ac): Drop indicator macro.
35158         * modules/fd-safer-flag: New file.
35159         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
35160         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
35161         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
35162
35163 2009-12-11  Bruno Haible  <bruno@clisp.org>
35164
35165         Tests for module 'nl_langinfo'.
35166         * modules/nl_langinfo-tests: New file.
35167         * tests/test-nl_langinfo.sh: New file.
35168         * tests/test-nl_langinfo.c: New file.
35169
35170         New module 'nl_langinfo'.
35171         * lib/nl_langinfo.c: New file.
35172         * m4/nl_langinfo.m4: New file.
35173         * modules/nl_langinfo: New file.
35174         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
35175
35176 2009-12-11  Bruno Haible  <bruno@clisp.org>
35177
35178         Tests for module 'langinfo'.
35179         * modules/langinfo-tests: New file.
35180         * tests/test-langinfo.c: New file.
35181
35182         New module 'langinfo'.
35183         * lib/langinfo.in.h: New file.
35184         * m4/langinfo_h.m4: New file.
35185         * modules/langinfo: New file.
35186         * doc/posix-headers/langinfo.texi: Mention the new module.
35187
35188 2009-12-11  Bruno Haible  <bruno@clisp.org>
35189
35190         * lib/config.charset: Untabify.
35191
35192 2009-12-11  Bruno Haible  <bruno@clisp.org>
35193
35194         * modules/unistd-safer (configure.ac): Drop indicator macro.
35195
35196 2009-12-11  Bruno Haible  <bruno@clisp.org>
35197
35198         Move pipe2-safer code to its own file.
35199         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
35200         * lib/pipe-safer.c (pipe2_safer): Remove function.
35201         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
35202         (Makefile.am): Add it to lib_SOURCES.
35203
35204 2009-12-10  Bruno Haible  <bruno@clisp.org>
35205
35206         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
35207
35208 2009-12-10  Bruno Haible  <bruno@clisp.org>
35209
35210         Declare which arguments expect non-NULL values, for GCC and clang.
35211         * build-aux/arg-nonnull.h: New file.
35212         * modules/arg-nonnull: New file.
35213         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
35214         (inet_ntop, inet_pton): Use it.
35215         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
35216         (closedir, dirfd, opendir, scandir, alphasort): Use it.
35217         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
35218         (open, openat): Use it.
35219         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
35220         (fnmatch): Use it.
35221         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
35222         (getopt, getopt_long, getopt_long_only): Use it.
35223         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
35224         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
35225         Use it.
35226         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
35227         (iconv_open): Use it.
35228         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
35229         (strtoimax, strtoumax): Use it.
35230         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
35231         (duplocale): Use it.
35232         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
35233         (frexp, frexpl): Use it.
35234         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
35235         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
35236         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
35237         (tsearch, tfind, tdelete, twalk): Use it.
35238         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
35239         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
35240         sigpending): Use it.
35241         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
35242         (posix_spawn, posix_spawnp, posix_spawnattr_init,
35243         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
35244         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
35245         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
35246         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
35247         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
35248         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
35249         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
35250         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
35251         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
35252         Use it.
35253         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
35254         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
35255         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
35256         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
35257         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
35258         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
35259         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
35260         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
35261         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
35262         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
35263         strtoull, unsetenv): Use it.
35264         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
35265         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
35266         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
35267         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
35268         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
35269         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
35270         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
35271         (strcasecmp, strncasecmp): Use it.
35272         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
35273         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
35274         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
35275         rpl_setsockopt): Use it.
35276         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
35277         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
35278         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
35279         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
35280         (gettimeofday): Use it.
35281         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
35282         (times): Use it.
35283         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
35284         (uname): Use it.
35285         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
35286         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
35287         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
35288         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
35289         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
35290         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
35291         unlinkat, write): Use it.
35292         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
35293         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
35294         * lib/argv-iter.h: Include arg-nonnull.h.
35295         (_ATTRIBUTE_NONNULL_): Remove macro.
35296         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
35297         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
35298         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
35299         optimization.
35300         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
35301         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
35302         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
35303         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
35304         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
35305         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
35306         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
35307         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
35308         * modules/arpa_inet (Depends-on): Add arg-nonnull.
35309         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
35310         * modules/dirent (Depends-on): Add arg-nonnull.
35311         (Makefile.am): Insert arg-nonnull.h into dirent.h.
35312         * modules/fcntl-h (Depends-on): Add arg-nonnull.
35313         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
35314         * modules/fnmatch (Depends-on): Add arg-nonnull.
35315         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
35316         * modules/getopt-posix (Depends-on): Add arg-nonnull.
35317         (Makefile.am): Insert arg-nonnull.h into getopt.h.
35318         * modules/glob (Depends-on): Add arg-nonnull.
35319         (Makefile.am): Insert arg-nonnull.h into glob.h.
35320         * modules/iconv_open (Depends-on): Add arg-nonnull.
35321         (Makefile.am): Insert arg-nonnull.h into iconv.h.
35322         * modules/inttypes (Depends-on): Add arg-nonnull.
35323         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
35324         * modules/locale (Depends-on): Add arg-nonnull.
35325         (Makefile.am): Insert arg-nonnull.h into locale.h.
35326         * modules/math (Depends-on): Add arg-nonnull.
35327         (Makefile.am): Insert arg-nonnull.h into math.h.
35328         * modules/netdb (Depends-on): Add arg-nonnull.
35329         (Makefile.am): Insert arg-nonnull.h into netdb.h.
35330         * modules/search (Depends-on): Add arg-nonnull.
35331         (Makefile.am): Insert arg-nonnull.h into search.h.
35332         * modules/signal (Depends-on): Add arg-nonnull.
35333         (Makefile.am): Insert arg-nonnull.h into signal.h.
35334         * modules/spawn (Depends-on): Add arg-nonnull.
35335         (Makefile.am): Insert arg-nonnull.h into spawn.h.
35336         * modules/stdio (Depends-on): Add arg-nonnull.
35337         (Makefile.am): Insert arg-nonnull.h into stdio.h.
35338         * modules/stdlib (Depends-on): Add arg-nonnull.
35339         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
35340         * modules/string (Depends-on): Add arg-nonnull.
35341         (Makefile.am): Insert arg-nonnull.h into string.h.
35342         * modules/strings (Depends-on): Add arg-nonnull.
35343         (Makefile.am): Insert arg-nonnull.h into strings.h.
35344         * modules/sys_socket (Depends-on): Add arg-nonnull.
35345         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
35346         * modules/sys_stat (Depends-on): Add arg-nonnull.
35347         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
35348         * modules/sys_time (Depends-on): Add arg-nonnull.
35349         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
35350         * modules/sys_times (Depends-on): Add arg-nonnull.
35351         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
35352         * modules/sys_utsname (Depends-on): Add arg-nonnull.
35353         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
35354         * modules/time (Depends-on): Add arg-nonnull.
35355         (Makefile.am): Insert arg-nonnull.h into time.h.
35356         * modules/unistd (Depends-on): Add arg-nonnull.
35357         (Makefile.am): Insert arg-nonnull.h into unistd.h.
35358         * modules/wchar (Depends-on): Add arg-nonnull.
35359         (Makefile.am): Insert arg-nonnull.h into wchar.h.
35360         * modules/argv-iter (Depends-on): Add arg-nonnull.
35361         * tests/test-canonicalize.c (null_ptr): New function.
35362         (main): Use it.
35363         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
35364         (main): Use it.
35365         * tests/test-memmem.c (null_ptr): New function.
35366         (main): Use it.
35367         Reported by Jim Meyering.
35368
35369 2009-12-10  Bruno Haible  <bruno@clisp.org>
35370
35371         Use spaces for indentation, not tabs.
35372         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
35373         * m4/*.m4: Untabify.
35374         * build-aux/*.h: Untabify.
35375         * tests/**/*.[hc]: Untabify.
35376         * README: New section "Indent with spaces, not TABs", based on
35377         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
35378         * NEWS: Mention the change.
35379
35380 2009-12-10  Bruno Haible  <bruno@clisp.org>
35381
35382         pty test: Fix link error.
35383         * modules/pty-tests (Makefile.am): Add the default LDADD value to
35384         test_pty_LDADD.
35385
35386 2009-12-07  Simon Josefsson  <simon@josefsson.org>
35387
35388         * modules/pty: New file.
35389         * modules/pty-tests: New file.
35390         * m4/pty.m4: New file.
35391         * tests/test-pty.c: New file.
35392         * doc/glibc-headers/pty.texi: Modified.
35393         * doc/glibc-functions/forkpty.texi: Modified.
35394         * doc/glibc-functions/openpty.texi: Modified.
35395
35396 2009-12-10  Bruno Haible  <bruno@clisp.org>
35397
35398         Avoid syntax error in C++ mode.
35399         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
35400
35401 2009-12-10  Bruno Haible  <bruno@clisp.org>
35402
35403         Use sed with option -e.
35404         * gnulib-tool (func_version, func_emit_copyright_notice,
35405         func_emit_initmacro_end, func_import, func_create_testdir): Pass
35406         option -e to sed.
35407         * modules/link-warning (Makefile.am): Likewise.
35408
35409 2009-12-10  Jim Meyering  <meyering@redhat.com>
35410
35411         mgetgroups: do not write bytes beyond end of malloc'd buffer
35412         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
35413         username, we call getgroups with a one-element-shorter buffer,
35414         but still told it the length was original, max_n_groups.
35415
35416 2009-12-09  Eric Blake  <ebb9@byu.net>
35417
35418         cloexec: relax license
35419         * modules/cloexec (Maintainer): Add myself.
35420         (License): Use LGPL, not GPL.
35421
35422         link-warning: optimize generation
35423         * modules/link-warning (Makefile.am): Reduce process usage.
35424
35425 2009-12-09  Bruno Haible  <bruno@clisp.org>
35426
35427         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
35428         workaround was added on 2009-11-17.
35429
35430 2009-12-09  Jim Meyering  <meyering@redhat.com>
35431             Bruno Haible  <bruno@clisp.org>
35432
35433         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
35434         * modules/link-warning (Makefile.am): Make the comment-removing sed
35435         command more robust in the face of bootstrap-prepended comment lines.
35436
35437 2009-12-09  Bruno Haible  <bruno@clisp.org>
35438
35439         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
35440         most one group.
35441
35442 2009-12-09  Simon Josefsson <simon@josefsson.org>
35443             Bruno Haible  <bruno@clisp.org>
35444
35445         * build-aux/link-warning.h: Add copyright notice.
35446         * modules/link-warning (Makefile.am): Generate link-warning.h from
35447         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
35448         * NEWS: Mention change in link-warning module.
35449         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
35450         * modules/dirent (Makefile.am): Add dependency to dirent.h.
35451         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
35452         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
35453         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
35454         * modules/math (Makefile.am): Add dependency to math.h.
35455         * modules/search (Makefile.am): Add dependency to search.h.
35456         * modules/signal (Makefile.am): Add dependency to signal.h.
35457         * modules/spawn (Makefile.am): Add dependency to spawn.h.
35458         * modules/stdio (Makefile.am): Add dependency to stdio.h.
35459         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
35460         * modules/string (Makefile.am): Add dependency to string.h.
35461         * modules/strings (Makefile.am): Add dependency to strings.h.
35462         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
35463         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
35464         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
35465         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
35466         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
35467         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
35468         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
35469         * modules/unistd (Makefile.am): Add dependency to unistd.h.
35470         * modules/wchar (Makefile.am): Add dependency to wchar.h.
35471
35472 2009-12-09  Bruno Haible  <bruno@clisp.org>
35473
35474         fchdir: Optimize away rpl_fstat when possible.
35475         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
35476         REPLACE_OPEN_DIRECTORY.
35477         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
35478
35479 2009-12-09  Bruno Haible  <bruno@clisp.org>
35480
35481         * lib/fchdir.c: Update comment.
35482
35483 2009-12-09  Bruno Haible  <bruno@clisp.org>
35484
35485         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
35486
35487 2009-12-08  Eric Blake  <ebb9@byu.net>
35488
35489         fchdir: avoid memory leak on re-registration.
35490         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
35491
35492 2009-12-08  Jim Meyering  <meyering@redhat.com>
35493
35494         init.sh: avoid Solaris 10 /bin/sh portability problem
35495         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
35496         sourced script:
35497           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
35498           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
35499           bar
35500         tests/init.sh relied on that, accepting a --set-path=DIR argument,
35501         and two tests used that idiom.
35502         * tests/init.sh: Update suggested usage comments.
35503         (path_prepend_): New function, to be used in place
35504         of the --src-path=DIR option.
35505         (setup_): Move PATH-prepending code into path_prepend_.
35506         * tests/test-pread.sh: Adapt to new usage.
35507         * tests/test-xalloc-die.sh: Likewise.
35508
35509 2009-12-08  Simon Josefsson  <simon@josefsson.org>
35510
35511         * doc/gnulib.texi (Glibc pty.h): Add.
35512         * doc/glibc-functions/forkpty.texi: Add.
35513         * doc/glibc-functions/openpty.texi: Add.
35514         Suggested by Bruno Haible.
35515
35516 2009-12-08  Eric Blake  <ebb9@byu.net>
35517
35518         fchdir: fix logic bugs
35519         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
35520         * tests/test-fchdir.c (main): Enhance test.
35521         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
35522         is in use.
35523
35524         dup2: fix logic bugs
35525         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
35526         REPLACE_DUP2 to decide when rpl_dup2 is needed.
35527         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
35528         exists.
35529         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
35530
35531 2009-12-07  Eric Blake  <ebb9@byu.net>
35532
35533         unlink: fix m4 detection
35534         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
35535
35536         unistd-safer: add unit test
35537         * modules/unistd-safer-tests: New file.
35538         * tests/test-dup-safer.c: Likewise.
35539         * tests/test-cloexec.c (setmode): Avoid compiler warning.
35540         * tests/test-dup2.c (setmode): Likewise.
35541         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
35542
35543         cloexec: preserve text vs. binary across dup_cloexec
35544         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
35545         mode.
35546         * modules/dup2-tests (Depends-on): Add binary-io.
35547         * modules/cloexec-tests (Depends-on): Likewise.
35548         * tests/test-dup2.c (setmode, is_mode): New helpers.
35549         (main): Add tests that translation mode is preserved.
35550         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
35551         Reported by Bruno Haible.
35552
35553         mgetgroups: reduce duplicate listings
35554         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
35555         resulting array.
35556         * tests/test-chown.h (test_chown): Simplify client.
35557         * tests/test-lchown.h (test_lchown): Likewise.
35558
35559 2009-12-06  Bruno Haible  <bruno@clisp.org>
35560
35561         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
35562         value.
35563
35564 2009-12-06  Bruno Haible  <bruno@clisp.org>
35565
35566         * lib/progname.c: Include stdio.h, stdlib.h.
35567         (set_program_name): Reject a NULL argument.
35568
35569 2009-12-05  Eric Blake  <ebb9@byu.net>
35570
35571         pipe2-safer: new module
35572         * modules/pipe2-safer: New file.
35573         * lib/unistd-safer.h (pipe2_safer): New prototype.
35574         * lib/unistd--.h (pipe2): New wrapper.
35575         * lib/pipe-safer.c (pipe2_safer): New function.
35576         * modules/pipe (Depends-on): Add pipe2-safer.
35577         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
35578
35579         stdlib-safer: preserve cloexec flag for mkostemp[s]
35580         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
35581         fd_safer_flag.
35582
35583         unistd-safer: allow preservation of cloexec status via flag
35584         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
35585         prototypes.
35586         * lib/dup-safer.c (dup_safer_flag): New function.
35587         * lib/fd-safer.c (fd_safer_flag): Likewise.
35588         * modules/cloexec (configure.ac): Set witness.
35589
35590         test-dup2: enhance test
35591         * modules/dup2-tests (Depends-on): Add cloexec.
35592         * tests/test-dup2.c (main): Enhance test.
35593
35594         cloexec: add dup_cloexec
35595         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
35596         header and comments.
35597         * lib/cloexec.c (set_cloexec_flag): Add comments.
35598         (dup_cloexec): New function, with mingw implementation borrowed
35599         from...
35600         * lib/w32spawn.h (dup_noinherit): ...here.
35601         * modules/execute (Depends-on): Add cloexec.
35602         * modules/pipe (Depends-on): Likewise.
35603         * modules/cloexec (Depends-on): Add dup2.
35604         * modules/cloexec-tests (Files): New file.
35605         * tests/test-cloexec.c: Likewise.
35606
35607         test-xalloc-die: fix test for mingw
35608         * modules/xalloc-die-tests (Files): Add tests/init.sh.
35609         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
35610         directory and .exe suffix off argv[0] output.
35611
35612         test-fseeko: fix test for mingw
35613         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
35614         than undefining fseek, so test will pass on mingw.
35615
35616 2009-12-05  Bruno Haible  <bruno@clisp.org>
35617
35618         * lib/progname.h (set_program_name): Clarify specification.
35619         * lib/progname.c (set_program_name): Likewise.
35620         Reported by Jim Meyering.
35621
35622 2009-12-05  Jim Meyering  <meyering@redhat.com>
35623
35624         maint.mk: backslash-escape parens in default regexp
35625         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
35626         backslash-escape the literal parentheses.
35627
35628         maint.mk: news-date-check: use grep -E
35629         * top/maint.mk (today): Define a Make variable, not a...
35630         (news-date-check): ...shell variable.
35631         (news-date-regexp): Use the Make variable.
35632         Use grep's -E option.  Change the failing diagnostic to mention
35633         the variable, $(news-date-regexp).
35634
35635 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
35636
35637         maintainer-makefile: allow customization of NEWS entry format
35638         * top/maint.mk (news-date-regexp): New overridable variable.
35639         (news-date-check): Use it.
35640
35641 2009-12-04  Eric Blake  <ebb9@byu.net>
35642
35643         mgetgroups: add xgetgroups, and avoid ENOSYS failures
35644         * lib/mgetgroups.h (xgetgroups): New prototype.
35645         * lib/mgetgroups.c (xgetgroups): New wrapper.
35646         (mgetgroups): Handle ENOSYS.
35647         * modules/mgetgroups (Depends-on): Add realloc.
35648         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
35649
35650         mgetgroups: avoid argument promotion issues with -1
35651         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
35652         for invalid gid_t.
35653         * tests/test-chown.h (getegid, test_chown): Likewise.
35654         * tests/test-lchown.h (getegid, test_lchown): Likewise.
35655
35656 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
35657
35658         exclude: Fix header file problems.
35659         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
35660
35661 2009-12-01  Jim Meyering  <meyering@redhat.com>
35662
35663         fts: fts_open: do not let an empty string cause immediate failure
35664         This is required in support of GNU rm, for which the command
35665         "rm A '' B" must process and remove both A and B, in spite of
35666         the empty string argument.
35667         * lib/fts.c (fts_open): Do not let the presence of an empty string
35668         cause fts_open to fail immediately.  Most fts-using tools must be
35669         able to process all arguments, in order, and can be expected to
35670         diagnose such arguments themselves.
35671
35672 2009-11-30  Eric Blake  <ebb9@byu.net>
35673
35674         utimens: fix compilation error
35675         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
35676         Declare variable at right scope.
35677
35678 2009-11-29  Jim Meyering  <meyering@redhat.com>
35679
35680         bootstrap: handle perl-5.11's changed --version output
35681         * build-aux/bootstrap (get_version): Handle perl separately,
35682         since perl-5.11's --version output is different.
35683
35684 2009-11-28  Jim Meyering  <meyering@redhat.com>
35685
35686         userspec: depend on the inttostr module, too
35687         * modules/userspec (Depends-on): Add inttostr.
35688
35689         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
35690         * lib/userspec.c (parse_with_separator): Do not accept a user ID
35691         number of MAXUID when it evaluates to (uid_t) -1.
35692         Likewise for group ID.  Reported by Matt McCutchen in
35693         <http://savannah.gnu.org/bugs/?28113>
35694
35695         userspec: reformat to use spaces, not TABs
35696         * lib/userspec.c: Expand TABs to spaces.
35697         Add Emacs' "indent-tabs-mode: nil" hint.
35698
35699 2009-11-27  Eric Blake  <ebb9@byu.net>
35700
35701         getopt-gnu: flush out another BSD bug
35702         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
35703         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
35704         flush out BSD bug.
35705         * tests/test-getopt.h (test_getopt): End lists with NULL.
35706         * tests/test-getopt_long.h (test_getopt_long): Likewise.
35707         (test_getopt_long_posix): Enhance test.
35708         * modules/getopt-posix-tests (Depends-on): Add stdbool.
35709         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
35710         getopt-gnu.
35711         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
35712         Likewise.
35713
35714 2009-11-27  Simon Josefsson  <simon@josefsson.org>
35715
35716         * modules/idpriv-droptemp-tests (Notice): Fix text.
35717
35718 2009-11-27  Jim Meyering  <meyering@redhat.com>
35719
35720         test-xalloc-die: avoid spurious failure due to libtool argv difference
35721         In a libtool-enabled project, this test would fail due to a difference
35722         in the emitted program name, e.g.,
35723         -test-xalloc-die: memory exhausted
35724         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
35725         Use program to avoid that.
35726         * modules/xalloc-die-tests (Depends-on): Add progname.
35727         * tests/test-xalloc-die.c: Include progname.h".
35728         (program_name): Remove decl.
35729         (main): Call set_program_name.
35730         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
35731
35732 2009-11-26  Richard Jones  <rjones@redhat.com>
35733
35734         w32sock: leave win32 error in place.
35735         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
35736
35737 2009-11-26  Eric Blake  <ebb9@byu.net>
35738
35739         init.sh: suggest to use skip_ and fail_ functions in comments
35740         * tests/init.sh: Add a sentence.
35741
35742 2009-11-25  Bruno Haible  <bruno@clisp.org>
35743
35744         init.sh: add documentation in comments
35745         * tests/init.sh: Add some developer and user documentation.
35746
35747 2009-11-26  Jim Meyering  <meyering@redhat.com>
35748
35749         init.sh: accommodate even those who specify bogus srcdir manually
35750         * tests/init.sh: Normally, srcdir is guaranteed by automake and
35751         configure-time tests to be sanitized, so that there is no need to
35752         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
35753         (with no double quotes) suffices.  However, since tests may be
35754         invoked manually, and since you may explicitly set srcdir to the
35755         name of a directory containing spaces, do quote its uses here.
35756         * tests/test-pread.sh: Likewise.
35757         Suggested by Bruno Haible.
35758
35759         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
35760         * tests/test-pread.sh: Write no data into the pipe, because
35761         test-pread actually reads none.  This avoids a diagnostic,
35762         "bash: echo: write error: Broken pipe", that arises in the unusual
35763         event something is ignoring SIGPIPE, and might be interpreted
35764         as some sort of failure.  Reported by Bruno Haible.
35765
35766 2009-11-25  Jim Meyering  <meyering@redhat.com>
35767
35768         test-pread: cover failure with ESPIPE and EINVAL
35769         * tests/test-pread.c (main): Test for failure, too.
35770         * tests/test-pread.sh: Invoke with stdin on a pipe.
35771         Suggested by Eric Blake.
35772
35773         pread: improvement and fix
35774         * modules/pread (Depends-on): Depend on lseek, for portability to
35775         e.g., mingw.  Suggested by Eric Blake.
35776         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
35777
35778         unistd.in.h: correct declaration of pread
35779         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
35780         Reported by Richard W.M. Jones.
35781
35782         test-pread.sh: distribute the test script
35783         * modules/pread-tests (Files): Include test-pread.sh.
35784
35785         test-pread.sh: clean up
35786         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
35787         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
35788         That is unnecessary, since it's always ".".
35789         Suggestion from Eric Blake.
35790
35791         test-pread.sh: make executable
35792         * tests/test-pread.sh: Set executable bit.
35793         Reported by Eric Blake.
35794
35795         correct typo in test-pread.sh
35796         * tests/test-pread.sh: Add #! line.
35797
35798         test pread
35799         * tests/test-pread.c: New file.
35800         * tests/test-pread.sh: Likewise.
35801         * modules/pread-tests: Likewise.
35802
35803         pread: new module
35804         * modules/pread: New file.
35805         * lib/unistd.in.h (pread): Define/declare.
35806         * lib/pread.c (pread): New file.
35807         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
35808         * modules/unistd (Makefile.am): Substitute witnesses.
35809         * doc/posix-functions/pread.texi (pread): Update.
35810         * MODULES.html.sh: Add pread.
35811
35812 2009-11-25  Jim Meyering  <meyering@redhat.com>
35813
35814         tests/init.sh: new file to be used via most *.sh tests
35815         * tests/init.sh: New file.
35816
35817 2009-11-25  Eric Blake  <ebb9@byu.net>
35818
35819         utimens: work around older Linux failure with symlinks
35820         * lib/utimens.c (lutimensat_works_really): New variable.
35821         (fdutimens, lutimens): Use it to manage kernels that support
35822         nanosecond times on files, but not on symlinks.
35823         Reported by OndÅ™ej Vašík.
35824
35825         utimes: fix configure grammar
35826         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
35827
35828 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
35829
35830         regex: Fix fastmap for multibyte character ranges.
35831         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
35832         characters when a multibyte character range is included.
35833
35834 2009-11-22  Andy Wingo  <wingo@pobox.com>
35835
35836         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
35837         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
35838
35839 2009-11-24  Bruno Haible  <bruno@clisp.org>
35840
35841         doc: Most *_l functions exist in MacOS X 10.5.
35842         * doc/posix-functions/duplocale.texi: Update platforms list.
35843         * doc/posix-functions/freelocale.texi: Likewise.
35844         * doc/posix-functions/newlocale.texi: Likewise.
35845         * doc/posix-functions/uselocale.texi: Likewise.
35846         * doc/posix-functions/isalnum_l.texi: Likewise.
35847         * doc/posix-functions/isalpha_l.texi: Likewise.
35848         * doc/posix-functions/isblank_l.texi: Likewise.
35849         * doc/posix-functions/iscntrl_l.texi: Likewise.
35850         * doc/posix-functions/isdigit_l.texi: Likewise.
35851         * doc/posix-functions/isgraph_l.texi: Likewise.
35852         * doc/posix-functions/islower_l.texi: Likewise.
35853         * doc/posix-functions/isprint_l.texi: Likewise.
35854         * doc/posix-functions/ispunct_l.texi: Likewise.
35855         * doc/posix-functions/isspace_l.texi: Likewise.
35856         * doc/posix-functions/isupper_l.texi: Likewise.
35857         * doc/posix-functions/iswalnum_l.texi: Likewise.
35858         * doc/posix-functions/iswalpha_l.texi: Likewise.
35859         * doc/posix-functions/iswblank_l.texi: Likewise.
35860         * doc/posix-functions/iswcntrl_l.texi: Likewise.
35861         * doc/posix-functions/iswctype_l.texi: Likewise.
35862         * doc/posix-functions/iswdigit_l.texi: Likewise.
35863         * doc/posix-functions/iswgraph_l.texi: Likewise.
35864         * doc/posix-functions/iswlower_l.texi: Likewise.
35865         * doc/posix-functions/iswprint_l.texi: Likewise.
35866         * doc/posix-functions/iswpunct_l.texi: Likewise.
35867         * doc/posix-functions/iswspace_l.texi: Likewise.
35868         * doc/posix-functions/iswupper_l.texi: Likewise.
35869         * doc/posix-functions/iswxdigit_l.texi: Likewise.
35870         * doc/posix-functions/isxdigit_l.texi: Likewise.
35871         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
35872         * doc/posix-functions/strcasecmp_l.texi: Likewise.
35873         * doc/posix-functions/strcoll_l.texi: Likewise.
35874         * doc/posix-functions/strfmon_l.texi: Likewise.
35875         * doc/posix-functions/strftime_l.texi: Likewise.
35876         * doc/posix-functions/strncasecmp_l.texi: Likewise.
35877         * doc/posix-functions/strxfrm_l.texi: Likewise.
35878         * doc/posix-functions/tolower_l.texi: Likewise.
35879         * doc/posix-functions/toupper_l.texi: Likewise.
35880         * doc/posix-functions/towctrans_l.texi: Likewise.
35881         * doc/posix-functions/towlower_l.texi: Likewise.
35882         * doc/posix-functions/towupper_l.texi: Likewise.
35883         * doc/posix-functions/wcscoll_l.texi: Likewise.
35884         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
35885         * doc/posix-functions/wctrans_l.texi: Likewise.
35886         * doc/posix-functions/wctype_l.texi: Likewise.
35887         * doc/glibc-functions/strptime_l.texi: Likewise.
35888         * doc/glibc-functions/strtod_l.texi: Likewise.
35889         * doc/glibc-functions/strtof_l.texi: Likewise.
35890         * doc/glibc-functions/strtol_l.texi: Likewise.
35891         * doc/glibc-functions/strtold_l.texi: Likewise.
35892         * doc/glibc-functions/strtoll_l.texi: Likewise.
35893         * doc/glibc-functions/strtoul_l.texi: Likewise.
35894         * doc/glibc-functions/strtoull_l.texi: Likewise.
35895         * doc/glibc-functions/wcsftime_l.texi: Likewise.
35896         * doc/glibc-functions/wcstod_l.texi: Likewise.
35897         * doc/glibc-functions/wcstof_l.texi: Likewise.
35898         * doc/glibc-functions/wcstol_l.texi: Likewise.
35899         * doc/glibc-functions/wcstold_l.texi: Likewise.
35900         * doc/glibc-functions/wcstoll_l.texi: Likewise.
35901         * doc/glibc-functions/wcstoul_l.texi: Likewise.
35902         * doc/glibc-functions/wcstoull_l.texi: Likewise.
35903
35904 2009-11-24  Bruno Haible  <bruno@clisp.org>
35905
35906         duplocale: Fix logic bug.
35907         * lib/duplocale.c: Don't include <langinfo.h>.
35908         (_NL_LOCALE_NAME): Remove macro.
35909         (rpl_duplocale): Use setlocale instead of nl_langinfo.
35910         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
35911
35912 2009-11-23  Jim Meyering  <meyering@redhat.com>
35913
35914         test-update-copyright: don't hard-code /usr/bin/perl
35915         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
35916         perl to print the current year.  Gilles Espinasse reported that
35917         the replaced use of perl was hard-coded as /usr/bin/perl.
35918
35919 2009-11-23  Bruno Haible  <bruno@clisp.org>
35920
35921         duplocale: Add support for glibc 2.3.x.
35922         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
35923
35924 2009-11-22  Bruno Haible  <bruno@clisp.org>
35925
35926         vasnprintf: Tiny optimization.
35927         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
35928         MacOS X.
35929
35930 2009-11-22  Bruno Haible  <bruno@clisp.org>
35931
35932         Tests for module 'duplocale'.
35933         * modules/duplocale-tests: New file.
35934         * tests/test-duplocale.c: New file.
35935
35936         New module 'duplocale'.
35937         * m4/duplocale.m4: New file.
35938         * lib/locale.in.h (duplocale): New declaration.
35939         * lib/duplocale.c: New file.
35940         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
35941         gl_LOCALE_H_DEFAULTS): New macros.
35942         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
35943         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
35944         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
35945         REPLACE_DUPLOCALE.
35946         * modules/duplocale: New file.
35947         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
35948
35949 2009-11-22  Bruno Haible  <bruno@clisp.org>
35950
35951         * modules/locale-tests (configure.ac): Test for newlocale function.
35952         * tests/test-locale.c: When the system has extended locale functions,
35953         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
35954
35955         locale: Make locale_t available when possible.
35956         * lib/locale.in.h: Include <xlocale.h> when it exists.
35957         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
35958         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
35959         * modules/locale (Depends-on): Add extensions.
35960         (Makefile.am): Also substitute HAVE_XLOCALE_H.
35961         * doc/posix-headers/locale.texi: Document the problem with locale_t.
35962
35963 2009-11-22  Bruno Haible  <bruno@clisp.org>
35964
35965         Add comments.
35966         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
35967         invocation.
35968         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
35969         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
35970         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
35971
35972 2009-11-22  Bruno Haible  <bruno@clisp.org>
35973
35974         error: account for the possibility of freopen (stdout).
35975         * lib/error.c: Include <unistd.h>.
35976         (flush_stdout): New function, extracted from error and error_at_line.
35977         Determine stdout's fd dynamically.
35978         (error, error_at_line): Invoke flush_stdout.
35979         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
35980         * modules/error (Depends-on): Add unistd.
35981
35982 2009-11-22  Bruno Haible  <bruno@clisp.org>
35983
35984         diffseq: Add comment.
35985         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
35986
35987 2009-11-22  Jim Meyering  <meyering@redhat.com>
35988
35989         c-stack: avoid defining an unused static function
35990         * lib/c-stack.c (find_stack_direction): Do not define this function
35991         when it will not be used.
35992
35993         diffseq: avoid spurious gcc warnings
35994         * lib/diffseq.h (IF_LINT2): Define.
35995         (compareseq): Use it to initialize two members of "part".
35996         This avoids two used-uninitialized warnings.
35997
35998 2009-11-21  Jim Meyering  <meyering@redhat.com>
35999
36000         c-stack: avoid "ignoring return value of `write'" warning
36001         * lib/c-stack.c: Include "ignore-value.h".
36002         (die): Explicitly ignore each write return value.
36003         * modules/c-stack (Depends-on): Add ignore-value.
36004
36005 2009-11-21  Bruno Haible  <bruno@clisp.org>
36006
36007         diffseq: reduce scope of variable 'best'.
36008         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
36009         variable, earlier used for two different purposes.
36010
36011 2009-11-21  Jim Meyering  <meyering@redhat.com>
36012
36013         diffseq: remove useless assignment to "best"
36014         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
36015         assignment.  At that point "best" is already guaranteed to be zero.
36016
36017 2009-11-20  Eric Blake  <ebb9@byu.net>
36018
36019         build: mention ftp redirector in release announcements
36020         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
36021         values that used to come from cfg.mk; mention FTP redirect URL.
36022         * build-aux/announce-gen: Mention the mirror list.
36023         Suggested by Karl Berry.
36024
36025         nanosleep: improve port to mingw
36026         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
36027         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
36028         LIB_NANOSLEEP, but only when needed.
36029         * modules/select (Link): Document LIBSOCKET.
36030         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
36031         enough.
36032
36033         nanosleep: work around cygwin bug
36034         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
36035         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
36036         bug.
36037         (getnow): Delete, not needed.
36038         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
36039         LIB_CLOCK_GETTIME.
36040         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
36041         clock-time, gettime.
36042         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
36043         bug.
36044         * modules/nanosleep-tests: New test.
36045         * tests/test-nanosleep.c: New file.
36046
36047         sleep: work around cygwin bug
36048         * lib/sleep.c (rpl_sleep): Work around the bug.
36049         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
36050         (gl_PREREQ_SLEEP): Delete unused macro.
36051         * modules/sleep (Depends-on): Add verify.
36052         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
36053         * modules/unistd (Makefile.am): Substitute witness.
36054         * lib/unistd.in.h (sleep): Update prototype.
36055         * doc/posix-functions/sleep.texi (sleep): Document the bug.
36056         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
36057         * modules/sleep-tests (Depends-on): Check for alarm.
36058
36059 2009-11-20  Jim Meyering  <meyering@redhat.com>
36060
36061         maint.mk: improve sc_prohibit_magic_number_exit
36062         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
36063         so it does not match uses like System.exit(1).
36064         Add comments showing how to correct all offenders.
36065
36066 2009-11-19  Eric Blake  <ebb9@byu.net>
36067
36068         xalloc-die-tests: add missing library
36069         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
36070
36071         test-xvasprintf: silence compiler warnings
36072         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
36073         empty string from gcc.
36074
36075 2009-11-19  Jim Meyering  <meyering@redhat.com>
36076
36077         xfreopen: new module, from coreutils
36078         * modules/xfreopen: New module.
36079         * lib/xfreopen.c: New file.
36080         * lib/xfreopen.h: New file.
36081         * MODULES.html.sh (File stream based Input/Output"): Add it.
36082
36083 2009-11-19  Eric Blake  <ebb9@byu.net>
36084
36085         manywarnings: depend on warnings
36086         * modules/manywarnings (Depends-on): Add warnings.
36087
36088         build: avoid compiler warnings
36089         * lib/select.c (rpl_select): Delete unused variable.
36090         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
36091
36092 2009-11-18  Eric Blake  <ebb9@byu.net>
36093
36094         tests: avoid false negative with --with-packager
36095         * tests/test-version-etc.sh: Discard packager information.
36096         * tests/test-argp-version-etc-1.sh: Likewise.
36097         Reported by Mike Frysinger.
36098
36099         utimens: fix regression on Solaris
36100         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
36101         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
36102         can only change fd timestamps via futimesat.  Instead, use an
36103         additional witness macro to avoid BSD bug.
36104         Reported by Jim Meyering.
36105
36106 2009-11-17  Eric Blake  <ebb9@byu.net>
36107
36108         usleep: use it to simplify tests
36109         * modules/stat-time-tests (Depends-on): Add usleep.
36110         (configure.ac): Drop usleep check.
36111         * modules/chown-tests (Depends-on, configure.ac): Likewise.
36112         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
36113         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
36114         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
36115         * modules/openat-tests (Depends-on, configure.ac): Likewise.
36116         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
36117         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
36118         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
36119         Likewise.
36120         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
36121         * tests/test-lchown.h (nap): Likewise.
36122         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
36123         * tests/test-stat-time.c (nap): Likewise.
36124         * tests/test-utimens-common.h (nap): Update comments.
36125
36126         usleep: new module
36127         * modules/usleep: New file.
36128         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
36129         * lib/usleep.c (usleep): Likewise.
36130         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
36131         * modules/unistd (Makefile.am): Substitute witnesses.
36132         * lib/unistd.in.h (usleep): Add declaration.
36133         * doc/pastposix-functions/usleep.texi (usleep): Document this.
36134         * MODULES.html.sh (Date and time): Likewise.
36135         * modules/usleep-tests (Depends-on): New test.
36136         * tests/test-usleep.c: New file.
36137
36138         chown: work around OpenBSD bug
36139         * lib/chown.c (rpl_chown): Work around the bug.
36140         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
36141         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
36142         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
36143         * modules/chown (Depends-on): Add stdbool.
36144         * modules/lchown (Depends-on): Likewise.
36145         * doc/posix-functions/chown.texi (chown): Document the bug.
36146         * doc/posix-functions/lchown.texi (lchown): Likewise.
36147         * tests/test-lchown.h (test_chown): Relax test.
36148
36149         mkstemp: avoid conflict with C++ keyword template
36150         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
36151         * lib/mkostemp.c (mkostemp): Likewise.
36152         * lib/mkostemps.c (mkostemps): Likewise.
36153         * lib/mkstemp.c (mkstemp): Likewise.
36154         * lib/mkstemps.c (mkstemps): Likewise.
36155
36156         xalloc-die-tests: optimize
36157         * tests/test-xalloc-die.sh: Reduce number of processes.
36158
36159 2009-11-17  Simon Josefsson  <simon@josefsson.org>
36160
36161         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
36162         patch from ludo@gnu.org (Ludovic Courtès).
36163
36164 2009-11-17  Jim Meyering  <meyering@redhat.com>
36165
36166         version-etc: use proper license string
36167         * modules/version-etc (License): Use LGPL, not LGPLv3+.
36168         * modules/version-etc-fsf: Likewise.
36169
36170 2009-11-17  Simon Josefsson  <simon@josefsson.org>
36171
36172         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
36173         printed to stdout.  Deal with EOL differences.
36174
36175 2009-11-17  Eric Blake  <ebb9@byu.net>
36176
36177         unsetenv: work around Solaris bug
36178         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
36179         * lib/unsetenv.c (rpl_unsetenv): Work around it.
36180         Reported by Jim Meyering.
36181
36182         vasnprintf: avoid compiler warnings
36183         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
36184         variables.
36185         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
36186
36187 2009-11-17  Simon Josefsson  <simon@josefsson.org>
36188
36189         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
36190         settings since xalloc-die is no longer the self test,
36191         xalloc-die.sh is.
36192
36193 2009-11-17  Jim Meyering  <meyering@redhat.com>
36194
36195         test-xalloc-die.sh: make the code agree with the commit log
36196         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
36197         at the end, just in case you happen to have a test-xalloc-die
36198         program in some other PATH directory.
36199
36200         test-xalloc-die.sh: fix a portability bug
36201         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
36202         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
36203         Otherwise, argv[0] (as often seen in diagnostics) would be too
36204         system-dependent, sometimes with, and sometimes without the leading "./".
36205
36206         version-etc-fsf: relax license to LGPLv3+
36207         * modules/version-etc-fsf (License): Relax license.
36208
36209 2009-11-16  Eric Blake  <ebb9@byu.net>
36210
36211         xalloc-die-tests: avoid printing null pointer
36212         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
36213         shell script.
36214         * tests/test-xalloc-die.c (program_name): Declare.
36215         * tests/test-xalloc-die.sh (tmpfiles): New file.
36216
36217         setenv, unsetenv: work around various bugs
36218         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
36219         (setenv) [HAVE_SETENV]: Work around bugs.
36220         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
36221         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
36222         for bugs.
36223         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
36224         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
36225         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
36226         * modules/stdlib (Makefile.am): Update substitutions.
36227         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
36228         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
36229         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
36230         * modules/setenv-tests: New test.
36231         * modules/unsetenv-tests: Likewise.
36232         * tests/test-setenv.c: New file.
36233         * tests/test-unsetenv.c: Likewise.
36234
36235 2009-11-16  Jim Meyering  <meyering@redhat.com>
36236
36237         version-etc: relax license to LGPLv3+
36238         * modules/version-etc (License): Relax license.
36239
36240         better AC_REQUIRE expanded-before-required-warning avoidance
36241         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
36242         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
36243         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
36244         which is no longer needed.
36245
36246 2009-11-16  Eric Blake  <ebb9@byu.net>
36247
36248         test-freading: clean up temporary file
36249         * tests/test-freading.c (main): Remove file on success, and use
36250         ASSERT more liberally.
36251         Reported by Jim Meyering.
36252
36253 2009-11-16  Jim Meyering  <meyering@redhat.com>
36254
36255         avoid new AC_REQUIRE expanded-before-required warnings
36256         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
36257         merely using it.
36258         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
36259         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
36260
36261 2009-11-15  Simon Josefsson  <simon@josefsson.org>
36262
36263         * tests/test-xalloc-die.c: New file.
36264         * modules/xalloc-die-tests: New file.
36265         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
36266         XFAIL_TESTS so it can be appended by modules.
36267
36268 2009-11-15  Simon Josefsson  <simon@josefsson.org>
36269
36270         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
36271         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
36272
36273 2009-11-14  Eric Blake  <ebb9@byu.net>
36274
36275         fnmatch: avoid compiler warning
36276         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
36277         to silence compiler warning about mismatch signedness in ?:.
36278         Reported by Robert Millan.
36279
36280         intprops: add double-inclusion guard
36281         * lib/intprops.h: Allow idempotent includes.
36282         Suggested by Bruce Korb.
36283
36284         openat: detect Solaris fchownat bug
36285         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
36286         penalizing glibc chownat when only lchownat is broken.
36287         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
36288         trailing slash bugs.
36289         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
36290         * modules/openat-tests (Files): Include more files.
36291         (Depends-on): Add mgetgroups, sleep, stat-time.
36292         (configure.ac): Add additional checks.
36293         (Makefile.am): Build new test.
36294         * tests/test-fchownat.c: New file.
36295
36296         lchown: detect Solaris and FreeBSD bug
36297         * lib/lchown.c (rpl_lchown): Work around bug.
36298         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
36299         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
36300         * modules/unistd (Makefile.am): Populate it.
36301         * lib/unistd.in.h (lchown): Update declaration.
36302         * doc/posix-functions/lchown.texi (lchown): Document the bug.
36303         * modules/lchown-tests: New file.
36304         * tests/test-lchown.h (test_lchown): Likewise.
36305         * tests/test-lchown.c (main): Likewise.
36306
36307         chown: detect Solaris and FreeBSD bug
36308         * lib/chown.c (rpl_chown): Work around bug.
36309         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
36310         (gl_PREREQ_CHOWN): Delete.
36311         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
36312         * modules/unistd (Makefile.am): Populate it.
36313         * lib/unistd.in.h (chown): Update declaration.
36314         * lib/lchown.c (chown): Update client.
36315         * modules/lchown (Depends-on): Add lstat.
36316         * doc/posix-functions/chown.texi (chown): Document the bug.
36317         * doc/posix-functions/getgroups.texi (getgroups): Document
36318         getgroups pitfall.
36319         * modules/chown-tests: New file.
36320         * tests/test-chown.h (test_chown): Likewise.
36321         * tests/test-chown.c (main): Likewise.
36322
36323 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
36324
36325         gnulib-tool: correctly detect absence of m4 directories
36326         * gnulib-tool: Avoid extra newline on data passed to wc -l.
36327
36328 2009-11-14  Jim Meyering  <meyering@redhat.com>
36329
36330         maint.mk: Prohibit inclusion of "xalloc.h" without use.
36331         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
36332
36333 2009-11-14  John W. Eaton  <jwe@gnu.org>
36334
36335         strftime.h: wrap funtion declaration in extern "C" block
36336         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
36337
36338 2009-11-13  Eric Blake  <ebb9@byu.net>
36339
36340         getgroups: avoid compiler warning
36341         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
36342
36343         getgroups: work around FreeBSD bug
36344         * lib/getgroups.c (rpl_getgroups): Work around the bug.
36345         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
36346         * doc/posix-functions/getgroups.texi (getgroups): Document it.
36347         * tests/test-getgroups.c (main): Fix buffer overrun.
36348
36349         getgroups: avoid compilation failure
36350         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
36351         * modules/getgroups (Depends-on): Add stdint.
36352
36353 2009-11-13  Jim Meyering  <meyering@redhat.com>
36354
36355         test-getgroups: avoid compilation failure
36356         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
36357
36358 2009-11-13  Eric Blake  <ebb9@byu.net>
36359
36360         mgetgroups: new module, taken from coreutils
36361         * modules/mgetgroups: New file.
36362         * lib/mgetgroups.h: Likewise.
36363         * lib/mgetgroups.c (mgetgroups): Likewise.
36364         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
36365         * MODULES.html.sh (Users and groups): Mention it.
36366
36367         getgroups: don't expose GETGROUPS_T to user
36368         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
36369         an element at a time if GETGROUPS_T is wrong size.
36370         * lib/getugroups.h (getugroups): Change signature.
36371         * lib/unistd.in.h (getgroups): Likewise.
36372         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
36373         signature needs fixing.
36374         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
36375         AC_TYPE_GETGROUPS.
36376         * modules/group-member (Depends-on): Add getgroups.
36377         * lib/group-member.c (group_info, get_group_info): Use gid_t.
36378         (group_member): Rely on getgroups replacement.
36379         * lib/getugroups.c (getugroups): Use gid_t.
36380         * tests/test-getgroups.c (main): Likewise.
36381         * NEWS: Mention the signature change.
36382         * doc/posix-functions/getgroups.texi (getgroups): Mention the
36383         problem with signature.
36384         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
36385         GETGROUPS_T is still useful for setgroups.
36386
36387         getgroups, getugroups: provide stubs for mingw
36388         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
36389         * lib/getugroups.c (getugroups): Likewise.
36390         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
36391         function.  Modernize replacement scheme.
36392         (gl_PREREQ_GETGROUPS): Delete.
36393         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
36394         * modules/getgroups (configure.ac): Declare witness.
36395         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
36396         * modules/unistd (Depends-on): Substitute witness.
36397         * lib/unistd.in.h (getgroups): Declare replacement.
36398
36399         getgroups: avoid calling exit
36400         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
36401         drop xalloc.
36402         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
36403         dependencies.
36404         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
36405         exiting, in the rare case of malloc failure.
36406
36407         getgroups: fix logic error
36408         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
36409         has more than 20 groups.
36410         * modules/getgroups-tests: New test.
36411         * tests/test-getgroups.c: New file.
36412
36413 2009-11-13  Simon Josefsson  <simon@josefsson.org>
36414
36415         * tests/test-base64.c: Improve.
36416
36417 2009-11-13  Simon Josefsson  <simon@josefsson.org>
36418
36419         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
36420         Blake <ebb9@byu.net>.
36421
36422 2009-11-13  Simon Josefsson  <simon@josefsson.org>
36423
36424         * tests/test-xvasprintf.c: Add %s%s related checks.
36425
36426 2009-11-12  Eric Blake  <ebb9@byu.net>
36427
36428         version-etc: match standards.texi style
36429         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
36430         and use <> only for URLs.
36431
36432 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
36433
36434         fts: do not fail on a submount during traversal
36435         * lib/fts.c (fts_build): Read the stat info again after opening
36436         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
36437         Original report at http://bugzilla.redhat.com/501848.
36438
36439 2009-11-12  Jim Meyering  <meyering@redhat.com>
36440
36441         bootstrap: sync from coreutils
36442         * build-aux/bootstrap (bootstrap_epilogue): New function.
36443         Use git_modules_config in one more place.  This make bootstrap's
36444         --gnulib-srcdir option more useful for testing.
36445
36446         bootstrap: generalize autoheader check
36447         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
36448         AC_CONFIG_HEADERS.
36449
36450 2009-11-11  Eric Blake  <ebb9@byu.net>
36451
36452         mkfifoat: use new modules for Solaris and BSD bugs
36453         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
36454         * lib/mkfifoat.c (mknodat): Split...
36455         * lib/mknodat.c (mknodat): ...into new file.
36456         * modules/mkfifoat (Files): Ship new file.
36457         (Depends-on): Add mkfifo, mknod.
36458         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
36459         (Depends-on): Add symlink.
36460         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
36461         redundant with test_mkfifo.h.
36462         (do_mkfifoat, do_mknodat): New helpers.
36463
36464         mknod: new module
36465         * modules/mknod: New file.
36466         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
36467         * lib/mknod.c (mknod): Likewise.
36468         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
36469         defaults.
36470         * modules/sys_stat (Makefile.am): Substitute them.
36471         * lib/sys_stat.in.h (mknod): Declare replacement.
36472         * MODULES.html.sh (Support for systems lacking POSIX:2008):
36473         Document it.
36474         * doc/posix-functions/mknod.texi (mknod): Likewise.
36475         * modules/mknod-tests: New test.
36476         * tests/test-mknod.c: Likewise.
36477
36478         mkfifo: new module
36479         * modules/mkfifo: New file.
36480         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
36481         * lib/mkfifo.c (mkfifo): Likewise.
36482         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
36483         defaults.
36484         * modules/sys_stat (Makefile.am): Substitute them.
36485         * lib/sys_stat.in.h (mkfifo): Declare replacement.
36486         * MODULES.html.sh (Support for systems lacking POSIX:2008):
36487         Document it.
36488         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
36489         * modules/mkfifo-tests: New test.
36490         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
36491         from test-mkfifoat.c.
36492         * tests/test-mkfifo.c: New file.
36493
36494         readlink: detect FreeBSD bug
36495         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
36496         slash on symlink.
36497         * doc/posix-functions/readlink.texi (readlink): Document the bug.
36498         * tests/test-readlink.h (test_readlink): Enhance test.
36499
36500         symlink: detect FreeBSD bug
36501         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
36502         slash on symlink.
36503         * doc/posix-functions/symlink.texi (symlink): Document the bug.
36504         * tests/test-symlink.h (test_symlink): Enhance test.
36505
36506 2009-11-10  Eric Blake  <ebb9@byu.net>
36507
36508         link: detect FreeBSD bug
36509         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
36510         symlink.
36511         * doc/posix-functions/link.texi (link): Document the bug.
36512         * tests/test-link.h (test_link): Enhance test.
36513         * tests/test-linkat.c (main): Update caller.
36514
36515         unlink, remove: detect FreeBSD bug
36516         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
36517         slash on symlink.
36518         * doc/posix-functions/unlink.texi (unlink): Document the bug.
36519         * doc/posix-functions/remove.texi (remove): Likewise.
36520         * tests/test-unlink.h (test_unlink): Enhance test.
36521         * tests/test-remove.c (main): Likewise.
36522
36523 2009-11-09  Eric Blake  <ebb9@byu.net>
36524
36525         rename: detect FreeBSD bug
36526         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
36527         slash on symlink.
36528         * modules/renameat-tests (Depends-on): Add filenamecat.
36529         * tests/test-rename.h (test_rename): Allow one more errno.
36530         * tests/test-renameat.c (main): Likewise.
36531         * doc/posix-functions/rename.texi (rename): Document the bug.
36532
36533         open: detect FreeBSD bug
36534         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
36535         symlink.
36536         * doc/posix-functions/open.texi (open): Document the bug.
36537         * doc/posix-functions/utimes.texi (utimes): Likewise.
36538         * tests/test-open.h (test_open): Add parameters, and test symlink
36539         handling.
36540         * tests/test-open.c (main): Adjust caller.
36541         * tests/test-fcntl-safer.c (main): Likewise.
36542         * modules/open-tests (Depends-on): Add stdbool, symlink.
36543         * modules/fcntl-safer-tests (Depends-on): Likewise.
36544         * tests/test-openat.c (main): Add test-open tests.
36545
36546         stat: detect FreeBSD bug
36547         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
36548         symlink.
36549         * doc/posix-functions/stat.texi (stat): Document the bug.
36550         * tests/test-stat.h (test_stat_func): Add argument.
36551         * tests/test-stat.c (main): Adjust caller.
36552         * tests/test-fstatat.c (main): Likewise.
36553         * modules/stat-tests (Depends-on): Add stdbool, symlink.
36554         Reported by Jim Meyering.
36555
36556 2009-11-09  James Youngman  <jay@gnu.org>
36557
36558         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
36559         * lib/strftime.c: Correct placement of #include "ignore-value.h".
36560
36561 2009-11-08  Jim Meyering  <meyering@redhat.com>
36562
36563         utimens: remove invalid futimesat call
36564         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
36565         It used the file descriptor of the target file as the DIR_FD
36566         parameter and NULL as the file name.  That caused failure with
36567         errno == EFAULT on FreeBSD-8.0-rc2
36568
36569 2009-11-07  Eric Blake  <ebb9@byu.net>
36570
36571         fflush, freadseek: use fseeko, not fseek
36572         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
36573         (clear_ungetc_buffer): Avoid potential problems on large files.
36574         * lib/freadseek.c (freadseek): Likewise.
36575         * modules/freadseek (Depends-on): Add fseeko.
36576         * modules/fseek (configure.ac): Set a witness.
36577         * tests/test-fflush.c (main): Use fseeko.
36578         * tests/test-fpurge.c (fseek): Disable link warning.
36579         * tests/test-freadable.c (fseek): Likewise.
36580         * tests/test-freading.c (fseek): Likewise.
36581         * tests/test-fseeko.c (fseek): Likewise.
36582         * tests/test-ftell.c (fseek): Likewise.
36583         * tests/test-ftello.c (fseek): Likewise.
36584         * tests/test-fwritable.c (fseek): Likewise.
36585         * tests/test-fwriting.c (fseek): Likewise.
36586
36587 2009-11-06  Simon Josefsson  <simon@josefsson.org>
36588
36589         * modules/memchr (Depends-on): Drop getpagesize dependency.
36590
36591 2009-11-06  Simon Josefsson  <simon@josefsson.org>
36592
36593         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
36594         Reported by Ludovic Courtès.
36595         * build-aux/pmccabe2html: Improve example usage.
36596         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
36597
36598 2009-11-06  Jim Meyering  <meyering@redhat.com>
36599
36600         do-release-commit-and-tag: New module.
36601         Automate the release-commit and tag process.
36602         * build-aux/do-release-commit-and-tag: New script, from coreutils.
36603         * modules/do-release-commit-and-tag: New file.
36604         * MODULES.html.sh (Support for maintaining and releasing): Add it.
36605
36606 2009-11-06  Simon Josefsson  <simon@josefsson.org>
36607
36608         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
36609         because test-select.c uses inet_pton.
36610
36611 2009-11-06  Simon Josefsson  <simon@josefsson.org>
36612
36613         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
36614         GETADDRINFO_LIB.  Bump serial number.
36615         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
36616         Suggested by Eric Blake <ebb9@byu.net>.
36617
36618 2009-11-05  Eric Blake  <ebb9@byu.net>
36619
36620         strtod: detect darwin bug
36621         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
36622         Reported by Leo Davis.
36623
36624         freopen-safer: new module
36625         * modules/freopen-safer: New module.
36626         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
36627         * lib/freopen-safer.c (freopen_safer): New file.
36628         * lib/stdio-safer.h (freopen_safer): New declaration.
36629         * lib/stdio--.h (freopen): New override.
36630         * MODULES.html.sh (File stream based Input/Output): Mention it.
36631         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
36632         freopen-safer module.
36633         * doc/posix-functions/stderr.texi (stderr): Likewise.
36634         * doc/posix-functions/stdin.texi (stdin): Likewise.
36635         * doc/posix-functions/stdout.texi (stdout): Likewise.
36636         * modules/freopen-safer-tests: New test.
36637         * tests/test-reopen-safer.c: New file.
36638
36639 2009-11-05  Jim Meyering  <meyering@redhat.com>
36640
36641         maint.mk: Prohibit inclusion of "close-stream.h" without use.
36642         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
36643
36644 2009-11-05  Simon Josefsson  <simon@josefsson.org>
36645
36646         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
36647
36648 2009-11-05  Simon Josefsson  <simon@josefsson.org>
36649
36650         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
36651
36652 2009-11-05  Simon Josefsson  <simon@josefsson.org>
36653
36654         Fix link error.
36655         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
36656         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
36657
36658 2009-11-05  Simon Josefsson  <simon@josefsson.org>
36659
36660         * tests/test-func.c: Also test value of __func__.
36661
36662 2009-11-05  Simon Josefsson  <simon@josefsson.org>
36663
36664         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
36665         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
36666
36667 2009-11-05  Bruno Haible  <bruno@clisp.org>
36668
36669         Fix link error.
36670         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
36671         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
36672         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
36673
36674 2009-11-05  Bruno Haible  <bruno@clisp.org>
36675
36676         Tests for module 'inet_pton'.
36677         * modules/inet_pton-tests: New file.
36678         * tests/test-inet_pton.c: New file.
36679
36680 2009-11-05  Bruno Haible  <bruno@clisp.org>
36681
36682         Tests for module 'inet_ntop'.
36683         * modules/inet_ntop-tests: New file.
36684         * tests/test-inet_ntop.c: New file.
36685
36686 2009-11-04  Eric Blake  <ebb9@byu.net>
36687
36688         stdlib-safer: wrap all mkstemp variants
36689         * modules/mkostemp (configure.ac): Set witness.
36690         * modules/mkostemps (configure.ac): Likewise.
36691         * modules/mkstemps (configure.ac): Likewise.
36692         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
36693         (mkstemps_safer): Wrap more functions.
36694         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
36695         wrapping.
36696         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
36697         (mkstemps_safer): Implement the wrappers.
36698
36699         mkstemps, mkostemps: new modules
36700         * modules/mkostemps: New module.
36701         * modules/mkstemps: Likewise.
36702         * lib/mkostemps.c (mkostemps): New file.
36703         * lib/mkstemps.c (mkstemps): Likewise.
36704         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
36705         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
36706         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
36707         * modules/stdlib (Makefile.am): Substitute them.
36708         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
36709         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
36710         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
36711         * doc/gnulib.texi (Glibc stdlib.h): Include them.
36712         * MODULES.html.sh (File system functions): Mention them.
36713
36714         tempname: resync from glibc
36715         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
36716         same values for __GT_FILE as glibc.  Abort even when assertions
36717         are disabled.
36718         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
36719         match its value otherwise.  Allow idempotent inclusion.
36720         * lib/mkdtemp.c (mkdtemp): Adjust caller.
36721         * lib/mkostemp.c (mkostemp): Likewise.
36722         * lib/mkstemp.c (mkstemp): Likewise.
36723         * lib/tmpfile.c (tmpfile): Likewise.
36724         * NEWS: Document this.
36725
36726         utimens: fix use of futimens on older Linux
36727         * lib/utimens.c (fdutimens): Use updated, rather than original,
36728         timespec to avoid bug in older Linux kernel.
36729         Reported by Simon Josefsson.
36730
36731 2009-11-04  Bruno Haible  <bruno@clisp.org>
36732
36733         Make num_processors more flexible and consistent.
36734         * lib/nproc.h (enum nproc_query): New type.
36735         (num_processors): Add a 'query' argument.
36736         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
36737         (num_processors): Add a 'query' argument. Test the value of the
36738         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
36739         mingw, count the number of CPUs available for the current process.
36740         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
36741         Check for sched_getaffinity and sched_getaffinity_np.
36742         * modules/nproc (Depends-on): Add c-ctype, extensions.
36743         * NEWS: Mention the change.
36744
36745 2009-11-03  Bruno Haible  <bruno@clisp.org>
36746
36747         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
36748
36749 2009-11-03  Jim Meyering  <meyering@redhat.com>
36750
36751         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
36752         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
36753         if it is defined.
36754
36755 2009-11-02  Eric Blake  <ebb9@byu.net>
36756
36757         mktime, timegm: share common declaration
36758         * lib/mktime-internal.h: New file.
36759         * lib/mktime.c: Use it rather than open-coding a declaration.
36760         * lib/timegm.c: Likewise.
36761         * modules/mktime (Files): Ship it.
36762         * modules/timegm (Files): Likewise.
36763         Suggested by Bruno Haible.
36764
36765         test-update-copyright: update test to match script changes
36766         * tests/test-update-copyright.sh: Avoid hard-coding perl
36767         location.  Don't update *.bak created by earlier runs.
36768
36769 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
36770             Simon Josefsson  <simon@josefsson.org>
36771             Bruno Haible  <bruno@clisp.org>
36772
36773         Fix link error on Solaris 8.
36774         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
36775         also in libnsl. Define also INET_PTON_LIB.
36776         * modules/inet_pton (Link): New section.
36777
36778 2009-11-02  Simon Josefsson  <simon@josefsson.org>
36779             Bruno Haible  <bruno@clisp.org>
36780
36781         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
36782         * modules/inet_ntop (Link): New section.
36783         Reported by Boyan Kasarov <bkasarov@gmail.com>.
36784
36785 2009-11-02  Eric Blake  <ebb9@byu.net>
36786
36787         maint: avoid compiler warnings in m4 macros
36788         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
36789         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
36790
36791 2009-11-02  Simon Josefsson  <simon@josefsson.org>
36792
36793         * m4/pmccabe2html.m4: Remove file.
36794         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
36795         function.  Change maintainer.
36796         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
36797         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
36798         Courtès).
36799
36800 2009-10-31  Eric Blake  <ebb9@byu.net>
36801
36802         fseeko: fix m4 regression
36803         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
36804         regression from 2009-10-27.
36805         Reported by Ralf Wildenhues.
36806
36807 2009-10-31  Jim Meyering  <meyering@redhat.com>
36808
36809         inttostr: aesthetics and improved (compile-time) safety
36810         Define inttype_is_signed rather than inttype_is_unsigned,
36811         since the sole use is via "#if inttype_is_signed".
36812         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
36813         inttype_is_unsigned.
36814         * lib/offtostr.c (inttype_is_signed): Likewise.
36815         * lib/uinttostr.c (inttype_is_signed): Likewise.
36816         * lib/umaxtostr.c (inttype_is_signed): Likewise.
36817         * lib/inttostr.c (inttostr): Use verify to cross-check the
36818         inttype_is_signed value and the signedness of the actual type.
36819         * modules/inttostr (Depends-on): Add verify.
36820
36821 2009-10-30  Eric Blake  <ebb9@byu.net>
36822
36823         build: avoid compiler warnings
36824         * lib/fchmodat.c (lchmod): Mark unused variables.
36825         * lib/getopt.c (_getopt_initialize): Likewise.
36826         * lib/mktime.c (__mktime_internal): Provide prototype.
36827         * lib/inttostr.c (inttostr): Avoid compiler warning even with
36828         older gcc that do not understand #pragma GCC diagnostic.
36829         * lib/uinttostr.c (inttype_is_unsigned): Define.
36830         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
36831
36832 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
36833
36834         stat: fix compilation on AIX
36835         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
36836         only see struct stat64.
36837
36838 2009-10-30  Eric Blake  <ebb9@byu.net>
36839
36840         exclude: make more robust
36841         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
36842         rather than masking a coding bug.
36843         Suggested by Bruno Haible.
36844
36845 2009-10-30  Jim Meyering  <meyering@redhat.com>
36846
36847         perl scripts: remove #!/usr/bin/perl in favor of more portable...
36848         Rather than putting #!/usr/bin/perl on the first line,
36849         start with a variant of what's recommended by "man perlrun" that
36850         invokes the first "perl" program from your shell's search path.
36851         * build-aux/gitlog-to-changelog: Replace #!... as above.
36852         Add a "Local Variables" perl mode setting.
36853         Prompted by a patch from Ludovic Courtès.
36854         Improved by Eric Blake.
36855         * build-aux/useless-if-before-free: Likewise.
36856         * build-aux/announce-gen: Likewise.
36857         * build-aux/update-copyright: Likewise.
36858
36859 2009-10-29  Eric Blake  <ebb9@byu.net>
36860
36861         filenamecat-lgpl: adjust clients
36862         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
36863         filenamecat.
36864         * modules/renameat (Depends-on): Likewise.
36865
36866         filenamecat: split into filenamecat-lgpl
36867         * modules/filenamecat-lgpl: New module.
36868         * modules/filenamecat (Files): Move library-safe files into
36869         filenamecat-lgpl.
36870         (Depends-on): Add filenamecat-lgpl.
36871         (configure.ac): Declare witness.
36872         * lib/filenamecat.h (file_name_concat): Only declare when using
36873         GPL module.
36874         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
36875         Move...
36876         * lib/filenamecat-lgpl.c: ...into new file.
36877         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
36878         (gl_FILE_NAME_CONCAT): Use it.
36879         * MODULES.html.sh (File system functions): Mention new module.
36880
36881         argp: avoid memory leak
36882         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
36883         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
36884         base_name, since the latter malloc()s and can call exit().
36885         Leak introduced 2006-07-03.
36886
36887         dirname-lgpl: adjust clients that don't need full dirname
36888         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
36889         * modules/filenamecat (Depends-on): Likewise.
36890         * modules/linkat (Depends-on): Likewise.
36891         * modules/mkancesdirs (Depends-on): Likewise.
36892         * modules/mkdir (Depends-on): Likewise.
36893         * modules/openat (Depends-on): Likewise.
36894         * modules/savewd (Depends-on): Likewise.
36895         * modules/rename (Depends-on): Likewise.
36896         (License): Relax license.
36897         * modules/mkdir-tests (Depends-on): Drop progname.
36898         (Makefile.am): Delete unneeded LDADD.
36899         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
36900
36901         dirname: split into dirname-lgpl
36902         * modules/dirname-lgpl: New module.
36903         * modules/dirname (Files): Move library-safe files into
36904         dirname-lgpl.
36905         (Depends-on): Add dirname-lgpl.
36906         (configure.ac): Declare witness.
36907         * modules/double-slash-root (License): Relax license.
36908         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
36909         module.
36910         * lib/dirname.c (dir_len, mdir_name): Move...
36911         * lib/dirname-lgpl.c: ...into new file.
36912         * lib/basename.c (last_component, base_len): Move...
36913         * lib/basename-lgpl.c: ...into new file.
36914         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
36915         (gl_DIRNAME): Use it.
36916         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
36917         Mention new module.
36918         * modules/dirname-tests (Depends-on): Add progname.
36919         * tests/test-dirname.c (program_name): Delete.
36920
36921         mkdir: make safe for libraries
36922         * modules/mkdir (Depends-on): Drop xalloc.
36923         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
36924         exit.
36925
36926         tests: avoid some compiler warnings
36927         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
36928         literals.
36929         * tests/test-memchr.c (main): Avoid type mismatch.
36930         * tests/test-arpa_inet.c (main): Avoid unused parameters.
36931         * tests/test-base64.c (main): Likewise.
36932         * tests/test-getdelim.c (main): Likewise.
36933         * tests/test-gethostname.c (main): Likewise.
36934         * tests/test-getline.c (main): Likewise.
36935         * tests/test-netinet_in.c (main): Likewise.
36936         * tests/test-select.c (open_server_socket, main): Likewise.
36937         * tests/test-select-stdin.c (main): Likewise.
36938         * tests/test-sockets.c (main): Likewise.
36939         * tests/test-strsignal.c (main): Likewise.
36940         * tests/test-sys_select.c (main): Likewise.
36941         * tests/test-sys_socket.c (main): Likewise.
36942         * tests/test-u64.c (main): Likewise.
36943         * tests/test-xfprintf-posix.c (main): Likewise.
36944         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
36945
36946         sockets: avoid compiler warning
36947         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
36948
36949         maint: detect usage(1) and other suspicious exits
36950         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
36951
36952 2009-10-29  Jim Meyering  <meyering@redhat.com>
36953
36954         timespec: long-to-int truncation could make timespec_cmp malfunction
36955         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
36956         a multiple of 2^32 nanoseconds as no difference.
36957
36958 2009-10-28  Jim Meyering  <meyering@redhat.com>
36959
36960         fprintftime: wrap macro code argument in "do {...} while(0)"
36961         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
36962         cpy macro must be a statement that can be followed by a semicolon.
36963         Now that the else clause contains a comment and is hence longer
36964         than one line, I require curly braces.  That in turn requires
36965         that we wrap this code block in the standard do...while(0).
36966
36967         fprintftime: remove stray semicolon from previous change
36968         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
36969
36970         fprintftime: avoid a warning about ignored fwrite return value
36971         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
36972         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
36973         that is unsafe.
36974         * modules/fprintftime (Depends-on): Add ignore-value.
36975
36976         exclude: avoid an unwarranted warning
36977         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
36978
36979 2009-10-27  Eric Blake  <ebb9@byu.net>
36980
36981         fseek: avoid compilation failure when fflush is replaced
36982         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
36983         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
36984         module is in use.
36985         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
36986         module is not in use; since REPLACE_FSEEK worked otherwise.
36987         (GNULIB_FTELLO): Likewise for ftell.
36988         Reported by Ian Beckwith and others.
36989
36990 2009-10-27  Bruno Haible  <bruno@clisp.org>
36991
36992         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
36993         Reported by Jim Meyering.
36994
36995 2009-10-27  Jim Meyering  <jim@meyering.net>
36996             Bruno Haible  <bruno@clisp.org>
36997
36998         Avoid warning despite dropping the return value of fwrite.
36999         * lib/unicodeio.c: Include ignore-value.h.
37000         (fwrite_success_callback): Explicitly ignore fwrite's return value.
37001         * modules/unicodeio (Depends-on): Add ignore-value.
37002
37003 2009-10-26  Eric Blake  <ebb9@byu.net>
37004
37005         areadlinkat: fix fallback path
37006         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
37007         pointer and zero.
37008
37009 2009-10-22  Pádraig Brady  <P@draigBrady.com>
37010
37011         Use a better IO block size for modern systems
37012         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
37013         * lib/md2.c: Likewise.
37014         * lib/md4.c: Likewise.
37015         * lib/md5.c: Likewise.
37016         * lib/sha1.c: Likewise.
37017         * lib/sha256.c: Likewise.
37018         * lib/sha512.c: Likewise.
37019
37020 2009-10-22  Eric Blake  <ebb9@byu.net>
37021
37022         tests: avoid several compiler warnings
37023         * tests/test-getcwd.c (main): Avoid buffer underflow.
37024         * tests/test-getdate.c (main): String literals are not safe with
37025         putenv, so use setenv.  Declare unused argument.
37026         * modules/getdate-tests (Depends-on): Add setenv.
37027         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
37028         problems with string literals in char *.
37029         * tests/test-hash.c (main): Avoid shadowing declaration.
37030         (insert_new): Treat string literals as char const *.
37031         * tests/test-getopt.h (test_getopt): Likewise.
37032         (getopt_loop): Alter types to minimize casting elsewhere.
37033         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
37034         (test_getopt_long_posix): Likewise.
37035         (do_getopt_long): Add wrapper to minimize casting.
37036         * tests/test-atexit.c (clear_temp_file): Use void.
37037         * tests/test-areadlink-with-size.c (main): Declare unused
37038         arguments.
37039         * tests/test-areadlink.c (main): Likewise.
37040         * tests/test-areadlinkat-with-size.c (main): Likewise.
37041         * tests/test-areadlinkat.c (main): Likewise.
37042         * tests/test-canonicalize-lgpl.c (main): Likewise.
37043         * tests/test-canonicalize.c (main): Likewise.
37044         * tests/test-dirent-safer.c (main): Likewise.
37045         * tests/test-dirname.c (main): Likewise.
37046         * tests/test-dup2.c (main): Likewise.
37047         * tests/test-fchdir.c (main): Likewise.
37048         * tests/test-fcntl-h.c (main): Likewise.
37049         * tests/test-fcntl-safer.c (main): Likewise.
37050         * tests/test-fdopendir.c (main): Likewise.
37051         * tests/test-fdutimensat.c (main): Likewise.
37052         * tests/test-fflush.c (main): Likewise.
37053         * tests/test-filenamecat.c (main): Likewise.
37054         * tests/test-filevercmp.c (main): Likewise.
37055         * tests/test-fopen-safer.c (main): Likewise.
37056         * tests/test-fopen.c (main): Likewise.
37057         * tests/test-fpending.c (main): Likewise.
37058         * tests/test-fpurge.c (main): Likewise.
37059         * tests/test-freading.c (main): Likewise.
37060         * tests/test-fstatat.c (main): Likewise.
37061         * tests/test-fsync.c (main): Likewise.
37062         * tests/test-futimens.c (main): Likewise.
37063         * tests/test-getndelim2.c (main): Likewise.
37064         * tests/test-gettimeofday.c (main): Likewise.
37065         * tests/test-getopt.c (main): Likewise.
37066         * tests/test-i-ring.c (main): Likewise.
37067         * tests/test-inttypes.c (main): Likewise.
37068         * tests/test-link.c (main): Likewise.
37069         * tests/test-lstat.c (main): Likewise.
37070         * tests/test-math.c (main): Likewise.
37071         * tests/test-md5.c (main): Likewise.
37072         * tests/test-memchr2.c (main): Likewise.
37073         * tests/test-memrchr.c (main): Likewise.
37074         * tests/test-mkdir.c (main): Likewise.
37075         * tests/test-mkdirat.c (main): Likewise.
37076         * tests/test-mkfifoat.c (main): Likewise.
37077         * tests/test-open.c (main): Likewise.
37078         * tests/test-openat-safer.c (main): Likewise.
37079         * tests/test-openat.c (main): Likewise.
37080         * tests/test-quotearg.c (main): Likewise.
37081         * tests/test-rawmemchr.c (main): Likewise.
37082         * tests/test-readlink.c (main): Likewise.
37083         * tests/test-remove.c (main): Likewise.
37084         * tests/test-rename.c (main): Likewise.
37085         * tests/test-renameat.c (main): Likewise.
37086         * tests/test-rmdir.c (main): Likewise.
37087         * tests/test-sha1.c (main): Likewise.
37088         * tests/test-signal.c (main): Likewise.
37089         * tests/test-sigaction.c (main): Likewise.
37090         * tests/test-stat.c (main): Likewise.
37091         * tests/test-stat-time.c (main): Likewise.
37092         * tests/test-stddef.c (main): Likewise.
37093         * tests/test-stdint.c (main): Likewise.
37094         * tests/test-stdio.c (main): Likewise.
37095         * tests/test-stdlib.c (main): Likewise.
37096         * tests/test-strchrnul.c (main): Likewise.
37097         * tests/test-strerror.c (main): Likewise.
37098         * tests/test-string.c (main): Likewise.
37099         * tests/test-strtod.c (main): Likewise.
37100         * tests/test-strverscmp.c (main): Likewise.
37101         * tests/test-symlink.c (main): Likewise.
37102         * tests/test-symlinkat.c (main): Likewise.
37103         * tests/test-sys_stat.c (main): Likewise.
37104         * tests/test-sys_time.c (main): Likewise.
37105         * tests/test-time.c (main): Likewise.
37106         * tests/test-unistd.c (main): Likewise.
37107         * tests/test-unlink.c (main): Likewise.
37108         * tests/test-unlinkat.c (main): Likewise.
37109         * tests/test-utimens.c (main): Likewise.
37110         * tests/test-utimensat.c (main): Likewise.
37111         * tests/test-version-etc.c (main): Likewise.
37112         * tests/test-wchar.c (main): Likewise.
37113         * tests/test-wctype.c (main): Likewise.
37114         * tests/test-xprintf-posix.c (main): Likewise.
37115         * tests/test-posixtm.c (main): Likewise.
37116         (STREQ): Delete unused macro.
37117         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
37118         shadowed variables.
37119         * tests/test-memchr.c (main): Likewise.
37120
37121 2009-10-21  Eric Blake  <ebb9@byu.net>
37122
37123         areadlinkat: avoid failure on older glibc
37124         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
37125         rather than mis-comparing 0 against FUNC_RESULT of char*.
37126
37127 2009-10-21  Bruno Haible  <bruno@clisp.org>
37128
37129         * modules/stpncpy (License): Relicense under LGPLv2+.
37130         Reported by David Lutterkort <lutter@redhat.com>.
37131
37132 2009-10-20  Eric Blake  <ebb9@byu.net>
37133
37134         utimensat: work around Solaris 9 bug
37135         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
37136         has trailing slash bugs.
37137         * tests/test-lutimens.h (test_lutimens): Enhance test.
37138         * tests/test-utimens.h (test_utimens): Likewise.
37139         * doc/posix-functions/utime.texi (utime): Enhance documentation.
37140         * doc/posix-functions/utimes.texi (utimes): Likewise.
37141         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
37142         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
37143         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
37144         * doc/posix-functions/futimens.texi (futimens): Likewise.
37145
37146         fdutimensat: new module
37147         * modules/fdutimensat: New file.
37148         * lib/fdutimensat.c (fdutimensat): Likewise.
37149         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
37150         * MODULES.html.sh (File system functions): Mention module.
37151         * modules/fdutimensat-tests: New test.
37152         * tests/test-fdutimensat.c: Likewise.
37153
37154         doc: regenerate INSTALL
37155         * doc/INSTALL: Reflect recent autoconf update.
37156         * doc/INSTALL.ISO: Likewise.
37157         * doc/INSTALL.UTF-8: Likewise.
37158
37159 2009-10-20  Pádraig Brady  <P@draigBrady.com>
37160
37161         acl: warn if ACL support is not detected
37162         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
37163
37164 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
37165
37166         * lib/nproc.h: Add extern "C" block for C++.
37167
37168 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
37169             Bruno Haible  <bruno@clisp.org>
37170
37171         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
37172         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
37173         * doc/posix-functions/isalpha.texi: Likewise.
37174         * doc/posix-functions/isblank.texi: Likewise.
37175         * doc/posix-functions/iscntrl.texi: Likewise.
37176         * doc/posix-functions/isdigit.texi: Likewise.
37177         * doc/posix-functions/isgraph.texi: Likewise.
37178         * doc/posix-functions/islower.texi: Likewise.
37179         * doc/posix-functions/isprint.texi: Likewise.
37180         * doc/posix-functions/ispunct.texi: Likewise.
37181         * doc/posix-functions/isspace.texi: Likewise.
37182         * doc/posix-functions/isupper.texi: Likewise.
37183         * doc/posix-functions/isxdigit.texi: Likewise.
37184
37185 2009-10-18  Bruno Haible  <bruno@clisp.org>
37186
37187         Tests for module 'isblank'.
37188         * modules/isblank-tests: New file.
37189         * tests/test-isblank.c: New file.
37190
37191         New module 'isblank'.
37192         * lib/isblank.c: New file.
37193         * m4/isblank.m4: New file.
37194         * modules/isblank: New file.
37195         * doc/posix-functions/isblank.texi: Mention the new module.
37196
37197 2009-10-18  Bruno Haible  <bruno@clisp.org>
37198
37199         New module 'ctype'.
37200         * lib/ctype.in.h: New file.
37201         * m4/ctype.m4: New file.
37202         * modules/ctype: New file.
37203         * doc/posix-headers/ctype.texi: Mention the new module.
37204
37205 2009-10-18  Jim Meyering  <meyering@redhat.com>
37206
37207         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
37208         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
37209         right after its initialization, rather than farther down.
37210         Keeping these in close proximity makes it easier to ensure
37211         that each such variable is initialized.  E.g.,
37212
37213             LIB_CLOCK_GETTIME=
37214             AC_SUBST([LIB_CLOCK_GETTIME])
37215
37216         This change also increments these serial numbers.
37217         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
37218         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
37219         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
37220
37221 2009-10-18  Bruno Haible  <bruno@clisp.org>
37222
37223         Don't let environment variables perturb build.
37224         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
37225         (gl_PREREQ_GETHRXTIME): ... not here.
37226
37227 2009-10-18  Bruno Haible  <bruno@clisp.org>
37228
37229         Avoid symlink attack in localcharset module.
37230         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
37231         (O_NOFOLLOW): Define fallback.
37232         (get_charset_aliases): Don't open the file if it is a symbolic link.
37233         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
37234         gl_FCNTL_H.
37235         (gl_FCNTL_H): Require it.
37236         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
37237         * modules/localcharset (Files): Add m4/fcntl_h.m4.
37238         Reported by Fergal Glynn <fglynn@veracode.com>.
37239
37240 2009-10-18  Bruno Haible  <bruno@clisp.org>
37241
37242         Implement nproc for mingw.
37243         * lib/nproc.c: Include <windows.h>
37244         (num_processors): On native Windows platforms, try GetSystemInfo.
37245
37246 2009-10-18  Bruno Haible  <bruno@clisp.org>
37247
37248         Implement nproc for IRIX.
37249         * lib/nproc.c: Include <sys/sysmp.h>.
37250         (num_processors): On IRIX systems, try sysmp.
37251         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
37252
37253 2009-10-18  Bruno Haible  <bruno@clisp.org>
37254
37255         Implement nproc for HP-UX.
37256         * lib/nproc.c: Include <sys/pstat.h>
37257         (num_processors): On HP-UX systems, try pstat_getdynamic.
37258         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
37259         pstat_getdynamic.
37260
37261 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
37262             Bruno Haible  <bruno@clisp.org>
37263
37264         Implement nproc for NetBSD, OpenBSD.
37265         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
37266         (ARRAY_SIZE): New macro.
37267         (num_processors): On BSD systems, try sysctl of HW_NCPU.
37268         * m4/nproc.m4: New file.
37269         * modules/nproc (Files): Add m4/nproc.m4.
37270         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
37271         (Makefile.am): Instead, augment lib_SOURCES.
37272
37273 2009-10-18  Bruno Haible  <bruno@clisp.org>
37274
37275         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
37276         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
37277         sys/param.h.
37278
37279 2009-10-16  Eric Blake  <ebb9@byu.net>
37280
37281         utimensat: new module
37282         * modules/utimensat: New file.
37283         * lib/utimensat.c (utimensat): Likewise.
37284         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
37285         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
37286         so we can work around Linux bugs.
37287         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
37288         * modules/sys_stat (Makefile.am): Substitute them.
37289         * lib/sys_stat.in.h (utimensat): Declare it.
37290         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
37291         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
37292         * modules/utimensat-tests: New test.
37293         * tests/test-utimensat.c: Likewise.
37294
37295         utimens: let lutimens work on non-symlinks
37296         * lib/utimens.c (lutimens): Fall back to utimens rather than
37297         failing with ENOSYS, when file is not a symlink.
37298         (utimens): Reduce redirection.
37299         * tests/test-lutimens.h (test_lutimens): Update test to cover
37300         non-symlinks.
37301         * tests/test-utimens.h (test_utimens): Update test to cover
37302         symlinks.
37303         * tests/test-utimens.c (main): Update caller.
37304
37305         utimens: cache whether utimensat syscall works
37306         * lib/utimens.c (utimensat_works_really): New cache variable.
37307         (fdutimens, lutimens): Use it to avoid failing syscall.
37308
37309         test-stat-time, test-utimens: improve portability
37310         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
37311         ext4 on alpha, and for cygwin.
37312         * tests/test-utimens-common.h: New file.
37313         (nap): Factor delays into single function.
37314         * tests/test-lutimens.h (test_lutimens): Use new header.
37315         * tests/test-futimens.h (test_futimens): Likewise.
37316         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
37317         timestamps to occur from same machine, as was done previously for
37318         test_utimens.
37319         * modules/utimens-tests (Files): Ship new file.
37320         * modules/futimens-tests (Files): Likewise.
37321         Reported in part by Jim Meyering.
37322
37323         sys_stat: sort replacement declarations
37324         * lib/sys_stat.in.h: Sort declarations.
37325         * lib/futimens.c (futimens): Fix typo.
37326
37327 2009-10-15  Jim Meyering  <meyering@redhat.com>
37328
37329         don't let environment settings perturb build
37330         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
37331         could cause a configure-time and/or build-time malfunction.
37332         Typically, a configure-time function-in-library test is performed
37333         via code like this:
37334
37335           LIB_VAR=
37336           AC_SUBST([LIB_VAR])
37337           prefix_saved_LIBS=$LIBS
37338             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
37339                        [test "$ac_cv_search_FUNC" = "none required" ||
37340                         LIB_VAR=$ac_cv_search_FUNC])
37341           LIBS=$prefix_saved_LIBS
37342
37343         However, in each of the files affected by this change, the LIB_VAR=
37344         initialization was omitted.  Thus, when set in the environment, its
37345         value would propagate into generated Makefiles when FUNC is not found
37346         in LIB_NAME.
37347         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
37348         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
37349         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
37350
37351 2009-10-14  Eric Blake  <ebb9@byu.net>
37352
37353         fchdir: avoid infinite recursion in mingw
37354         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
37355         recursing.
37356
37357         test-stat-time: port to mingw
37358         * tests/test-stat-time.c (force_unlink): Return a value.
37359         (test_ctime) [W32]: Fix compilation error.
37360         (nap): Don't call usleep with too large an argument.  Use
37361         force_unlink.
37362         * doc/pastposix-functions/usleep.texi (usleep): Document the
37363         portability issue.
37364
37365 2009-10-13  Jim Meyering  <meyering@redhat.com>
37366
37367         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
37368         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
37369         * modules/pipe-filter-ii: Likewise.
37370         * modules/sys_socket-tests: Likewise.
37371         * modules/tsearch-tests: Likewise.
37372         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
37373         (check): Depend on it.
37374
37375 2009-10-12  Eric Blake  <ebb9@byu.net>
37376
37377         utimens-tests: port to NFS file systems
37378         * tests/test-utimens.h (test_utimens): Refactor utimecmp
37379         comparisons to avoid spurious failures from timestamp drift
37380         between NFS machines.
37381
37382 2009-10-12  Eric Blake  <ebb9@byu.net>
37383
37384         stat-time-tests: minor cleanups
37385         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
37386         * tests/test-stat-time.c (nap): Separate assignment from call.
37387         Suggested by Paolo Bonzini and Bruno Haible.
37388
37389         sys_stat: guarantee struct timespec
37390         * lib/sys_stat.in.h (includes): Always include <time.h>
37391         * modules/sys_stat (Depends-on): Add time.
37392         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
37393         mode_t permission values.
37394         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
37395         get at subsecond timestamps.
37396
37397 2009-10-10  Eric Blake  <ebb9@byu.net>
37398
37399         futimens: new module
37400         * modules/futimens: New file.
37401         * lib/futimens.c (futimens): Likewise.
37402         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
37403         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
37404         we can work around Linux bugs.
37405         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
37406         * modules/sys_stat (Makefile.am): Substitute them.
37407         * lib/sys_stat.in.h (futimens): Declare it.
37408         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
37409         * doc/posix-functions/futimens.texi (futimens): Likewise.
37410         * modules/futimens-tests: New test.
37411         * tests/test-futimens.c: Likewise.
37412
37413         utimens: introduce fdutimens
37414         * lib/utimens.h (fdutimens): New prototype.
37415         * lib/utimens.c (gl_futimens): Move guts...
37416         (fdutimens): ...to new interface.
37417         * tests/test-utimens.c (do_fdutimens): Use it.
37418
37419         utimens: add UTIME_NOW and UTIME_OMIT support
37420         * lib/utimens.c (validate_timespec, update_timespec): New helper
37421         functions.
37422         (gl_futimens, lutimens): Use them.
37423         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
37424         stdbool, sys_stat.
37425         (Link): Mention resulting library dependency.
37426         * modules/utimecmp (Link): Likewise.
37427         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
37428         (Makefile.am): Pick up library dependency.
37429         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
37430         definition.
37431         * tests/test-sys_stat.c: Test the definitions.
37432         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
37433         * NEWS: Document library dependency.
37434
37435         utimecmp: support symlink timestamps
37436         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
37437         hashing when possible.  Use pathconf when available.
37438         (SYSCALL_RESOLUTION): Recognize tighter resolution.
37439         * modules/utimecmp (Depends-on): Add lstat.
37440
37441         utimens: add lutimens interface
37442         * lib/utimens.c (lutimens): New function.
37443         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
37444         * lib/utimens.h (lutimens): Declare new interface.
37445         * tests/test-utimens.c (main): Enhance test.
37446         * tests/test-lutimens.h (test_lutimens): New file.
37447         * modules/utimens-tests (Files): Distribute it.
37448         (Depends-on): Add symlink.
37449         (configure.ac): Check for usleep.
37450
37451         utimens: validate futimens usage
37452         * lib/utimens.c (gl_futimens): Require valid fd up front, using
37453         fewer syscalls on failure later on.  Avoid compiler warning on
37454         mingw.
37455         * modules/utimens (Depends-on): Add dup2.
37456
37457         utimens: add test
37458         * modules/utimens-tests: New test.
37459         * tests/test-utimens.h: New file.
37460         * tests/test-futimens.h: Likewise.
37461         * tests/test-utimens.c: Likewise.
37462
37463         doc: mention timestamp portability issues
37464         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
37465         instead.
37466         * doc/posix-functions/utime.texi (utime): Likewise.
37467         * doc/posix-functions/utimes.texi (utimes): Likewise.
37468         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
37469         instead.
37470         * doc/posix-functions/futimens.texi (futimens): Mention utimens
37471         module.
37472         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
37473         Mention weakness with symlink timestamps.
37474         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
37475         to utimensat/futimens instead.
37476         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
37477
37478         test-dup2: enhance test
37479         * tests/test-dup2.c (main): Also check AT_FDCWD.
37480
37481         test-stat-time: avoid more spurious failures
37482         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
37483         xfs; and avoid race if the two timestamps cross quantization edge.
37484
37485         relocatable: prefer 'file system' over 'filesystem'
37486         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
37487         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
37488         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
37489         * doc/relocatable.texi (Enabling Relocatability): Likewise.
37490         * lib/relocatable.c (compute_curr_prefix): Likewise.
37491
37492 2009-10-10  Jim Meyering  <meyering@redhat.com>
37493
37494         stat-time-tests: check for the usleep function
37495         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
37496
37497 2009-10-10  Bruno Haible  <bruno@clisp.org>
37498
37499         * modules/xnanosleep: Put the Link section after the Include section.
37500
37501 2009-10-09  Eric Blake  <ebb9@byu.net>
37502
37503         dup2: work around FreeBSD 6.1 bug
37504         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
37505         * doc/posix-functions/dup2.texi (dup2): Document it.
37506         Reported by Nelson H. F. Beebe and Jim Meyering.
37507
37508         test-stat-time: port to buggy NFS clients
37509         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
37510         (test_ctime): Also skip test if mtime and ctime are skewed.
37511
37512         maint: prefer 'file system' over 'filesystem'
37513         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
37514         * doc/posix-functions/lstat.texi (lstat): Likewise.
37515         * lib/file-has-acl.c (file_has_acl): Likewise.
37516         * lib/fwriteerror.c [TEST]: Likewise.
37517         * tests/test-areadlink.h (test_areadlink): Likewise.
37518         * tests/test-areadlinkat-with-size.c (main): Likewise.
37519         * tests/test-areadlinkat.c (main): Likewise.
37520         * tests/test-canonicalize-lgpl.c (main): Likewise.
37521         * tests/test-canonicalize.c (main): Likewise.
37522         * tests/test-fstatat.c (main): Likewise.
37523         * tests/test-linkat.c (main): Likewise.
37524         * tests/test-lstat.h (test_lstat_func): Likewise.
37525         * tests/test-mkdir.h (test_mkdir): Likewise.
37526         * tests/test-readlink.h (test_readlink): Likewise.
37527         * tests/test-remove.c (main): Likewise.
37528         * tests/test-rename.h (test_rename): Likewise.
37529         * tests/test-renameat.c (main): Likewise.
37530         * tests/test-rmdir.h (test_rmdir_func): Likewise.
37531         * tests/test-symlink.h (test_symlink): Likewise.
37532         * tests/test-symlinkat.c (main): Likewise.
37533         * tests/test-unlink.h (test_unlink_func): Likewise.
37534         * tests/test-unlinkat.c (main): Likewise.
37535
37536         maint: make realtime library usage explicit
37537         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
37538         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
37539         * modules/settime (Link): Likewise.
37540         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
37541
37542         test-stat-time: speed up execution
37543         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
37544         warning on mingw.
37545         (nap): New helper function.
37546         (prepare_test): Use it to reduce sleep time.
37547         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
37548         execution.
37549         * modules/stat-time-tests (configure.ac): Check for usleep.
37550
37551 2009-10-09  Jim Meyering  <meyering@redhat.com>
37552
37553         selinux-h: always use getfilecon wrappers
37554         * lib/getfilecon.c: New file.
37555         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
37556         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
37557         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
37558         (fgetfilecon): Provide a stub.
37559         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
37560         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
37561         file unconditionally.
37562         When <selinux/selinux.h> is found, arrange to use wrappers.
37563         * modules/selinux-h (Files): Add getfilecon.c.
37564         (Makefile.am): Substitute include-next-related bits
37565         into the now-always-generated selinux/selinux.h file.
37566         * doc/glibc-functions/lgetfilecon.texi: New file.
37567         * doc/glibc-functions/fgetfilecon.texi: New file.
37568         * doc/glibc-functions/getfilecon.texi: New file.
37569         * doc/glibc-functions/getfilecon-desc.texi: New file.
37570         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
37571         which to pull in the new files.
37572         * MODULES.html.sh (Misc): Add selinux-h.
37573
37574 2009-10-08  Jim Meyering  <meyering@redhat.com>
37575
37576         unistd: fix comment typo
37577         * lib/unistd.in.h (euidaccess): Fix a comment typo.
37578
37579 2009-10-08  Eric Blake  <ebb9@byu.net>
37580
37581         areadlink: use SIZE_MAX consistently
37582         * modules/areadlink (Depends-on): Add stdint.
37583         * modules/areadlink-with-size (Depends-on): Likewise.
37584         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
37585         gives NULL; drop sys/types, since unistd gives size_t; and add
37586         stdint for SIZE_MAX.
37587         (SIZE_MAX): Rely on headers.
37588         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
37589         and add stdint.
37590         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
37591         (SIZE_MAX): Likewise.
37592         (INITIAL_BUF_SIZE): Turn into enum.
37593         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
37594
37595 2009-10-08  Jim Meyering  <meyering@redhat.com>
37596
37597         areadlinkat: avoid compilation failure
37598         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
37599         Fix typo in comment.
37600
37601 2009-10-07  Eric Blake  <ebb9@byu.net>
37602
37603         areadlinkat-with-size: new module
37604         * modules/areadlinkat-with-size: New module.
37605         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
37606         * lib/areadlink.h (areadlinkat): Declare it.
37607         * MODULES.html.sh (File system functions): Mention it.
37608         * modules/areadlinkat-with-size-tests: New test.
37609         * tests/test-areadlinkat-with-size.c: New file.
37610
37611         xreadlinkat: new module
37612         * modules/xreadlinkat: New module.
37613         * lib/xreadlinkat.c (xreadlinkat): New file.
37614         * lib/xreadlink.h (xreadlinkat): Declare it.
37615         * MODULES.html.sh (File system functions): Mention it.
37616
37617         areadlinkat: new module
37618         * lib/at-func.c (FUNC_FAIL): New define.
37619         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
37620         * modules/areadlinkat: New module.
37621         * lib/linkat.c (areadlinkat): Move...
37622         * lib/areadlinkat.c (areadlinkat): ...to new file.
37623         * lib/areadlink.h (areadlinkat): Declare it.
37624         * modules/linkat (Depends-on): Add areadlinkat.
37625         * MODULES.html.sh (File system functions): Mention it.
37626         * modules/areadlinkat-tests: New test.
37627         * tests/test-areadlinkat.c: New file.
37628
37629         areadlink, areadlink-with-size: add tests
37630         * modules/areadlink-tests: New test.
37631         * modules/areadlink-with-size-tests: Likewise.
37632         * tests/test-areadlink.h: New file.
37633         * tests/test-areadlink.c: Likewise.
37634         * tests/test-areadlink-with-size.c: Likewise.
37635
37636         maint: minor cleanups
37637         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
37638         _UNUSED_PARAMETER_ instead.
37639         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
37640         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
37641         * modules/linkat-tests (Files): Distribute test-link.h.
37642
37643         openat, utimens: whitespace cleanup
37644         * lib/openat.c: Prefer space throughout, rather than mix of 8
37645         spaces vs. tabs.
37646         * lib/at-func.c: Likewise.
37647         * lib/utimens.c: Likewise.
37648
37649         openat: avoid using wrong fd
37650         * lib/openat.c (openat_permissive): Reject user's fd if saving the
37651         working directory chooses same fd.
37652         * lib/at-func.c (AT_FUNC_NAME): Likewise.
37653
37654         mkdir, mkdirat: fix cygwin 1.5.x bug
37655         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
37656         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
37657         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
37658         bug.
37659         (gl_PREREQ_MKDIR): Delete unused macro.
37660         * modules/mkdir (Files): Track file rename.
37661         (configure.ac): Update macro name.
37662         * modules/openat (Depends-on): Add mkdir.
37663         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
37664
37665         mkdir, mkdirat: add tests
37666         * modules/mkdir-tests: New test.
37667         * tests/test-mkdir.h: New file.
37668         * tests/test-mkdir.c: Likewise.
37669         * tests/test-mkdirat.c: Likewise.
37670         * modules/openat-tests (Files): Add new files.
37671         (Makefile.am): Run new test.
37672
37673 2009-10-06  Eric Blake  <ebb9@byu.net>
37674
37675         doc: tweak *at function documentation
37676         * doc/posix-functions/faccessat.texi (faccessat): Mention
37677         known issue with replacement.
37678         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
37679         * doc/posix-functions/linkat.texi (linkat): Likewise.
37680         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
37681         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
37682         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
37683         * doc/posix-functions/renameat.texi (renameat): Likewise.
37684         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
37685
37686         openat: fix GNU/Hurd bug in unlinkat
37687         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
37688         broken.
37689         * doc/posix-functions/unlink.texi (unlink): Document this.
37690         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
37691
37692         fdopendir: fix GNU/Hurd bug
37693         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
37694         allowing non-directory fds.
37695         * lib/fdopendir.c (rpl_fdopendir): Work around it.
37696         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
37697         * modules/dirent (Makefile.am): Substitute it.
37698         * lib/dirent.in.h (fdopendir): Declare replacement.
37699         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
37700         * tests/test-fdopendir.c (main): Test something other than
37701         /dev/null, since on Hurd that behaves like a directory.
37702
37703         test-symlink: port to GNU/Hurd
37704         * tests/test-symlink.h (test_symlink): Relax expected errno.
37705
37706         doc: tweak more cygwin information
37707         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
37708         now compatible with glibc.
37709         * doc/posix-functions/getopt.texi (getopt): Likewise.
37710
37711         getopt-gnu: add another test
37712         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
37713         guarantee behavior relied on by m4.
37714         * tests/test-getopt.c (main): Use it.
37715         * modules/getopt-posix-tests (Depends-on): Add setenv.
37716         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
37717
37718         getopt: fix compilation on darwin
37719         * lib/getopt.in.h (includes): Leave breadcrumbs during system
37720         include.
37721         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
37722         Reported by Ludovic Courtès.
37723
37724 2009-10-06  Bruno Haible  <bruno@clisp.org>
37725
37726         * modules/size_max (Description): Discourage its use.
37727         Reported by Simon Josefsson.
37728
37729 2009-10-06  Jim Meyering  <meyering@redhat.com>
37730
37731         linkat: avoid compilation failure
37732         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
37733
37734 2009-10-05  Eric Blake  <ebb9@byu.net>
37735
37736         linkat: support Linux 2.6.17
37737         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
37738         linkat on Linux, but allow cache variable override.
37739         * lib/linkat.c (rpl_linkat): Define override.
37740         * modules/linkat (Depends-on): Add symlinkat.
37741         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
37742         * modules/unistd (Makefile.am): Substitute it.
37743         * lib/unistd.in.h (linkat): Declare replacement.
37744         Reported by Pádraig Brady.
37745
37746         quotearg: port test to systems with C.UTF-8 locale
37747         * tests/test-quotearg.c (struct result_strings): Add another
37748         member, differentiating between C.ASCII and C.UTF-8 handling.
37749         (compare_strings): Add parameter.
37750         (main): Adjust all callers.
37751
37752         getopt: avoid clash with FreeBSD _getopt_internal
37753         * lib/getopt.in.h (_getopt_internal): Override the name.
37754         * lib/getopt_int.h (includes): Pick up any overrides.
37755         Reported by Reuben Thomas.
37756
37757         hash: allow C89 compilation
37758         * lib/hash.c (check_tuning): Move declaration before statement.
37759         Reported by Reuben Thomas.
37760
37761 2009-10-05  Karl Berry  <karl@gnu.org>
37762
37763         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
37764
37765 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
37766             Bruno Haible  <bruno@clisp.org>
37767
37768         * lib/uname.c (uname): Use a table-driven algorithm to compute
37769         Windows NT versions.
37770
37771 2009-10-04  Bruno Haible  <bruno@clisp.org>
37772
37773         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
37774         program_invocation_short_name.
37775         * modules/progname (configure.ac): Test for presence of
37776         program_invocation_short_name.
37777         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
37778
37779 2009-10-04  Bruno Haible  <bruno@clisp.org>
37780
37781         * lib/progname.c (set_program_name): Fix comment.
37782         Reported by Jim Meyering.
37783
37784 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
37785             Bruno Haible  <bruno@clisp.org>
37786
37787         * lib/uname.c: Include <string.h>.
37788         (uname): Do only one call to GetVersionEx in the common case.
37789
37790 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
37791             Bruno Haible  <bruno@clisp.org>
37792
37793         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
37794         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
37795         (uname): Add support for Windows CE and various non-x86 CPU types.
37796
37797 2009-10-03  Bruno Haible  <bruno@clisp.org>
37798
37799         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
37800         invocation to tests/configure.ac.
37801         Reported by Ian Beckwith <ianb@erislabs.net>.
37802
37803 2009-10-02  Eric Blake  <ebb9@byu.net>
37804
37805         fchdir: avoid compiler warning
37806         * lib/fchdir.c (canonicalize_file_name)
37807         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
37808
37809         test-open: support mingw errno values
37810         * tests/test-open.h (test_open): Relax test.
37811         * tests/test-fopen.h (test_fopen): Likewise.
37812         * tests/test-openat-safer.c (main): Likewise.
37813
37814         open: fix opening directory on mingw
37815         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
37816
37817         test-open: on GNU/Hurd, /dev/null is a directory
37818         * tests/test-fopen.h (main): Rename...
37819         (test_fopen): ...to this.  Use a guaranteed non-directory when
37820         confirming open behavior on trailing slash.
37821         * tests/test-openat-safer.c (main): Likewise.
37822         * tests/test-open.h (main): Likewise....
37823         (test_open): ...to this.
37824         * tests/test-fopen.c (main): Adjust caller.
37825         * tests/test-fopen-safer.c (main): Likewise.
37826         * tests/test-open.c (main): Likewise.
37827         * tests/test-fcntl-safer.c (main): Likewise.
37828         Reported by Samuel Thibault.
37829
37830         rename, fchdir: don't ignore chdir failure
37831         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
37832         * lib/rename.c (rpl_rename) [W32]: Likewise.
37833         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
37834         an empty destination directory if source cannot be renamed,
37835         although there is still possibility for failure.
37836         * doc/posix-functions/rename.texi (rename): Document the race.
37837         Reported by Jim Meyering.
37838
37839         maint: cleanup whitespace in recent commits
37840         * lib/rename.c (rpl_rename): Remove tabs.
37841         * tests/test-link.h (test_link): Likewise.
37842         * lib/fchdir.c (get_name): Likewise.
37843         Reported by Jim Meyering.
37844
37845 2009-10-02  Ben Pfaff  <blp@gnu.org>
37846
37847         relocatable-prog-wrapper: Add missing dependency on
37848         double-slash-root.
37849         * modules/relocatable-prog-wrapper: Add dependency.
37850         Reported by Ian Beckwith <ianb@erislabs.net>.
37851
37852 2009-10-02  Eric Blake  <ebb9@byu.net>
37853
37854         renameat: fix Solaris bugs
37855         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
37856         needed fixing.
37857         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
37858         * modules/stdio (Makefile.am): Substitute it.
37859         * lib/stdio.in.h (renameat): Declare replacement.
37860         * lib/renameat.c (rpl_renameat): Implement fix.
37861
37862         renameat: new module
37863         * modules/renameat: New file.
37864         * lib/renameat.c (renameat): Likewise.
37865         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
37866         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
37867         * modules/stdio (Makefile.am): Substitute them.
37868         * lib/stdio.in.h (renameat): Declare it.
37869         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
37870         * doc/posix-functions/renameat.texi (renameat): Likewise.
37871         * modules/renameat-tests: New test.
37872         * tests/test-renameat.c: Likewise.
37873
37874         rename: fix mingw bugs
37875         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
37876         directory overwrite bugs.
37877
37878         rename: fix another cygwin 1.5 bug
37879         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
37880         checks.
37881         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
37882         unnecessary cygwin workarounds.  Also work around bug with moving
37883         full directory onto an empty one.
37884         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
37885
37886         rename-dest-slash: merge into rename module
37887         * modules/rename-dest-slash (Status): Mark obsolete.
37888         (Depends-on): Add rename.
37889         (Files): Let rename do it all.
37890         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
37891         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
37892         * m4/rename-dest-slash.m4: ...so this file can be deleted.
37893         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
37894         * lib/rename.c (rpl_rename): Update comments.
37895
37896         rename: fix cygwin 1.5.x bugs
37897         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
37898         * lib/rename.c (rpl_rename): Work around them.
37899         * modules/rename (Depends-on): Add same-inode.
37900
37901         rename: fix Solaris 10 bug
37902         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
37903         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
37904         was the only bug.
37905
37906         rename: fix Solaris 9 bug
37907         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
37908         on non-directory.  Avoid calling exit.
37909         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
37910         strdup.
37911         * modules/rename-tests (Depends-on): Drop lstat.
37912         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
37913         (gl_PREREQ_RENAME): Delete unused macro.
37914
37915         rename-dest-slash: fix NetBSD bug
37916         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
37917         links.
37918         * modules/rename-dest-slash (Depends-on): Add same-inode.
37919
37920         rename-tests: new test, exposes several platform bugs
37921         * modules/rename-tests: New file.
37922         * tests/test-rename.h: Likewise.
37923         * tests/test-rename.c: Likewise.
37924         * doc/posix-functions/rename.texi (rename): Improve documentation,
37925         including bugs that will eventually be fixed in gnulib.
37926
37927 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
37928
37929         * lib/uname.c: Include <stdlib.h>
37930         (uname): Assume version info is available.
37931
37932 2009-10-02  Jim Meyering  <meyering@redhat.com>
37933
37934         gnu-web-doc-update: correct --help output
37935         * build-aux/gnu-web-doc-update: Make --help output relevant.
37936
37937         gnu-web-doc-update: add standard options
37938         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
37939
37940         gnu-web-doc-update: New module.
37941         Use this script to automatically update the on-line web documentation
37942         for your GNU project at http://www.gnu.org/software/$pkg/manual/
37943         * modules/gnu-web-doc-update: New file, from coreutils.
37944         * build-aux/gnu-web-doc-update: New script.
37945
37946 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
37947
37948         link: LoadLibrary is not needed.
37949         * lib/link.c: Use GetModuleHandle.
37950
37951 2009-10-01  Eric Blake  <ebb9@byu.net>
37952
37953         getopt: bump serial number
37954         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
37955         change.
37956
37957         tests: tighten link, rmdir, and remove tests
37958         * tests/test-link.h (includes): No need to use <config.h> here.
37959         Clean up if directory hard link was created, otherwise test for
37960         trailing '.'.
37961         * tests/test-linkat.c (main): Simplify.
37962         * tests/test-remove.c (main): Enhance test for trailing '.'.
37963         * tests/test-rmdir.h (test_rmdir_func): Likewise.
37964
37965 2009-10-01  Jim Meyering  <meyering@redhat.com>
37966
37967         maint.mk: requiring "make major" was annoying, for a "minor" release.
37968         What is intended is "stable", to contrast with alpha and beta,
37969         so require "make stable", not "make major".
37970         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
37971         (get_tool_versions): Likewise.
37972         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
37973
37974 2009-09-30  Ben Pfaff  <blp@gnu.org>
37975
37976         Fix broken build of replacement for Windows tmpfile().
37977         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
37978         flags argument added along with the 'mkostemp' module.
37979
37980 2009-09-28  Bruno Haible  <bruno@clisp.org>
37981
37982         Avoid identifier clash with POSIX function 'remove' defined as a macro.
37983         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
37984         to 'remove_elt'.
37985         (gl_list_remove): Update.
37986         * lib/gl_list.c (gl_list_remove): Update.
37987         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
37988         to 'remove_elt'.
37989         (gl_oset_remove): Update.
37990         * lib/gl_list.c (gl_oset_remove): Update.
37991         Reported by Eric Blake.
37992
37993 2009-09-28  Eric Blake  <ebb9@byu.net>
37994
37995         doc: mention yet more cygwin 1.7 status
37996         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
37997         cygwin.
37998         * doc/glibc-functions/execvpe.texi (execvpe): New file.
37999         * doc/gnulib.texi (Glibc unistd.h): Mention it.
38000
38001         argp: fix test failure
38002         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
38003         that are not upper-case.  Pass correct range to tolower.
38004
38005 2009-09-27  Jim Meyering  <meyering@redhat.com>
38006
38007         test-yesno: work around sparc-dash here-document infelicity
38008         Without this change, the literal \177 byte in a here document
38009         would make dash 0.5.5.1-3 access uninitialized memory.
38010         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
38011         Instead, use a marker, "@", and filter through tr to create the desired
38012         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
38013
38014 2009-09-27  Bruno Haible  <bruno@clisp.org>
38015
38016         Disable untested support for new flavours of ACLs on AIX.
38017         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
38018         progress.
38019         * lib/set-mode-acl.c (qset_acl): Likewise.
38020
38021 2008-12-07  Bruno Haible  <bruno@clisp.org>
38022
38023         Add support for new flavours of ACLs on AIX. (Untested.)
38024         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
38025         (file_has_acl): Add support for newer AIX.
38026         * lib/set-mode-acl.c (qset_acl): Likewise.
38027         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
38028         Rainer Tammer <tammer@tammer.net>.
38029
38030 2009-09-26  Eric Blake  <ebb9@byu.net>
38031
38032         argp: fix compilation of getopt
38033         * lib/getopt.in.h (includes): Use different guard than glibc.
38034         Reported by Sergey Poznyakoff.
38035
38036         doc: mention more cygwin 1.7 status
38037         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
38038         bug.
38039         * doc/posix-functions/execl.texi (execl): Likewise.
38040         * doc/posix-functions/execle.texi (execle): Likewise.
38041         * doc/posix-functions/execlp.texi (execlp): Likewise.
38042         * doc/posix-functions/execv.texi (execv): Likewise.
38043         * doc/posix-functions/execve.texi (execve): Likewise.
38044         * doc/posix-functions/execvp.texi (execvp): Likewise.
38045         * doc/glibc-functions/canonicalize_file_name.texi
38046         (canonicalize_file_name): Cygwin 1.7 now provides this.
38047         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
38048         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
38049         on AT_SYMLINK_NOFOLLOW.
38050
38051 2009-09-24  Eric Blake  <ebb9@byu.net>
38052
38053         test-linkat: make test more robust
38054         * tests/test-linkat.c (main): Avoid collision with EEXIST.
38055
38056         getopt: fix inclusion guards for cygwin
38057         * modules/getopt-posix (Depends-on): Add include-next.
38058         (Makefile.am): Substitute more items in replacement header.
38059         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
38060         <getopt.h>.
38061         * lib/getopt.in.h (includes): Use split inclusion guard, and
38062         prefer <getopt.h> over include <unistd.h> when one is present.
38063         (option): Also override name of 'struct option'.
38064
38065         same-inode: revert prior change; it is not yet ready
38066         * NEWS: Undo mention of this change.
38067         * lib/same-inode.h (same-inode.h): Undo tri-state change.
38068         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
38069         * lib/cycle-check.c (cycle_check): Likewise.
38070         * lib/same.c (same_name): Likewise.
38071         * lib/at-func2.c (at_func2): Likewise.
38072
38073 2009-09-23  Eric Blake  <ebb9@byu.net>
38074
38075         linkat: new module
38076         * modules/linkat: New file.
38077         * lib/at-func2.c (at_func2): Likewise.
38078         * lib/linkat.c (linkat): Likewise.
38079         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
38080         * lib/openat-priv.h (at_func2): Add declaration.
38081         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
38082         * modules/unistd (Makefile.am): Substitute them.
38083         * lib/unistd.in.h (linkat): Declare it.
38084         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
38085         * doc/posix-functions/linkat.texi (linkat): Likewise.
38086         * doc/posix-functions/link.texi (link): Tweak wording.
38087         * tests/test-link.c (main): Move guts...
38088         * tests/test-link.h (test_link): ...into new file.
38089         * modules/linkat-tests: New test.
38090         * tests/test-linkat.c: Likewise.
38091         * modules/link-tests (Files): Ship new file.
38092         (Depends-on): Add stdbool.
38093
38094         dirname: add library-safe mdir_name
38095         * lib/dirname.h (mdir_name): New prototype.
38096         * lib/dirname.c (dir_name): Move guts...
38097         (mdir_name): ...to new function that avoids xalloc_die.
38098
38099         fchdir: another mingw fix
38100         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
38101         * lib/fchdir.c (get_name): New helper method; skips canonicalize
38102         on mingw (where it has not yet been ported), and make it optional
38103         elsewhere.
38104         (_gl_register_fd): Use it.
38105
38106         same-inode: make SAME_INODE tri-state, to port to mingw
38107         * NEWS: Mention this change.
38108         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
38109         st_ino always being 0.
38110         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
38111         * lib/cycle-check.c (cycle_check): Likewise.
38112         * lib/same.c (same_name): Likewise.
38113
38114         lstat: avoid mingw compilation error
38115         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
38116         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
38117         lstat ourselves.
38118         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
38119         was adequate.
38120         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
38121         the checks for lstat.
38122         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
38123
38124         link: fix test failure on Solaris 9
38125         * lib/link.c (rpl_link): Don't assume link will catch bogus
38126         trailing slash on source.
38127
38128         test-symlinkat: enhance test
38129         * tests/test-readlink.c (main): Move guts...
38130         * tests/test-readlink.h (test_readlink): ...into new file.
38131         * tests/test-symlink.c (main): Move guts...
38132         * tests/test-symlink.h (test_symlink): ...into new file.
38133         * tests/test-symlinkat.c (main): Use new files for further
38134         coverage.
38135         (do_symlink, do_readlink): New helper functions.
38136         * modules/symlink-tests (Files): Ship new file.
38137         (Depends-on): Add stdbool.
38138         * modules/readlink-tests (Files): Ship new file.
38139         (Depends-on): Add stdbool.
38140         * modules/symlinkat-tests (Files): Use new files.
38141
38142 2009-09-23  Eric Blake  <ebb9@byu.net>
38143
38144         readlink: document portability issue with symlink length
38145         * doc/posix-functions/lstat.texi (lstat): Mention that some file
38146         systems have bogus st_size on symlinks, and mention the
38147         areadlink-with-size module.
38148         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
38149         * doc/posix-functions/readlink.texi (readlink): Mention the
38150         areadlink module, and ERANGE failure.
38151         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
38152         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
38153
38154         readlink: fix Solaris 9 bug with trailing slash
38155         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
38156         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
38157         * doc/posix-functions/readlink.texi (readlink): Document this.
38158         * modules/readlink-tests: New test.
38159         * tests/test-readlink.c: Likewise.
38160
38161         readlink: fix cygwin 1.5.x bug with return type
38162         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
38163         * lib/unistd.in.h (readlink): Use ssize_t.
38164         * lib/readlink.c (readlink): Likewise.
38165         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
38166         * modules/unistd (Makefile.am): Substitute it.
38167         * lib/unistd.in.h (readlink): Declare replacement.
38168         * doc/posix-functions/readlink.texi (readlink): Document this.
38169
38170         symlink: use throughout gnulib
38171         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
38172         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
38173         symlink is not used.
38174         * modules/symlinkat (Depends-on): Add symlink.
38175         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
38176         * modules/canonicalize-tests (Depends-on): Likewise.
38177         * modules/lstat-tests (Depends-on): Likewise.
38178         * modules/openat-tests (Depends-on): Likewise.
38179         * modules/remove-tests (Depends-on): Likewise.
38180         * modules/rmdir-tests (Depends-on): Likewise.
38181         * modules/unlink-tests (Depends-on): Likewise.
38182         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
38183         * tests/test-canonicalize.c (symlink): Likewise.
38184         * tests/test-fstatat.c (symlink): Likewise.
38185         * tests/test-lstat.c (symlink): Likewise.
38186         * tests/test-remove.c (symlink): Likewise.
38187         * tests/test-rmdir.c (symlink): Likewise.
38188         * tests/test-unlink.c (symlink): Likewise.
38189         * tests/test-unlinkat.c (symlink): Likewise.
38190
38191         symlink: new module, for Solaris 9 bug
38192         * modules/symlink: New file.
38193         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
38194         * lib/symlink.c: Likewise.
38195         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
38196         * modules/unistd (Makefile.am): Substitute them.
38197         * lib/unistd.in.h (symlink): Declare replacement.
38198         * MODULES.html.sh (File system functions): Mention it.
38199         * doc/posix-functions/symlink.texi (symlink): Likewise.
38200         * modules/symlink-tests: New test.
38201         * tests/test-symlink.c: Likewise.
38202
38203 2009-09-23  Bruno Haible  <bruno@clisp.org>
38204
38205         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
38206         when needed.
38207         Test case: gnulib-tool --import --with-tests atexit inttypes.
38208         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
38209
38210 2009-09-23  Bruno Haible  <bruno@clisp.org>
38211
38212         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
38213         subcommand, not in a subshell.
38214
38215 2009-09-22  Eric Blake  <ebb9@byu.net>
38216
38217         unistd: sort replacement declarations
38218         * lib/unistd.in.h: Sort declarations.
38219
38220         open, openat: minor optimization
38221         * lib/open.c (open): If open succeeded, len is non-zero.
38222         * lib/openat.c (rpl_openat): Likewise.
38223
38224         link-follow: ensure correct result
38225         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
38226         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
38227         distinguish between possible failures.
38228
38229 2009-09-21  Eric Blake  <ebb9@byu.net>
38230
38231         fts: avoid compiler warning
38232         * lib/fts.c (dirent_inode_sort_may_be_useful)
38233         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
38234
38235 2009-09-19  Bruno Haible  <bruno@clisp.org>
38236
38237         * lib/progreloc.c (canonicalize_file_name): New declaration.
38238
38239 2009-09-19  Eric Blake  <ebb9@byu.net>
38240
38241         link: fix quoting
38242         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
38243
38244         openat: fix openat bugs on Solaris 9
38245         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
38246         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
38247         * modules/openat (Depends-on): Add open.
38248         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
38249         * modules/fcntl-h (Makefile.am): Substitute it.
38250         * lib/fcntl.in.h (openat): Declare replacement.
38251         * doc/posix-functions/openat.texi (openat): Document this.
38252
38253         openat: move fstatat and unlinkat into correct files
38254         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
38255         compiled.
38256         * lib/openat.c (fstatat, unlinkat): Move...
38257         * lib/fstatat.c (fstatat): ...into correct files.
38258         * lib/unlinkat.c (unlinkat): Likewise.
38259
38260         openat: fix unlinkat bugs on Solaris 9
38261         * lib/unlinkat.c (unlinkat): New file.
38262         * modules/openat (Depends-on): Add unlink.
38263         (Files): Distribute it.
38264         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
38265         trailing slash behavior is broken.
38266         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
38267         * modules/unistd (Makefile.am): Substitute it.
38268         * lib/unistd.in.h (unlinkat): Declare replacement.
38269         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
38270
38271         openat: fix fstatat bugs on Solaris 9
38272         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
38273         stat.
38274         * doc/posix-functions/fstatat.texi (fstatat): Document this.
38275
38276         test-unlinkat: enhance test, to expose Solaris 9 bug
38277         * tests/test-unlink.c (main): Factor guts...
38278         * tests/test-unlink.h (test_rmdir_func): ...into new file.
38279         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
38280         * tests/test-rmdir.c (main): Adjust caller.
38281         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
38282         (unlinker): New helper function.
38283         (rmdirat): Enhance check.
38284         * modules/rmdir-tests (Depends-on): Add stdbool.
38285         * modules/unlink-tests (Depends-on): Likewise.
38286         (Files): Add test-unlink.h.
38287         * modules/openat-tests (Files): Likewise.
38288         (Depends-on): Add unlinkdir.
38289
38290         test-fstatat: new test, to expose Solaris 9 bugs
38291         * tests/test-stat.c (main): Factor guts...
38292         * tests/test-stat.h (test_stat_func): ...into new file.
38293         * tests/test-lstat.c (main): Factor guts...
38294         * tests/test-lstat.h (test_lstat_func): ...into new file.
38295         * tests/test-fstatat.c: New file.
38296         * modules/stat-tests (Files): Add test-stat.h.
38297         * modules/lstat-tests (Files): Add test-lstat.h.
38298         (Depends-on): Add stdbool.
38299         * modules/openat-tests (Depends-on): Add pathmax.
38300         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
38301         (Makefile.am): Run new test.
38302
38303         remove: new module, for mingw and Solaris 9 bugs
38304         * modules/remove: New file.
38305         * lib/remove.c: Likewise.
38306         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
38307         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
38308         * modules/stdio (Makefile.am): Use them.
38309         * lib/stdio.in.h (remove): Declare replacement.
38310         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
38311         * doc/posix-functions/remove.texi (remove): Likewise.
38312         * modules/remove-tests: New test.
38313         * tests/test-remove.c: Likewise.
38314
38315         unlink: new module, for Solaris 9 bug
38316         * modules/unlink: New file.
38317         * lib/unlink.c: Likewise.
38318         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
38319         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
38320         * modules/unistd (Makefile.am): Use them.
38321         * lib/unistd.in.h (stat): Declare replacement.
38322         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
38323         * doc/posix-functions/unlink.texi (unlink): Likewise.
38324         * modules/unlink-tests: New test.
38325         * tests/test-unlink.c: Likewise.
38326
38327         lstat: fix Solaris 9 bug
38328         * lib/lstat.c (lstat): Also check for trailing slash on
38329         non-symlink, non-directories.  Use stat module to simplify logic.
38330         * doc/posix-functions/lstat.texi (lstat): Document it.
38331         * modules/lstat-tests (Depends-on): Add errno, same-inode.
38332         (configure.ac): Check for symlink.
38333         * tests/test-lstat.c (main): Add more tests.
38334
38335         stat: add as dependency to other modules
38336         * modules/chown (Depends-on): Add stat.
38337         * modules/euidaccess (Depends-on): Likewise.
38338         * modules/fchdir (Depends-on): Likewise.
38339         * modules/isdir (Depends-on): Likewise.
38340         * modules/link (Depends-on): Likewise.
38341         * modules/lstat (Depends-on): Likewise.
38342         * modules/mkdir-p (Depends-on): Likewise.
38343         * modules/modechange (Depends-on): Likewise.
38344         * modules/open (Depends-on): Likewise.
38345         * modules/readlink (Depends-on): Likewise.
38346         * modules/same (Depends-on): Likewise.
38347
38348         stat: fix Solaris 9 bug
38349         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
38350         slash.
38351         * lib/stat.c (rpl_stat): Work around it.
38352         * doc/posix-functions/stat.texi (stat): Update documentation.
38353
38354         stat: new module, for mingw bug
38355         * modules/stat: New file.
38356         * lib/stat.c: Likewise.
38357         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
38358         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
38359         * modules/sys_stat (Makefile.am): Use them.
38360         * lib/sys_stat.in.h (stat): Declare replacement.
38361         * lib/openat.c (fstatat): Deal with lstat and stat being function
38362         macros.
38363         * modules/openat (Depends-on): Add inline.
38364         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
38365         * doc/posix-functions/stat.texi (stat): Likewise.
38366         * modules/stat-tests: New test.
38367         * tests/test-stat.c: Likewise.
38368
38369 2009-09-19  Jim Meyering  <meyering@redhat.com>
38370
38371         syntax-check: detect unnecessary inclusion of canonicalize.h
38372         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
38373
38374 2009-09-19  Eric Blake  <ebb9@byu.net>
38375
38376         canonicalize-lgpl: adjust clients to use correct header
38377         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
38378         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
38379         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
38380         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
38381         * lib/progreloc.c (includes): Likewise.
38382
38383 2009-09-19  Jim Meyering  <meyering@redhat.com>
38384
38385         test-posixtm.c: correct a comment
38386         * tests/test-posixtm.c: Correct first-line comment.
38387         Spotted by Eric Blake.
38388
38389 2009-09-16  Jim Meyering  <meyering@redhat.com>
38390
38391         posixtm-tests: make T const-correct; add a test case
38392         * tests/test-posixtm.c (T): Declare const.
38393         Add a test for -(2^31+1).
38394         Remove useless can-succeed-only-in-2002 test.
38395
38396         posixtm-tests: adjust the sole failing test
38397         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
38398         expected output matches what mktime now produces.  Cross-checked via
38399         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
38400
38401         posixtm: move #ifdef'd tests into a new module
38402         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
38403         * tests/test-posixtm.c: ... this new file.
38404         * modules/posixtm-tests: New module.
38405
38406 2009-09-19  Eric Blake  <ebb9@byu.net>
38407
38408         openat: simplify use of at-func.c
38409         * lib/at-func.c (includes): Include prerequisites here, to
38410         simplify requirements on client files.
38411         * lib/openat-priv.h: Add double-inclusion guard.
38412         * lib/faccessat.c (includes): Simplify.
38413         * lib/fchmodat.c (includes): Likewise.
38414         * lib/fchownat.c (includes): Likewise.
38415         * lib/mkdirat.c (includes): Likewise.
38416         * lib/mkfifoat.c (includes): Likewise.
38417         * lib/symlinkat.c (includes): Likewise.
38418
38419         openat: allow return of fd 0
38420         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
38421         * modules/save-cwd (Depends-on): Replace fcntl-safer with
38422         unistd-safer.
38423         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
38424         <fcntl.h>; this module does not leak fds.
38425         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
38426         must be allowed to return 0, leaving openat_safer to add the
38427         safety.
38428         (openat_permissive): Avoid writing to just-opened fd 2 if
38429         restoring the current directory fails.
38430         * lib/openat-die.c (openat_restore_fail): Add comment.
38431         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
38432         (save_cwd): Guarantee safe fd, but without use of open_safer.
38433         * tests/test-openat.c: New test.
38434         * modules/openat-tests (Files, Makefile.am): Distribute and build
38435         new file.
38436
38437         relocatable-prog-wrapper: fix build
38438         * modules/relocatable-prog-wrapper (Files): Update name of
38439         canonicalize m4 file, broken on 2009-09-17.
38440         Reported by emad hajjar <aleppos@hotmail.com>.
38441
38442 2009-09-19  Bruno Haible  <bruno@clisp.org>
38443
38444         * lib/safe-alloc.h: Use the standard header with GPL copyright.
38445         * lib/safe-alloc.c: Likewise.
38446         Reported by Ian Beckwith <ianb@erislabs.net>.
38447
38448 2009-09-18  Bruno Haible  <bruno@clisp.org>
38449
38450         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
38451         Reported by <erobles@sensacd.com.mx>.
38452
38453 2009-09-17  Eric Blake  <ebb9@byu.net>
38454
38455         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
38456         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
38457         slashes when checking if last component is missing.
38458         * tests/test-canonicalize.c (main): Test this.
38459
38460         canonicalize, canonicalize-lgpl: honor // if distinct from /
38461         * modules/canonicalize (Files): Add double-slash-root.m4.
38462         * modules/canonicalize-lgpl (Files): Likewise.
38463         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
38464         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
38465         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
38466         fallback definition.
38467         (canonicalize_filename_mode): Use it to protect //.
38468         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
38469         (__realpath): Likewise.
38470         * tests/test-canonicalize.c (main): Test this.
38471         * tests/test-canonicalize-lgpl.c (main): Likewise.
38472         * modules/canonicalize-tests (Depends-on): Add same-inode.
38473         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
38474
38475         canonicalize-lgpl: fix glibc bug with trailing slash
38476         * m4/canonicalize-lgpl.m4: Move contents...
38477         * m4/canonicalize.m4: ...here.
38478         (gl_CANONICALIZE_LGPL): Factor realpath check...
38479         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
38480         glibc 2.3.5 bug, fixed 2005-04-27.
38481         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
38482         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
38483         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
38484         * modules/canonicalize-lgpl (Files): Manage file rename.
38485         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
38486         * modules/stdlib (Makefile.am): Substitute witness.
38487         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
38488         is needed.
38489         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
38490         replacement is required.
38491         * lib/canonicalize.c (canonicalize_file_name): Likewise.
38492         * doc/glibc-functions/canonicalize_file_name.texi
38493         (canonicalize_file_name): Document this.
38494         * doc/posix-functions/realpath.texi (realpath): Likewise.
38495
38496         canonicalize-lgpl: reject non-directory with trailing slash
38497         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
38498         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
38499         catches failures in glibc 2.3.5.
38500         * tests/test-canonicalize.c (main): Likewise.
38501
38502         canonicalize-lgpl: use native realpath if it works
38503         * lib/canonicalize-lgpl.c (realpath): Guard with
38504         FUNC_REALPATH_WORKS.
38505         * lib/stdlib.in.h (realpath): Make declaration optional based on
38506         HAVE_REALPATH.
38507         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
38508         native realpath works.
38509         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
38510         * modules/stdlib (Makefile.am): Substitute witness.
38511
38512         canonicalize, canonicalize-lgpl: use <stdlib.h>
38513         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
38514         (Include): Mention <stdlib.h>.
38515         (configure.ac): Mention functions we provide.
38516         * modules/canonicalize (configure.ac): Likewise.
38517         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
38518         realpath if canonicalize_file_name is missing.
38519         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
38520         * modules/stdlib (Makefile.am): Substitute witnesses.
38521         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
38522         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
38523         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
38524         * NEWS: Document this.
38525         * doc/glibc-functions/canonicalize_file_name.texi
38526         (canonicalize_file_name): Likewise.
38527         * doc/posix-functions/realpath.texi (realpath): Likewise.
38528         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
38529
38530         test-canonicalize: consolidate into single C program
38531         * tests/test-canonicalize.sh: Delete; move setup into...
38532         * tests/test-canonicalize.c (main): ...the program, making it
38533         easier to run in debugger.  Add some tests.
38534         * modules/canonicalize-tests (Files): Remove unused file.
38535         (Depends-on): Add progname.
38536         (configure.ac, Makefile.am): Simplify.
38537
38538         test-canonicalize-lgpl: consolidate into single C program
38539         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
38540         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
38541         easier to run in debugger.  Add some tests.
38542         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
38543         (configure.ac, Makefile.am): Simplify.
38544
38545         canonicalize: avoid resolvepath
38546         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
38547         unnecessary checks.
38548         * lib/canonicalize.c (includes): Simplify.
38549         (canonicalize_file_name): Drop resolvepath implementation.
38550         * modules/canonicalize (Depends-on): Drop filenamecat.
38551
38552         canonicalize: don't lose errno
38553         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
38554         over calls to free.
38555
38556         canonicalize: simplify errno handling
38557         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
38558         assignment.
38559
38560         canonicalize, canonicalize-lgpl: update module dependencies
38561         * modules/canonicalize (Depends-on): Add extensions, lstat,
38562         pathmax, stdlib.
38563         (Files): Drop pathmax.h.
38564         (configure.ac): Adjust macro name.
38565         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
38566         lstat, stdlib, sys_stat.
38567         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
38568         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
38569         extensions.
38570         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
38571         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
38572         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
38573         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
38574         declaration, if available.
38575         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
38576         we can rely on the readlink module.
38577         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
38578         (includes): Use <unistd.h> unconditionally.
38579
38580 2009-09-17  Eric Blake  <ebb9@byu.net>
38581
38582         maint: make Include sections of modules consistent
38583         * modules/alloca: Use only header name; no need to list #include.
38584         * modules/alloca-opt: Likewise.
38585         * modules/arpa_inet: Likewise.
38586         * modules/canon-host: Likewise.
38587         * modules/configmake: Likewise.
38588         * modules/dirent: Likewise.
38589         * modules/eealloc: Likewise.
38590         * modules/environ: Likewise.
38591         * modules/fchdir: Likewise.
38592         * modules/fcntl: Likewise.
38593         * modules/fcntl-h: Likewise.
38594         * modules/gethrxtime: Likewise.
38595         * modules/gettime: Likewise.
38596         * modules/ignore-value: Likewise.
38597         * modules/inet_ntop: Likewise.
38598         * modules/inet_pton: Likewise.
38599         * modules/inttypes: Likewise.
38600         * modules/isnand-nolibm: Likewise.
38601         * modules/isnanf-nolibm: Likewise.
38602         * modules/mbchar: Likewise.
38603         * modules/mbfile: Likewise.
38604         * modules/mbiter: Likewise.
38605         * modules/mbuiter: Likewise.
38606         * modules/netdb: Likewise.
38607         * modules/netinet_in: Likewise.
38608         * modules/nproc: Likewise.
38609         * modules/pagealign_alloc: Likewise.
38610         * modules/poll: Likewise.
38611         * modules/printf-frexp: Likewise.
38612         * modules/pthread: Likewise.
38613         * modules/putenv: Likewise.
38614         * modules/random_r: Likewise.
38615         * modules/relocatable-prog: Likewise.
38616         * modules/search: Likewise.
38617         * modules/select: Likewise.
38618         * modules/selinux-h: Likewise.
38619         * modules/settime: Likewise.
38620         * modules/signal: Likewise.
38621         * modules/size_max: Likewise.
38622         * modules/socklen: Likewise.
38623         * modules/ssize_t: Likewise.
38624         * modules/stdarg: Likewise.
38625         * modules/stdbool: Likewise.
38626         * modules/stddef: Likewise.
38627         * modules/stdint: Likewise.
38628         * modules/stdio: Likewise.
38629         * modules/stdlib: Likewise.
38630         * modules/string: Likewise.
38631         * modules/strings: Likewise.
38632         * modules/sys_file: Likewise.
38633         * modules/sys_ioctl: Likewise.
38634         * modules/sys_select: Likewise.
38635         * modules/sys_socket: Likewise.
38636         * modules/sys_stat: Likewise.
38637         * modules/sys_time: Likewise.
38638         * modules/sys_times: Likewise.
38639         * modules/sys_utsname: Likewise.
38640         * modules/sys_wait: Likewise.
38641         * modules/sysexits: Likewise.
38642         * modules/time: Likewise.
38643         * modules/times: Likewise.
38644         * modules/tmpfile: Likewise.
38645         * modules/trim: Likewise.
38646         * modules/unistd: Likewise.
38647         * modules/wchar: Likewise.
38648         * modules/wctype: Likewise.
38649
38650 2009-09-17  Bruno Haible  <bruno@clisp.org>
38651
38652         Make getdate.y compile on QNX and NetBSD 5 / i386.
38653         * m4/getdate.m4 (gl_GETDATE): Conditionally define
38654         TIME_T_FITS_IN_LONG_INT.
38655         * lib/getdate.y (long_time_t): New type.
38656         (relative_time): Change type of 'seconds' field to long_time_t.
38657         (get_date): Update types of local variables. Check against overflow
38658         during conversion from long_time_t to time_t.
38659         Reported by Matt Kraai <kraai@ftbfs.org>
38660         and Hasso Tepper <hasso@netbsd.org>.
38661
38662 2009-09-17  Bruno Haible  <bruno@clisp.org>
38663
38664         * modules/COPYING: Update copyright years.
38665         * modules/README: Likeiwse.
38666         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
38667         Reported by Ian Beckwith <ianb@erislabs.net>.
38668
38669 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
38670
38671         * users.txt: Update references for gnuit package.
38672
38673 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
38674
38675         * m4/getdelim.m4: Fix typo in copyright line.
38676
38677 2009-09-17  Bruno Haible  <bruno@clisp.org>
38678
38679         * lib/atoll.c: Use the standard header with GPL copyright.
38680         * lib/argz.in.h: Likewise.
38681         * lib/glob.c: Likewise.
38682         * lib/glob-libc.h: Likewise.
38683         * lib/random_r.c: Likewise.
38684         * lib/siglist.h: Likewise.
38685         * lib/strsignal.c: Likewise.
38686         Reported by Ian Beckwith <ianb@erislabs.net>.
38687
38688 2009-09-17  Eric Blake  <ebb9@byu.net>
38689
38690         rmdir: ensure correct dependency order
38691         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
38692
38693 2009-09-17  Bruno Haible  <bruno@clisp.org>
38694
38695         Disable assertion that fails on NetBSD 5 / i386.
38696         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
38697         Reported by Sam Steingold <sds@gnu.org>
38698         and Hasso Tepper <hasso@netbsd.org>.
38699
38700 2009-09-16  Eric Blake  <ebb9@byu.net>
38701
38702         unlinkdir: port to mingw
38703         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
38704         on which no one can unlink a directory.
38705
38706         stdlib: sort witness names
38707         * modules/stdlib (Makefile.am): Sort replacements.
38708         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
38709         * lib/stdlib.in.h: Likewise.
38710
38711         parse-duration-tests: avoid link failure
38712         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
38713         LIBINTL.
38714         Reported by Tom G. Christensen.
38715
38716         openat-tests: ensure unlinkat behaves like rmdir
38717         * tests/test-rmdir.c (main): Factor guts...
38718         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
38719         * modules/rmdir-tests (Files): Ship new file.
38720         * modules/openat-tests: New test.
38721         * tests/test-unlinkat.c: Likewise.
38722
38723         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
38724         * modules/rmdir-errno (Status, Notice): Now obsolete.
38725
38726         rmdir: work around cygwin 1.5.x and mingw bugs
38727         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
38728         * lib/rmdir.c (rmdir): Work around it.
38729         * modules/rmdir (Status, Notice): No longer obsolete.
38730         (Files): Add dos.m4.
38731         (Depends-on): Add unistd.
38732         (configure.ac): Set witnesses.
38733         (License): Relax to LGPLv2+.
38734         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
38735         * modules/unistd (Makefile.am): Substitute witnesses.
38736         * lib/unistd.in.h (rmdir): Declare replacement.
38737         * doc/posix-functions/rmdir.texi (rmdir): Document this.
38738         * modules/rmdir-tests: New tests.
38739         * tests/test-rmdir.c: Likewise.
38740
38741 2009-09-15  Eric Blake  <ebb9@byu.net>
38742
38743         fchdir: improve use of replacement functions
38744         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
38745         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
38746         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
38747         REPLACE_CLOSEDIR.
38748         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
38749         * modules/sys_stat (Makefile.am): Substitute correct witness.
38750         * modules/dirent (Makefile.am): Likewise.
38751         * modules/unistd (Makefile.am): Likewise.
38752         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
38753         * lib/unistd.in.h (dup): Likewise.
38754         * lib/sys_stat.in.h (fstat): Likewise.
38755
38756         maint: ignore gnulib-tool temp files
38757         * .gitignore: Ignore files created during gnulib-tool --test.
38758
38759 2009-09-13  Jim Meyering  <meyering@redhat.com>
38760
38761         posixtm: don't reject a time that specify "60" as the number of seconds
38762         * lib/posixtm.c (posixtime): The code to reject invalid dates
38763         would also reject a time specified with the .60 suffix.
38764         But POSIX allows that, in order to accommodate leap seconds.
38765         So don't reject it.
38766         (main): Adjust tests accordingly.
38767         * modules/posixtm (Depends-on): Add stpcpy.
38768
38769 2009-09-11  Jim Meyering  <meyering@redhat.com>
38770
38771         announce-gen: include [$release_type] in emitted Subject:
38772         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
38773         e.g., [stable] in the emitted Subject: line.
38774
38775 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38776
38777         Remove obsolete macros from several modules.
38778         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
38779         obsolete Autoconf macros with their modern counterparts.
38780         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
38781         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
38782         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
38783         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
38784         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
38785         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
38786         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
38787         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
38788         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
38789         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
38790         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
38791         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
38792         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
38793         * m4/sockets.m4 (gl_SOCKETS): Likewise.
38794         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
38795         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
38796         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
38797         * m4/time_r.m4 (gl_TIME_R): Likewise.
38798         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
38799         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
38800         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
38801
38802         Fix copyright header in build-aux scripts.
38803         * build-aux/git-version-gen: Fix copyright header to match GPLv3
38804         recommendation.
38805         * build-aux/ncftpput-ftp: Likewise.
38806         * build-aux/update-copyright: Likewise.
38807
38808 2009-09-09  Eric Blake  <ebb9@byu.net>
38809
38810         test-link: allow Linux choice of errno
38811         * tests/test-link.c (main): Relax test for alternate error.
38812
38813         strndup: fix improper m4 caching
38814         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
38815         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
38816         (gl_PREREQ_STRNDUP): Delete.
38817         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
38818         * modules/string (Makefile.am): Substitute it.
38819         * lib/string.in.h (strndup): Modernize prototype.
38820
38821         getcwd: port to mingw
38822         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
38823         different from the POSIX assumptions made throughout the getcwd
38824         module; fortunately, the mingw getcwd does not need replacement.
38825         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
38826         * modules/getcwd-tests: New test.
38827         * tests/test-getcwd.c: Likewise.
38828
38829         link: fix platform bugs
38830         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
38831         * lib/link.c (link): Work around them.  Fix related mingw bug.
38832         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
38833         * modules/unistd (Makefile.am): Substitute it.
38834         * lib/unistd.in.h (link): Declare replacement.
38835         * doc/posix-functions/link.texi (link): Document this.
38836         * modules/link (Depends-on): Add strdup-posix, sys_stat.
38837
38838         test-link: consolidate into single C program, test more cases
38839         * tests/test-link.sh: Delete.
38840         * tests/test-link.c: Test more error conditions.  Exposes bugs on
38841         at least Cygwin and Solaris.
38842         * modules/link-tests (Files): Remove unused file.
38843         (Depends-on): Add errno, sys_stat.
38844         (Makefile.am): Simplify.
38845
38846 2009-09-08  Bruno Haible  <bruno@clisp.org>
38847
38848         Work around towlower, towupper bug on mingw.
38849         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
38850         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
38851         * doc/posix-functions/towlower.texi: Mention the mingw bug.
38852         * doc/posix-functions/towupper.texi: Likewise.
38853         Reported by Eric Blake.
38854
38855 2009-09-08  Jim Meyering  <meyering@redhat.com>
38856
38857         build: don't try to run autoheader if we don't use it
38858         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
38859         is not used in configure.ac.
38860
38861 2009-09-08  Eric Blake  <ebb9@byu.net>
38862
38863         euidaccess: fix compilation error
38864         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
38865
38866         rawmemchr: relax license
38867         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
38868         okay.
38869         Reported by Jim Meyering.
38870
38871         mkfifoat: new module
38872         * modules/mkfifoat: New file.
38873         * lib/mkfifoat.c: Likewise.
38874         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
38875         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
38876         * modules/sys_stat (Makefile.am): Use them.
38877         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
38878         * MODULES.html.sh (File system functions): Mention module.
38879         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
38880         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
38881         * modules/mkfifoat-tests: New test.
38882         * tests/test-mkfifoat.c: Likewise.
38883
38884         strchrnul: relax license
38885         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
38886         okay.
38887         Reported by Jim Meyering.
38888
38889 2009-09-08  Eric Blake  <ebb9@byu.net>
38890
38891         fstatat: fix compilation on Solaris
38892         * lib/fstatat.c (includes): Add fcntl.h.
38893         Reported by Pádraig Brady.
38894
38895 2009-09-07  Eric Blake  <ebb9@byu.net>
38896
38897         rename: modernize replacement
38898         * modules/rename (Depends-on): Add stdio.
38899         (configure.ac): Declare witness.
38900         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
38901         stdio take care of replacement.
38902         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
38903         * modules/stdio (Makefile.am): Substitute them.
38904         * lib/stdio.in.h (rename): Declare replacement.
38905         * lib/rename.c (includes): Allow cross-compilation to non-windows
38906         machines.
38907         * doc/posix-functions/rename.texi (rename): Improve
38908         documentation.
38909
38910         stdio: sort witness names
38911         * modules/stdio (Makefile.am): Sort replacements.
38912         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
38913         * lib/stdio.in.h: Likewise.
38914
38915         getcwd: minor cleanups
38916         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
38917         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
38918
38919         openat: provide more convenience names
38920         * modules/faccessat (configure.ac): Add C witness.
38921         * lib/unistd.in.h (readlinkat): Fix typo.
38922         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
38923         convenience wrappers.
38924         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
38925         wrappers in syntax checks.
38926
38927 2009-09-06  Eric Blake  <ebb9@byu.net>
38928
38929         doc: fix comments in recent patches
38930         * lib/faccessat.c: Mention correct function.
38931         * lib/fchmodat.c: Likewise.
38932         * lib/fchownat.c: Likewise.
38933         * lib/symlinkat.c: Likewise.
38934         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
38935         constants.
38936
38937         faccessat, symlinkat: continue cleanup of previous patch
38938         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
38939         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
38940         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
38941         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
38942         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
38943         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
38944         set.
38945
38946 2009-09-06  Bruno Haible  <bruno@clisp.org>
38947
38948         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
38949         (fstatat): Declare if GNULIB_FSTATAT is set.
38950         (mkdirat): Declare if GNULIB_MKDIRAT is set.
38951         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
38952         (unlinkat): Declare if GNULIB_UNLINKAT is set.
38953         * modules/fcntl-h (Files): Remove m4/openat.m4.
38954         * modules/sys_stat (Files): Remove m4/openat.m4.
38955         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
38956         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
38957         * modules/unistd (Files): Remove m4/openat.m4.
38958         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
38959         GNULIB_OPENAT.
38960         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
38961         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
38962         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
38963         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
38964         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
38965         gl_OPENAT_DEFAULTS.
38966         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
38967         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
38968         Don't require gl_OPENAT_DEFAULTS.
38969         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
38970         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
38971         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
38972         (gl_OPENAT_DEFAULTS): Remove macro.
38973
38974 2009-09-06  Bruno Haible  <bruno@clisp.org>
38975
38976         * modules/openat (configure.ac): Remove unneeded witness.
38977
38978 2009-09-06  Bruno Haible  <bruno@clisp.org>
38979
38980         Set errno to ENOSYS when a function is entirely unsupported.
38981         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
38982         EOPNOTSUPP.
38983         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
38984         * modules/chown (Depends-on): Remove errno.
38985
38986 2009-09-06  Bruno Haible  <bruno@clisp.org>
38987
38988         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
38989
38990 2009-09-06  Bruno Haible  <bruno@clisp.org>
38991
38992         * lib/sys_stat.in.h: Fix preprocessor command indentation.
38993
38994 2009-09-06  Ben Pfaff  <blp@gnu.org>
38995             Bruno Haible  <bruno@clisp.org>
38996
38997         Work around a glibc bug in strtok_r.
38998         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
38999         Undefine if UNDEFINE_STRTOK_R is set.
39000         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
39001         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
39002         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
39003         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
39004         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
39005         UNDEFINE_STRTOK_R.
39006         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
39007
39008 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
39009
39010         exclude: minor fix
39011         * lib/exclude.c: Include wctype.h
39012
39013 2009-09-06  Akim Demaille  <demaille@gostai.com>
39014
39015         bootstrap: improve error message
39016         * build-aux/bootstrap (find_tool): Upon failure, report the list
39017         of candidates.
39018         Honor the initial value of the envvar.
39019
39020 2009-09-05  Eric Blake  <ebb9@byu.net>
39021
39022         symlinkat: new module
39023         * modules/symlinkat: New file.
39024         * lib/symlinkat.c: Likewise.
39025         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
39026         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
39027         * modules/unistd (Makefile.am): Use them.
39028         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
39029         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
39030         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
39031         * MODULES.html.sh (File system functions): Mention module.
39032         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
39033         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
39034         * modules/symlinkat-tests: New test.
39035         * tests/test-symlinkat.c: Likewise.
39036
39037         test-openat-safer: add more checks
39038         * tests/test-openat-safer.c (main): Check more code paths.
39039
39040 2009-09-05  Jim Meyering  <meyering@redhat.com>
39041
39042         syntax-check: detect unnecessary inclusion of openat.h
39043         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
39044
39045 2009-09-05  Bruno Haible  <bruno@clisp.org>
39046
39047         Support towlower, towupper.
39048         * doc/posix-functions/towlower.texi: Mention module wctype.
39049         * doc/posix-functions/towupper.texi: Likewise.
39050         * lib/wctype.in.h (towlower, towupper): New functions.
39051         * tests/test-wctype.c: Include stdio.h, stdlib.h.
39052         (ASSERT): New macro.
39053         (e): New variable.
39054         (main): Test also towlower, towupper. Test WEOF argument.
39055         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
39056
39057 2009-09-05  Bruno Haible  <bruno@clisp.org>
39058
39059         Fix conversion behaviour when the input is invalid.
39060         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
39061         mark occurring in first pass of indirect conversion.
39062         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
39063         input.
39064         Found by clang's static analyzer.
39065
39066 2009-09-05  Bruno Haible  <bruno@clisp.org>
39067
39068         * tests/test-striconveh.c (main): Test indirect conversion on platforms
39069         where direct conversion is possible.
39070
39071 2009-09-04  Eric Blake  <ebb9@byu.net>
39072
39073         openat: fail with ENOENT on empty name
39074         * lib/openat-proc.c (openat_proc_name): Special-case the empty
39075         buffer.
39076
39077         link-follow: fix logic bug in prior patch
39078         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
39079         reversed sense of yes and no in prior patch.  Avoid confusing
39080         compilation failure with desired semantics.
39081
39082         link-follow: accomodate mingw and cross-compilation
39083         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
39084         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
39085         cross-compilation results to -1, to make linkat easier to
39086         implement when cross-compiling.  Trivially support mingw.
39087         * modules/link-follow (configure.ac): Call new name.
39088         * NEWS: Mention this.
39089
39090 2009-09-03  Eric Blake  <ebb9@byu.net>
39091
39092         faccessat: compile replacement
39093         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
39094         needed.
39095
39096         fts: fix compilation error
39097         * lib/fts.c (includes): Re-add "openat.h", for
39098         openat_needs_fchdir.
39099
39100         faccessat: new module
39101         * modules/faccessat: New file.
39102         * lib/faccessat.c: Likewise.
39103         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
39104         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
39105         * modules/unistd (Makefile.am): Use it.
39106         * lib/unistd.in.h (faccessat): Declare it.
39107         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
39108         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
39109         * MODULES.html.sh (File system functions): Mention it.
39110         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
39111         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
39112
39113         euidaccess: prefer POSIX over non-standard implementation
39114         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
39115         * lib/euidaccess.c (euidaccess): Use it if available.
39116
39117         openat: make template easier to use
39118         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
39119         AT_FUNC_F2 to be undefined.
39120         (VALIDATE_FLAG): New macro; use it to reject bad flags.
39121         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
39122         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
39123         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
39124         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
39125         Likewise.
39126         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
39127         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
39128         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
39129         Likewise.
39130
39131         openat: declare in POSIX headers
39132         * NEWS: Mention this.
39133         * modules/openat (configure.ac): Declare witnesses.
39134         (Depends-on): Add fcntl-h, sys_stat, unistd.
39135         (Include): Mention correct headers.
39136         * modules/fcntl-h (Depends-on): Add link-warning.
39137         (Files): Add openat.m4.
39138         (Makefile.am): Substitute witnesses.
39139         * modules/sys_stat (Files, Makefile.am): Likewise.
39140         * modules/unistd (Files, Makefile.am): Likewise.
39141         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
39142         (gl_OPENAT_DEFAULTS): New macro.
39143         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
39144         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
39145         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
39146         (SYS_STAT_H): Remove unused variable.
39147         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
39148         * lib/fcntl--.h (includes): Remove unneeded header.
39149         * lib/openat-safer.c (includes): Likewise.
39150         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
39151         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
39152         appropriate headers.
39153         (__OPENAT_PREFIX): Delete.
39154         * lib/fcntl.in.h (openat): Provide declaration.
39155         (AT_FDCWD): Fix Solaris bug.
39156         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
39157         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
39158         * lib/fchmodat.c (includes):  Adjust to find declaration.
39159         * lib/fchownat.c (includes): Likewise.
39160         * lib/mkdirat.c (includes): Likewise.
39161         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
39162         still visible.
39163
39164 2009-09-02  Eric Blake  <ebb9@byu.net>
39165
39166         errno: use consistently
39167         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
39168         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
39169         * lib/canonicalize.c (ELOOP): Likewise.
39170         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
39171         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
39172         * lib/lchown.c (EOPNOTSUPP): Likewise.
39173         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
39174         * lib/savewd.c (ESTALE): Likewise.
39175         * lib/settime.c (ENOSYS): Likewise.
39176         * lib/utimens.c (ENOSYS): Likewise.
39177         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
39178         * lib/chdir-safer.c (ELOOP): Likewise.
39179         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
39180         * modules/c-stack (Depends-on): Add errno.
39181         * modules/canonicalize (Depends-on): Likewise.
39182         * modules/chdir-safer (Depends-on): Likewise.
39183         * modules/fdopendir (Depends-on): Likewise.
39184         * modules/inet_ntop (Depends-on): Likewise.
39185         * modules/inet_pton (Depends-on): Likewise.
39186         * modules/lchown (Depends-on): Likewise.
39187         * modules/openat (Depends-on): Likewise.
39188         * modules/savewd (Depends-on): Likewise.
39189         * modules/settime (Depends-on): Likewise.
39190         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
39191
39192         fts: avoid leaking fds
39193         * modules/fts (Depends-on): Add cloexec.
39194         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
39195         flag.
39196
39197         fts: make directory fds more robust
39198         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
39199         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
39200
39201         backupfile, chdir-long, fts, savedir: make safer
39202         * lib/backupfile.c (includes): Use "dirent--.h", since
39203         numbered_backup can write to stderr during readdir.
39204         * lib/savedir.c (includes): Likewise.
39205         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
39206         emulation can write to stderr on failure.
39207         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
39208         * lib/getcwd.c: Document why opendir_safer is unused.
39209         * lib/glob.c: Likewise.
39210         * lib/scandir.c: Likewise.
39211         * lib/openat-proc.c: Likewise, for open_safer.
39212         * modules/backupfile (Depends-on): Add dirent-safer.
39213         * modules/savedir (Depends-on): Likewise.
39214         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
39215         * modules/chdir-long (Depends-on): Add openat-safer.
39216
39217         openat-safer: new module
39218         * modules/openat-safer: New file.
39219         * lib/openat-safer.c: Likewise.
39220         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
39221         * lib/fcntl-safer.h (openat_safer): Declare.
39222         * lib/fcntl--.h (openat): Override.
39223         * MODULES.html.sh (File descriptor based I/O): Mention it.
39224         * lib/openat.h: Add double-inclusion guards.
39225         * lib/openat.c (includes): Only include "fcntl-safer.h", not
39226         "fcntl--.h", so we can implement openat.
39227         * modules/openat-safer-tests: New test.
39228         * tests/test-openat-safer.c: New file.
39229
39230         dirent-safer: new module
39231         * modules/dirent-safer: New file.
39232         * lib/dirent--.h: Likewise.
39233         * lib/dirent-safer.h: Likewise.
39234         * lib/opendir-safer.c: Likewise.
39235         * m4/dirent-safer.m4: Likewise.
39236         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
39237         * modules/dirent-safer-tests: New test.
39238         * tests/test-dirent-safer.c: New file.
39239         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
39240
39241         fdopendir: optimize on mingw
39242         * lib/unistd.in.h (_gl_directory_name): New prototype.
39243         * lib/fchdir.c (_gl_directory_name): Implement it.
39244         (fchdir): Use it to simplify implementation.
39245         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
39246         fchdir, when available, to avoid calling [f]chdir().
39247
39248         fdopendir: split into its own module
39249         * lib/openat.c (fdopendir): Move...
39250         * lib/fdopendir.c: ...into new file.
39251         * modules/fdopendir: New module.
39252         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
39253         * modules/openat (Depends-on): Add fdopendir.
39254         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
39255         fdopendir here.
39256         * modules/savedir (Depends-on): Only need fdopendir, not full
39257         openat.
39258         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
39259         * lib/openat.h (fdopendir): Drop prototype.
39260         * lib/dirent.in.h (fdopendir): Provide prototype.
39261         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
39262         * modules/dirent (Makefile.am): Substitute them.
39263         * MODULES.html.sh (File system functions): Mention it.
39264         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
39265         * modules/fdopendir-tests: New file.
39266         * tests/test-fdopendir.c: Likewise.
39267
39268         fchdir: use more consistent macro convention
39269         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
39270         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
39271         REPLACE_FCHDIR, rather than relying on config.h macros.
39272         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
39273         inside a single make-time REPLACE_FCHDIR block, rather than using
39274         the config.h FCHDIR_REPLACEMENT.
39275         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
39276         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
39277         Manage fstat replacement.
39278         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
39279         REPLACE_FCHDIR.
39280         * modules/sys_stat (Files): Add m4/unistd_h.m4.
39281         (Makefile.am): Substitute REPLACE_FCHDIR.
39282         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
39283         FCHDIR_REPLACEMENT.
39284         * lib/dup-safer.c (dup_safer): Likewise.
39285         * lib/dup2.c (rpl_dup2): Likewise.
39286         * lib/dup3.c (rpl_dup3): Likewise.
39287         * lib/open.c (rpl_open): Likewise.
39288
39289         fchdir: simplify error handling, and support dup3
39290         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
39291         stdbool, malloc-posix, realloc-posix.
39292         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
39293         (ensure_dirs_slot): Return false on allocation failure.
39294         (rpl_dup2): Delete.
39295         (_gl_register_dup): New function.
39296         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
39297         (_gl_register_fd): Close fd on allocation failure.
39298         * lib/fcntl.in.h (_gl_register_fd): Update signature.
39299         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
39300         prototype.
39301         (rpl_dup2_fchdir): Delete prototype.
39302         * lib/open.c (open): Update caller.
39303         * lib/dup2.c (dup2): Track fchdir metadata.
39304         * lib/dup3.c (dup3): Likewise.
39305         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
39306         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
39307
39308 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39309
39310         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
39311         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
39312         don't pass arguments to AC_OUTPUT.
39313
39314 2009-09-02  Bruno Haible  <bruno@clisp.org>
39315
39316         * modules/mkdtemp (License): Relicense under LGPLv2+.
39317         Reported by Paolo Bonzini.
39318
39319 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39320
39321         Replace uses of obsolete autoconf macros in Jim's modules.
39322         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
39323         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
39324         can evoke a warning from autoconf when run with -Wobsolete
39325         enabled.  They were declared obsolete for good reasons (see
39326         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
39327         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
39328         should not continue using the deprecated macros.
39329         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
39330         obsolete Autoconf macros with modern counterparts.
39331         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
39332         * m4/dos.m4 (gl_AC_DOS): Likewise.
39333         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
39334         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
39335         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
39336         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
39337         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
39338         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
39339         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
39340         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
39341         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
39342         Likewise.
39343         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
39344         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
39345         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
39346         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
39347         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
39348         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
39349
39350 2009-09-01  Eric Blake  <ebb9@byu.net>
39351
39352         fchdir: fix off-by-one bug in previous patch
39353         * lib/fchdir.c (rpl_fstat): Use correct bounds.
39354         (_gl_unregister_fd): Delete useless if.
39355
39356 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
39357
39358         maint.mk: sort the list of syntax-check rules
39359         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
39360         easier to get a sense of progress when the rules are run sequentially
39361         and take a long time.
39362
39363 2009-09-01  Simon Josefsson  <simon@josefsson.org>
39364
39365         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
39366         * modules/netinet_in: Likewise.
39367         * modules/sys_file: Likewise.
39368         * modules/sys_ioctl: Likewise.
39369         * modules/sys_select: Likewise.
39370         * modules/sys_socket: Likewise.
39371         * modules/sys_stat: Likewise.
39372         * modules/sys_time: Likewise.
39373         * modules/sys_times: Likewise.
39374         * modules/sys_utsname: Likewise.
39375         * modules/sys_wait: Likewise.
39376
39377 2009-09-01  Jim Meyering  <meyering@redhat.com>
39378
39379         fts: help ensure that return values are not ignored
39380         * lib/fts_.h (__GNUC_PREREQ): Define.
39381         (__attribute_warn_unused_result__): Define.
39382         (fts_children, fts_close, fts_open, fts_read): Declare with
39383         __attribute_warn_unused_result__.
39384
39385         fts: fts_close now fails also when closing a dir file descriptor fails
39386         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
39387         and propagate to caller, along with errno.
39388
39389         announce-gen: correct formatting in --help output
39390         * build-aux/announce-gen (usage): Move the one-line description in
39391         --help output "up", to where it belongs, just after Usage:.
39392
39393 2009-08-31  Eric Blake  <ebb9@byu.net>
39394
39395         fchdir: port to mingw
39396         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
39397         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
39398         opened, then use a substitute.
39399         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
39400         replacement.
39401         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
39402         (_gl_register_fd): No need to check stat if open already filters
39403         all directories.
39404         (fchdir): Fix error condition to match POSIX.
39405         * modules/fchdir (Depends-on): Add sys_stat.
39406         * doc/posix-functions/open.texi (open): Document the limitation.
39407         * modules/fchdir-tests: New file.
39408         * tests/test-fchdir.c: Likewise.
39409
39410         canonicalize: allow cross-testing from cygwin to mingw
39411         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
39412         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
39413         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
39414         Likewise.
39415         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
39416         target does not support symlinks.
39417         * tests/test-canonicalize-lgpl.sh: Likewise.
39418
39419         chown: avoid compilation warning on mingw
39420         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
39421         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
39422         mingw.
39423         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
39424         * modules/chown (Depends-on): Add errno.
39425
39426 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
39427
39428         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
39429         command.
39430
39431 2009-08-31  Jim Meyering  <meyering@redhat.com>
39432
39433         canonicalize: remove useless initialization
39434         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
39435         initialization of local, "end".
39436
39437 2009-08-30  Bruno Haible  <bruno@clisp.org>
39438
39439         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
39440         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
39441         ENOSYS.
39442
39443 2009-08-30  Bruno Haible  <bruno@clisp.org>
39444
39445         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
39446         /usr/xpg4/bin/tr when it exists.
39447         * tests/test-pipe-filter-gi1.sh: Likewise.
39448
39449 2009-08-30  Bruno Haible  <bruno@clisp.org>
39450
39451         Work around deficient /usr/bin/id program on Solaris.
39452         * tests/test-file-has-acl.sh (ID): New variable.
39453         * tests/test-set-mode-acl.sh (ID): Likewise.
39454         * tests/test-copy-acl.sh (ID): Likewise.
39455         * tests/test-copy-file.sh (ID): Likewise.
39456
39457 2009-08-30  Bruno Haible  <bruno@clisp.org>
39458
39459         New module 'xstriconveh'.
39460         * lib/xstriconveh.h: New file.
39461         * lib/xstriconveh.c: New file.
39462         * modules/xstriconveh: New file.
39463
39464 2009-08-30  Bruno Haible  <bruno@clisp.org>
39465
39466         Make it easier to use mem_cd_iconveh.
39467         * lib/striconveh.h (iconveh_t): New type.
39468         (iconveh_open, iconveh_close): New declarations.
39469         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
39470         with a single 'const iconveh_t *' argument.
39471         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
39472         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
39473         with a single 'const iconveh_t *' argument.
39474         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
39475         * tests/test-striconveh.c (main): Update.
39476         * NEWS: Mention the change.
39477
39478 2009-08-30  Bruno Haible  <bruno@clisp.org>
39479
39480         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
39481         problem.
39482
39483 2009-08-30  Bruno Haible  <bruno@clisp.org>
39484
39485         Work around iconv_open problem on Solaris.
39486         * lib/iconv_open-solaris.gperf: New file.
39487         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
39488         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
39489         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
39490         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
39491         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
39492         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
39493
39494 2009-08-29  Jim Meyering  <meyering@redhat.com>
39495
39496         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
39497         * top/maint.mk (cvs-check): Remove target; it was just an alias
39498         to the better-named vc-diff-check.
39499         (maintainer-distcheck): Remove rule.  It was used only from
39500         the (alpha/beta/major) target, and all of its commands but one
39501         were coreutils-specific.
39502         (vc-dist): Remove rule.
39503         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
39504         Run vc-diff-check, not vc-dist.
39505         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
39506
39507 2009-08-27  Bruno Haible  <bruno@clisp.org>
39508
39509         * tests/test-bitrotate.c (main): Remove test that uses a shift count
39510         of 0.
39511
39512 2009-08-27  Bruno Haible  <bruno@clisp.org>
39513
39514         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
39515         compilers.
39516         * doc/func.texi: Document the SunPRO C bug.
39517
39518 2009-08-27  Bruno Haible  <bruno@clisp.org>
39519
39520         Fix link error on Solaris.
39521         * tests/test-parse-duration.c (xstrdup): Remove function.
39522
39523 2009-08-26  Pádraig Brady  <P@draigbrady.com>
39524
39525         ignore-value: handle pointer types, too
39526         * lib/ignore-value.h (__attribute__): Remove definition.
39527         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
39528         of a more concise and more-often effective "(void) i" statement.
39529         (ignore_ptr): New function to suppress warnings from functions that
39530         return pointers, and to make it explicit that one function doesn't
39531         handle all cases.
39532
39533 2009-08-25  Bruno Haible  <bruno@clisp.org>
39534
39535         dup2: work around a Linux bug.
39536         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
39537         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
39538         * doc/posix-functions/dup2.texi: Mention the Linux bug.
39539         Reported by Simon Josefsson.
39540
39541 2009-08-25  Jim Meyering  <meyering@redhat.com>
39542
39543         libguestfs uses gnulib
39544         * users.txt: Add libguestfs.
39545
39546 2009-08-24  Eric Blake  <ebb9@byu.net>
39547
39548         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
39549         * lib/pipe2.c (includes): Add binary-io.h.
39550         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
39551
39552 2009-08-24  Bruno Haible  <bruno@clisp.org>
39553
39554         Tolerate declared but missing accept4 syscall.
39555         * lib/accept4.c (accept4): Invoke original accept4 function first, if
39556         available.
39557         * lib/sys_socket.in.h (accept4): If the function is already present,
39558         override it.
39559         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
39560         * modules/accept4 (Makefile.am): Compile accept4.c always.
39561         Reported by Paolo Bonzini and Eric Blake.
39562
39563 2009-08-23  Bruno Haible  <bruno@clisp.org>
39564
39565         New module 'accept4'.
39566         * lib/sys_socket.in.h (accept4): New declaration.
39567         * lib/accept4.c: New file.
39568         * m4/accept4.m4: New file.
39569         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
39570         GNULIB_ACCEPT4, HAVE_ACCEPT4.
39571         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
39572         HAVE_ACCEPT4.
39573         * modules/accept4: New file.
39574         * doc/glibc-functions/accept4.texi: Mention the new module.
39575
39576 2009-08-24  Jim Meyering  <meyering@redhat.com>
39577
39578         progname: also set global program_invocation_name, when possible
39579         Before this change, a libtool-enabled program that calls glibc's
39580         error function would report the program name as
39581         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
39582         * modules/progname (configure.ac): Check for a declaration of
39583         program_invocation_name.
39584         * lib/progname.c:  Include <errno.h>.
39585         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
39586         Set program_invocation_name.
39587
39588 2009-08-23  Bruno Haible  <bruno@clisp.org>
39589
39590         * lib/dup3.c: Include <string.h>.
39591
39592 2009-08-23  Bruno Haible  <bruno@clisp.org>
39593
39594         * lib/dup3.c (dup3): Test only once whether the system actually exists.
39595         * lib/pipe2.c (pipe2): Likewise.
39596         Suggested by Eric Blake.
39597
39598 2009-08-23  Bruno Haible  <bruno@clisp.org>
39599
39600         Tolerate declared but missing dup3 syscall.
39601         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
39602         * lib/unistd.in.h (dup3): If the function is already present,
39603         override it.
39604         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
39605         * modules/dup3 (Makefile.am): Compile dup3.c always.
39606         Reported by Paolo Bonzini.
39607
39608 2009-08-23  Bruno Haible  <bruno@clisp.org>
39609
39610         Tolerate declared but missing pipe2 syscall.
39611         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
39612         available.
39613         * lib/unistd.in.h (pipe2): If the function is already present,
39614         override it.
39615         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
39616         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
39617         Reported by Paolo Bonzini.
39618
39619 2009-08-23  Bruno Haible  <bruno@clisp.org>
39620
39621         * lib/pipe2.c (pipe2): Move #ifs inside function.
39622
39623 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
39624
39625         quotearg: document limitations of quote_these_too
39626         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
39627         those limitations are created.
39628         * lib/quotearg.h (set_char_quoting): Document that digits and
39629         letters that are special after backslash are not permitted.
39630         (quotearg_char): Cross-reference set_char_quoting documentation.
39631
39632 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
39633
39634         quotearg: implement custom_quoting_style
39635         * lib/quotearg.c: (struct quoting_options): Add left_quote and
39636         right_quote fields.
39637         (set_custom_quoting): New public function.
39638         (quotearg_buffer_restyled): Add left_quote and right_quote
39639         arguments, handle them very much like locale quoting, and update
39640         all uses.
39641         (quotearg_n_custom): New public function.
39642         (quotearg_n_custom_mem): New public function.
39643         (quotearg_custom): New public function.
39644         (quotearg_custom_mem): New public function.
39645         * lib/quotearg.h: Prototype and document new public functions.
39646         (enum quoting_style): For escape_quoting_style and
39647         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
39648         ignored even though they're otherwise like c_quoting_style.
39649         Add custom_quoting_style member and document with comparison to
39650         clocale_quoting_style.
39651         * tests/test-quotearg.c (custom_quotes): New array.
39652         (custom_results): New array.
39653         (main): Extend to test custom quoting.
39654
39655 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
39656
39657         quotearg: fix right quote escaping when it's in quote_these_too
39658         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
39659         quote, be sure to prepend only one backslash.
39660         * tests/test-quotearg.c (use_quote_double_quotes): New function.
39661         (main): Test it.
39662
39663 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
39664
39665         quotearg-tests: test escaping of embedded locale quotes
39666         * tests/test-quotearg.c (struct result_strings): Add member for
39667         new input.
39668         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
39669         (inputs): Add new input.
39670         (results_g): Add expected results.
39671         (flag_results): Likewise.
39672         (locale_results): Likewise.
39673         (compare_strings): Check those.
39674
39675 2009-08-23  Bruno Haible  <bruno@clisp.org>
39676
39677         Tests for module 'dup3'.
39678         * modules/dup3-tests: New file.
39679         * tests/test-dup3.c: New file.
39680
39681         New module 'dup3'.
39682         * lib/unistd.in.h (dup3): New declaration.
39683         * lib/dup3.c: New file.
39684         * m4/dup3.m4: New file.
39685         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
39686         HAVE_DUP3.
39687         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
39688         * modules/dup3: New file.
39689         * doc/glibc-functions/dup3.texi: Mention the new module.
39690
39691 2009-08-23  Bruno Haible  <bruno@clisp.org>
39692
39693         Tweak the dup2 test.
39694         * tests/test-dup2.c (main): Create the test file empty. Verify that an
39695         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
39696         the test file is still empty. Fix argument order of lseek.
39697
39698 2009-08-23  Bruno Haible  <bruno@clisp.org>
39699
39700         Avoid test link errors when the modules getopt-gnu, gettext are used.
39701         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
39702         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
39703
39704 2009-08-23  Bruno Haible  <bruno@clisp.org>
39705
39706         Fix getdtablesize() on mingw.
39707         * lib/getdtablesize.c (getdtablesize): Implement differently.
39708         * lib/unistd.in.h (getdtablesize): Improve comment.
39709
39710 2009-08-23  Bruno Haible  <bruno@clisp.org>
39711
39712         New module 'mkostemp'.
39713         Based on Ulrich Drepper's 2007-08-10 change in glibc.
39714         * lib/stdlib.in.h (mksotemp): New declaration.
39715         * lib/mkostemp.c: New file, from glibc with modifications.
39716         * lib/tempname.h (GT_FILE): Remove outdated comment.
39717         (gen_tempname): Add flags argument.
39718         * lib/tempname.c (__GT_BIGFILE): Remove macro.
39719         (__GT_FILE): Map to 1.
39720         (small_open, large_open): Remove macros.
39721         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
39722         * lib/mkstemp.c (mkstemp): Update.
39723         * lib/mkdtemp.c (mkdtemp): Likewise.
39724         * m4/mkostemp.m4: New file.
39725         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
39726         HAVE_MKOSTEMP.
39727         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
39728         HAVE_MKOSTEMP.
39729         * modules/mkostemp: New file, based on modules/mkstemp.
39730         * doc/glibc-functions/mkostemp.texi: Mention the new module.
39731         * NEWS: Mention the change.
39732
39733 2009-08-23  Bruno Haible  <bruno@clisp.org>
39734
39735         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
39736         Reported by Eric Blake.
39737
39738 2009-08-23  Bruno Haible  <bruno@clisp.org>
39739
39740         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
39741         Reported by Eric Blake.
39742
39743 2009-08-23  Bruno Haible  <bruno@clisp.org>
39744
39745         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
39746         * modules/pipe2 (Depends-on): Likewise.
39747
39748 2009-08-23  Eric Blake  <ebb9@byu.net>
39749
39750         fcntl-h: add O_TTY_INIT support
39751         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
39752         * tests/test-fcntl-h.c (o): Test it.
39753         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
39754
39755         fcntl-h: rename from fcntl, in preparation for fcntl(2)
39756         * modules/fcntl: Move <fcntl.h> header replacement...
39757         * modules/fcntl-h: ...to new name, so as not to collide with
39758         like-named function.
39759         * tests/test-fcntl.c: Rename...
39760         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
39761         * modules/fcntl-tests: Rename...
39762         * modules/fcntl-h-tests: ...to this.  Update test file name.
39763         * modules/chdir-long (Depends-on): Update clients.
39764         * modules/chdir-safer (Depends-on): Likewise.
39765         * modules/fcntl-safer (Depends-on): Likewise.
39766         * modules/fts (Depends-on): Likewise.
39767         * modules/mkancesdirs (Depends-on): Likewise.
39768         * modules/mkdir-p (Depends-on): Likewise.
39769         * modules/open (Depends-on): Likewise.
39770         * modules/savewd (Depends-on): Likewise.
39771         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
39772         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
39773
39774 2009-08-22  Bruno Haible  <bruno@clisp.org>
39775
39776         * modules/binary-io (License): Relicense under LGPL.
39777         * modules/pipe2 (License): Likewise.
39778
39779 2009-08-22  Bruno Haible  <bruno@clisp.org>
39780
39781         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
39782         return value.
39783         * lib/pipe-filter-gi.c (filter_init): Likewise.
39784         Reported by Eric Blake.
39785
39786 2009-08-22  Bruno Haible  <bruno@clisp.org>
39787
39788         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
39789         * modules/pipe (Depends-on): Add pipe2.
39790
39791 2009-08-22  Bruno Haible  <bruno@clisp.org>
39792
39793         Tests for module 'pipe2'.
39794         * modules/pipe2-tests: New file.
39795         * tests/test-pipe2.c: New file.
39796
39797         New module 'pipe2'.
39798         * lib/unistd.in.h (pipe2): New declaration.
39799         * lib/pipe2.c: New file.
39800         * m4/pipe2.m4: New file.
39801         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
39802         HAVE_PIPE2.
39803         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
39804         * modules/pipe2: New file.
39805         * doc/glibc-functions/pipe2.texi: Mention the new module.
39806
39807 2009-08-22  Bruno Haible  <bruno@clisp.org>
39808
39809         Reference some new glibc functions.
39810         * doc/glibc-functions/accept4.texi: New file.
39811         * doc/glibc-functions/dup3.texi: New file.
39812         * doc/glibc-functions/mkostemp.texi: New file.
39813         * doc/glibc-functions/pipe2.texi: New file.
39814         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
39815         (Glibc sys/socket.h): Refer to accept4.
39816         (Glibc unistd.h): Refer to dup3, pipe2.
39817         Reported by Eric Blake.
39818
39819 2009-08-22  Jim Meyering  <meyering@redhat.com>
39820             Bruno Haible  <bruno@clisp.org>
39821
39822         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
39823         This makes it so packages using automake-1.11's silent-rules option
39824         can print e.g., a single "GEN    configmake.h" line, rather than
39825         the 30+ statements that perform the job.  If you want to see the
39826         actual commands, you can still run "make V=1".
39827         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
39828         so that make output is abbreviated when those variables are defined
39829         appropriately.
39830         * modules/argz: Likewise.
39831         * modules/arpa_inet: Likewise.
39832         * modules/byteswap: Likewise.
39833         * modules/configmake: Likewise.
39834         * modules/dirent: Likewise.
39835         * modules/errno: Likewise.
39836         * modules/fcntl: Likewise.
39837         * modules/float: Likewise.
39838         * modules/fnmatch: Likewise.
39839         * modules/getopt-posix: Likewise.
39840         * modules/glob: Likewise.
39841         * modules/iconv_open: Likewise.
39842         * modules/inttypes: Likewise.
39843         * modules/localcharset: Likewise.
39844         * modules/locale: Likewise.
39845         * modules/math: Likewise.
39846         * modules/netdb: Likewise.
39847         * modules/netinet_in: Likewise.
39848         * modules/poll: Likewise.
39849         * modules/posix_spawnp-tests: Likewise.
39850         * modules/sched: Likewise.
39851         * modules/search: Likewise.
39852         * modules/selinux-h: Likewise.
39853         * modules/signal: Likewise.
39854         * modules/spawn: Likewise.
39855         * modules/stdarg: Likewise.
39856         * modules/stdbool: Likewise.
39857         * modules/stddef: Likewise.
39858         * modules/stdint: Likewise.
39859         * modules/stdio: Likewise.
39860         * modules/stdlib: Likewise.
39861         * modules/string: Likewise.
39862         * modules/strings: Likewise.
39863         * modules/sys_file: Likewise.
39864         * modules/sys_ioctl: Likewise.
39865         * modules/sys_select: Likewise.
39866         * modules/sys_socket: Likewise.
39867         * modules/sys_stat: Likewise.
39868         * modules/sys_time: Likewise.
39869         * modules/sys_times: Likewise.
39870         * modules/sys_utsname: Likewise.
39871         * modules/sys_wait: Likewise.
39872         * modules/sysexits: Likewise.
39873         * modules/time: Likewise.
39874         * modules/unistd: Likewise.
39875         * modules/wchar: Likewise.
39876         * modules/wctype: Likewise.
39877
39878 2009-08-22  Jim Meyering  <meyering@redhat.com>
39879
39880         announce-gen: detect write failure
39881         * build-aux/announce-gen: Add Coda at end.
39882         Remove equivalent-but-more-verbose block at top.
39883
39884 2009-08-19  Akim Demaille  <demaille@gostai.com>
39885
39886         bootstrap: --help to stdout.
39887         * bootstrap (usage): Don't send --help to stderr.
39888         Use a here doc instead of a long string.
39889
39890 2009-08-21  Eric Blake  <ebb9@byu.net>
39891
39892         test-popen-safer: split from test-popen
39893         * tests/test-popen.c (main): Move...
39894         * tests/test-popen.h: ...into new file.
39895         * tests/test-popen-safer2.c: New file.
39896         * modules/popen-tests (Files): Add test-popen.h.
39897         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
39898         Suggested by Bruno Haible.
39899
39900         test-fcntl-safer: split from test-open
39901         * tests/test-open.c (main): Move...
39902         * tests/test-open.h: ...into new file.
39903         * tests/test-fcntl-safer.c: New file.
39904         * modules/open-tests (Files): Add test-open.h.
39905         * modules/fcntl-safer-tests: New file.
39906         Suggested by Bruno Haible.
39907
39908         test-fopen-safer: split from test-fopen
39909         * tests/test-fopen.c (main): Move...
39910         * tests/test-fopen.h: ...into new file.
39911         * tests/test-fopen-safer.c: New file.
39912         * modules/fopen-tests (Files): Add test-fopen.h.
39913         * modules/fopen-safer-tests: New file.
39914         Suggested by Bruno Haible.
39915
39916 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
39917
39918         popen-safer: test O_CLOEXEC at run-time.
39919         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
39920
39921 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
39922
39923         fcntl: move more flags to the header
39924         * lib/cloexec.c: Do not define FD_CLOEXEC here.
39925         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
39926         * lib/fcntl.in.h: Do both things here.
39927
39928 2009-08-21  Jim Meyering  <meyering@redhat.com>
39929
39930         consistently remove $@-t before redirecting to it
39931         * modules/argz: Remove $@-t and $@ before redirecting to the former.
39932         * modules/alloca-opt: Likewise.
39933         * modules/byteswap: Likewise.
39934         * modules/fnmatch: Likewise.
39935         * modules/getopt-posix: Likewise.
39936         * modules/glob: Likewise.
39937         * modules/poll: Likewise.
39938         * modules/posix_spawnp-tests: Likewise.
39939         * modules/sys_socket: Likewise.
39940         * modules/sysexits: Likewise.
39941
39942 2009-08-21  Eric Blake  <ebb9@byu.net>
39943
39944         popen: simplify access to original popen
39945         * lib/popen.c (rpl_popen): No need to worry about popen being a
39946         macro.
39947         Reported by Bruno Haible.
39948
39949 2009-08-20  Eric Blake  <ebb9@byu.net>
39950
39951         build: avoid some compiler warnings
39952         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
39953         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
39954         type.
39955         (new_exclude_segment, excluded_file_pattern_p)
39956         (excluded_file_name_p): Reduce scope.
39957         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
39958         old-style declaration.
39959
39960 2009-08-20  Simon Josefsson  <simon@josefsson.org>
39961
39962         * tests/test-exclude1.sh: Handle Windows EOL.
39963         * tests/test-exclude2.sh: Likewise.
39964         * tests/test-exclude3.sh: Likewise.
39965         * tests/test-exclude4.sh: Likewise.
39966         * tests/test-exclude5.sh: Likewise.
39967         * tests/test-exclude6.sh: Likewise.
39968         * tests/test-exclude7.sh: Likewise.
39969
39970 2009-08-19  Akim Demaille  <demaille@gostai.com>
39971
39972         bootstrap: find sha1sum when named gsha1sum.
39973         * bootstrap (find_tool): New.
39974         ($SHA1SUM): New.
39975         Use it.
39976
39977 2009-08-20  Jim Meyering  <meyering@redhat.com>
39978
39979         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
39980         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
39981         expression that converts "." in a file name to "\." in the resulting
39982         regexp.  Start with a dummy statement, so that prior shell variable
39983         definitions are expanded portably.  Reported by Simon Josefsson.
39984
39985 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
39986
39987         Fix polling for writeability of a screen buffer.
39988         * lib/poll.c: Distinguish input and screen buffers for the
39989         Win32 implementation.
39990         * lib/select.c: Likewise.
39991
39992 2009-08-19  Eric Blake  <ebb9@byu.net>
39993
39994         popen-safer: prevent popen from clobbering std descriptors
39995         * modules/popen-safer: New file.
39996         * lib/popen-safer.c: Likewise.
39997         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
39998         * lib/stdio--.h (popen): Provide override.
39999         * lib/stdio-safer.h (popen_safer): Provide declaration.
40000         * tests/test-popen.c (includes): Partially test this.
40001         * modules/popen-safer-tests: New file, for more tests.
40002         * tests/test-popen-safer.c: Likewise.
40003         * MODULES.html.sh (file stream based Input/Output): Mention it.
40004
40005         tests: test some of the *-safer modules
40006         * modules/fopen-safer (Depends-on): Add fopen.
40007         * modules/fcntl-safer (Depends-on): Add fcntl.
40008         * modules/stdlib-safer (Depends-on): Add stdlib.
40009         (configure.ac): Set indicator.
40010         * modules/unistd-safer (configure.ac): Likewise.
40011         * modules/tmpfile-safer (configure.ac): Likewise.
40012         (Depends-on): Add tmpfile.
40013         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
40014         active.
40015         * tests/test-fopen.c (includes): Test safer versions when they are
40016         in use.
40017         * tests/test-open.c (includes): Likewise.
40018
40019         popen: fix cygwin 1.5 bug when stdin closed
40020         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
40021         * modules/popen: New file.
40022         * modules/popen-tests: Likewise.
40023         * tests/test-popen.c: Likewise.
40024         * m4/popen.m4: Likewise.
40025         * lib/popen.c: Likewise.
40026         * lib/stdio.in.h (popen): New declaration.
40027         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
40028         * modules/stdio (Makefile.am): Likewise.
40029         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
40030
40031 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
40032
40033         maint.mk: give full control over update-copyright exclusions
40034         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
40035         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
40036         (update-copyright): Don't force inclusion of top-level
40037         ChangeLog.  Don't force exclusion of all COPYING files, but make
40038         them the default exclusion instead.
40039
40040 2009-08-16  Bruno Haible  <bruno@clisp.org>
40041
40042         Fix test failures on Solaris 10.
40043         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
40044         tests when Solaris iconv() is used.
40045         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
40046         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
40047         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
40048         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
40049         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
40050
40051 2009-08-16  Bruno Haible  <bruno@clisp.org>
40052
40053         Fix test failures on Solaris 10.
40054         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
40055         'tr' program and pass it as first argument.
40056         * tests/test-pipe-filter-gi1.sh: Likewise.
40057         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
40058         program as first argument.
40059         * tests/test-pipe-filter-gi1.c (main): Likewise.
40060
40061 2009-08-16  Eric Blake  <ebb9@byu.net>
40062
40063         fpurge: fix previous commits
40064         * modules/fpurge (Makefile.am): Make replacement conditional,
40065         partially reverting 2007-04-29 change; missed in previous
40066         attempt.
40067         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
40068         is missing.
40069
40070 2009-08-16  Bruno Haible  <bruno@clisp.org>
40071
40072         Clarify fpurge's effect on the file position.
40073         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
40074         * tests/test-fpurge.c (main): Make a second pass for checking the file
40075         position.
40076
40077 2009-08-16  Bruno Haible  <bruno@clisp.org>
40078
40079         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
40080         declaration of fpurge is missing.
40081         * tests/test-fpurge.c (main): Check that the file has not more contents
40082         than expected. Close the file before removing it.
40083
40084 2009-08-15  Eric Blake  <ebb9@byu.net>
40085
40086         fpurge: don't wrap working cygwin implementation
40087         * lib/fpurge.c (fpurge): Fix comment typo.
40088         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
40089         1.7 to avoid replacement.
40090         * tests/test-fpurge.c (main): Enhance test.
40091
40092 2009-08-15  Eric Blake  <ebb9@byu.net>
40093         and Jim Meyering  <meyering@redhat.com>
40094
40095         test-update-copyright: skip if perl is insufficient
40096         * tests/test-update-copyright.sh: Failure to run maintainer tool
40097         should not cause testsuite failure on cygwin 1.5.
40098
40099 2009-08-14  Eric Blake  <ebb9@byu.net>
40100
40101         doc: mention more functions added in cygwin 1.7.0
40102         * doc/posix-headers/limits.texi (limits.h): Update for recent
40103         cygwin additions.
40104         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
40105         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
40106         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
40107         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
40108         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
40109
40110 2009-08-14  Eric Blake  <ebb9@byu.net>
40111
40112         maint.mk: simplify update-copyright rule
40113         * top/maint.mk (update-copyright-local): Delete, and document how
40114         to do it in cfg.mk instead.
40115         (update-copyright-exclude-regexp): Delete, and document how to do
40116         it in .x-update-copyright instead.
40117         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
40118         exclude ChangeLog.
40119
40120 2009-08-14  Bruno Haible  <bruno@clisp.org>
40121
40122         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
40123
40124 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
40125
40126         maint.mk: support update-copyright-env
40127         * top/maint.mk (update-copyright-env): Define place-holder.
40128         (update-copyright): Expand $(update-copyright-env) before
40129         invoking update-copyright.
40130
40131 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
40132
40133         update-copyright: implement forced reformatting
40134         * build-aux/update-copyright: Implement and document
40135         UPDATE_COPYRIGHT_FORCE.
40136         * tests/test-update-copyright.sh: Test it.
40137
40138 2009-08-14  Eric Blake  <ebb9@byu.net>
40139         and Bruno Haible  <bruno@clisp.org>
40140
40141         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
40142         * tests/test-locale.c: Revert previous patch related to NULL.
40143         * tests/test-stdio.c: Likewise.
40144         * tests/test-stdlib.c: Likewise.
40145         * tests/test-string.c: Likewise.
40146         * tests/test-unistd.c: Likewise.
40147         * modules/time-tests (Depends-on): Add verify.
40148         * modules/wchar-tests (Depends-on): Likewise.
40149         * tests/test-time.c: Test for NULL compliance.
40150         * tests/test-wchar.c: Likewise.
40151         * modules/locale (Depends-on): Add stddef.
40152         * modules/stdio (Depends-on): Likewise.
40153         * modules/stdlib (Depends-on): Likewise.
40154         * modules/string (Depends-on): Likewise.
40155         * modules/time (Depends-on): Likewise.
40156         * modules/unistd (Depends-on): Likewise.
40157         * modules/wchar (Depends-on): Likewise.
40158         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
40159         * lib/stdlib.in.h (includes): Likewise.
40160         * lib/string.in.h (includes): Likewise.
40161         * lib/time.in.h (includes): Likewise.
40162         * lib/unistd.in.h (includes): Likewise.
40163         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
40164         replaced.
40165         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
40166         * m4/stddef_h.m4: New file.
40167         * modules/stddef: Likewise.
40168         * lib/stddef.in.h: Likewise.
40169         * modules/stddef-tests: Likewise.
40170         * tests/test-stddef.c: Likewise.
40171         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
40172         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
40173         * doc/posix-headers/locale.texi (locale.h): Likewise.
40174         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
40175         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
40176         * doc/posix-headers/string.texi (string.h): Likewise.
40177         * doc/posix-headers/time.texi (time.h): Likewise.
40178         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
40179         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
40180
40181 2009-08-14  Eric Blake  <ebb9@byu.net>
40182
40183         doc: improve git diff of texinfo files
40184         * .gitattributes: Add rule for *.texi files, with hint on how to
40185         use it.
40186         Copied from m4, and based on a report by Bruno Haible.
40187
40188 2009-08-14  Bruno Haible  <bruno@clisp.org>
40189
40190         Disable multithread support by default on Cygwin 1.5.x for real.
40191         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
40192
40193 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
40194
40195         update-copyright: much ado about intervals
40196         * build-aux/update-copyright: Implement and document
40197         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
40198         of copyright year intervals.
40199         Also, document UPDATE_COPYRIGHT_YEAR.
40200         * tests/test-update-copyright.sh: Test it.
40201
40202         update-copyright: convert 2-digit to 4-digit years
40203         * build-aux/update-copyright: Implement and document.
40204         * tests/test-update-copyright.sh: Update.
40205
40206 2009-08-14  Jim Meyering  <meyering@redhat.com>
40207
40208         test-exclude: avoid coreutils "make check" failure
40209         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
40210         just as in test-argmatch.c.
40211
40212 2009-08-13  Eric Blake  <ebb9@byu.net>
40213
40214         test-dup2: fix bad assumption
40215         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
40216         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
40217
40218         test-version-etc: fix CRLF portability issue
40219         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
40220         recognize \r.
40221         * tests/test-argp-version-etc-1.sh: Likewise.
40222
40223         getopt: update client modules
40224         * modules/argp (Depends-on): Use getopt-gnu.
40225         * modules/git-merge-changelog (Depends-on): Likewise.
40226         * modules/long-options (Depends-on): Likewise.
40227         * modules/xstrtol (Depends-on): Likewise.
40228
40229 2009-08-13  Simon Josefsson  <simon@josefsson.org>
40230
40231         * tests/test-version-etc.sh: Don't fail on different
40232         project/version.  Don't fail on CRLF differences.  Rewrite to use
40233         multiple -e instead of multiple sed forks, suggested by Eric Blake
40234         <ebb9@byu.net>.
40235         * tests/test-argp-version-etc-1.sh: Likewise.
40236
40237 2009-08-13  Simon Josefsson  <simon@josefsson.org>
40238
40239         * tests/test-version-etc.sh: Don't fail on different
40240         project/version.
40241
40242 2009-08-12  Bruno Haible  <bruno@clisp.org>
40243
40244         Tests for modules 'getopt-posix', 'getopt-gnu'.
40245         * modules/getopt-posix-tests: New file.
40246         * tests/test-getopt.c: New file.
40247         * tests/test-getopt.h: New file.
40248         * tests/test-getopt_long.h: New file.
40249
40250         New modules 'getopt-posix', 'getopt-gnu'.
40251         * modules/getopt-gnu: New file, renamed from modules/getopt.
40252         * modules/getopt-posix: New file.
40253         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
40254         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
40255         (gl_GETOPT): Remove macro.
40256         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
40257         Disable the test against BSD systems that declare optreset. Test
40258         against mingw bug. Test against lack of support of optional arguments
40259         on many platforms.
40260         * doc/glibc-headers/getopt.texi: Update module name and list of
40261         relevant platforms.
40262         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
40263         'getopt-gnu' and more portability problems.
40264         * NEWS: Mention the changes.
40265
40266 2009-08-12  Bruno Haible  <bruno@clisp.org>
40267
40268         Ensure that optarg etc. get declared by <unistd.h>.
40269         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
40270         AC_USE_SYSTEM_EXTENSIONS.
40271         * modules/getopt (Depends-on): Add 'extensions'.
40272
40273 2009-08-12  Bruno Haible  <bruno@clisp.org>
40274
40275         Avoid test link errors.
40276         * modules/pipe-filter-ii-tests (Makefile.am): Define
40277         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
40278         * modules/pipe-filter-gi-tests (Makefile.am): Define
40279         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
40280         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
40281
40282 2009-08-12  Bruno Haible  <bruno@clisp.org>
40283
40284         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
40285         gl_GETOPT_SUBSTITUTE before.
40286         (gl_GETOPT): Use it.
40287         * m4/argp.m4 (gl_ARGP): Update.
40288         Reported by Sergey Poznyakoff.
40289
40290         * m4/getopt.m4: Reorder macros.
40291         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
40292         (gl_GETOPT_SUBSTITUTE): Remove macro.
40293
40294 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
40295
40296         Minor improvement in gitlog-to-changelog
40297
40298         * build-aux/gitlog-to-changelog: New option `--format' makes
40299         output format string configurable.
40300
40301 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
40302
40303         Optimize exclude: use hash tables for non-wildcard patterns.
40304
40305         * lib/exclude.c: Include hash.h and mbuiter.h
40306         (struct exclude_pattern, exclude_segment): New data types.
40307         (struct exclude): Rewrite.
40308         (fnmatch_pattern_has_wildcards): New function.
40309         (new_exclude_segment, free_exclude_segment): New functions.
40310         (excluded_file_pattern_p, excluded_file_name_p): New functions.
40311         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
40312         * lib/exclude.h (is_fnmatch_pattern): New prototype.
40313         * modules/exclude: Depend on hash and mbuiter.
40314
40315         * modules/exclude-tests: New file.
40316         * tests/test-exclude.c: New file.
40317         * tests/test-exclude1.sh: New file.
40318         * tests/test-exclude2.sh: New file.
40319         * tests/test-exclude3.sh: New file.
40320         * tests/test-exclude4.sh: New file.
40321         * tests/test-exclude5.sh: New file.
40322         * tests/test-exclude6.sh: New file.
40323         * tests/test-exclude7.sh: New file.
40324
40325 2009-08-12  Bruno Haible  <bruno@clisp.org>
40326
40327         Ensure that getopt() gets declared by <unistd.h>.
40328         * lib/unistd.in.h: Conditionally include getopt.h.
40329         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
40330         Set GNULIB_UNISTD_H_GETOPT.
40331         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
40332         GNULIB_UNISTD_H_GETOPT.
40333         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
40334
40335 2009-08-12  Bruno Haible  <bruno@clisp.org>
40336
40337         Clarify logic.
40338         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
40339         gl_replace_getopt instead of GETOPT_H.
40340
40341 2009-08-12  Bruno Haible  <bruno@clisp.org>
40342
40343         * m4/getopt.m4: Add comments.
40344
40345 2009-08-12  Bruno Haible  <bruno@clisp.org>
40346
40347         Disable multithread support by default on Cygwin 1.5.x.
40348         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
40349         set gl_use_threads=no if not specified otherwise.
40350
40351 2009-08-11  Bruno Haible  <bruno@clisp.org>
40352
40353         Avoid compilation error on NetBSD 5.0.
40354         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
40355         * tests/test-stdio.c: Likewise.
40356         * tests/test-stdlib.c: Likewise.
40357         * tests/test-string.c: Likewise.
40358         * tests/test-unistd.c: Likewise.
40359         Reported by Greg Troxel <gdt@ir.bbn.com>
40360         at <https://savannah.gnu.org/support/?106973>.
40361
40362 2009-08-11  Bruno Haible  <bruno@clisp.org>
40363
40364         * modules/dup2-tests (Depends-on): Remove close.
40365
40366         Undo 2009-07-19 commit.
40367         * modules/acl-tests (Depends-on): Remove close.
40368         * modules/binary-io-tests (Depends-on): Likewise.
40369         * modules/closein-tests (Depends-on): Likewise.
40370         * modules/flock-tests (Depends-on): Likewise.
40371         * modules/fsync-tests (Depends-on): Likewise.
40372         * modules/lseek-tests (Depends-on): Likewise.
40373         * modules/pipe-tests (Depends-on): Likewise.
40374         * modules/posix_spawn-tests (Depends-on): Likewise.
40375         * modules/posix_spawnp-tests (Depends-on): Likewise.
40376         * modules/stat-time-tests (Depends-on): Likewise.
40377         * modules/yesno-tests (Depends-on): Likewise.
40378
40379 2009-08-10  Bruno Haible  <bruno@clisp.org>
40380
40381         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
40382
40383 2009-08-10  Bruno Haible  <bruno@clisp.org>
40384
40385         Fix a gcc warning.
40386         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
40387
40388 2009-08-10  Bruno Haible  <bruno@clisp.org>
40389
40390         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
40391         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
40392         not only the first time.
40393         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
40394         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
40395         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
40396         is 1, not only the the first time.
40397
40398 2009-08-10  Bruno Haible  <bruno@clisp.org>
40399
40400         Make it possible to use module 'gethostname' without module 'close'.
40401         * lib/unistd.in.h (close): Evoke a link error only if
40402         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
40403         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
40404         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
40405         * modules/unistd (Makefile.am): Substitute
40406         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
40407         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
40408         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
40409         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
40410         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
40411         * modules/sys_ioctl (Makefile.am): Substitute
40412         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
40413         * modules/socket (configure.ac): On native Windows, set
40414         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
40415         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
40416         Reported by Sam Steingold <sds@gnu.org>.
40417
40418 2009-08-10  Bruno Haible  <bruno@clisp.org>
40419
40420         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
40421         * modules/ioctl (configure.ac): Likewise.
40422
40423 2009-08-10  Bruno Haible  <bruno@clisp.org>
40424
40425         Avoid collision between gnulib wrapper and libintl wrapper.
40426         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
40427         already defined in intl/printf.c.
40428         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
40429         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
40430
40431 2009-08-09  Bruno Haible  <bruno@clisp.org>
40432
40433         Make <sys/select.h> really self-contained, also on Solaris 10.
40434         * lib/sys_select.in.h: Include <string.h>.
40435         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
40436         Solaris 10 problem.
40437         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
40438         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
40439         Reported by Jim Meyering.
40440
40441 2009-08-09  Bruno Haible  <bruno@clisp.org>
40442
40443         Avoid warnings from 'aclocal' that are due to a use of macro name
40444         AM_XGETTEXT_OPTION that is not defined in automake.
40445         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
40446         automake.
40447         * modules/error (configure.ac): Likewise.
40448         * modules/propername (configure.ac): Likewise.
40449         * modules/vasprintf (configure.ac): Likewise.
40450         * modules/verror (configure.ac): Likewise.
40451         * modules/xprintf (configure.ac): Likewise.
40452         * modules/xvasprintf (configure.ac): Likewise.
40453
40454 2009-08-08  Bruno Haible  <bruno@clisp.org>
40455
40456         Avoid compilation error in C++ mode.
40457         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
40458         Reported by Sam Steingold <sds@gnu.org>.
40459
40460 2009-08-08  Bruno Haible  <bruno@clisp.org>
40461
40462         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
40463         for the various Unix platforms.
40464         * doc/posix-headers/limits.texi: Update platforms list regarding
40465         HOST_NAME_MAX.
40466         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
40467
40468 2009-08-07  Jim Meyering  <meyering@redhat.com>
40469
40470         selinux-at: fix typo in a comment
40471         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
40472         Spotted by Paolo Bonzini.
40473
40474         selinux-at: remove redundant m4 code, add documentation
40475         * modules/selinux-at (configure.ac): Remove redundant code.
40476         LIB_SELINUX is already set via the dependent module, selinux-h.
40477         (Include): Add quotes around selinux-at.h.
40478         * lib/selinux-at.h: Add documentation.
40479         Reported by Bruno Haible in
40480         http://marc.info/?l=gnulib-bug&m=124958988300749
40481
40482 2009-08-07  Bruno Haible  <bruno@clisp.org>
40483
40484         Avoid link error on MacOS X 10.3 and 10.4.
40485         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
40486         on non-ELF systems.
40487         * lib/argp-pv.c (argp_program_version): Likewise.
40488         Reported by Simon Josefsson.
40489
40490 2009-08-07  Simon Josefsson  <simon@josefsson.org>
40491
40492         * tests/test-version-etc.sh: Use $EXEEXT.
40493
40494 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
40495
40496         update-copyright: update documentation to point to maint.mk
40497         * build-aux/update-copyright: Here.
40498
40499 2009-08-06  Jim Meyering  <meyering@redhat.com>
40500
40501         maint.mk: support update-copyright-local
40502         * top/maint.mk (update-copyright-local): Define place-holder.
40503         (update-copyright): Depend on $(update-copyright-local).
40504
40505 2009-08-06  Jim Meyering  <meyering@redhat.com>
40506
40507         selinux-at: new module
40508         Initially written for coreutils, this module will soon be
40509         used by findutils, too.
40510         * MODULES.html.sh [Misc]: Add selinux-at.
40511         * lib/selinux-at.h: New file, from coreutils.
40512         * lib/selinux-at.c: Likewise.
40513         * modules/selinux-at: Likewise.
40514         (License): Change from LGPL to GPL, since it depends
40515         on the GPL'd openat module.
40516
40517         doc: update README
40518         * README: Remove references to cogito.
40519         Remove cvs-repo-updating instructions from 2007.
40520         Don't imply that CVS is better if you have limited disk space.
40521
40522 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
40523
40524         update-copyright: support C-style comments
40525         * build-aux/update-copyright: Implement and document.
40526         * tests/test-update-copyright.sh: Test.
40527
40528 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
40529
40530         update-copyright: support omitted "(C)"
40531         * build-aux/update-copyright: Implement and document.  Also,
40532         allow variable whitespace before "(C)".
40533         * tests/test-update-copyright.sh: Test.
40534
40535 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
40536
40537         update-copyright: don't trip on non-FSF copyright statements
40538         * build-aux/update-copyright: Fix so that the first correctly
40539         formatted FSF copyright statement is recognized no matter what
40540         appears before it.  Update documentation.
40541         * tests/test-update-copyright.sh: Test that.
40542
40543 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
40544
40545         update-copyright: clean up code a little
40546         * build-aux/update-copyright: Append "_re" to the name of any
40547         variable holding a regular expression.
40548         Replace "old" and "new" with "stmt" in variable names.
40549         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
40550         handled correctly.
40551         Format code more consistently.
40552
40553 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
40554
40555         update-copyright-tests: improve portability
40556         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
40557         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
40558
40559 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
40560
40561         update-copyright: support @copyright{} and &copy;
40562         * build-aux/update-copyright: Implement and document.
40563         * tests/test-update-copyright.sh: Test.
40564
40565 2009-08-04  Jim Meyering  <meyering@redhat.com>
40566
40567         update-copyright-tests: correctly test EOL=\r\n handling
40568         * tests/test-update-copyright.sh: Put \r at the end of some lines
40569         for the dos-eol tests.  Based on a patch by Joel E. Denny.
40570
40571         maint.mk: make update-copyright exclusion list more configurable
40572         * top/maint.mk (update-copyright): Default to excluding COPYING,
40573         but allow an override, in case someone does want to update that file.
40574
40575         maint.mk: don't update copyright date in COPYING
40576         * top/maint.mk (update-copyright): Exclude COPYING.
40577
40578         maint.mk: add a copyright-updating rule
40579         * top/maint.mk (update-copyright): New rule.
40580         Derived from coreutils/Makefile.am.
40581
40582         update-copyright: rename some variables
40583         * build-aux/update-copyright: Rename a few variables for clarity.
40584         Tweak syntax.  List Joel E. Denny as coauthor.
40585
40586 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
40587
40588         update-copyright: fix bug for 2-digit last year and add tests
40589         * build-aux/update-copyright: Fix bug.
40590         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
40591         specified.
40592         * modules/update-copyright-tests: New
40593         * tests/test-update-copyright.sh: New.
40594
40595 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
40596
40597         update-copyright: handle leading tabs in line prefix
40598         * build-aux/update-copyright: Count leading tabs as 8 spaces
40599         when computing margin.  This helps with the formatting of
40600         ChangeLogs, for example.
40601         Fix documentation a little.
40602
40603 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
40604
40605         update-copyright: support EOL=\r\n
40606         * build-aux/update-copyright: Implement that.
40607
40608 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
40609
40610         update-copyright: automatically format copyright statements
40611         * build-aux/update-copyright: Implement that.
40612         Also, be a little more predictable and safer by always failing
40613         when the full copyright format is not perfectly recognized as an
40614         unbroken whole.  Discussed at
40615         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
40616         Rewrite documentation.
40617
40618 2009-08-03  Bruno Haible  <bruno@clisp.org>
40619
40620         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
40621
40622 2009-08-02  Bruno Haible  <bruno@clisp.org>
40623
40624         Tests for module 'uname'.
40625         * modules/uname-tests: New file.
40626         * tests/test-uname.c: New file.
40627
40628         New module 'uname'.
40629         * lib/uname.c: New file.
40630         * m4/uname.m4: New file.
40631         * modules/uname: New file.
40632         * doc/posix-functions/uname.texi: Mention the new module.
40633
40634 2009-08-02  Bruno Haible  <bruno@clisp.org>
40635
40636         Tests for module 'sys_utsname'.
40637         * modules/sys_utsname-tests: New file.
40638         * tests/test-sys_utsname.c: New file.
40639
40640         New module 'sys_utsname'.
40641         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
40642         * m4/sys_utsname_h.m4: New file.
40643         * modules/sys_utsname: New file.
40644         * doc/posix-headers/sys_utsname.texi: Mention the new module.
40645
40646 2009-08-02  Bruno Haible  <bruno@clisp.org>
40647
40648         Implicitly initialize the sockets library.
40649         * lib/gethostname.c: Include sockets.h.
40650         (rpl_gethostname): Invoke gl_sockets_startup.
40651         * lib/socket.c: Include sockets.h.
40652         (rpl_socket): Invoke gl_sockets_startup.
40653         * modules/gethostname (Depends-on): Add sockets.
40654         * modules/socket (Depends-on): Likewise.
40655         * tests/test-poll.c: Don't include sockets.h.
40656         (main): Don't invoke gl_sockets_startup.
40657         * tests/test-select.c: Don't include sockets.h.
40658         (main): Don't invoke gl_sockets_startup.
40659
40660 2009-08-02  Bruno Haible  <bruno@clisp.org>
40661
40662         Allow multiple calls to gl_sockets_startup.
40663         * lib/sockets.c (initialized_sockets_version): New variable.
40664         (gl_sockets_startup): Do nothing if already called for this or a higher
40665         version.
40666         (gl_sockets_cleanup): Reset initialized_sockets_version.
40667
40668 2009-08-03  Simon Josefsson  <simon@josefsson.org>
40669
40670         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
40671         different project/version.
40672
40673 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
40674             Bruno Haible  <bruno@clisp.org>
40675
40676         Tests for module 'pipe-filter-gi'.
40677         * modules/pipe-filter-gi-tests: New file.
40678         * tests/test-pipe-filter-gi1.sh: New file.
40679         * tests/test-pipe-filter-gi1.c: New file.
40680         * tests/test-pipe-filter-gi2.sh: New file.
40681         * tests/test-pipe-filter-gi2-main.c: New file.
40682         * tests/test-pipe-filter-gi2-child.c: New file.
40683
40684         New module 'pipe-filter-gi'.
40685         * lib/pipe-filter-gi.c: New file.
40686         * modules/pipe-filter-gi: New file.
40687
40688 2009-08-02  Bruno Haible  <bruno@clisp.org>
40689             Paolo Bonzini  <bonzini@gnu.org>
40690
40691         Tests for module 'pipe-filter-ii'.
40692         * modules/pipe-filter-ii-tests: New file.
40693         * tests/test-pipe-filter-ii1.sh: New file.
40694         * tests/test-pipe-filter-ii1.c: New file.
40695         * tests/test-pipe-filter-ii2.sh: New file.
40696         * tests/test-pipe-filter-ii2-main.c: New file.
40697         * tests/test-pipe-filter-ii2-child.c: New file.
40698
40699         New module 'pipe-filter-ii'.
40700         * lib/pipe-filter.h: New file.
40701         * lib/pipe-filter-ii.c: New file.
40702         * lib/pipe-filter-aux.h: New file.
40703         * modules/pipe-filter-ii: New file.
40704
40705 2009-08-02  Simon Josefsson  <simon@josefsson.org>
40706
40707         * lib/gc-libgcrypt.c: Change copyright to FSF.
40708         * lib/gc-gnulib.c: Likewise.
40709
40710 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
40711
40712         * lib/gethostname.c: Include limits.h.
40713
40714 2009-08-02  Simon Josefsson  <simon@josefsson.org>
40715             Bruno Haible  <bruno@clisp.org>
40716
40717         Ensure HOST_NAME_MAX as part of the gethostname module.
40718         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
40719         define also HOST_NAME_MAX.
40720         * tests/test-gethostname.c: Include <limits.h>.
40721         (main): Check also HOST_NAME_MAX.
40722         * doc/posix-headers/limits.texi: Document the mingw problem.
40723
40724 2009-08-02  Bruno Haible  <bruno@clisp.org>
40725
40726         * lib/gethostname.c (gethostname): Fix handling of large len argument.
40727         Add comments.
40728
40729 2009-03-31  Simon Josefsson  <simon@josefsson.org>
40730
40731         * lib/gethostname.c: Add Windows wrapper.
40732         * m4/gethostname.m4: Look for gethostname in -lws2_32.
40733         * modules/gethostname: Depend on sys_socket & errno, for also
40734         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
40735         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
40736
40737 2009-07-31  Jim Meyering  <meyering@redhat.com>
40738
40739         getloadavg: fix symbol name in comment
40740         * lib/getloadavg.c: Correct a typo I introduced when adding
40741         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
40742         Matt Kraai spotted the problem.
40743
40744 2009-07-29  Matt Kraai  <mkraai@beckman.com>
40745
40746         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
40747         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
40748         code also if ! defined N_NAME_POINTER.
40749         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
40750         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
40751         but the n_name member is a 12-byte array.
40752
40753 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
40754
40755         update-copyright: generalize comment handling
40756         * build-aux/update-copyright: Handle copyright statements
40757         within more comment styles.
40758         Document usage.
40759         Report any file with an external copyright holder or parse failure.
40760
40761 2009-07-29  Jim Meyering  <meyering@redhat.com>
40762
40763         mktime: correct setting of REPLACE_MKTIME
40764         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
40765
40766         update-copyright: new module
40767         * modules/update-copyright: New file.
40768         * build-aux/update-copyright: New file.
40769         * MODULES.html.sh (maint+release support): Add update-copyright.
40770
40771 2009-07-27  Bruno Haible  <bruno@clisp.org>
40772
40773         Fix compilation error when <ctime> is used and mktime is replaced.
40774         * lib/time.in.h (mktime): New declaration.
40775         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
40776         REPLACE_MKTIME instead of defining mktime in config.h.
40777         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
40778         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
40779         Reported by Ross McFarland <rwmcfa1@neces.com>.
40780
40781 2009-07-27  Bruno Haible  <bruno@clisp.org>
40782
40783         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
40784         Reported by Matt Kraai <mkraai@beckman.com>.
40785
40786 2009-07-25  Jim Meyering  <meyering@redhat.com>
40787
40788         maint.mk: avoid warnings about missing files
40789         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
40790         diagnostic when .prev-version does not exist.
40791         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
40792         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
40793         nonexistent cfg.mk.
40794         Suggestions from Simon Josefsson.
40795
40796 2009-07-25  Bruno Haible  <bruno@clisp.org>
40797
40798         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
40799         defined as macros. Needed on QNX 6.4.1.
40800         Reported by Matt Kraai <mkraai@beckman.com>.
40801
40802 2009-07-23  Jim Meyering  <meyering@redhat.com>
40803
40804         maint.mk: invoke "make dist" with a working value of XZ_OPT
40805         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
40806
40807 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
40808
40809         Make fseeko.c compile on QNX.
40810         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
40811
40812 2009-07-22  Peter Simons  <simons@cryp.to>
40813
40814         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
40815         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
40816         * lib/md4.h: Likewise.
40817         * lib/md5.h: Likewise.
40818         * lib/sha1.h: Likewise.
40819         * lib/sha256.h: Likewise.
40820         * lib/sha512.h: Likewise.
40821
40822         tests-sha1: don't assign literal string to 'char *' variable
40823         * tests/test-sha1.c (main): Declare locals with "const" to match
40824         attributes of the right hand side.
40825
40826 2009-07-21  Eric Blake  <ebb9@byu.net>
40827
40828         dup2: fix more mingw problems
40829         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
40830         fd to itself.
40831         * doc/posix-functions/dup2.texi (dup2): Document the bug.
40832         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
40833         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
40834         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
40835         care of mingw bugs.
40836
40837 2009-07-21  Jim Meyering  <meyering@redhat.com>
40838
40839         vc-list-files: avoid failure when /bin/sh is dash
40840         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
40841         On some Debian based systems, /bin/sh is a symlink to dash, and running
40842         this command would omit the "/" following each 'tests' prefix:
40843           dash -x build-aux/vc-list-files -C . tests
40844         That is because bash and dash work differently:
40845           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
40846           bash ok
40847           dash odd
40848
40849 2009-07-21  Eric Blake  <ebb9@byu.net>
40850
40851         dup2-tests: test previous patch
40852         * modules/dup2-tests: New file.
40853         * tests/test-dup2.c: Likewise.
40854         * tests/test-open.c (main): Avoid unspecified behavior.
40855         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
40856         test.
40857
40858         dup2: work around mingw and cygwin 1.5 bug
40859         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
40860         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
40861         * modules/unistd (Makefile.am): Substitute it.
40862         * lib/unistd.in.h (dup2): Declare the replacement.
40863         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
40864         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
40865         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
40866         * modules/execute (Depends-on): Add dup2.
40867         * modules/fseterr (Depends-on): Likewise.
40868         * modules/pipe (Depends-on): Likewise.
40869         * modules/posix_spawn-internal (Depends-on): Likewise.
40870
40871 2009-07-21  Bruno Haible  <bruno@clisp.org>
40872
40873         * modules/.gitattributes: New file.
40874
40875 2009-07-20  Bruno Haible  <bruno@clisp.org>
40876
40877         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
40878         (main): Use it.
40879
40880 2009-07-20  Eric Blake  <ebb9@byu.net>
40881
40882         test-pipe: make a bit more robust.
40883         * tests/test-pipe.c (myerr): Allow error messages regardless of
40884         what we do to stderr.
40885         (test_pipe): Rearrange to avoid deadlock.
40886         (child_main): Try a larger read, to ensure we avoided deadlock.
40887         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
40888         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
40889         if misused.
40890
40891 2009-07-19  Jim Meyering  <meyering@redhat.com>
40892
40893         fts: avoid false-positive cycle-detection
40894         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
40895         for each new command line argument.
40896
40897 2009-07-19  Bruno Haible  <bruno@clisp.org>
40898
40899         Fix build error on mingw with the modules sys_select and unistd.
40900         * modules/acl-tests (Depends-on): Add close.
40901         * modules/binary-io-tests (Depends-on): Likewise.
40902         * modules/closein-tests (Depends-on): Likewise.
40903         * modules/flock-tests (Depends-on): Likewise.
40904         * modules/fsync-tests (Depends-on): Likewise.
40905         * modules/lseek-tests (Depends-on): Likewise.
40906         * modules/pipe-tests (Depends-on): Likewise.
40907         * modules/posix_spawn-tests (Depends-on): Likewise.
40908         * modules/posix_spawnp-tests (Depends-on): Likewise.
40909         * modules/stat-time-tests (Depends-on): Likewise.
40910         * modules/yesno-tests (Depends-on): Likewise.
40911
40912 2009-07-19  Bruno Haible  <bruno@clisp.org>
40913
40914         Unify conditionals.
40915         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
40916         macros, not at the compiler macros.
40917         * lib/pipe.c: Likewise.
40918         * lib/execute.c: Likewise.
40919         * lib/spawni.c: Likewise.
40920
40921 2009-07-19  Bruno Haible  <bruno@clisp.org>
40922
40923         Fix handling of closed stdin/stdout/stderr on mingw.
40924         * lib/w32spawn.h: Include unistd.h.
40925         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
40926         file descriptor with O_NOINHERIT flag.
40927         (fd_safer_noinherit): New function, based on fd-safer.c.
40928         (dup_safer_noinherit): New function, based on dup-safer.c.
40929         (undup_safer_noinherit): New function.
40930         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
40931         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
40932         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
40933         instead of fd_safer.
40934         * tests/test-pipe.c: Include <windows.h>.
40935         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
40936         result.
40937
40938         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
40939         from main.
40940         (test_pipe): Pass an extra argument for disambiguation.
40941         (main): Invoke parent_main or child_main.
40942
40943         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
40944         consistently.
40945
40946 2009-07-18  Eric Blake  <ebb9@byu.net>
40947
40948         test-pipe: fix mingw build
40949         * tests/test-pipe.c (main): Avoid fcntl on mingw.
40950
40951 2009-07-18  Bruno Haible  <bruno@clisp.org>
40952
40953         * modules/pipe-tests (Makefile.am): Fix typo.
40954
40955 2009-07-18  Eric Blake  <ebb9@byu.net>
40956
40957         error: fix mingw build
40958         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
40959         Reported by Bruno Haible.
40960
40961         error: avoid undefined use of stdout
40962         * lib/error.c (error, error_at_line): Check that fd 1 is open
40963         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
40964         is handling faults and the close_stdout module wants to report the
40965         detection of closed stdout as an error.
40966
40967 2009-07-17  Eric Blake  <ebb9@byu.net>
40968
40969         pipe: be robust in face of closed fds
40970         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
40971         should cause child to misbehave.
40972         * modules/pipe-tests: New module.
40973         * tests/test-pipe.c: New file.
40974         * tests/test-pipe.sh: New file.
40975         Reported by Akim Demaille.
40976
40977 2009-07-14  Bruno Haible  <bruno@clisp.org>
40978
40979         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
40980         Reported by anonymous kc.
40981
40982 2009-07-07  Jim Meyering  <meyering@redhat.com>
40983
40984         maint.mk: don't look for translatable strings in *.m4 or *.mk
40985         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
40986         when searching for translatable strings.
40987
40988 2009-07-05  Jim Meyering  <meyering@redhat.com>
40989
40990         remove superfluous parentheses in STREQ definition
40991         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
40992         * lib/getugroups.c (STREQ): Likewise.
40993         * lib/fnmatch.c (STREQ): Likewise.
40994         Spotted by Bruno Haible.
40995
40996 2009-07-04  Jim Meyering  <meyering@redhat.com>
40997
40998         argv-iter: new module
40999         * MODULES.html.sh: Add argv-iter.
41000         * lib/argv-iter.c, lib/argv-iter.h: New files.
41001         * modules/argv-iter: New file.
41002         * modules/argv-iter-tests: New file.
41003         * tests/test-argv-iter.c: Test it.
41004
41005 2009-07-04  Bruno Haible  <bruno@clisp.org>
41006
41007         Fix assertion.
41008         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
41009         contains more exact copies of a given entry than file2, leave the extra
41010         copies unpaired rather than aborting.
41011         Reported by Eric Blake.
41012
41013 2009-07-02  Bruno Haible  <bruno@clisp.org>
41014
41015         Speedup git-merge-changelog for git cherry-pick.
41016         * lib/git-merge-changelog.c (struct entries_mapping): New type.
41017         (entries_mapping_get): New function, extracted from compute_mapping.
41018         (entries_mapping_reverse_get): New function.
41019         (compute_mapping): Add a 'full' argument. Return the result in a
41020         'struct entries_mapping'.
41021         (main): Update. Access the mappings through entries_mapping_get.
41022         Reported by Eric Blake.
41023
41024 2009-07-02  Bruno Haible  <bruno@clisp.org>
41025
41026         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
41027         best_i.
41028
41029 2009-07-02  Bruno Haible  <bruno@clisp.org>
41030
41031         Speed up approximate search for matching ChangeLog entries.
41032         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
41033         argument. Call fstrcmp_bounded instead of fstrcmp.
41034         (compute_mapping, try_split_merged_entry, main): Update callers.
41035
41036 2009-07-02  Bruno Haible  <bruno@clisp.org>
41037
41038         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
41039
41040 2009-06-30  Bruno Haible  <bruno@clisp.org>
41041
41042         Reduce the number of uc_is_cased calls.
41043         * lib/unicase.h (casing_suffix_context_t): Add
41044         'first_char_except_ignorable' field.
41045         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
41046         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
41047         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
41048         Update initializer.
41049         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
41050         case-ignorable characters.
41051         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
41052         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
41053         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
41054         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
41055         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
41056
41057 2009-06-30  Bruno Haible  <bruno@clisp.org>
41058
41059         Tests for module 'unicase/ignorable'.
41060         * modules/unicase/ignorable-tests: New file.
41061         * tests/unicase/test-ignorable.c: New file, generated by
41062         gen-uni-tables.
41063
41064         Tests for module 'unicase/cased'.
41065         * modules/unicase/cased-tests: New file.
41066         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
41067         * tests/unicase/test-predicate-part1.h: New file, derived from
41068         tests/unictype/test-predicate-part1.h.
41069         * tests/unicase/test-predicate-part2.h: New file, same as
41070         tests/unictype/test-predicate-part2.h.
41071
41072         Fix evaluation of "Before C" condition of FINAL_SIGMA.
41073         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
41074         (output_casing_properties): New function.
41075         (main): Call it.
41076         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
41077         * lib/unicase/cased.c: Include unictype/bitmap.h.
41078         (uc_is_cased): Define through a bitmap lookup.
41079         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
41080         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
41081         (uc_is_case_ignorable): Define through a bitmap lookup.
41082         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
41083         lib/unictype/bitmap.h.
41084         (Depends-on): Add inline. Clean up.
41085         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
41086         lib/unictype/bitmap.h.
41087         (Depends-on): Add inline. Clean up.
41088         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
41089         recognition.
41090         * tests/unicase/test-u16-tolower.c (main): Likewise.
41091         * tests/unicase/test-u32-tolower.c (main): Likewise.
41092
41093 2009-06-30  Bruno Haible  <bruno@clisp.org>
41094
41095         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
41096         * lib/unicase/u16-casemap.c: Likewise.
41097         * lib/unicase/u32-casemap.c: Likewise.
41098
41099 2009-06-29  Bruno Haible  <bruno@clisp.org>
41100
41101         Define u32_casefold as a wrapper around u32_ct_casefold.
41102         * lib/unicase/u32-casefold.c: Update.
41103         * modules/unicase/u32-casefold (Depends-on): Add
41104         unicase/u32-ct-casefold, unicase/empty-prefix-context,
41105         unicase/empty-suffix-context. Clean up.
41106
41107         Define u16_casefold as a wrapper around u16_ct_casefold.
41108         * lib/unicase/u16-casefold.c: Update.
41109         * modules/unicase/u16-casefold (Depends-on): Add
41110         unicase/u16-ct-casefold, unicase/empty-prefix-context,
41111         unicase/empty-suffix-context. Clean up.
41112
41113         Define u8_casefold as a wrapper around u8_ct_casefold.
41114         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
41115         * lib/unicase/u8-casefold.c: Update.
41116         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
41117         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
41118
41119         Define u32_totitle as a wrapper around u32_ct_totitle.
41120         * lib/unicase/u32-totitle.c: Update.
41121         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
41122         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
41123
41124         Define u16_totitle as a wrapper around u16_ct_totitle.
41125         * lib/unicase/u16-totitle.c: Update.
41126         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
41127         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
41128
41129         Define u8_totitle as a wrapper around u8_ct_totitle.
41130         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
41131         functions.
41132         (FUNC): Delegate to U_CT_TOTITLE.
41133         * lib/unicase/u8-totitle.c: Update.
41134         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
41135         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
41136
41137         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
41138         invocation.
41139         * modules/unicase/u32-tolower (Depends-on): Add
41140         unicase/empty-prefix-context, unicase/empty-suffix-context.
41141
41142         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
41143         invocation.
41144         * modules/unicase/u16-tolower (Depends-on): Add
41145         unicase/empty-prefix-context, unicase/empty-suffix-context.
41146
41147         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
41148         * modules/unicase/u8-tolower (Depends-on): Add
41149         unicase/empty-prefix-context, unicase/empty-suffix-context.
41150
41151         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
41152         invocation.
41153         * modules/unicase/u32-toupper (Depends-on): Add
41154         unicase/empty-prefix-context, unicase/empty-suffix-context.
41155
41156         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
41157         invocation.
41158         * modules/unicase/u16-toupper (Depends-on): Add
41159         unicase/empty-prefix-context, unicase/empty-suffix-context.
41160
41161         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
41162         * modules/unicase/u8-toupper (Depends-on): Add
41163         unicase/empty-prefix-context, unicase/empty-suffix-context.
41164
41165         New module 'unicase/u32-ct-casefold'.
41166         * lib/unicase/u32-ct-casefold.c: New file.
41167         * modules/unicase/u32-ct-casefold: New file.
41168
41169         New module 'unicase/u16-ct-casefold'.
41170         * lib/unicase/u16-ct-casefold.c: New file.
41171         * modules/unicase/u16-ct-casefold: New file.
41172
41173         New module 'unicase/u8-ct-casefold'.
41174         * lib/unicase/u8-ct-casefold.c: New file.
41175         * lib/unicase/u-ct-casefold.h: New file, derived from
41176         lib/unicase/u-casefold.h.
41177         * modules/unicase/u8-ct-casefold: New file.
41178
41179         New module 'unicase/u32-ct-totitle'.
41180         * lib/unicase/u32-ct-totitle.c: New file.
41181         * modules/unicase/u32-ct-totitle: New file.
41182
41183         New module 'unicase/u16-ct-totitle'.
41184         * lib/unicase/u16-ct-totitle.c: New file.
41185         * modules/unicase/u16-ct-totitle: New file.
41186
41187         New module 'unicase/u8-ct-totitle'.
41188         * lib/unicase/u8-ct-totitle.c: New file.
41189         * lib/unicase/u-ct-totitle.h: New file, derived from
41190         lib/unicase/u-totitle.h.
41191         * modules/unicase/u8-ct-totitle: New file.
41192
41193         New module 'unicase/u32-ct-tolower'.
41194         * lib/unicase/u32-ct-tolower.c: New file.
41195         * modules/unicase/u32-ct-tolower: New file.
41196
41197         New module 'unicase/u16-ct-tolower'.
41198         * lib/unicase/u16-ct-tolower.c: New file.
41199         * modules/unicase/u16-ct-tolower: New file.
41200
41201         New module 'unicase/u8-ct-tolower'.
41202         * lib/unicase/u8-ct-tolower.c: New file.
41203         * modules/unicase/u8-ct-tolower: New file.
41204
41205         New module 'unicase/u32-ct-toupper'.
41206         * lib/unicase/u32-ct-toupper.c: New file.
41207         * modules/unicase/u32-ct-toupper: New file.
41208
41209         New module 'unicase/u16-ct-toupper'.
41210         * lib/unicase/u16-ct-toupper.c: New file.
41211         * modules/unicase/u16-ct-toupper: New file.
41212
41213         New module 'unicase/u8-ct-toupper'.
41214         * lib/unicase/u8-ct-toupper.c: New file.
41215         * modules/unicase/u8-ct-toupper: New file.
41216
41217         Add context arguments to u*_casemap functions.
41218         * lib/unicase/unicasemap.h: Include unicase.h.
41219         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
41220         suffix_context arguments.
41221         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
41222         functions.
41223         (FUNC): Add prefix_context and suffix_context arguments. Use
41224         uc_is_cased and uc_is_case_ignorable.
41225         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
41226         * lib/unicase/u16-casemap.c: Likewise.
41227         * lib/unicase/u32-casemap.c: Likewise.
41228         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
41229         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
41230         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
41231         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
41232         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
41233         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
41234
41235         New module 'unicase/u32-suffix-context'.
41236         * lib/unicase/u32-suffix-context.c: New file.
41237         * modules/unicase/u32-suffix-context: New file.
41238
41239         New module 'unicase/u16-suffix-context'.
41240         * lib/unicase/u16-suffix-context.c: New file.
41241         * modules/unicase/u16-suffix-context: New file.
41242
41243         New module 'unicase/u8-suffix-context'.
41244         * lib/unicase/u8-suffix-context.c: New file.
41245         * lib/unicase/u-suffix-context.h: New file.
41246         * modules/unicase/u8-suffix-context: New file.
41247
41248         New module 'unicase/empty-suffix-context'.
41249         * lib/unicase/empty-suffix-context.c: New file.
41250         * modules/unicase/empty-suffix-context: New file.
41251
41252         New module 'unicase/u32-prefix-context'.
41253         * lib/unicase/u32-prefix-context.c: New file.
41254         * modules/unicase/u32-prefix-context: New file.
41255
41256         New module 'unicase/u16-prefix-context'.
41257         * lib/unicase/u16-prefix-context.c: New file.
41258         * modules/unicase/u16-prefix-context: New file.
41259
41260         New module 'unicase/u8-prefix-context'.
41261         * lib/unicase/u8-prefix-context.c: New file.
41262         * lib/unicase/u-prefix-context.h: New file.
41263         * lib/unicase/context.h: New file.
41264         * modules/unicase/u8-prefix-context: New file.
41265
41266         New module 'unicase/empty-prefix-context'.
41267         * lib/unicase/empty-prefix-context.c: New file.
41268         * modules/unicase/empty-prefix-context: New file.
41269
41270         New module 'unicase/ignorable'.
41271         * lib/unicase/ignorable.c: New file.
41272         * modules/unicase/ignorable: New file.
41273
41274         New module 'unicase/cased'.
41275         * lib/unicase/caseprop.h: New file.
41276         * lib/unicase/cased.c: New file.
41277         * modules/unicase/cased: New file.
41278
41279         New functions for case mapping of substrings.
41280         * lib/unicase.h (casing_prefix_context_t): New type.
41281         (unicase_empty_prefix_context): New variable.
41282         (u8_casing_prefix_context, u16_casing_prefix_context,
41283         u32_casing_prefix_context, u8_casing_prefixes_context,
41284         u16_casing_prefixes_context, u32_casing_prefixes_context): New
41285         declarations.
41286         (casing_suffix_context_t): New type.
41287         (unicase_empty_suffix_context): New variable.
41288         (u8_casing_suffix_context, u16_casing_suffix_context,
41289         u32_casing_suffix_context, u8_casing_suffixes_context,
41290         u16_casing_suffixes_context, u32_casing_suffixes_context,
41291         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
41292         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
41293         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
41294         declarations.
41295
41296 2009-06-28  Jim Meyering  <meyering@redhat.com>
41297
41298         boostrap: indent only with spaces
41299         * build-aux/bootstrap: Indent only with spaces, never TABs.
41300
41301         bootstrap: split long lines
41302         * build-aux/bootstrap: Keep line length < 80.
41303
41304         bootstrap: sync from coreutils
41305         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
41306         just as autoreconf does.  Verify a list of prerequisite
41307         package-name,version-number pairs if defined in bootstrap.conf.
41308         Refer to README-prereq, if prerequisites are not satisfied.
41309
41310 2009-06-27  Eric Blake  <ebb9@byu.net>
41311
41312         tests: add test for bogus NULL definition
41313         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
41314         * tests/test-stdlib.c: Likewise.
41315         * tests/test-string.c: Likewise.
41316         * tests/test-locale.c: Likewise.
41317         * tests/test-unistd.c: Likewise.
41318         * modules/stdio-tests (Depends-on): Add verify.
41319         * modules/stdlib-tests (Depends-on): Likewise.
41320         * modules/string-tests (Depends-on): Likewise.
41321         * modules/locale-tests (Depends-on): Likewise.
41322         * modules/unistd-tests (Depends-on): Likewise.
41323
41324 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
41325
41326         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
41327         self-explaining comment.
41328         * m4/selinux-selinux-h: Update serial.
41329         (gl_LIBSELINUX): New macro, adding a warning for missing development
41330         packages to code extracted from...
41331         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
41332         Add warning for missing development packages here, too.
41333
41334 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
41335
41336         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
41337
41338 2009-06-25  Eric Blake  <ebb9@byu.net>
41339
41340         version-etc: fix regression
41341         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
41342         gcc.
41343         (version_etc): Use it, to catch bugs with trailing NULL.
41344         * lib/version-etc.c (version_etc_arn): Delete unused argument.
41345         (version_etc_va): Fix logic bug.
41346         * modules/version-etc-tests: Add test.
41347         * tests/test-version-etc.c: New file.
41348         * tests/test-version-etc.sh: Likewise.
41349
41350 2009-06-25  Sam Steingold  <sds@gnu.org>
41351
41352         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
41353         mbtowc declaration.
41354
41355 2009-06-25  Eric Blake  <ebb9@byu.net>
41356
41357         fpurge: migrate into <stdio.h>
41358         * lib/fpurge.h: Delete...
41359         * lib/stdio.in.h (fpurge): ...and declare here, instead.
41360         * lib/fpurge.c (fpurge): Change declaring header.
41361         * modules/fpurge (Files): Drop deleted file.
41362         (Depends-on): Add stdio.
41363         (configure.ac): Set witness.
41364         * modules/stdio (Makefile.am): Support fpurge macros.
41365         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
41366         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
41367         * lib/fflush.c: Update client.
41368         * tests/test-fpurge.c: Likewise.
41369         * NEWS: Mention the change.
41370
41371 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
41372
41373         * lib/argp-version-etc.c (program_authors): Add const
41374         qualifier.
41375         * lib/version-etc.c: Fix typos in the comments.
41376         * modules/argp-version-etc: Depends on version-etc.
41377
41378 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
41379
41380         argp-version-etc: new module.
41381
41382         * lib/argp-version-etc.c: New file.
41383         * lib/argp-version-etc.h: New file.
41384         * modules/argp-version-etc: New file.
41385         * modules/argp-version-etc-tests: New file.
41386         * tests/test-argp-version-etc.c: New test.
41387         * tests/test-argp-version-etc-1.sh: New test.
41388
41389 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
41390
41391         Provide additional interfaces and documentation for version-etc
41392         module.
41393
41394         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
41395         interfaces.
41396         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
41397         prototypes.
41398
41399 2009-06-24  Bruno Haible  <bruno@clisp.org>
41400
41401         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
41402         HAVE_LIB${NAME} macro.
41403         Reported by Sam Steingold <sds@gnu.org>.
41404
41405 2009-06-23  Simon Josefsson  <simon@josefsson.org>
41406
41407         * modules/hash-tests (test_hash_LDADD): Link to libintl when
41408         needed.
41409
41410 2009-06-21  Bruno Haible  <bruno@clisp.org>
41411
41412         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
41413         work.
41414         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
41415         together with LIB${NAME}, LTLIB${NAME}.
41416         Reported by Sam Steingold <sds@gnu.org>.
41417
41418 2009-06-20  Jim Meyering  <meyering@redhat.com>
41419
41420         tests: make sc_require_test_exit_idiom more generic
41421         * top/maint.mk (Exit_witness_file): New overridable variable.
41422         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
41423         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
41424
41425 2009-06-19  Jim Meyering  <meyering@redhat.com>
41426
41427         hash: reverse order of src/dst parameters in an internal interface
41428         * lib/hash.c (transfer_entries): Reverse order of parameters to
41429         put DST before SRC.  Adjust callers.
41430
41431         tests: test-hash: avoid wholesale duplication
41432         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
41433         Instead, use a loop and add a single conditional.
41434
41435         tests: test-hash: allow seed selection via a command line argument
41436         * tests/test-hash.c (get_seed): New function.
41437         (main): Use it.
41438
41439 2009-06-19  Eric Blake  <ebb9@byu.net>
41440
41441         hash: avoid memory leak on allocation failure
41442         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
41443         failure.  Factor repeated algorithm...
41444         (transfer_entries): ...into new helper routine.
41445         (hash_delete): React to hash_rehash return value.
41446
41447         hash: reduce memory pressure in hash_rehash no-op case
41448         * lib/hash.c (next_prime): Avoid overflow.
41449         (hash_initialize): Factor bucket size computation...
41450         (compute_bucket_size): ...into new helper function.
41451         (hash_rehash): Use new function and open coding to reduce memory
41452         pressure, and avoid a memory leak in USE_OBSTACK code.
41453         Reported by Jim Meyering.
41454
41455 2009-06-18  Eric Blake  <ebb9@byu.net>
41456
41457         hash: make rotation more obvious
41458         * modules/hash (Depends-on): Add bitrotate and stdint.
41459         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
41460         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
41461         (SIZE_MAX): Rely on headers for definition.
41462         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
41463         (raw_hasher): Use rotr_sz.
41464         Suggested by Jim Meyering.
41465
41466         hash: fix memory leak in last patch
41467         * lib/hash.c (hash_rehash): Avoid memory leak.
41468
41469         hash: avoid no-op rehashing
41470         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
41471
41472         hash: provide default callback functions
41473         * lib/hash.c (raw_hasher, raw_comparator): New functions.
41474         (hash_initialize): Use them as defaults.
41475         * tests/test-hash.c (main): Test this.
41476
41477         hash: minor optimization
41478         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
41479         when possible.
41480         (hash_initialize): Document this promise.
41481         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
41482         * tests/test-hash.c (hash_compare_strings): Test this.
41483
41484 2009-06-18  Bruno Haible  <bruno@clisp.org>
41485
41486         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
41487         going to be replaced anyway.
41488
41489 2009-06-18  Bruno Haible  <bruno@clisp.org>
41490
41491         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
41492         in one place.
41493         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
41494         be replaced anyway.
41495
41496 2009-06-18  Eric Blake  <ebb9@byu.net>
41497
41498         hash: check for resize before insertion
41499         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
41500         threshold before insertion, so that a pathological hash_rehash
41501         that fills every bucket can still trigger another rehash.
41502
41503 2009-06-18  Jim Meyering  <meyering@redhat.com>
41504
41505         hash-tests: add a loop around the small tests
41506         * tests/test-hash.c (main): Repeat small tests with selected
41507         small initial table sizes.
41508
41509 2009-06-17  Eric Blake  <ebb9@byu.net>
41510
41511         hash: minor cleanups
41512         * lib/hash.h (hash_entry): Make opaque, by moving...
41513         * lib/hash.c (hash_entry): ...here.
41514         (hash_insert): Clarify restrictions on what can be inserted.
41515         (hash_get_next): Clarify when it is safe to remove an element
41516         during traversal.
41517         (check_tuning): Skip verification when tuning is known safe.
41518         (hash_initialize): Clarify restrictions on tuning.
41519
41520 2009-06-17  Jim Meyering  <jim@meyering.net>
41521         and Eric Blake  <ebb9@byu.net>
41522
41523         hash-tests: new module
41524         * modules/hash-tests: New file.
41525         * tests/test-hash.c: New file.
41526
41527 2009-06-17  Eric Blake  <ebb9@byu.net>
41528
41529         strstr-simple: document new module
41530         * MODULES.html.sh: Document new module.
41531
41532         strstr, strcasestr: replace on platforms with broken memchr
41533         * modules/strstr: Split into...
41534         * modules/strstr-simple: ...new module that does not care about
41535         performance, but does care about glibc bug.
41536         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
41537         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
41538         if platform memchr is broken, per Debian bug 521737.
41539         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
41540         memchr.
41541         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
41542         * doc/posix-functions/strstr.texi (strstr): Document the fix.
41543         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
41544         * modules/mountlist (Depends-on): Add strstr-simple.
41545         * modules/gen-uni-tables (Depends-on): Likewise.
41546         * modules/argz (Depends-on): Add strstr.
41547
41548 2009-06-17  Bruno Haible  <bruno@clisp.org>
41549
41550         * modules/posix_spawn-internal (Depends-on): Add errno.
41551
41552 2009-06-17  Bruno Haible  <bruno@clisp.org>
41553
41554         Define missing ESTALE on Interix 3.5.
41555         * lib/errno.in.h (ESTALE): Assign a value if missing.
41556         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
41557         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
41558         missing.
41559         * doc/posix-headers/errno.texi: Mention the Interix bug.
41560         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
41561
41562 2009-06-15  Eric Blake  <ebb9@byu.net>
41563
41564         memchr, memchr2: add valgrind exception
41565         * lib/memchr.valgrind: New file.
41566         * lib/memchr2.valgrind: New file.
41567         * modules/memchr (Files): Distribute valgrind file.
41568         * modules/memchr2 (Files): Likewise.
41569
41570         docs: memchr is no longer obsolete
41571         * MODULES.html.sh: Move memchr from obsolete to string.h section.
41572         * lib/string.in.h (memchr): Simplify logic.
41573
41574 2009-06-14  Jim Meyering  <meyering@redhat.com>
41575
41576         link-follow: fix the "checking..." message to not mention trailing slash
41577         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
41578         never considered trailing slashes.
41579
41580 2009-06-14  Bruno Haible  <bruno@clisp.org>
41581
41582         * m4/memchr.m4: Mention also the bug on IA-64.
41583         * doc/posix-functions/memchr.texi: Likewise.
41584
41585 2009-06-12  Eric Blake  <ebb9@byu.net>
41586
41587         memchr: detect broken x86_64 and alpha implementations
41588         * modules/memchr-tests (Depends-on): Move mmap detection...
41589         * modules/memchr (Depends-on): ...here.
41590         (configure.ac): Set indicator.
41591         * lib/string.in.h (memchr): Declare replacement.
41592         * modules/string (Makefile.am): Trigger replacement.
41593         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
41594         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
41595         bugs.
41596         * doc/posix-functions/memchr.texi (memchr): Document the bug.
41597         * modules/getpagesize (License): Relax license.
41598
41599 2009-06-11  Bruno Haible  <bruno@clisp.org>
41600
41601         * lib/idpriv.h: Add more references.
41602
41603 2009-06-08  Bruno Haible  <bruno@clisp.org>
41604
41605         Tests for module 'idpriv-droptemp'.
41606         * modules/idpriv-droptemp-tests: New file.
41607         * tests/test-idpriv-droptemp.sh: New file.
41608         * tests/test-idpriv-droptemp.su.sh: New file.
41609         * tests/test-idpriv-droptemp.c: New file.
41610
41611         New module 'idpriv-droptemp'.
41612         * lib/idpriv-droptemp.c: New file.
41613         * modules/idpriv-droptemp: New file.
41614
41615 2009-06-08  Bruno Haible  <bruno@clisp.org>
41616
41617         Tests for module 'idpriv-drop'.
41618         * modules/idpriv-drop-tests: New file.
41619         * tests/test-idpriv-drop.sh: New file.
41620         * tests/test-idpriv-drop.su.sh: New file.
41621         * tests/test-idpriv-drop.c: New file.
41622
41623         New module 'idpriv-drop'.
41624         * lib/idpriv.h: New file.
41625         * lib-idpriv-drop.c: New file.
41626         * m4/idpriv.m4: New file.
41627         * modules/idpriv-drop: New file.
41628
41629 2009-06-08  Bruno Haible  <bruno@clisp.org>
41630
41631         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
41632         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
41633         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
41634         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
41635         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
41636         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
41637         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
41638
41639 2009-06-08  Eric Blake  <ebb9@byu.net>
41640
41641         test-strstr: use memory fence, when possible
41642         * tests/test-strstr.c (main): Use memory fence, in order to be
41643         more likely to trigger Debian bug 521737.
41644         * modules/strstr-tests (Files): Pull in additional files.
41645
41646         memchr: no longer obsolete, for wider field testing
41647         * modules/memchr (Status, Notice): Delete, this module is no
41648         longer obsolete.
41649         * modules/vasnprintf (Depends-on): Add memchr.
41650
41651 2009-06-07  Jim Meyering  <meyering@redhat.com>
41652
41653         hash: declare some functions with the warn_unused_result attribute
41654         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
41655
41656 2009-06-07  Bruno Haible  <bruno@clisp.org>
41657
41658         * tests/test-alignof.c: Don't test int64_t if it does not exist.
41659         Reported by Eric Blake.
41660
41661 2009-06-06  Eric Blake  <ebb9@byu.net>
41662
41663         test-alignof: fix typo with long double
41664         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
41665         compiler error.
41666
41667 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
41668
41669         Escape non-texinfo { and }s.
41670         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
41671         markup error.
41672
41673 2009-06-04  Jim Meyering  <meyering@redhat.com>
41674
41675         gitlog-to-changelog: don't infloop on an empty commit log
41676         * build-aux/gitlog-to-changelog: Warn about an empty log message.
41677         Reported by Boris Petersen <transacid@centerim.org>.
41678
41679 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
41680
41681         version-etc: extend for packagers
41682         Add three new configure options, intended for packagers:
41683           --with-packager="packager name"
41684           --with-packager-version="packager-specific version"
41685           --with-packager-bug-reports="packager bug reporting"
41686         An example with coreutils:
41687           $ ./configure \
41688             --with-packager=Gentoo \
41689             --with-packager-bug-report=http://bugs.gentoo.org/ \
41690             --with-packager-version="patchset 1.6"
41691           $ ./src/ls --version | head -n2
41692           ls (GNU coreutils) 7.1-dirty
41693           Packaged by Gentoo (patchset 1.6)
41694         Note that the bug reporting info via --help doesn't show up because
41695         coreutils uses its own custom emit_bug_reporting_address() implementation
41696         in src/system.h.  If it didn't, it'd look like:
41697           $ ./src/ls --help | tail -n4
41698           Report bugs to <bug-coreutils@gnu.org>.
41699           Report Gentoo bugs to <http://bugs.gentoo.org/>.
41700           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
41701           General help using GNU software: <http://www.gnu.org/gethelp/>.
41702         * lib/version-etc.c: Print new information, if provided.
41703         * m4/version-etc.m4: New file.
41704         * modules/version-etc (Files): Add m4/version-etc.m4.
41705         (configure.ac): Add gl_VERSION_ETC.
41706
41707 2009-05-31  Bruno Haible  <bruno@clisp.org>
41708
41709         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
41710         and 'int64_t'.
41711         * modules/alignof-tests (Dependencies): Add stdint.
41712         Reported by Eric Blake.
41713
41714 2009-05-31  Bruno Haible  <bruno@clisp.org>
41715
41716         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
41717         restriction due to compiler bugs.
41718         Reported by Eric Blake.
41719
41720 2009-05-31  Simon Josefsson  <simon@josefsson.org>
41721             Bruno Haible  <bruno@clisp.org>
41722
41723         Fix test-alignof failure.
41724         * lib/alignof.h (alignof_slot): New macro.
41725         (alignof_type): New macro, with the same semantics as the previous
41726         'alignof'.
41727         (alignof): Alias to alignof_slot.
41728         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
41729         check that the results are usable as constant expressions.
41730
41731 2009-05-31  Bruno Haible  <bruno@clisp.org>
41732
41733         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
41734         * tests/test-memchr.c (main): Check that memchr does not read past the
41735         first occurrence of the byte.
41736         * tests/test-strstr.c (main): Update comment.
41737         Suggested by Eric Blake.
41738
41739 2009-05-30  Bruno Haible  <bruno@clisp.org>
41740
41741         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
41742         detail how to use dumpbin.
41743         Reported by David Byron <dbyron@dbyron.com>.
41744
41745 2009-06-02  Simon Josefsson  <simon@josefsson.org>
41746
41747         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
41748
41749 2009-06-02  Simon Josefsson  <simon@josefsson.org>
41750
41751         * m4/manywarnings.m4: Add GCC 4.4 warnings.
41752
41753 2009-05-28  Bruno Haible  <bruno@clisp.org>
41754
41755         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
41756         build-aux/ files.
41757
41758 2009-05-28  Simon Josefsson  <simon@josefsson.org>
41759
41760         * gnulib-tool (func_import): Transform license on build-aux/ files too.
41761
41762 2009-05-27  Simon Josefsson  <simon@josefsson.org>
41763
41764         * gnulib-tool (sed_transform_main_lib_file)
41765         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
41766         regexps.
41767
41768 2009-05-26  Simon Josefsson  <simon@josefsson.org>
41769
41770         * tests/test-strstr.c: Add another self-test.
41771         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
41772         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
41773
41774 2009-05-23  Bruno Haible  <bruno@clisp.org>
41775
41776         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
41777         change.
41778
41779 2009-05-21  Bruno Haible  <bruno@clisp.org>
41780
41781         Simplify use of mode_t varargs.
41782         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
41783         uses 'mode_t' or 'int'.
41784         * lib/openat.c (openat): Likewise.
41785         * lib/open-safer.c (open_safer): Likewise.
41786         * m4/mode_t.m4: New file.
41787         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
41788         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
41789         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
41790         * modules/open (Files): Add m4/mode_t.m4.
41791         * modules/openat (Files): Likewise.
41792         * modules/fcntl-safer (Files): Likewise.
41793         Suggested by Eric Blake.
41794
41795 2009-05-21  Pádraig Brady  <P@draigbrady.com>
41796
41797         * doc/glibc-functions/fallocate.texi: New file.
41798         * doc/gnulib.texi: Include it.
41799
41800 2009-05-21  Eric Blake  <ebb9@byu.net>
41801             Bruno Haible  <bruno@clisp.org>
41802
41803         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
41804         invocations.
41805         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
41806
41807 2009-05-21  Eric Blake  <ebb9@byu.net>
41808             Bruno Haible  <bruno@clisp.org>
41809
41810         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
41811         include_next. Fix of 2008-11-20 commit.
41812         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
41813         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
41814         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
41815         NEXT_MATH_H.
41816         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
41817         instead of NEXT_MATH_H.
41818
41819 2009-05-21  Bruno Haible  <bruno@clisp.org>
41820
41821         Avoid redefinition warnings for SIZE_MAX.
41822         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
41823         Reported by Simon Josefsson.
41824
41825 2009-05-21  Bruno Haible  <bruno@clisp.org>
41826
41827         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
41828         AC_CACHE_VAL.
41829
41830 2009-05-20  Bruno Haible  <bruno@clisp.org>
41831
41832         Make zeroptr.h work on mingw.
41833         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
41834         mprotect.
41835         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
41836         * modules/memchr2-tests (configure.ac): Likewise.
41837         * modules/memcmp-tests (configure.ac): Likewise.
41838         * modules/memmem-tests (configure.ac): Likewise.
41839         * modules/memrchr-tests (configure.ac): Likewise.
41840         Reported by Simon Josefsson.
41841
41842 2009-05-20  Simon Josefsson  <simon@josefsson.org>
41843
41844         * tests/test-glob.c: Include string.h for strcmp prototype.
41845
41846 2009-05-20  Simon Josefsson  <simon@josefsson.org>
41847
41848         * modules/getdelim (Depends-on): Add explicit stdint, although it
41849         was implicitly already pulled in via realloc-posix.
41850         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
41851
41852 2009-05-20  Simon Josefsson  <simon@josefsson.org>
41853
41854         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
41855         G. Christensen" <tgc@jupiterrise.com>.
41856         * m4/sys_socket_h.m4: Check for sa_family_t.
41857         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
41858         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
41859         * tests/test-sys_socket.c: Check that sa_family_t works.
41860
41861 2009-05-18  Eric Blake  <ebb9@byu.net>
41862
41863         maint.mk: allow gnulib_dir in VPATH build
41864         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
41865
41866 2009-05-15  Jim Meyering  <meyering@redhat.com>
41867
41868         maint.mk: Give gnulib_dir a default definition.
41869         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
41870         Thus, most packages no longer need to specify this variable in cfg.mk
41871
41872 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
41873
41874         rename.m4: fix typos that would make non-mingw cross-configure fail
41875         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
41876
41877 2009-05-13  Eric Blake  <ebb9@byu.net>
41878
41879         mmap-anon: avoid out-of-order autoconf expansion
41880         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
41881         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
41882         * modules/memchr-tests (Depends-on): Add extensions.
41883         * modules/memchr2-tests (Depends-on): Add extensions.
41884         * modules/memcmp-tests (Depends-on): Add extensions.
41885         * modules/memmem-tests (Depends-on): Add extensions.
41886         * modules/memrchr-tests (Depends-on): Add extensions.
41887
41888 2009-05-13  Bruno Haible  <bruno@clisp.org>
41889
41890         Make some tests ISO C 99 compliant.
41891         * tests/zerosize-ptr.h: New file.
41892         * tests/test-memchr.c: Include zerosize-ptr.h.
41893         (main): Use a zero-size object pointer instead of NULL.
41894         * tests/test-memchr2.c: Include zerosize-ptr.h.
41895         (main): Use a zero-size object pointer instead of NULL.
41896         * tests/test-memcmp.c: Include zerosize-ptr.h.
41897         (main): Use a zero-size object pointer instead of NULL.
41898         * tests/test-memmem.c: Include zerosize-ptr.h.
41899         (main): Use a zero-size object pointer instead of NULL.
41900         * tests/test-memrchr.c: Include zerosize-ptr.h.
41901         (main): Use a zero-size object pointer instead of NULL.
41902         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
41903         m4/mmap-anon.m4.
41904         (Depends-on): Add getpagesize.
41905         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
41906         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
41907         m4/mmap-anon.m4.
41908         (Depends-on): Add getpagesize.
41909         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
41910         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
41911         m4/mmap-anon.m4.
41912         (Depends-on): Add getpagesize.
41913         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
41914         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
41915         m4/mmap-anon.m4.
41916         (Depends-on): Add getpagesize.
41917         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
41918         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
41919         m4/mmap-anon.m4.
41920         (Depends-on): Add getpagesize.
41921         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
41922
41923 2009-05-12  Bruno Haible  <bruno@clisp.org>
41924
41925         Tests for module 'alignof'.
41926         * modules/alignof-tests: New file.
41927         * tests/test-alignof.c: New file.
41928
41929 2009-05-12  Bruno Haible  <bruno@clisp.org>
41930
41931         Fix alignof macro.
41932         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
41933         vendor compilers that are always correct.
41934
41935 2009-05-12  Bruno Haible  <bruno@clisp.org>
41936
41937         Make the MAP_ANONYMOUS detection work on HP-UX 11.
41938         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
41939         not whether its fully works.
41940
41941 2009-05-12  Bruno Haible  <bruno@clisp.org>
41942
41943         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
41944
41945 2009-05-12  Jim Meyering  <meyering@redhat.com>
41946
41947         * top/maint.mk: Adjust backslash alignment.
41948
41949 2009-05-11  Simon Josefsson  <simon@josefsson.org>
41950
41951         * top/maint.mk: Make $(srcdir)/build-aux configurable.
41952
41953 2009-05-11  Eric Blake  <ebb9@byu.net>
41954
41955         argp: avoid undefined behavior
41956         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
41957         macros.
41958
41959 2009-05-08  Simon Josefsson  <simon@josefsson.org>
41960
41961         * tests/test-vc-list-files-git.sh: Do git config of user.email and
41962         user.name to prevent git commit from complaining.
41963
41964 2009-05-10  Bruno Haible  <bruno@clisp.org>
41965
41966         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
41967         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
41968         it rewrites every file name only once.
41969         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
41970
41971 2009-05-08  Bruno Haible  <bruno@clisp.org>
41972
41973         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
41974         instead of 'max'.
41975
41976 2009-05-08  Simon Josefsson  <simon@josefsson.org>
41977
41978         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
41979         sockaddr_storage test.
41980
41981 2009-05-07  Simon Josefsson  <simon@josefsson.org>
41982
41983         * modules/sys_socket (Makefile.am): Substitute
41984         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
41985         * m4/sys_socket_h.m4: Check for sockaddr_storage.
41986         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
41987         * tests/test-sys_socket.c: Check sockaddr_storage.
41988
41989 2009-05-08  Bruno Haible  <bruno@clisp.org>
41990
41991         New module 'alignof'.
41992         * lib/alignof.h: New file.
41993         * modules/alignof: New file.
41994
41995 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
41996             Bruno Haible  <bruno@clisp.org>
41997
41998         Fix test-file-has-acl on FreeBSD.
41999         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
42000         mask is implicitly added.
42001         * tests/test-file-has-acl.c: Include <signal.h>.
42002         (main): Terminate the test after 5 seconds.
42003         * modules/acl-tests (configure.ac): Check for alarm function.
42004
42005 2009-05-04  Bruno Haible  <bruno@clisp.org>
42006
42007         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
42008         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
42009         * modules/errno (configure.ac): Drop AC_REQUIRE.
42010         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
42011         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
42012
42013 2009-05-04  Simon Josefsson  <simon@josefsson.org>
42014
42015         * modules/glob-tests: New module.
42016         * tests/test-glob.c: Add.
42017
42018 2009-05-04  Simon Josefsson  <simon@josefsson.org>
42019
42020         * modules/fnmatch-tests: New module.
42021         * tests/test-fnmatch.c: Add.
42022
42023 2009-05-04  Eric Blake  <ebb9@byu.net>
42024
42025         maint: make the new no-submodule-changes rule VPATH-safe
42026         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
42027
42028 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
42029             Bruno Haible  <bruno@clisp.org>
42030
42031         acl: Fix infinite loop on FreeBSD.
42032         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
42033         of return value from acl_get_entry.
42034         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
42035         Likewise.
42036
42037 2009-05-03  Bruno Haible  <bruno@clisp.org>
42038
42039         * lib/acl-internal.h (acl_entries): Clarify return value.
42040         * lib/acl_entries.c (acl_entries): Likewise.
42041
42042 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
42043
42044         Bug fix in acl module.
42045         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
42046
42047 2009-05-03  Bruno Haible  <bruno@clisp.org>
42048
42049         Create gperf-generated file in the source dir, not in the build dir.
42050         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
42051         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
42052         * modules/unicase/locale-language (unicase/locale-languages.h):
42053         Likewise.
42054         * modules/unicase/special-casing (unicase/special-casing-table.h):
42055         Likewise.
42056         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
42057         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
42058         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
42059         Reported by Ralf Wildenhues.
42060
42061 2009-05-03  Bruno Haible  <bruno@clisp.org>
42062
42063         * modules/fnmatch (Description, configure.ac): Taken from
42064         fnmatch-posix.
42065         * modules/fnmatch-posix: Turn into a symbolic reference to the
42066         'fnmatch' module, and deprecate.
42067         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
42068
42069 2009-05-03  Bruno Haible  <bruno@clisp.org>
42070
42071         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
42072         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
42073         Reported by Ralf Wildenhues.
42074
42075 2009-05-04  Simon Josefsson  <simon@josefsson.org>
42076
42077         * m4/fnmatch.m4: Fix fnmatch re-define.
42078
42079 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
42080
42081         priv-set: new module and tests; adapt write-any-file
42082         * lib/priv-set.c: New file.
42083         * lib/priv-set.h: New file.
42084         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
42085         * lib/write-any-file.c: Simplify by using priv-set module.
42086         * m4/priv-set.m4: New file.
42087         * modules/priv-set: New file.
42088         * modules/unlinkdir: Add dependency on priv-set module.
42089         * modules/write-any-file: Likewise.
42090
42091         Tests for module 'priv-set'.
42092         * modules/priv-set-tests: New file.
42093         * tests/test-priv-set.c: New file.
42094
42095 2009-05-03  Jim Meyering  <meyering@redhat.com>
42096             Bruno Haible  <bruno@clisp.org>
42097
42098         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
42099         use the converted UTF-8 variant of the name instead.
42100
42101 2009-05-03  Jim Meyering  <meyering@redhat.com>
42102
42103         tests: tighten some getdate tests
42104         * tests/test-getdate.c (main): Tighten tests: require equality,
42105         not just greater than.  Set TZ envvar to UTC0.
42106
42107 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
42108
42109         getdate: correctly interpret "next monday" when run on a Monday
42110         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
42111         that e.g., "next tues" (when run on a tuesday) results in a date
42112         that is one week in the future, and not today's date.
42113         I.e., add a week when the wday is the same as the current one.
42114         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
42115         and earlier by Martin Bernreuther and Jan Minář.
42116         * tests/test-getdate.c (main): Check that "next DAY" is always in
42117         the future and that "last DAY" is always in the past.
42118
42119 2009-05-02  Jim Meyering  <meyering@redhat.com>
42120
42121         build: ensure that a release build fails when a submodule is unclean
42122         * top/maint.mk (no-submodule-changes): New rule.
42123         (alpha beta major): Depend on it.
42124
42125 2009-05-02  Bruno Haible  <bruno@clisp.org>
42126
42127         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
42128         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
42129         shell variable gl_fnmatch_required to detect which variant is
42130         requested.
42131         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
42132         gl_FUNC_FNMATCH_POSIX.
42133         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
42134         exclude fnmatch-posix.
42135
42136 2009-05-02  Bruno Haible  <bruno@clisp.org>
42137
42138         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
42139         * modules/mbsrtowcs (License): Change to LGPLv2+.
42140         * modules/strnlen1 (License): Likewise.
42141         Reported by Simon Josefsson.
42142
42143 2009-05-02  Bruno Haible  <bruno@clisp.org>
42144
42145         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
42146         "cross".
42147         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
42148         gnulib-tool was called with option --source-base=lib.
42149
42150 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42151
42152         Use automake *-local hooks without commands, for extensibility.
42153         * modules/localcharset (Makefile.am): Rename install-exec-local
42154         rule to install-exec-localcharset, and make it a prerequisite of
42155         install-exec-local.  Likewise, rename the uninstall-local rule to
42156         uninstall-localcharset, and make it a prerequisite of the former.
42157
42158 2009-05-01  Bruno Haible  <bruno@clisp.org>
42159
42160         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
42161         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
42162         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
42163         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
42164         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
42165         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
42166         m4/locale-zh.m4, m4/codeset.m4.
42167
42168         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
42169         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
42170         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
42171         m4/locale-zh.m4.
42172
42173         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
42174         REPLACE_WCRTOMB if mbstate_t must be replaced.
42175         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
42176         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
42177
42178 2009-05-01  Bruno Haible  <bruno@clisp.org>
42179
42180         Avoid compiler warnings when redefining macros defined by <libintl.h>.
42181         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
42182         dngettext, dcngettext, textdomain, bindtextdomain,
42183         bind_textdomain_codeset): Undefine before redefining.
42184
42185 2009-04-30  Bruno Haible  <bruno@clisp.org>
42186
42187         Fix bug introduced on 2009-04-25.
42188         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
42189         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
42190         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
42191         is defined.
42192         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
42193         is defined.
42194         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
42195         is defined.
42196         Reported by Elbert_Pol <elbert.pol@gmail.com>.
42197
42198 2009-04-28  Bruno Haible  <bruno@clisp.org>
42199
42200         Comment tweaks.
42201         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
42202         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
42203         * lib/unicase.h (u*_casexfrm): Likewise.
42204         Reported by Paolo Bonzini.
42205
42206 2009-04-28  Bruno Haible  <bruno@clisp.org>
42207
42208         Fix a compilation error.
42209         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
42210         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
42211         Reported by Jim Meyering.
42212
42213 2009-04-27  Bruno Haible  <bruno@clisp.org>
42214
42215         New module 'libunistring'.
42216         * modules/libunistring: New file.
42217         * m4/libunistring.m4: New file.
42218         * MODULES.html.sh (Unicode string functions): Add it.
42219
42220 2009-04-27  Eric Blake  <ebb9@byu.net>
42221
42222         maint.mk: allow package-specific header to provide <config.h>
42223         * top/maint.mk (sc_require_config_h): New variable.
42224         (sc_require_config_h, sc_require_config_h_first): Use it.
42225
42226 2009-04-27  Simon Josefsson  <simon@josefsson.org>
42227
42228         * top/maint.mk (sc_avoid_if_before_free): Except
42229         useless-if-before-free script.
42230
42231 2009-04-27  Eric Blake  <ebb9@byu.net>
42232
42233         maintainer-makefile: depend on all required helper scripts
42234         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
42235         useless-if-before-free.
42236         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
42237         version, rather than assuming gnulib checkout is available.
42238         Reported by Simen Josefsson.
42239
42240 2009-04-26  Bruno Haible  <bruno@clisp.org>
42241
42242         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
42243         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
42244         "../" or "..".
42245
42246 2009-04-26  Bruno Haible  <bruno@clisp.org>
42247
42248         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
42249         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
42250         AC_LIB_HAVE_LINKFLAGS.
42251
42252 2009-04-26  Bruno Haible  <bruno@clisp.org>
42253
42254         Simplify calling convention of u*_conv_from_encoding.
42255         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
42256         u32_conv_from_encoding): Expect a resultbuf argument and return the
42257         result directly as a pointer.
42258         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
42259         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
42260         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
42261         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
42262         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
42263         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
42264         Update.
42265         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
42266         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
42267         * lib/vasnprintf.c (VASNPRINTF): Update.
42268         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
42269         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
42270         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
42271         * NEWS: Mention the change.
42272
42273 2009-04-26  Bruno Haible  <bruno@clisp.org>
42274
42275         Simplify calling convention of u*_conv_to_encoding.
42276         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
42277         u32_conv_to_encoding): Expect a resultbuf argument and return the
42278         result directly as a pointer.
42279         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
42280         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
42281         freeing scaled_offsets if mem_iconveha failed.
42282         * lib/unicase/u-casexfrm.h (FUNC): Update.
42283         * lib/uninorm/u-normxfrm.h (FUNC): Update.
42284         * lib/vasnprintf.c (VASNPRINTF): Update.
42285         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
42286         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
42287         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
42288         * NEWS: Mention the change.
42289
42290 2009-04-26  Bruno Haible  <bruno@clisp.org>
42291
42292         Avoid test failures on AIX and OSF/1.
42293         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
42294         malloc(0).
42295         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
42296         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
42297         Likewise.
42298         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
42299         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
42300         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
42301         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
42302         * doc/posix-functions/malloc.texi: Document the portability problem
42303         related to malloc(0).
42304
42305 2009-04-26  Bruno Haible  <bruno@clisp.org>
42306
42307         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
42308         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
42309         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
42310
42311 2009-04-25  Bruno Haible  <bruno@clisp.org>
42312
42313         Avoid link error when creating a namespace clean library.
42314         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
42315         as macro with arguments if already defined as an alias.
42316         * lib/signbitf.c (gl_signbitf): Don't undefine.
42317         * lib/signbitd.c (gl_signbitd): Don't undefine.
42318         * lib/signbitl.c (gl_signbitl): Don't undefine.
42319
42320 2009-04-25  Jim Meyering  <meyering@redhat.com>
42321
42322         vc-list-files: fix another quoting bug
42323         * build-aux/vc-list-files: Avoid sed backslash expansion
42324         of pathological directory names.
42325
42326 2009-04-25  Eric Blake  <ebb9@byu.net>
42327
42328         vc-list-files: fix shell quoting error
42329         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
42330         timestamp.
42331
42332 2009-04-25  Jim Meyering  <meyering@redhat.com>
42333
42334         vc-list-files: restore lost functionality with subdir argument
42335         * build-aux/vc-list-files: When given a non-"." sub-directory
42336         argument, substitute the $dir/ prefix back onto each resulting name.
42337         Otherwise, coreutils' root_tests check would fail.
42338
42339 2009-04-24  Eric Blake  <ebb9@byu.net>
42340
42341         vc-list-files: ignore git symlinks
42342         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
42343         than ls-files, to ignore git symlinks.
42344
42345         maint.mk: import improvements from m4
42346         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
42347         (move_if_change): Delete unused macro.
42348         (news-date-check, vc-diff-check): Support VPATH builds.
42349         (announcement): Likewise.  Split --bootstrap-tools list...
42350         (boostrap-tools): ...into separate list, which can be overridden
42351         in cfg.mk.
42352         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
42353         requiring dependency on useless-if-before-free module.
42354         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
42355         Support VPATH builds.
42356
42357 2009-04-24  Jim Meyering  <meyering@redhat.com>
42358
42359         maint.mk: remove coreutils-specific rules and variables
42360         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
42361         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
42362         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
42363
42364         maint.mk: remove obsolete rule
42365         * top/maint.mk (rel-check): Remove rule.
42366         (WGET, WGETFLAGS): Remove now-unused variables.
42367
42368 2009-04-24  Simon Josefsson  <simon@josefsson.org>
42369
42370         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
42371         consistency.
42372
42373         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
42374         '$(PATH_SEPARATOR)' instead of ':'.
42375
42376 2009-04-24  Simon Josefsson  <simon@josefsson.org>
42377
42378         * lib/getopt1.c (main): Use 'const' for static array.
42379
42380 2009-04-24  Simon Josefsson  <simon@josefsson.org>
42381
42382         * top/maint.mk: Sync with coreutils.
42383         * NEWS: Explain incompatibilities.
42384
42385 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
42386             Bruno Haible  <bruno@clisp.org>
42387
42388         Fix cross-compilation results.
42389         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
42390         statement, as third argument of AC_TRY_RUN.
42391         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
42392         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
42393         Likewise.
42394         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
42395         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
42396         Likewise.
42397         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
42398         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
42399         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
42400
42401 2009-04-20  Bruno Haible  <bruno@clisp.org>
42402
42403         Avoid test failure on mingw.
42404         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
42405
42406 2009-04-20  Bruno Haible  <bruno@clisp.org>
42407
42408         Avoid compilation error on mingw.
42409         * modules/localename-tests (Depends-on): Add locale.
42410
42411 2009-04-19  Bruno Haible  <bruno@clisp.org>
42412
42413         Support for building a shared library on Windows platforms.
42414         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
42415         (main): Test the presence of UNINORM_NFC here.
42416         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
42417         (main): Test the presence of UNINORM_NFD here.
42418         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
42419         (main): Test the presence of UNINORM_NFKC here.
42420         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
42421         (main): Test the presence of UNINORM_NFKD here.
42422
42423 2009-04-19  Bruno Haible  <bruno@clisp.org>
42424
42425         Avoid a compiler warning.
42426         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
42427         Change type of variable 'sequence'.
42428
42429 2009-04-19  Bruno Haible  <bruno@clisp.org>
42430
42431         * modules/configmake (Makefile.am): When the contents of configmake.h
42432         does not change, arrange to preserve its modification time.
42433
42434 2009-04-17  Simon Josefsson  <simon@josefsson.org>
42435
42436         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
42437         gettext domain.
42438
42439 2009-04-16  Jim Meyering  <meyering@redhat.com>
42440
42441         useless-if-before-free: improve conversion code
42442         * build-aux/useless-if-before-free: Adjust code-in-comment to match
42443         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
42444
42445 2009-04-14  Bruno Haible  <bruno@clisp.org>
42446
42447         * modules/fcntl (Depends-on): Add extensions.
42448         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
42449
42450 2009-04-12  Ben Pfaff  <blp@gnu.org>
42451
42452         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
42453         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
42454
42455 2009-03-20  Ben Pfaff  <blp@gnu.org>
42456
42457         Make rename replace existing destinations on Windows.
42458         * m4/rename.m4: Add test for Mingw.
42459         * lib/rename.c: Add rename replacement that uses MoveFileEx with
42460         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
42461         * doc/posix-functions/rename.texi: Document.
42462
42463 2009-04-10  Bruno Haible  <bruno@clisp.org>
42464
42465         New include file "iconveh.h".
42466         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
42467         * lib/striconveh.h: Include it.
42468         (enum iconv_ilseq_handler): Remove definition.
42469         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
42470         striconveh.h.
42471         * lib/striconveha.c: Include striconveh.h.
42472         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
42473         * modules/striconveh (Files): Add lib/iconveh.h.
42474         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
42475         lib/striconveh.h.
42476
42477 2009-04-10  Bruno Haible  <bruno@clisp.org>
42478
42479         * lib/uniconv.h: Update comment.
42480
42481 2009-04-10  Bruno Haible  <bruno@clisp.org>
42482
42483         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
42484         always.
42485         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
42486         * lib/unistr/u16-mbtouc-aux.c: Likewise.
42487         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
42488         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
42489         "unistring-notinline.h", so that the function gets defined always.
42490         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
42491         * lib/unistr/u8-uctomb.c: Likewise.
42492         * lib/unistr/u16-mbtouc.c: Likewise.
42493         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
42494         * lib/unistr/u16-uctomb.c: Likewise.
42495         * lib/unistr/u32-mbtouc.c: Likewise.
42496         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
42497         * lib/unistr/u32-uctomb.c: Likewise.
42498
42499 2009-04-10  Bruno Haible  <bruno@clisp.org>
42500
42501         Mark 'utime' obsolete.
42502         * modules/utime (Status, Notice): New sections.
42503         Suggested by Jim Meyering.
42504
42505         Fix cross-compile guess for utime test.
42506         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
42507         autoconf.
42508         * doc/posix-functions/utime.texi: Give more precisions.
42509         Reported by Jan <ipif@ymail.com>.
42510
42511 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
42512
42513         filevercmp: correct today's change
42514         * lib/filevercmp.c: Also handle coreutils' test inputs.
42515         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
42516
42517         Fix regression in 'filevercmp' module. Thanks Sven Joachim
42518         for reporting it.
42519         * lib/filevercmp.c: Special handle for "", "." and "..".
42520         * tests/test-filevercmp.c: Enlarge the set suite.
42521
42522 2009-04-07  Jim Meyering  <meyering@redhat.com>
42523
42524         useless-if-before-free: show how to remove braced useless free, too
42525         * build-aux/useless-if-before-free: still only in a comment, though.
42526
42527 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
42528
42529         maint.mk: import changes to syntax-check macros from coreutils
42530         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
42531         Use them in the relevant macros.
42532
42533 2009-04-06  Bruno Haible  <bruno@clisp.org>
42534
42535         Fix unportable use of bit-fields.
42536         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
42537         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
42538         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
42539
42540 2009-04-06  Bruno Haible  <bruno@clisp.org>
42541
42542         Avoid test failures on AIX and OSF/1.
42543         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
42544         that malloc(0) = NULL.
42545         * tests/unicase/test-u8-tolower.c (check): Likewise.
42546         * tests/unicase/test-u8-totitle.c (check): Likewise.
42547         * tests/unicase/test-u8-toupper.c (check): Likewise.
42548         * tests/unicase/test-u16-casefold.c (check): Likewise.
42549         * tests/unicase/test-u16-tolower.c (check): Likewise.
42550         * tests/unicase/test-u16-totitle.c (check): Likewise.
42551         * tests/unicase/test-u16-toupper.c (check): Likewise.
42552         * tests/unicase/test-u32-casefold.c (check): Likewise.
42553         * tests/unicase/test-u32-tolower.c (check): Likewise.
42554         * tests/unicase/test-u32-totitle.c (check): Likewise.
42555         * tests/unicase/test-u32-toupper.c (check): Likewise.
42556         * tests/uninorm/test-u8-nfc.c (check): Likewise.
42557         * tests/uninorm/test-u8-nfd.c (check): Likewise.
42558         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
42559         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
42560         * tests/uninorm/test-u16-nfc.c (check): Likewise.
42561         * tests/uninorm/test-u16-nfd.c (check): Likewise.
42562         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
42563         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
42564         * tests/uninorm/test-u32-nfc.c (check): Likewise.
42565         * tests/uninorm/test-u32-nfd.c (check): Likewise.
42566         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
42567         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
42568
42569 2009-04-05  Bruno Haible  <bruno@clisp.org>
42570
42571         Work around an autoconf limitation.
42572         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
42573         comment line if it would be longer than 3 KB.
42574
42575 2009-04-05  Bruno Haible  <bruno@clisp.org>
42576
42577         Avoid test failure with libiconv-1.13.
42578         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
42579         of the expected test results.
42580
42581 2009-04-05  Bruno Haible  <bruno@clisp.org>
42582
42583         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
42584         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
42585         that it should be installed.
42586
42587 2009-04-05  Bruno Haible  <bruno@clisp.org>
42588
42589         * gnulib-tool: New option --copy-file.
42590         (func_usage): Document it.
42591         (func_dest_tmpfilename): Moved out of func_import.
42592         (func_add_file, func_update_file): New functions, extracted from
42593         func_import.
42594         (func_import): Update.
42595
42596 2009-04-05  Karl Berry  <karl@gnu.org>
42597
42598         * README: prominently mention gnulib-tool.
42599         Rearrange sections so getting the code is near the top.
42600
42601 2009-04-05  Bruno Haible  <bruno@clisp.org>
42602
42603         * lib/unicase.h: Mention u*_cmp2.
42604         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
42605         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
42606         * lib/unicase/ulc-casecmp.c: Likewise.
42607         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
42608         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
42609         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
42610         unistr/u8-cmp.
42611         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
42612         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
42613         unistr/u16-cmp.
42614         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
42615         unistr/u32-cmp.
42616
42617         * lib/uninorm.h: Mention u*_cmp2.
42618         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
42619         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
42620         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
42621         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
42622         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
42623         unistr/u8-cmp.
42624         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
42625         unistr/u16-cmp.
42626         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
42627         unistr/u32-cmp.
42628
42629         New module 'unistr/u32-cmp2'.
42630         * lib/unistr/u32-cmp2.c: New file.
42631         * modules/unistr/u32-cmp2: New file.
42632
42633         New module 'unistr/u16-cmp2'.
42634         * lib/unistr/u16-cmp2.c: New file.
42635         * modules/unistr/u16-cmp2: New file.
42636
42637         New module 'unistr/u8-cmp2'.
42638         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
42639         * lib/unistr/u8-cmp2.c: New file.
42640         * lib/unistr/u-cmp2.h: New file.
42641         * modules/unistr/u8-cmp2: New file.
42642
42643 2009-04-05  Bruno Haible  <bruno@clisp.org>
42644
42645         * lib/unictype.h (uc_property_is_valid): New macro.
42646         * tests/unictype/test-pr_byname.c (main): Use it.
42647
42648         * lib/unistr.h: Doc fixes.
42649         * lib/uniconv.h: Doc fixes.
42650         * lib/unictype.h: Doc fixes.
42651
42652 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
42653
42654         Port coreutils 7.2 to Solaris 8.
42655
42656         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
42657         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
42658         for Solaris 8.  This is a bit of a hack, as it means it's the
42659         caller's responsibility to add -lnsl if needed, but most likely it
42660         won't be needed since only getaddrinfo uses this and getaddrinfo
42661         isn't needed on Solaris 8.
42662
42663         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
42664         problem to Solaris 8 encountered with coreutils 7.2, which
42665         resulted in a message "fnmatch.c:292: warning: passing argument 4
42666         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
42667         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
42668
42669 2009-04-03  Simon Josefsson  <simon@josefsson.org>
42670
42671         * m4/ld-version-script.m4: Add FIXME comment.
42672
42673 2009-04-02  Simon Josefsson  <simon@josefsson.org>
42674
42675         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
42676         SOVERSION variable.
42677
42678 2009-04-02  Bruno Haible  <bruno@clisp.org>
42679
42680         * Makefile (info, html, dvi, pdf): Combine the rules.
42681         Suggested by Jim Meyering.
42682
42683 2009-04-01  Bruno Haible  <bruno@clisp.org>
42684
42685         * Makefile (info, html, dvi, pdf): New targets.
42686         Reported by Reuben Thomas <rrt@sc3d.org>.
42687
42688 2009-04-01  Bruno Haible  <bruno@clisp.org>
42689
42690         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
42691         can be put into PATH.
42692         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
42693
42694 2009-04-01  Bruno Haible  <bruno@clisp.org>
42695
42696         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
42697
42698 2009-04-01  Bruno Haible  <bruno@clisp.org>
42699
42700         Rename module 'visibility'.
42701         * modules/lib-symbol-visibility: Renamed from modules/visibility.
42702         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
42703         * doc/gnulib.texi: Update.
42704         * MODULES.html.sh (Misc): Update.
42705         * NEWS: Mention the change.
42706
42707 2009-04-01  Simon Josefsson  <simon@josefsson.org>
42708
42709         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
42710         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
42711         Eric Blake <ebb9@byu.net> for review.
42712         * MODULES.html.sh: Add lib-msvc-compat.
42713         * doc/gnulib.texi: Link to new section.
42714         * m4/ld-output-def.m4: New file.
42715         * doc/ld-output-def.texi: New file.
42716
42717 2009-04-01  Simon Josefsson  <simon@josefsson.org>
42718
42719         Rename ld-version-script to lib-symbol-versions.  Suggested by
42720         Bruno Haible <bruno@clisp.org>.
42721         * modules/ld-version-script: Renamed to lib-symbol-versions.
42722         * doc/ld-version-script.texi: Fix module name.
42723         * MODULES.html.sh: Add lib-symbol-versions.
42724
42725 2009-03-31  Simon Josefsson  <simon@josefsson.org>
42726
42727         * modules/u64-tests: New file.
42728         * tests/test-u64.c: New file.
42729
42730 2009-03-04  Simon Josefsson  <simon@josefsson.org>
42731
42732         * MODULES.html.sh: Mention u64.
42733         * modules/u64: New module.
42734         * modules/crypto/sha512: Depend on u64 module instead of providing
42735         u64.h.
42736
42737 2009-03-27  Eric Blake  <ebb9@byu.net>
42738
42739         test-strerror: make debugging EAI_SYSTEM easier
42740         * modules/getaddrinfo-tests (Depends-on): Add strerror.
42741         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
42742         failure was EAI_SYSTEM.
42743
42744 2009-03-25  Bruno Haible  <bruno@clisp.org>
42745
42746         Fix a problem with --enable-relocatable on Solaris 7.
42747         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
42748         since 2008-02-24.
42749
42750 2009-03-25  Eric Blake  <ebb9@byu.net>
42751
42752         test-sockets: avoid gcc warning
42753         * tests/test-sockets.c (main): Silence compiler warning.
42754
42755 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
42756
42757         New modules nproc, pthread, contributed by Glen Lenker.
42758
42759         * MODULES.html.sh: Add pthread, nproc.
42760         * lib/nproc.c: New file.
42761         * lib/nproc.h: New file.
42762         * lib/pthread.in.h: New file.
42763         * m4/pthread.m4: New file.
42764         * modules/nproc: New file.
42765         * modules/pthread: New file.
42766
42767 2009-03-24  Simon Josefsson  <simon@josefsson.org>
42768
42769         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
42770         New variable.
42771
42772 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
42773
42774         filevercmp: handle simple~ and numbered.~3~ backup suffixes
42775         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
42776         * tests/test-filevercmp.c: Add tests for backup suffixes.
42777
42778 2009-03-24  Simon Josefsson  <simon@josefsson.org>
42779
42780         * modules/stdlib (Depends-on): Add stdint, needed when defining
42781         struct random_data on, for example, HP-UX 10.20.  Reported by
42782         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
42783
42784 2009-03-24  Simon Josefsson  <simon@josefsson.org>
42785
42786         * lib/readline.c (readline): Call fflush on stdout after printing
42787         prompt.
42788
42789 2009-03-20  Bruno Haible  <bruno@clisp.org>
42790
42791         Remove dependency from 'close' module to -lws2_32 on native Windows.
42792         * lib/close-hook.h: New file.
42793         * lib/close-hook.c: New file.
42794         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
42795         w32sock.h.
42796         (_gl_close_fd_maybe_socket): Remove function.
42797         (rpl_close): Invoke execute_all_close_hooks instead of
42798         _gl_close_fd_maybe_socket.
42799         * lib/sockets.c: Include close-hook.h, w32sock.h.
42800         (close_fd_maybe_socket): New function, essentially from lib/close.c.
42801         (close_sockets_hook): New variable.
42802         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
42803         (gl_sockets_cleanup): Unregister it.
42804         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
42805         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
42806         * modules/close-hook: New file.
42807         * modules/close (Files): Remove lib/w32sock.h.
42808         (Depends-on): Add close-hook.
42809         (Link): Remove section.
42810         * modules/sockets (Files): Add lib/w32sock.h.
42811         (Depends-on): Add close-hook.
42812         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
42813         invocation.
42814         * NEWS: Mention that LIB_CLOSE is gone.
42815
42816 2009-03-23  Eric Blake  <ebb9@byu.net>
42817
42818         signal-tests: test previous patch
42819         * tests/test-signal.c: New file.
42820         * modules/signal-tests: Likewise.
42821
42822         signal.h: always support 'volatile sig_atomic_t'
42823         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
42824         (gl_SIGNAL_H_DEFAULTS): Add a default.
42825         * modules/signal (Makefile.am): Substitute if needed.
42826         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
42827         users can blindly add volatile.
42828         * doc/posix-headers/signal.texi (signal.h): Document it.
42829         Reported by Matthew Woehlke.
42830
42831 2009-03-23  Jim Meyering  <meyering@redhat.com>
42832
42833         pathmax: PATH_MAX: use pathconf only when available
42834         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
42835         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
42836         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
42837         This avoids a link failure in a PSP cross-compilation environment
42838         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
42839
42840         * lib/vasnprintf.c (divide): Fix typo in comment.
42841
42842 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42843
42844         * gnulib-tool (func_filter_filelist): Fix comment.
42845
42846 2009-03-20  Bruno Haible  <bruno@clisp.org>
42847
42848         Make sockets.h self-contained.
42849         * lib/sockets.c: Include sockets.h first.
42850         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
42851
42852 2009-03-19  Eric Blake  <ebb9@byu.net>
42853
42854         doc: mention more functions added in cygwin 1.7.0
42855         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
42856         addition.
42857         * doc/posix-functions/log2f.texi: Likewise.
42858
42859 2009-03-19  Jim Meyering  <meyering@redhat.com>
42860
42861         fsusage: avoid syntax error due to statement-before-declaration
42862         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
42863         after all declarations.  Reported by Matthew Woehlke in
42864         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
42865
42866 2009-03-18  Eric Blake  <ebb9@byu.net>
42867
42868         build-aux/compile: sync from automake
42869         * build-aux/compile: New file, from automake.
42870         * config/srclist.txt: Mention build-aux/compile.
42871
42872 2009-03-17  Bruno Haible  <bruno@clisp.org>
42873
42874         * lib/git-merge-changelog.c: Fix typo in comment.
42875         Reported by Reuben Thomas <rrt@sc3d.org>.
42876
42877 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
42878
42879         * m4/regex.m4: update and improve help for
42880         --without-included-regex.
42881
42882 2009-03-17  Simon Josefsson  <simon@josefsson.org>
42883
42884         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
42885         failure on missing include files.
42886
42887 2009-03-17  Eric Blake  <ebb9@byu.net>
42888
42889         doc: mention more functions added in cygwin 1.7.0
42890         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
42891         addition.
42892         * doc/posix-functions/fwscanf.texi: Likewise.
42893         * doc/posix-functions/swprintf.texi: Likewise.
42894         * doc/posix-functions/swscanf.texi: Likewise.
42895         * doc/posix-functions/vfwprintf.texi: Likewise.
42896         * doc/posix-functions/vfwscanf.texi: Likewise.
42897         * doc/posix-functions/vswprintf.texi: Likewise.
42898         * doc/posix-functions/vswscanf.texi: Likewise.
42899         * doc/posix-functions/vwprintf.texi: Likewise.
42900         * doc/posix-functions/vwscanf.texi: Likewise.
42901         * doc/posix-functions/wcscasecmp.texi: Likewise.
42902         * doc/posix-functions/wcsdup.texi: Likewise.
42903         * doc/posix-functions/wcsftime.texi: Likewise.
42904         * doc/posix-functions/wcsncasecmp.texi: Likewise.
42905         * doc/posix-functions/wprintf.texi: Likewise.
42906         * doc/posix-functions/wscanf.texi: Likewise.
42907         * doc/glibc-functions/gethostbyname2.texi: Likewise.
42908
42909 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42910
42911         maint.mk: really add $(AM_MAKEFLAGS)
42912         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
42913         was inadvertently omitted in the last commit.
42914         Spotted by Bruno Haible.
42915
42916         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
42917         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
42918         $(AM_MAKEFLAGS)' rather than plain `make'.
42919
42920         gnulib-tool: execute $MAKE not make
42921         * gnulib-tool: Default $MAKE to 'make'.
42922         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
42923         than make.  Initialize $MAKE in the do-autobuild script.
42924
42925         gnulib-tool: use $MAKE not make in generated files
42926         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
42927         make, in generated files.  Initialize $MAKE in the do-autobuild
42928         script.
42929
42930         * top/GNUmakefile (_have-git-version-gen): Fix typo.
42931
42932         GNUmakefile: disable parallelism only for multiple, recursive targets
42933         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
42934         additions in the Makefile.
42935         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
42936         by Automake.
42937         (.NOTPARALLEL): Only disable parallel builds if multiple targets
42938         are listed on the command line and at least one of them is
42939         listed in $(ALL_RECURSIVE_TARGETS).
42940
42941 2009-03-14  Bruno Haible  <bruno@clisp.org>
42942
42943         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
42944         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
42945         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
42946         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
42947         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
42948         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
42949         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
42950         unistr/u8-uctomb.
42951         * modules/unistr/u8-strchr (Depends-on): Likewise.
42952         * modules/unistr/u8-strrchr (Depends-on): Likewise.
42953         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
42954         unistr/u16-uctomb.
42955         * modules/unistr/u16-strchr (Depends-on): Likewise.
42956         * modules/unistr/u16-strrchr (Depends-on): Likewise.
42957
42958 2009-03-12  Bruno Haible  <bruno@clisp.org>
42959
42960         Work around select() bug on Interix 3.5.
42961         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
42962         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
42963         * m4/select.m4: New file.
42964         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
42965         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
42966         * modules/select (Files): Add m4/select.m4.
42967         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
42968         * modules/nanosleep (Depends-on): Add select.
42969         * modules/poll (Depends-on): Likewise.
42970         * doc/posix-functions/select.texi: Mention the Interix bug.
42971         Reported by Markus Duft <mduft@gentoo.org>.
42972
42973         * lib/select.c: Renamed from lib/winsock-select.c.
42974         * modules/select (Files): Add lib/select.c, remove
42975         lib/winsock-select.c.
42976         (configure.ac): Update.
42977
42978 2009-03-12  Jim Meyering  <meyering@redhat.com>
42979
42980         avoid gcc warnings about unused macro definitions
42981         * lib/readtokens.c (STREQ): Remove unused definition.
42982         * lib/xmalloc.c (SIZE_MAX): Likewise.
42983         * lib/openat-die.c (N_): Likewise.
42984         * lib/mountlist.c (SIZE_MAX): Remove definition.
42985         Instead, include <stdint.h>.
42986         * lib/readutmp.c: Likewise.
42987         * modules/readutmp (Depends-on): Add stdint.
42988         * modules/mountlist (Depends-on): Add stdint.
42989         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
42990
42991 2009-03-10  Bruno Haible  <bruno@clisp.org>
42992
42993         Tests for module 'mbmemcasecoll'.
42994         * modules/mbmemcasecoll-tests: New file.
42995         * tests/test-mbmemcasecoll1.sh: New file.
42996         * tests/test-mbmemcasecoll2.sh: New file.
42997         * tests/test-mbmemcasecoll3.sh: New file.
42998         * tests/test-mbmemcasecoll.c: New file.
42999
43000         New module 'mbmemcasecoll'.
43001         * lib/mbmemcasecoll.h: New file.
43002         * lib/mbmemcasecoll.c: New file.
43003         * modules/mbmemcasecoll: New file.
43004
43005         * tests/test-mbmemcasecmp.h: New file, extracted from
43006         tests/test-mbmemcasecmp.c.
43007         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
43008         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
43009         (main): Update.
43010         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
43011
43012 2009-03-09  Bruno Haible  <bruno@clisp.org>
43013
43014         Tests for module 'mbmemcasecmp'.
43015         * modules/mbmemcasecmp-tests: New file.
43016         * tests/test-mbmemcasecmp1.sh: New file.
43017         * tests/test-mbmemcasecmp2.sh: New file.
43018         * tests/test-mbmemcasecmp3.sh: New file.
43019         * tests/test-mbmemcasecmp.c: New file.
43020
43021         New module 'mbmemcasecmp'.
43022         * lib/mbmemcasecmp.h: New file.
43023         * lib/mbmemcasecmp.c: New file.
43024         * modules/mbmemcasecmp: New file.
43025
43026 2009-03-09  Bruno Haible  <bruno@clisp.org>
43027
43028         Tests for module 'unicase/ulc-casecoll'.
43029         * modules/unicase/ulc-casecoll-tests: New file.
43030         * tests/unicase/test-ulc-casecoll1.sh: New file.
43031         * tests/unicase/test-ulc-casecoll2.sh: New file.
43032         * tests/unicase/test-ulc-casecoll.c: New file.
43033
43034         New module 'unicase/ulc-casecoll'.
43035         * lib/unicase.h (ulc_casecoll): New declaration.
43036         * lib/unicase/ulc-casecoll.c: New file.
43037         * modules/unicase/ulc-casecoll: New file.
43038
43039         New module 'unicase/ulc-casexfrm'.
43040         * lib/unicase.h (ulc_casexfrm): New declaration.
43041         * lib/unicase/ulc-casexfrm.c: New file.
43042         * modules/unicase/ulc-casexfrm: New file.
43043
43044 2009-03-09  Bruno Haible  <bruno@clisp.org>
43045
43046         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
43047         invocations.
43048
43049         * m4/mbscasecmp.m4: Remove file.
43050         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
43051         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
43052
43053         * m4/mbscasestr.m4: Remove file.
43054         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
43055         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
43056
43057         * m4/mbschr.m4: Remove file.
43058         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
43059         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
43060
43061         * m4/mbscspn.m4: Remove file.
43062         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
43063         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
43064
43065         * m4/mbslen.m4: Remove file.
43066         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
43067         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
43068
43069         * m4/mbsncasecmp.m4: Remove file.
43070         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
43071         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
43072
43073         * m4/mbsnlen.m4: Remove file.
43074         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
43075         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
43076
43077         * m4/mbspbrk.m4: Remove file.
43078         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
43079         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
43080
43081         * m4/mbspcasecmp.m4: Remove file.
43082         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
43083         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
43084
43085         * m4/mbsrchr.m4: Remove file.
43086         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
43087         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
43088
43089         * m4/mbssep.m4: Remove file.
43090         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
43091         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
43092
43093         * m4/mbsspn.m4: Remove file.
43094         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
43095         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
43096
43097         * m4/mbsstr.m4: Remove file.
43098         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
43099         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
43100
43101         * m4/mbstok_r.m4: Remove file.
43102         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
43103         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
43104
43105         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
43106
43107         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
43108         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
43109
43110         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
43111
43112 2009-03-08  Bruno Haible  <bruno@clisp.org>
43113
43114         Tests for module 'unicase/ulc-casecmp'.
43115         * modules/unicase/ulc-casecmp-tests: New file.
43116         * tests/unicase/test-ulc-casecmp1.sh: New file.
43117         * tests/unicase/test-ulc-casecmp2.sh: New file.
43118         * tests/unicase/test-ulc-casecmp.c: New file.
43119
43120         New module 'unicase/ulc-casecmp'.
43121         * lib/unicase.h (ulc_casecmp): New declaration.
43122         * lib/unicase/ulc-casecmp.c: New file.
43123         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
43124         'const SRC_UNIT *'.
43125         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
43126         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
43127         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
43128         * modules/unicase/ulc-casecmp: New file.
43129
43130         Tests for module 'unicase/u32-is-cased'.
43131         * modules/unicase/u32-is-cased-tests: New file.
43132         * tests/unicase/test-u32-is-cased.c: New file.
43133
43134         Tests for module 'unicase/u16-is-cased'.
43135         * modules/unicase/u16-is-cased-tests: New file.
43136         * tests/unicase/test-u16-is-cased.c: New file.
43137
43138         Tests for module 'unicase/u8-is-cased'.
43139         * modules/unicase/u8-is-cased-tests: New file.
43140         * tests/unicase/test-u8-is-cased.c: New file.
43141         * tests/unicase/test-is-cased.h: New file.
43142
43143         New module 'unicase/u32-is-cased'.
43144         * lib/unicase/u32-is-cased.c: New file.
43145         * modules/unicase/u32-is-cased: New file.
43146
43147         New module 'unicase/u16-is-cased'.
43148         * lib/unicase/u16-is-cased.c: New file.
43149         * modules/unicase/u16-is-cased: New file.
43150
43151         New module 'unicase/u8-is-cased'.
43152         * lib/unicase/u8-is-cased.c: New file.
43153         * lib/unicase/u-is-cased.h: New file.
43154         * modules/unicase/u8-is-cased: New file.
43155
43156         Tests for module 'unicase/u32-is-casefolded'.
43157         * modules/unicase/u32-is-casefolded-tests: New file.
43158         * tests/unicase/test-u32-is-casefolded.c: New file.
43159
43160         Tests for module 'unicase/u16-is-casefolded'.
43161         * modules/unicase/u16-is-casefolded-tests: New file.
43162         * tests/unicase/test-u16-is-casefolded.c: New file.
43163
43164         Tests for module 'unicase/u8-is-casefolded'.
43165         * modules/unicase/u8-is-casefolded-tests: New file.
43166         * tests/unicase/test-u8-is-casefolded.c: New file.
43167         * tests/unicase/test-is-casefolded.h: New file.
43168
43169         New module 'unicase/u32-is-casefolded'.
43170         * lib/unicase/u32-is-casefolded.c: New file.
43171         * modules/unicase/u32-is-casefolded: New file.
43172
43173         New module 'unicase/u16-is-casefolded'.
43174         * lib/unicase/u16-is-casefolded.c: New file.
43175         * modules/unicase/u16-is-casefolded: New file.
43176
43177         New module 'unicase/u8-is-casefolded'.
43178         * lib/unicase/u8-is-casefolded.c: New file.
43179         * modules/unicase/u8-is-casefolded: New file.
43180
43181         Tests for module 'unicase/u32-is-titlecase'.
43182         * modules/unicase/u32-is-titlecase-tests: New file.
43183         * tests/unicase/test-u32-is-titlecase.c: New file.
43184
43185         Tests for module 'unicase/u16-is-titlecase'.
43186         * modules/unicase/u16-is-titlecase-tests: New file.
43187         * tests/unicase/test-u16-is-titlecase.c: New file.
43188
43189         Tests for module 'unicase/u8-is-titlecase'.
43190         * modules/unicase/u8-is-titlecase-tests: New file.
43191         * tests/unicase/test-u8-is-titlecase.c: New file.
43192         * tests/unicase/test-is-titlecase.h: New file.
43193
43194         New module 'unicase/u32-is-titlecase'.
43195         * lib/unicase/u32-is-titlecase.c: New file.
43196         * modules/unicase/u32-is-titlecase: New file.
43197
43198         New module 'unicase/u16-is-titlecase'.
43199         * lib/unicase/u16-is-titlecase.c: New file.
43200         * modules/unicase/u16-is-titlecase: New file.
43201
43202         New module 'unicase/u8-is-titlecase'.
43203         * lib/unicase/u8-is-titlecase.c: New file.
43204         * modules/unicase/u8-is-titlecase: New file.
43205
43206         Tests for module 'unicase/u32-is-lowercase'.
43207         * modules/unicase/u32-is-lowercase-tests: New file.
43208         * tests/unicase/test-u32-is-lowercase.c: New file.
43209
43210         Tests for module 'unicase/u16-is-lowercase'.
43211         * modules/unicase/u16-is-lowercase-tests: New file.
43212         * tests/unicase/test-u16-is-lowercase.c: New file.
43213
43214         Tests for module 'unicase/u8-is-lowercase'.
43215         * modules/unicase/u8-is-lowercase-tests: New file.
43216         * tests/unicase/test-u8-is-lowercase.c: New file.
43217         * tests/unicase/test-is-lowercase.h: New file.
43218
43219         New module 'unicase/u32-is-lowercase'.
43220         * lib/unicase/u32-is-lowercase.c: New file.
43221         * modules/unicase/u32-is-lowercase: New file.
43222
43223         New module 'unicase/u16-is-lowercase'.
43224         * lib/unicase/u16-is-lowercase.c: New file.
43225         * modules/unicase/u16-is-lowercase: New file.
43226
43227         New module 'unicase/u8-is-lowercase'.
43228         * lib/unicase/u8-is-lowercase.c: New file.
43229         * modules/unicase/u8-is-lowercase: New file.
43230
43231         Tests for module 'unicase/u32-is-uppercase'.
43232         * modules/unicase/u32-is-uppercase-tests: New file.
43233         * tests/unicase/test-u32-is-uppercase.c: New file.
43234
43235         Tests for module 'unicase/u16-is-uppercase'.
43236         * modules/unicase/u16-is-uppercase-tests: New file.
43237         * tests/unicase/test-u16-is-uppercase.c: New file.
43238
43239         Tests for module 'unicase/u8-is-uppercase'.
43240         * modules/unicase/u8-is-uppercase-tests: New file.
43241         * tests/unicase/test-u8-is-uppercase.c: New file.
43242         * tests/unicase/test-is-uppercase.h: New file.
43243
43244         New module 'unicase/u32-is-uppercase'.
43245         * lib/unicase/u32-is-uppercase.c: New file.
43246         * modules/unicase/u32-is-uppercase: New file.
43247
43248         New module 'unicase/u16-is-uppercase'.
43249         * lib/unicase/u16-is-uppercase.c: New file.
43250         * modules/unicase/u16-is-uppercase: New file.
43251
43252         New module 'unicase/u8-is-uppercase'.
43253         * lib/unicase/u8-is-uppercase.c: New file.
43254         * modules/unicase/u8-is-uppercase: New file.
43255
43256         New module 'unicase/u32-is-invariant'.
43257         * lib/unicase/u32-is-invariant.c: New file.
43258         * modules/unicase/u32-is-invariant: New file.
43259
43260         New module 'unicase/u16-is-invariant'.
43261         * lib/unicase/u16-is-invariant.c: New file.
43262         * modules/unicase/u16-is-invariant: New file.
43263
43264         New module 'unicase/u8-is-invariant'.
43265         * lib/unicase/u8-is-invariant.c: New file.
43266         * lib/unicase/invariant.h: New file.
43267         * lib/unicase/u-is-invariant.h: New file.
43268         * modules/unicase/u8-is-invariant: New file.
43269
43270         Tests for module 'unicase/u32-casecoll'.
43271         * modules/unicase/u32-casecoll-tests: New file.
43272         * tests/unicase/test-u32-casecoll.c: New file.
43273
43274         Tests for module 'unicase/u16-casecoll'.
43275         * modules/unicase/u16-casecoll-tests: New file.
43276         * tests/unicase/test-u16-casecoll.c: New file.
43277
43278         Tests for module 'unicase/u8-casecoll'.
43279         * modules/unicase/u8-casecoll-tests: New file.
43280         * tests/unicase/test-u8-casecoll.c: New file.
43281
43282         New module 'unicase/u32-casecoll'.
43283         * lib/unicase/u32-casecoll.c: New file.
43284         * modules/unicase/u32-casecoll: New file.
43285
43286         New module 'unicase/u16-casecoll'.
43287         * lib/unicase/u16-casecoll.c: New file.
43288         * modules/unicase/u16-casecoll: New file.
43289
43290         New module 'unicase/u8-casecoll'.
43291         * lib/unicase/u8-casecoll.c: New file.
43292         * lib/unicase/u-casecoll.h: New file.
43293         * modules/unicase/u8-casecoll: New file.
43294
43295         New module 'unicase/u32-casexfrm'.
43296         * lib/unicase/u32-casexfrm.c: New file.
43297         * modules/unicase/u32-casexfrm: New file.
43298
43299         New module 'unicase/u16-casexfrm'.
43300         * lib/unicase/u16-casexfrm.c: New file.
43301         * modules/unicase/u16-casexfrm: New file.
43302
43303         New module 'unicase/u8-casexfrm'.
43304         * lib/unicase/u8-casexfrm.c: New file.
43305         * lib/unicase/u-casexfrm.h: New file.
43306         * modules/unicase/u8-casexfrm: New file.
43307
43308         Tests for module 'unicase/u32-casecmp'.
43309         * modules/unicase/u32-casecmp-tests: New file.
43310         * tests/unicase/test-u32-casecmp.c: New file.
43311
43312         Tests for module 'unicase/u16-casecmp'.
43313         * modules/unicase/u16-casecmp-tests: New file.
43314         * tests/unicase/test-u16-casecmp.c: New file.
43315
43316         Tests for module 'unicase/u8-casecmp'.
43317         * modules/unicase/u8-casecmp-tests: New file.
43318         * tests/unicase/test-u8-casecmp.c: New file.
43319         * tests/unicase/test-casecmp.h: New file.
43320
43321         New module 'unicase/u32-casecmp'.
43322         * lib/unicase/u32-casecmp.c: New file.
43323         * modules/unicase/u32-casecmp: New file.
43324
43325         New module 'unicase/u16-casecmp'.
43326         * lib/unicase/u16-casecmp.c: New file.
43327         * modules/unicase/u16-casecmp: New file.
43328
43329         New module 'unicase/u8-casecmp'.
43330         * lib/unicase/u8-casecmp.c: New file.
43331         * lib/unicase/u-casecmp.h: New file.
43332         * modules/unicase/u8-casecmp: New file.
43333
43334         Tests for module 'unicase/u32-casefold'.
43335         * modules/unicase/u32-casefold-tests: New file.
43336         * tests/unicase/test-u32-casefold.c: New file.
43337
43338         Tests for module 'unicase/u16-casefold'.
43339         * modules/unicase/u16-casefold-tests: New file.
43340         * tests/unicase/test-u16-casefold.c: New file.
43341
43342         Tests for module 'unicase/u8-casefold'.
43343         * modules/unicase/u8-casefold-tests: New file.
43344         * tests/unicase/test-u8-casefold.c: New file.
43345
43346         New module 'unicase/u32-casefold'.
43347         * lib/unicase/u32-casefold.c: New file.
43348         * modules/unicase/u32-casefold: New file.
43349
43350         New module 'unicase/u16-casefold'.
43351         * lib/unicase/u16-casefold.c: New file.
43352         * modules/unicase/u16-casefold: New file.
43353
43354         New module 'unicase/u8-casefold'.
43355         * lib/unicase/u8-casefold.c: New file.
43356         * lib/unicase/u-casefold.h: New file.
43357         * modules/unicase/u8-casefold: New file.
43358
43359         New module 'unicase/tocasefold'.
43360         * lib/unicase/casefold.h: New file.
43361         * lib/unicase/tocasefold.c: New file.
43362         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
43363         * modules/unicase/tocasefold: New file.
43364
43365         Tests for module 'unicase/u32-totitle'.
43366         * modules/unicase/u32-totitle-tests: New file.
43367         * tests/unicase/test-u32-totitle.c: New file.
43368
43369         Tests for module 'unicase/u16-totitle'.
43370         * modules/unicase/u16-totitle-tests: New file.
43371         * tests/unicase/test-u16-totitle.c: New file.
43372
43373         Tests for module 'unicase/u8-totitle'.
43374         * modules/unicase/u8-totitle-tests: New file.
43375         * tests/unicase/test-u8-totitle.c: New file.
43376
43377         New module 'unicase/u32-totitle'.
43378         * lib/unicase/u32-totitle.c: New file.
43379         * modules/unicase/u32-totitle: New file.
43380
43381         New module 'unicase/u16-totitle'.
43382         * lib/unicase/u16-totitle.c: New file.
43383         * modules/unicase/u16-totitle: New file.
43384
43385         New module 'unicase/u8-totitle'.
43386         * lib/unicase/u8-totitle.c: New file.
43387         * lib/unicase/u-totitle.h: New file.
43388         * modules/unicase/u8-totitle: New file.
43389
43390         Tests for module 'unicase/u32-tolower'.
43391         * modules/unicase/u32-tolower-tests: New file.
43392         * tests/unicase/test-u32-tolower.c: New file.
43393
43394         Tests for module 'unicase/u16-tolower'.
43395         * modules/unicase/u16-tolower-tests: New file.
43396         * tests/unicase/test-u16-tolower.c: New file.
43397
43398         Tests for module 'unicase/u8-tolower'.
43399         * modules/unicase/u8-tolower-tests: New file.
43400         * tests/unicase/test-u8-tolower.c: New file.
43401
43402         New module 'unicase/u32-tolower'.
43403         * lib/unicase/u32-tolower.c: New file.
43404         * modules/unicase/u32-tolower: New file.
43405
43406         New module 'unicase/u16-tolower'.
43407         * lib/unicase/u16-tolower.c: New file.
43408         * modules/unicase/u16-tolower: New file.
43409
43410         New module 'unicase/u8-tolower'.
43411         * lib/unicase/u8-tolower.c: New file.
43412         * modules/unicase/u8-tolower: New file.
43413
43414         Tests for module 'unicase/u32-toupper'.
43415         * modules/unicase/u32-toupper-tests: New file.
43416         * tests/unicase/test-u32-toupper.c: New file.
43417
43418         Tests for module 'unicase/u16-toupper'.
43419         * modules/unicase/u16-toupper-tests: New file.
43420         * tests/unicase/test-u16-toupper.c: New file.
43421
43422         Tests for module 'unicase/u8-toupper'.
43423         * modules/unicase/u8-toupper-tests: New file.
43424         * tests/unicase/test-u8-toupper.c: New file.
43425
43426         New module 'unicase/u32-toupper'.
43427         * lib/unicase/u32-toupper.c: New file.
43428         * modules/unicase/u32-toupper: New file.
43429
43430         New module 'unicase/u16-toupper'.
43431         * lib/unicase/u16-toupper.c: New file.
43432         * modules/unicase/u16-toupper: New file.
43433
43434         New module 'unicase/u8-toupper'.
43435         * lib/unicase/u8-toupper.c: New file.
43436         * modules/unicase/u8-toupper: New file.
43437
43438         New module 'unicase/u32-casemap'.
43439         * lib/unicase/u32-casemap.c: New file.
43440         * modules/unicase/u32-casemap: New file.
43441
43442         New module 'unicase/u16-casemap'.
43443         * lib/unicase/u16-casemap.c: New file.
43444         * modules/unicase/u16-casemap: New file.
43445
43446         New module 'unicase/u8-casemap'.
43447         * lib/unicase/unicasemap.h: New file.
43448         * lib/unicase/u8-casemap.c: New file.
43449         * lib/unicase/u-casemap.h: New file.
43450         * modules/unicase/u8-casemap: New file.
43451
43452         New module 'unicase/special-casing'.
43453         * lib/unicase/special-casing.h: New file.
43454         * lib/unicase/special-casing.c: New file.
43455         * lib/unicase/special-casing-table.gperf: New file, generated by
43456         gen-uni-tables.c.
43457         * modules/unicase/special-casing: New file.
43458
43459         Tests for module 'unicase/locale-language'.
43460         * modules/unicase/locale-language-tests: New file.
43461         * tests/unicase/test-locale-language.sh: New file.
43462         * tests/unicase/test-locale-language.c: New file.
43463
43464         New module 'unicase/locale-language'.
43465         * lib/unicase/locale-language.c: New file.
43466         * lib/unicase/locale-languages.gperf: New file.
43467         * modules/unicase/locale-language: New file.
43468
43469         Generate more tables for case conversion and case folding.
43470         * lib/gen-uni-tables.c (SCC_*): New enum items.
43471         (struct special_casing_rule): New type.
43472         (casing_rules, num_casing_rules, allocated_casing_rules): New
43473         variables.
43474         (add_casing_rule, fill_casing_rules): New functions.
43475         (struct casefold_rule): New type.
43476         (casefolding_rules, num_casefolding_rules,
43477         allocated_casefolding_rules): New variables.
43478         (fill_casefolding_rules): New function.
43479         (unicode_casefold): New variable.
43480         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
43481         sort_casing_rules, output_casing_rules): New functions.
43482         (main): Accept to more arguments: SpecialCasing.txt and
43483         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
43484         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
43485         Output mapping for casefolding.
43486
43487         * lib/unicase.h: Include stdbool.h, uninorm.h.
43488         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
43489         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
43490         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
43491         arguments.
43492         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
43493         resultp arguments.
43494         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
43495         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
43496         resultp arguments.
43497         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
43498         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
43499         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
43500         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
43501         declarations.
43502         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
43503
43504 2009-03-08  Bruno Haible  <bruno@clisp.org>
43505
43506         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
43507         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
43508         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
43509         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
43510
43511 2009-03-07  Bruno Haible  <bruno@clisp.org>
43512
43513         Adjust u*_normcmp, u*_normcoll API.
43514         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
43515         u16_normcoll, u32_normcoll): Change failure conventions.
43516         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
43517         errno and return -1.
43518         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
43519
43520 2009-03-07  Bruno Haible  <bruno@clisp.org>
43521
43522         Tests for module 'uninorm/u32-normcoll'.
43523         * modules/uninorm/u32-normcoll-tests: New file.
43524         * tests/uninorm/test-u32-normcoll.c: New file.
43525
43526         Tests for module 'uninorm/u16-normcoll'.
43527         * modules/uninorm/u16-normcoll-tests: New file.
43528         * tests/uninorm/test-u16-normcoll.c: New file.
43529
43530         Tests for module 'uninorm/u8-normcoll'.
43531         * modules/uninorm/u8-normcoll-tests: New file.
43532         * tests/uninorm/test-u8-normcoll.c: New file.
43533
43534 2009-03-07  Bruno Haible  <bruno@clisp.org>
43535
43536         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
43537         tests/uninorm/test-u32-normcmp.c.
43538         * tests/uninorm/test-u32-normcmp.c: Include it.
43539         (test_nonascii): New function, extracted from main. Add some more
43540         tests.
43541         (main): Invoke test_ascii and test_nonascii.
43542         * modules/uninorm/u32-normcmp-tests (Files): Add
43543         tests/uninorm/test-u32-normcmp.h.
43544         (Depends-on): Remove uninorm/u32-normcmp.
43545
43546         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
43547         tests/uninorm/test-u16-normcmp.c.
43548         * tests/uninorm/test-u16-normcmp.c: Include it.
43549         (test_nonascii): New function, extracted from main. Add some more
43550         tests.
43551         (main): Invoke test_ascii and test_nonascii.
43552         * modules/uninorm/u16-normcmp-tests (Files): Add
43553         tests/uninorm/test-u16-normcmp.h.
43554         (Depends-on): Remove uninorm/u16-normcmp.
43555
43556         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
43557         tests/uninorm/test-u8-normcmp.c.
43558         * tests/uninorm/test-u8-normcmp.c: Include it.
43559         (test_nonascii): New function, extracted from main. Add some more
43560         tests.
43561         (main): Invoke test_ascii and test_nonascii.
43562         * modules/uninorm/u8-normcmp-tests (Files): Add
43563         tests/uninorm/test-u8-normcmp.h.
43564         (Depends-on): Remove uninorm/u8-normcmp.
43565
43566 2009-03-07  Bruno Haible  <bruno@clisp.org>
43567
43568         New module 'uninorm/u32-normcoll'.
43569         * lib/uninorm/u32-normcoll.c: New file.
43570         * modules/uninorm/u32-normcoll: New file.
43571
43572         New module 'uninorm/u16-normcoll'.
43573         * lib/uninorm/u16-normcoll.c: New file.
43574         * modules/uninorm/u16-normcoll: New file.
43575
43576         New module 'uninorm/u8-normcoll'.
43577         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
43578         declarations.
43579         * lib/uninorm/u8-normcoll.c: New file.
43580         * lib/uninorm/u-normcoll.h: New file.
43581         * modules/uninorm/u8-normcoll: New file.
43582
43583         New module 'uninorm/u32-normxfrm'.
43584         * lib/uninorm/u32-normxfrm.c: New file.
43585         * modules/uninorm/u32-normxfrm: New file.
43586
43587         New module 'uninorm/u16-normxfrm'.
43588         * lib/uninorm/u16-normxfrm.c: New file.
43589         * modules/uninorm/u16-normxfrm: New file.
43590
43591         New module 'uninorm/u8-normxfrm'.
43592         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
43593         declarations.
43594         * lib/uninorm/u8-normxfrm.c: New file.
43595         * lib/uninorm/u-normxfrm.h: New file.
43596         * modules/uninorm/u8-normxfrm: New file.
43597
43598 2009-03-07  Bruno Haible  <bruno@clisp.org>
43599
43600         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
43601         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
43602         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
43603
43604 2009-03-07  Bruno Haible  <bruno@clisp.org>
43605
43606         New module 'memxfrm'.
43607         * lib/memxfrm.h: New file.
43608         * lib/memxfrm.c: New file.
43609         * modules/memxfrm: New file.
43610
43611 2009-03-07  Bruno Haible  <bruno@clisp.org>
43612
43613         New module 'memcmp2'.
43614         * lib/memcmp2.h: New file.
43615         * lib/memcmp2.c: New file.
43616         * modules/memcmp2: New file.
43617
43618 2009-03-07  Bruno Haible  <bruno@clisp.org>
43619
43620         Tests for module 'uninorm/decomposing-form'.
43621         * modules/uninorm/decomposing-form-tests: New file.
43622         * tests/uninorm/test-decomposing-form.c: New file.
43623
43624         New module 'uninorm/decomposing-form'.
43625         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
43626         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
43627         Add 'decomposing_variant' field.
43628         * lib/uninorm/decomposing-form.c: New file.
43629         * lib/uninorm/nfc.c (uninorm_nfc): Update.
43630         * lib/uninorm/nfd.c (uninorm_nfd): Update.
43631         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
43632         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
43633         * modules/uninorm/decomposing-form: New file.
43634         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
43635         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
43636
43637 2009-03-07  Bruno Haible  <bruno@clisp.org>
43638
43639         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
43640         strings.
43641
43642 2009-03-06  Bruno Haible  <bruno@clisp.org>
43643
43644         Tests for module 'uninorm/u32-normcmp'.
43645         * tests/uninorm/test-u32-normcmp.c: New file.
43646         * modules/uninorm/u32-normcmp-tests: New file.
43647
43648         Tests for module 'uninorm/u16-normcmp'.
43649         * tests/uninorm/test-u16-normcmp.c: New file.
43650         * modules/uninorm/u16-normcmp-tests: New file.
43651
43652         Tests for module 'uninorm/u8-normcmp'.
43653         * tests/uninorm/test-u8-normcmp.c: New file.
43654         * modules/uninorm/u8-normcmp-tests: New file.
43655
43656         New module 'uninorm/u32-normcmp'.
43657         * lib/uninorm/u32-normcmp.c: New file.
43658         * modules/uninorm/u32-normcmp: New file.
43659
43660         New module 'uninorm/u16-normcmp'.
43661         * lib/uninorm/u16-normcmp.c: New file.
43662         * modules/uninorm/u16-normcmp: New file.
43663
43664         New module 'uninorm/u8-normcmp'.
43665         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
43666         declarations.
43667         * lib/uninorm/u8-normcmp.c: New file.
43668         * lib/uninorm/u-normcmp.h: New file.
43669         * modules/uninorm/u8-normcmp: New file.
43670
43671 2009-03-06  Bruno Haible  <bruno@clisp.org>
43672
43673         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
43674         Reported by Eric Blake.
43675
43676 2009-03-06  Eric Blake  <ebb9@byu.net>
43677             Bruno Haible  <bruno@clisp.org>
43678
43679         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
43680         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
43681         condition.
43682         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
43683         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
43684         condition.
43685         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
43686
43687 2009-03-06  Eric Blake  <ebb9@byu.net>
43688
43689         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
43690         to avoid compiler warnings.
43691         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
43692
43693 2009-03-05  Bruno Haible  <bruno@clisp.org>
43694
43695         * tests/test-ftell.c (main): Disable test beyond end of file on
43696         FreeMiNT.
43697         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
43698
43699 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
43700
43701         * lib/filevercmp.c: Move hidden files up in ordering.
43702         * tests/test-filevercmp.c: Add tests for hidden files.
43703
43704 2009-03-04  Bruno Haible  <bruno@clisp.org>
43705
43706         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
43707         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
43708         AM_CFLAGS.
43709         Reported by Simon Josefsson.
43710
43711 2009-03-03  Bruno Haible  <bruno@clisp.org>
43712
43713         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
43714         Reported by Simon Josefsson.
43715
43716         * doc/ld-version-script.texi: Update node reference.
43717
43718 2009-03-03  Bruno Haible  <bruno@clisp.org>
43719
43720         * modules/visibility (License): Change to 'unlimited'.
43721         Suggested by Simon Josefsson.
43722
43723 2009-03-03  Jim Meyering  <meyering@redhat.com>
43724
43725         unlinkdir: cannot_unlink_dir may modify process state
43726         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
43727         it's neither thread-safe nor appropriate for use in a library.
43728
43729 2009-03-03  Eric Blake  <ebb9@byu.net>
43730
43731         test-closein: silence test under Darwin
43732         * tests/test-closein.sh: Ignore stderr from cat, since we don't
43733         care if it dies from EPIPE or EBADF.
43734
43735 2009-03-03  Bruno Haible  <bruno@clisp.org>
43736
43737         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
43738         earlier.
43739         * doc/visibility.texi: Fix @node and @section.
43740
43741 2009-03-03  Simon Josefsson  <simon@josefsson.org>
43742
43743         * doc/gnulib.texi: Link to sections for ld version script and
43744         visibility.
43745         * doc/visibility.texi: Add @node and @section.
43746         * modules/ld-version-script: New module.
43747         * m4/ld-version-script.m4: New file.
43748         * doc/ld-version-script.texi: New file.
43749
43750 2009-03-02  David Lutterkort  <lutter@redhat.com>
43751
43752         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
43753         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
43754
43755 2009-03-02  Bruno Haible  <bruno@clisp.org>
43756
43757         * doc/visibility.texi: Mention libtool's -export-symbols option.
43758
43759 2009-03-02  Jim Meyering  <meyering@redhat.com>
43760
43761         announce-gen: new option: --no-print-checksums
43762         * build-aux/announce-gen (usage): Describe it.
43763         (print_checksums): Print a newline here, not in the [*] footnote.
43764         (main): Honor it.
43765
43766 2009-03-01  Bruno Haible  <bruno@clisp.org>
43767
43768         Use socklen_t in the native Windows replacements prototypes.
43769         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
43770         instead of 'int'.
43771         * lib/getsockopt.c (rpl_getsockopt): Likewise.
43772         * lib/setsockopt.c (rpl_setsockopt): Likewise.
43773         * modules/getsockopt (Depends-on): Add socklen.
43774         * modules/setsockopt (Depends-on): Add socklen.
43775
43776 2009-03-01  Bruno Haible  <bruno@clisp.org>
43777
43778         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
43779         least 4.2.
43780
43781 2009-03-01  Eric Blake  <ebb9@byu.net>
43782             Bruno Haible  <bruno@clisp.org>
43783
43784         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
43785         error messages.
43786         * lib/wait-process.c (wait_subprocess): Omit error message about
43787         deadly signal sent to the child of termsigp != NULL.
43788
43789 2009-03-01  Eric Blake  <ebb9@byu.net>
43790
43791         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
43792
43793 2009-03-01  Bruno Haible  <bruno@clisp.org>
43794
43795         Avoid a gcc warning.
43796         * tests/test-sched.c (b): Make global.
43797         Reported by Eric Blake.
43798
43799 2009-01-19  Martin Lambers  <marlam@marlam.de>
43800
43801         Provide POSIX semantics for socket timeout options on W32.
43802         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
43803         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
43804         * modules/setsockopt: Depend on sys_time module for struct timeval.
43805         * modules/getsockopt: Depend on sys_time module for struct timeval.
43806
43807 2009-03-01  Simon Josefsson  <simon@josefsson.org>
43808
43809         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
43810         __USE_GNU, for consistency with netdb.in.h.
43811         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
43812
43813 2009-03-01  Bruno Haible  <bruno@clisp.org>
43814
43815         More support for FreeMiNT.
43816         * lib/fseeko.c (rpl_fseeko): Complete last commit.
43817         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
43818
43819 2009-03-01  Bruno Haible  <bruno@clisp.org>
43820
43821         More support for FreeMiNT.
43822         * lib/fpurge.c (fpurge): Correct last commit.
43823         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
43824
43825 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43826
43827         Fix unportable awk script in vc-list-files.
43828         * build-aux/vc-list-files: In the replacement awk script, use
43829         substr with a second argument of 1, not zero.
43830         Report by Simon Josefsson.
43831
43832 2009-02-28  Bruno Haible  <bruno@clisp.org>
43833
43834         More support for FreeMiNT.
43835         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
43836         to FreeMiNT today.
43837         * lib/fwriting.c (fwriting): Likewise.
43838         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
43839
43840 2009-02-28  Bruno Haible  <bruno@clisp.org>
43841
43842         * tests/test-freadseek.c (main): Disable test beyond end of file on
43843         FreeMiNT.
43844         * tests/test-ftello.c (main): Likewise.
43845         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
43846
43847 2009-02-28  Bruno Haible  <bruno@clisp.org>
43848
43849         Add tentative support for FreeMiNT.
43850         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
43851         * lib/fpurge.c (fpurge): Likewise.
43852         * lib/freadable.c (freadable): Likewise.
43853         * lib/freading.c (freading): Likewise.
43854         * lib/freadptr.c (freadptr): Likewise.
43855         * lib/freadseek.c (freadptrinc): Likewise.
43856         * lib/fseeko.c (rpl_fseeko): Likewise.
43857         * lib/fseterr.c (fseterr): Likewise.
43858         * lib/fwritable.c (fwritable): Likewise.
43859         * lib/fwriting.c (fwriting): Likewise.
43860         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
43861         Hourihane.
43862         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
43863
43864 2009-02-28  Bruno Haible  <bruno@clisp.org>
43865
43866         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
43867         SIGCHLD.
43868         Reported by Jim Meyering.
43869
43870 2009-02-28  Bruno Haible  <bruno@clisp.org>
43871
43872         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
43873         Mention the results of these tests on various platforms.
43874         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
43875         order.
43876         * doc/posix-functions/printf.texi: Likewise.
43877         * doc/posix-functions/snprintf.texi: Likewise.
43878         * doc/posix-functions/sprintf.texi: Likewise.
43879         * doc/posix-functions/vfprintf.texi: Likewise.
43880         * doc/posix-functions/vprintf.texi: Likewise.
43881         * doc/posix-functions/vsnprintf.texi: Likewise.
43882         * doc/posix-functions/vsprintf.texi: Likewise.
43883         * doc/glibc-functions/obstack_printf.texi: Likewise.
43884         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
43885
43886 2009-02-28  Bruno Haible  <bruno@clisp.org>
43887
43888         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
43889         Reported by Loïc Minier <lool@dooz.org>.
43890
43891 2009-02-27  Bruno Haible  <bruno@clisp.org>
43892
43893         * gnulib-tool (func_import): Make the sed expression used to create the
43894         sed script for updating the .gitignore file POSIX compliant.
43895         Reported by Eric Blake.
43896
43897 2009-02-27  Bruno Haible  <bruno@clisp.org>
43898
43899         * gnulib-tool (sed): Don't alias as "sed --posix".
43900         Reported by Eric Blake.
43901
43902 2009-02-27  Bruno Haible  <bruno@clisp.org>
43903
43904         Avoid test link errors.
43905         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
43906         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
43907         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
43908         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
43909         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
43910
43911 2009-02-27  Bruno Haible  <bruno@clisp.org>
43912
43913         Avoid spurious "(cached)" in configure output.
43914         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
43915         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
43916         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
43917         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
43918         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
43919         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
43920         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
43921         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
43922         Reported by Eric Blake.
43923
43924 2009-02-27  Eric Blake  <ebb9@byu.net>
43925
43926         printf: fix regression in previous patch
43927         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
43928
43929 2009-02-27  Bruno Haible  <bruno@clisp.org>
43930
43931         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
43932         value.
43933         * lib/stdint.in.h: Likewise.
43934         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
43935
43936 2009-02-27  Eric Blake  <ebb9@byu.net>
43937
43938         doc: mention more functions added in cygwin 1.7.0
43939         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
43940         addition.
43941         * doc/posix-functions/open_wmemstream.texi: Likewise.
43942         * doc/posix-functions/wcsnlen.texi: Likewise.
43943         * doc/posix-functions/wcsnrtombs.texi: Likewise.
43944         * doc/posix-functions/wcstod.texi: Likewise.
43945         * doc/posix-functions/wcstof.texi: Likewise.
43946         * doc/posix-functions/wcstoimax.texi: Likewise.
43947         * doc/posix-functions/wcstok.texi: Likewise.
43948         * doc/posix-functions/wcstoumax.texi: Likewise.
43949
43950         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
43951         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
43952         * doc/posix-functions/fprintf.texi: Update.
43953         * doc/posix-functions/printf.texi: Update.
43954         * doc/posix-functions/snprintf.texi: Update.
43955         * doc/posix-functions/sprintf.texi: Update.
43956         * doc/posix-functions/vfprintf.texi: Update.
43957         * doc/posix-functions/vprintf.texi: Update.
43958         * doc/posix-functions/vsnprintf.texi: Update.
43959         * doc/posix-functions/vsprintf.texi: Update.
43960         * doc/glibc-functions/obstack_printf.texi: Update.
43961         * doc/glibc-functions/obstack_vprintf.texi: Update.
43962
43963 2009-02-26  Eric Blake  <ebb9@byu.net>
43964
43965         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
43966         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
43967         compilation bug by using runtime conversion.
43968         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
43969         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
43970         * modules/ceill-tests (Files): Use nan.h.
43971         * modules/floorl-tests (Files): Likewise.
43972         * modules/frexpl-tests (Files): Likewise.
43973         * modules/isnanl-tests (Files): Likewise.
43974         * modules/ldexpl-tests (Files): Likewise.
43975         * modules/roundl-tests (Files): Likewise.
43976         * modules/truncl-tests (Files): Likewise.
43977         * tests/test-ceill.c (main): Use a working NaN.
43978         * tests/test-floorl.c (main): Likewise.
43979         * tests/test-frexpl.c (main): Likewise.
43980         * tests/test-isnan.c (test_long_double): Likewise.
43981         * tests/test-isnanl.h (main): Likewise.
43982         * tests/test-ldexpl.h (main): Likewise.
43983         * tests/test-roundl.h (main): Likewise.
43984         * tests/test-truncl.h (main): Likewise.
43985         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
43986
43987 2009-02-26  Eric Blake  <ebb9@byu.net>
43988             Bruno Haible  <bruno@clisp.org>
43989
43990         Work around a *printf bug with %ls on Solaris.
43991         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
43992         precision is specified, sprintf stops converting the wide string
43993         argument when the number of bytes that have been produced by this
43994         conversion equals or exceeds the precision.
43995         * doc/posix-functions/fprintf.texi: Update.
43996         * doc/posix-functions/printf.texi: Update.
43997         * doc/posix-functions/snprintf.texi: Update.
43998         * doc/posix-functions/sprintf.texi: Update.
43999         * doc/posix-functions/vfprintf.texi: Update.
44000         * doc/posix-functions/vprintf.texi: Update.
44001         * doc/posix-functions/vsnprintf.texi: Update.
44002         * doc/posix-functions/vsprintf.texi: Update.
44003         * doc/glibc-functions/obstack_printf.texi: Update.
44004         * doc/glibc-functions/obstack_vprintf.texi: Update.
44005
44006 2009-02-26  Eric Blake  <ebb9@byu.net>
44007
44008         stdlib: favor compiler check of random.h
44009         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
44010         to avoid an ObjC random.h installed by Swarm.
44011
44012 2009-02-26  Bruno Haible  <bruno@clisp.org>
44013
44014         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
44015         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
44016         Reported by Gary V. Vaughan <gary@gnu.org>.
44017
44018 2009-02-26  Bruno Haible  <bruno@clisp.org>
44019
44020         Fix *printf behaviour regarding the %ls directive.
44021         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
44022         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
44023         NEED_PRINTF_DIRECTIVE_LS.
44024         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
44025         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
44026         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
44027         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
44028         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
44029         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
44030         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
44031         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
44032         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
44033         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
44034         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
44035         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
44036         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
44037         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
44038         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
44039         * doc/posix-functions/fprintf.texi: Update.
44040         * doc/posix-functions/printf.texi: Update.
44041         * doc/posix-functions/snprintf.texi: Update.
44042         * doc/posix-functions/sprintf.texi: Update.
44043         * doc/posix-functions/vfprintf.texi: Update.
44044         * doc/posix-functions/vprintf.texi: Update.
44045         * doc/posix-functions/vsnprintf.texi: Update.
44046         * doc/posix-functions/vsprintf.texi: Update.
44047         * doc/glibc-functions/obstack_printf.texi: Update.
44048         * doc/glibc-functions/obstack_vprintf.texi: Update.
44049         Reported by Eric Blake.
44050
44051 2009-02-25  Bruno Haible  <bruno@clisp.org>
44052
44053         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
44054         with known value.
44055         Reported by Gary V. Vaughan <gary@gnu.org>.
44056
44057 2009-02-25  Bruno Haible  <bruno@clisp.org>
44058
44059         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
44060         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
44061         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
44062         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
44063         Reported by Gary V. Vaughan <gary@gnu.org>.
44064
44065 2009-02-25  Bruno Haible  <bruno@clisp.org>
44066
44067         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
44068         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
44069         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
44070         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
44071         Reported by Gary V. Vaughan <gary@gnu.org>.
44072
44073 2009-02-25  Eric Blake  <ebb9@byu.net>
44074
44075         tests: skip fseek/ftell tests if ungetc is broken
44076         * m4/ungetc.m4: New file.
44077         * modules/fseek-tests: Split test, so ungetc dependency is
44078         separate from rest of test.
44079         * modules/fseeko-tests: Likewise.
44080         * modules/ftell-tests: Likewise.
44081         * modules/ftello-tests: Likewise.
44082         * tests/test-fseek.c (main): Isolate ungetc dependency.
44083         * tests/test-fseeko.c (main): Likewise.
44084         * tests/test-ftell.c (main): Likewise.
44085         * tests/test-ftello.c (main): Likewise.
44086         * tests/test-fseek2.sh: New file.
44087         * tests/test-fseeko2.sh: Likewise.
44088         * tests/test-ftell2.sh: Likewise.
44089         * tests/test-ftello2.sh: Likewise.
44090
44091 2009-02-25  OndÅ™ej Vašík  <ovasik@redhat.com>
44092
44093         test-getaddrinfo: fix usage of skip return code 77
44094         * tests/test-gettaddrinfo.c: Return skip code 77 only
44095         for first occurance of skip (4x77 is not 77)
44096
44097 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
44098
44099         strtod: avoid C99 decl-after-statement
44100         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
44101
44102 2009-02-24  Eric Blake  <ebb9@byu.net>
44103
44104         strtod: detect HP-UX 11.31 bug
44105         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
44106         Reported by Gary V. Vaughan.
44107
44108 2009-02-23  Bruno Haible  <bruno@clisp.org>
44109
44110         Fix invalid read past end of memory block.
44111         * lib/vasnprintf.c (DCHAR_SET): Define.
44112         (local_wcslen): Define only when needed.
44113         (local_strnlen, local_wcsnlen): New functions.
44114         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
44115         directives that involve a conversion ourselves.
44116         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
44117         wcsnlen, mbrtowc, wcrtomb.
44118         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
44119         * tests/test-vasprintf-posix.c (test_function): Likewise.
44120         * tests/test-snprintf-posix.h (test_function): Likewise.
44121         * tests/test-sprintf-posix.h (test_function): Likewise.
44122         Reported by Ben Pfaff <blp@cs.stanford.edu>.
44123
44124 2009-02-22  Bruno Haible  <bruno@clisp.org>
44125
44126         Implement new clarified decomposition of Hangul syllables.
44127         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
44128         of type LTV, return only a pairwise decomposition.
44129         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
44130         Likewise.
44131         * tests/uninorm/test-decomposition.c (main): Updated expected result.
44132         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
44133         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
44134
44135 2009-02-22  Bruno Haible  <bruno@clisp.org>
44136
44137         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
44138         zero-length results and shrink excess allocated memory.
44139         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
44140         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
44141         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
44142         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
44143         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
44144         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
44145         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
44146         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
44147         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
44148         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
44149         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
44150         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
44151
44152 2009-02-21  Bruno Haible  <bruno@clisp.org>
44153
44154         * doc/gnulib.texi: Include safe-alloc.texi earlier.
44155         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
44156         spaces after a period. Put a space between a macro name and its
44157         argument list. Trivial rewordings.
44158         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
44159         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
44160         (main): Return 0 explicitly.
44161
44162 2009-02-21  Bruno Haible  <bruno@clisp.org>
44163
44164         Tests for module 'uninorm/filter'.
44165         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
44166         * modules/uninorm/filter-tests: New file.
44167
44168         New module 'uninorm/filter'.
44169         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
44170         uninorm_filter_flush, uninorm_filter_free): New declarations.
44171         * lib/uninorm/uninorm-filter.c: New file.
44172         * modules/uninorm/filter: New file.
44173
44174 2009-02-21  Bruno Haible  <bruno@clisp.org>
44175
44176         Tests for module 'uninorm/nfkc'.
44177         * tests/uninorm/test-nfkc.c: New file.
44178         * tests/uninorm/test-u8-nfkc.c: New file.
44179         * tests/uninorm/test-u16-nfkc.c: New file.
44180         * tests/uninorm/test-u32-nfkc.c: New file.
44181         * tests/uninorm/test-u32-nfkc-big.sh: New file.
44182         * tests/uninorm/test-u32-nfkc-big.c: New file.
44183         * modules/uninorm/nfkc-tests: New file.
44184
44185         New module 'uninorm/nfkc'.
44186         * lib/uninorm/nfkc.c: New file.
44187         * modules/uninorm/nfkc: New file.
44188
44189         Tests for module 'uninorm/nfkd'.
44190         * tests/uninorm/test-nfkd.c: New file.
44191         * tests/uninorm/test-u8-nfkd.c: New file.
44192         * tests/uninorm/test-u16-nfkd.c: New file.
44193         * tests/uninorm/test-u32-nfkd.c: New file.
44194         * tests/uninorm/test-u32-nfkd-big.sh: New file.
44195         * tests/uninorm/test-u32-nfkd-big.c: New file.
44196         * modules/uninorm/nfkd-tests: New file.
44197
44198         New module 'uninorm/nfkd'.
44199         * lib/uninorm/nfkd.c: New file.
44200         * modules/uninorm/nfkd: New file.
44201
44202         Tests for module 'uninorm/nfc'.
44203         * tests/uninorm/test-nfc.c: New file.
44204         * tests/uninorm/test-u8-nfc.c: New file.
44205         * tests/uninorm/test-u16-nfc.c: New file.
44206         * tests/uninorm/test-u32-nfc.c: New file.
44207         * tests/uninorm/test-u32-nfc-big.sh: New file.
44208         * tests/uninorm/test-u32-nfc-big.c: New file.
44209         * modules/uninorm/nfc-tests: New file.
44210
44211         New module 'uninorm/nfc'.
44212         * lib/uninorm/nfc.c: New file.
44213         * modules/uninorm/nfc: New file.
44214
44215         Tests for module 'uninorm/nfd'.
44216         * tests/uninorm/test-nfd.c: New file.
44217         * tests/uninorm/test-u8-nfd.c: New file.
44218         * tests/uninorm/test-u16-nfd.c: New file.
44219         * tests/uninorm/test-u32-nfd.c: New file.
44220         * tests/uninorm/test-u32-nfd-big.sh: New file.
44221         * tests/uninorm/test-u32-nfd-big.c: New file.
44222         * tests/uninorm/test-u32-normalize-big.h: New file.
44223         * tests/uninorm/test-u32-normalize-big.c: New file.
44224         * tests/uninorm/NormalizationTest.txt: New file, created from
44225         Unicode 5.1.0 NormalizationTest.txt.
44226         * modules/uninorm/nfd-tests: New file.
44227
44228         New module 'uninorm/nfd'.
44229         * lib/uninorm/nfd.c: New file.
44230         * modules/uninorm/nfd: New file.
44231
44232         New module 'uninorm/u32-normalize'.
44233         * lib/uninorm/u32-normalize.c: New file.
44234         * modules/uninorm/u32-normalize: New file.
44235
44236         New module 'uninorm/u16-normalize'.
44237         * lib/uninorm/u16-normalize.c: New file.
44238         * modules/uninorm/u16-normalize: New file.
44239
44240         New module 'uninorm/u8-normalize'.
44241         * lib/uninorm/u8-normalize.c: New file.
44242         * lib/uninorm/normalize-internal.h: New file.
44243         * lib/uninorm/u-normalize-internal.h: New file.
44244         * modules/uninorm/u8-normalize: New file.
44245
44246         New module 'uninorm/decompose-internal'.
44247         * lib/uninorm/decompose-internal.c: New file.
44248         * modules/uninorm/decompose-internal: New file.
44249
44250         Tests for module 'uninorm/composition'.
44251         * tests/uninorm/test-composition.c: New file.
44252         * modules/uninorm/composition-tests: New file.
44253
44254         New module 'uninorm/composition'.
44255         * lib/uninorm/composition.c: New file.
44256         * lib/uninorm/composition-table.gperf: New file, generated by
44257         gen-uni-tables.
44258         * modules/uninorm/composition: New file.
44259
44260         Tests for module 'uninorm/compat-decomposition'.
44261         * tests/uninorm/test-compat-decomposition.c: New file.
44262         * modules/uninorm/compat-decomposition-tests: New file.
44263
44264         New module 'uninorm/compat-decomposition'.
44265         * lib/uninorm/decompose-internal.h: New file.
44266         * lib/uninorm/compat-decomposition.c: New file.
44267         * modules/uninorm/compat-decomposition: New file.
44268
44269         Tests for module 'uninorm/canonical-decomposition'.
44270         * tests/uninorm/test-canonical-decomposition.c: New file.
44271         * modules/uninorm/canonical-decomposition-tests: New file.
44272
44273         New module 'uninorm/canonical-decomposition'.
44274         * lib/uninorm/canonical-decomposition.c: New file.
44275         * modules/uninorm/canonical-decomposition: New file.
44276
44277         Tests for module 'uninorm/decomposition'.
44278         * tests/uninorm/test-decomposition.c: New file.
44279         * modules/uninorm/decomposition-tests: New file.
44280
44281         New module 'uninorm/decomposition'.
44282         * lib/uninorm/decomposition.c: New file.
44283         * modules/uninorm/decomposition: New file.
44284
44285         New module 'uninorm/decomposition-table'.
44286         * lib/uninorm/decomposition-table.h: New file.
44287         * lib/uninorm/decomposition-table.c: New file.
44288         * lib/uninorm/decomposition-table1.h: New file, generated by
44289         gen-uni-tables.
44290         * lib/uninorm/decomposition-table2.h: New file, generated by
44291         gen-uni-tables.
44292         * modules/uninorm/decomposition-table: New file.
44293
44294         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
44295         (UC_DECOMP_*): New enumeration items.
44296         (get_decomposition): New function.
44297         (struct decomp_table): New type.
44298         (output_decomposition, output_decomposition_tables): New functions.
44299         (unicode_composition_exclusions): New variable.
44300         (fill_composition_exclusions, debug_output_composition_tables): New
44301         functions.
44302         (main): Accept one more argument. Invoke fill_composition_exclusions.
44303         Output decomposition and composition tables.
44304
44305         New module 'uninorm/base'.
44306         * lib/uninorm.h: New file.
44307         * lib/unictype.h: Update comment.
44308         * modules/uninorm/base: New file.
44309
44310 2009-02-21  David Lutterkort  <lutter@redhat.com>
44311
44312         Tests for module 'safe-alloc'.
44313         * tests/test-safe-alloc.c: New file.
44314         * modules/safe-alloc-tests: New file.
44315
44316         New module 'safe-alloc'.
44317         * lib/safe-alloc.h: New file.
44318         * lib/safe-alloc.c: New file.
44319         * m4/safe-alloc.m4: New file.
44320         * modules/safe-alloc: New file.
44321         * doc/safe-alloc.texi: New file.
44322         * doc/gnulib.texi: Include it.
44323         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
44324         safe-alloc.
44325
44326 2009-02-18  Bruno Haible  <bruno@clisp.org>
44327
44328         Fix link error on non-glibc systems.
44329         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
44330         variable.
44331         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
44332
44333 2009-02-18  Jim Meyering  <meyering@redhat.com>
44334
44335         fts: avoid used-uninitialized error due to recent change
44336         * lib/fts.c (fts_read): Guard uses of the new member,
44337         parent->fts_n_dirs_remaining, since it's not relevant for
44338         the parent of a directory specified on the command-line.
44339
44340 2009-02-17  James Youngman  <jay@gnu.org>
44341             Bruno Haible  <bruno@clisp.org>
44342
44343         * m4/include_next.m4: Reformulate comment.
44344
44345 2009-02-16  Jim Meyering  <meyering@redhat.com>
44346
44347         fts: add #if guards so that the fts_lgpl module still builds
44348         * lib/fts.c: Guard just-added hash-table-using parts with
44349         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
44350         Reported by Simon Josefsson.
44351
44352 2009-02-15  Bruno Haible  <bruno@clisp.org>
44353
44354         * modules/array-mergesort-tests: New file.
44355         * tests/test-array-mergesort.c: New file.
44356
44357         New module 'array-mergesort'.
44358         * modules/array-mergesort: New file.
44359         * lib/array-mergesort.h: New file.
44360
44361 2009-02-15  Bruno Haible  <bruno@clisp.org>
44362
44363         Fix 2009-02-07 commit.
44364         * lib/gen-uni-tables.c (output_predicate, output_category,
44365         output_combclass, output_bidi_category, output_decimal_digit,
44366         output_digit, output_numeric, output_mirror, output_scripts,
44367         output_ident_category, output_simple_mapping): Fix format directives.
44368         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
44369
44370 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
44371
44372         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
44373         fixes are available from IBM.
44374
44375 2009-02-13  Jim Meyering  <meyering@redhat.com>
44376
44377         fts: arrange not to stat non-directories in more cases
44378         This makes GNU find (when it doesn't need to stat each file)
44379         *much* more efficient at traversing reiserfs file systems.
44380         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
44381         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
44382         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
44383         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
44384         (leaf_optimization_applies): New function.
44385         (LCO_hash, LCO_compare): New helper functions.
44386         (link_count_optimize_ok): New function.
44387         (fts_stat): Initialize new member (if dir).
44388         (fts_read): Decrement parent's fts_n_dirs_remaining count if
44389         we've just stat'ed a directory.  Skip the stat call when possible.
44390         ---
44391         Note this AFS-related exchange:
44392         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
44393         and note find's pioctl call in find/fstype.c.
44394         But that is necessary only if you want to enable the
44395         optimization for AFS, and for now, I don't.
44396
44397         fts: move a function definition "up" (no semantic change)
44398         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
44399         "up" to precede upcoming use of a related function.
44400
44401 2009-02-11  Jim Meyering  <meyering@redhat.com>
44402
44403         fts: correct internal computation of nlinks (optimization-related)
44404         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
44405         whether the current entry is a directory, so don't test it.
44406
44407 2009-02-10  Bruno Haible  <bruno@clisp.org>
44408
44409         Tests for module 'uniwbrk/ulc-wordbreaks'.
44410         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
44411         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
44412         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
44413
44414         Tests for module 'uniwbrk/u32-wordbreaks'.
44415         * modules/uniwbrk/u32-wordbreaks-tests: New file.
44416         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
44417
44418         Tests for module 'uniwbrk/u16-wordbreaks'.
44419         * modules/uniwbrk/u16-wordbreaks-tests: New file.
44420         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
44421
44422         Tests for module 'uniwbrk/u8-wordbreaks'.
44423         * modules/uniwbrk/u8-wordbreaks-tests: New file.
44424         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
44425
44426 2009-02-10  Bruno Haible  <bruno@clisp.org>
44427
44428         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
44429         property.
44430         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
44431         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
44432         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
44433
44434 2009-02-10  Simon Josefsson  <simon@josefsson.org>
44435
44436         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
44437         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
44438
44439 2009-02-10  Bruno Haible  <bruno@clisp.org>
44440
44441         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
44442         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
44443         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
44444         * lib/unilbrk/u8-possible-linebreaks.c: Update.
44445         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
44446         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
44447
44448 2009-02-09  Simon Josefsson  <simon@josefsson.org>
44449
44450         * lib/sockets.h (gl_fd_to_handle): New function.
44451
44452         * tests/test-sockets.c: Call gl_fd_to_handle.
44453
44454 2009-02-09  Bruno Haible  <bruno@clisp.org>
44455
44456         * doc/havelib.texi: Document the conventions on bi-arch systems.
44457
44458 2009-02-08  Bruno Haible  <bruno@clisp.org>
44459
44460         Document the AC_LIB_LINKFLAGS macro.
44461         * doc/havelib.texi: New file, mostly written on 2005-05-24.
44462         * doc/gnulib.texi: Include it.
44463
44464 2009-02-08  Bruno Haible  <bruno@clisp.org>
44465
44466         Fix wrong order of sections, compared to TOC.
44467         * doc/gnulib.texi: Include relocatable-maint.texi after the
44468         "Regular expressions" node, not before.
44469
44470 2009-02-08  Bruno Haible  <bruno@clisp.org>
44471
44472         Tests for module 'unicase/totitle'.
44473         * modules/unicase/totitle-tests: New file.
44474
44475         Tests for module 'unicase/tolower'.
44476         * modules/unicase/tolower-tests: New file.
44477
44478         Tests for module 'unicase/toupper'.
44479         * modules/unicase/toupper-tests: New file.
44480         * tests/unicase/test-mapping-part1.h: New file.
44481         * tests/unicase/test-mapping-part2.h: New file.
44482
44483         New module 'unicase/totitle'.
44484         * modules/unicase/totitle: New file.
44485         * lib/unicase/totitle.c: New file.
44486
44487         New module 'unicase/tolower'.
44488         * modules/unicase/tolower: New file.
44489         * lib/unicase/tolower.c: New file.
44490
44491         New module 'unicase/toupper'.
44492         * modules/unicase/toupper: New file.
44493         * lib/unicase/toupper.c: New file.
44494         * lib/unicase/simple-mapping.h: New file.
44495
44496         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
44497         (mapping_table): New structure.
44498         (output_simple_mapping): New function.
44499         (main): Invoke output_simple_mapping_test and output_simple_mapping.
44500         * modules/gen-uni-tables (Description): Update.
44501         * lib/unicase/toupper.h: New file, automatically generated by
44502         gen-uni-tables.
44503         * lib/unicase/tolower.h: New file, automatically generated by
44504         gen-uni-tables.
44505         * lib/unicase/totitle.h: New file, automatically generated by
44506         gen-uni-tables.
44507         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
44508         gen-uni-tables.
44509         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
44510         gen-uni-tables.
44511         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
44512         gen-uni-tables.
44513
44514         New module 'unicase/base'.
44515         * modules/unicase/base: New file.
44516         * lib/unicase.h: New file.
44517
44518 2009-02-08  Bruno Haible  <bruno@clisp.org>
44519
44520         New module 'uniwbrk/ulc-wordbreaks'.
44521         * modules/uniwbrk/ulc-wordbreaks: New file.
44522         * lib/uniwbrk/ulc-wordbreaks.c: New file.
44523
44524         New module 'uniwbrk/u32-wordbreaks'.
44525         * modules/uniwbrk/u32-wordbreaks: New file.
44526         * lib/uniwbrk/u32-wordbreaks.c: New file.
44527
44528         New module 'uniwbrk/u16-wordbreaks'.
44529         * modules/uniwbrk/u16-wordbreaks: New file.
44530         * lib/uniwbrk/u16-wordbreaks.c: New file.
44531
44532         New module 'uniwbrk/u8-wordbreaks'.
44533         * modules/uniwbrk/u8-wordbreaks: New file.
44534         * lib/uniwbrk/u8-wordbreaks.c: New file.
44535         * lib/uniwbrk/u-wordbreaks.h: New file.
44536
44537         New module 'uniwbrk/table'.
44538         * modules/uniwbrk/table: New file.
44539         * lib/uniwbrk/wbrktable.h: New file.
44540         * lib/uniwbrk/wbrktable.c: New file.
44541
44542         New module 'uniwbrk/wordbreak-property'.
44543         * modules/uniwbrk/wordbreak-property: New file.
44544         * lib/uniwbrk/wordbreak-property.c: New file.
44545
44546         * lib/gen-uni-tables.c (WBP_*): New enum items.
44547         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
44548         (unicode_org_wbp): New variable.
44549         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
44550         New functions.
44551         (wbp_table): New structure.
44552         (output_wbp, output_wbrk_tables): New functions.
44553         (main): Accept additional argument. Invoke fill_org_wbp,
44554         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
44555         output_wbrk_tables.
44556         * modules/gen-uni-tables (Description): Update.
44557         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
44558         gen-uni-tables.
44559
44560         New module 'uniwbrk/base'.
44561         * modules/uniwbrk/base: New file.
44562         * lib/uniwbrk.h: New file.
44563
44564 2009-02-08  Bruno Haible  <bruno@clisp.org>
44565
44566         Update to Unicode 5.1.0.
44567         * lib/gen-uni-tables.c (is_property_alphabetic): Include
44568         U+2185..U+2188.
44569         (is_property_default_ignorable_code_point): Don't include characters
44570         of category Cc or Cs and not-a-characters.
44571         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
44572         U+0D79, U+109E, U+109F, U+A60C.
44573         * lib/unictype/bidi_of.h: Regenerated.
44574         * lib/unictype/blocks.h: Regenerated.
44575         * lib/unictype/categ_C.h: Regenerated.
44576         * lib/unictype/categ_Cf.h: Regenerated.
44577         * lib/unictype/categ_Cn.h: Regenerated.
44578         * lib/unictype/categ_L.h: Regenerated.
44579         * lib/unictype/categ_Ll.h: Regenerated.
44580         * lib/unictype/categ_Lm.h: Regenerated.
44581         * lib/unictype/categ_Lo.h: Regenerated.
44582         * lib/unictype/categ_Lu.h: Regenerated.
44583         * lib/unictype/categ_M.h: Regenerated.
44584         * lib/unictype/categ_Mc.h: Regenerated.
44585         * lib/unictype/categ_Me.h: Regenerated.
44586         * lib/unictype/categ_Mn.h: Regenerated.
44587         * lib/unictype/categ_N.h: Regenerated.
44588         * lib/unictype/categ_Nd.h: Regenerated.
44589         * lib/unictype/categ_Nl.h: Regenerated.
44590         * lib/unictype/categ_No.h: Regenerated.
44591         * lib/unictype/categ_P.h: Regenerated.
44592         * lib/unictype/categ_Pd.h: Regenerated.
44593         * lib/unictype/categ_Pe.h: Regenerated.
44594         * lib/unictype/categ_Pf.h: Regenerated.
44595         * lib/unictype/categ_Pi.h: Regenerated.
44596         * lib/unictype/categ_Po.h: Regenerated.
44597         * lib/unictype/categ_Ps.h: Regenerated.
44598         * lib/unictype/categ_S.h: Regenerated.
44599         * lib/unictype/categ_Sk.h: Regenerated.
44600         * lib/unictype/categ_Sm.h: Regenerated.
44601         * lib/unictype/categ_So.h: Regenerated.
44602         * lib/unictype/categ_of.h: Regenerated.
44603         * lib/unictype/combining.h: Regenerated.
44604         * lib/unictype/ctype_alnum.h: Regenerated.
44605         * lib/unictype/ctype_alpha.h: Regenerated.
44606         * lib/unictype/ctype_graph.h: Regenerated.
44607         * lib/unictype/ctype_lower.h: Regenerated.
44608         * lib/unictype/ctype_print.h: Regenerated.
44609         * lib/unictype/ctype_punct.h: Regenerated.
44610         * lib/unictype/ctype_upper.h: Regenerated.
44611         * lib/unictype/decdigit.h: Regenerated.
44612         * lib/unictype/digit.h: Regenerated.
44613         * lib/unictype/mirror.h: Regenerated.
44614         * lib/unictype/numeric.h: Regenerated.
44615         * lib/unictype/pr_alphabetic.h: Regenerated.
44616         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
44617         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
44618         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
44619         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
44620         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
44621         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
44622         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
44623         * lib/unictype/pr_combining.h: Regenerated.
44624         * lib/unictype/pr_dash.h: Regenerated.
44625         * lib/unictype/pr_decimal_digit.h: Regenerated.
44626         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
44627         * lib/unictype/pr_deprecated.h: Regenerated.
44628         * lib/unictype/pr_diacritic.h: Regenerated.
44629         * lib/unictype/pr_extender.h: Regenerated.
44630         * lib/unictype/pr_format_control.h: Regenerated.
44631         * lib/unictype/pr_grapheme_base.h: Regenerated.
44632         * lib/unictype/pr_grapheme_extend.h: Regenerated.
44633         * lib/unictype/pr_grapheme_link.h: Regenerated.
44634         * lib/unictype/pr_id_continue.h: Regenerated.
44635         * lib/unictype/pr_id_start.h: Regenerated.
44636         * lib/unictype/pr_ideographic.h: Regenerated.
44637         * lib/unictype/pr_ignorable_control.h: Regenerated.
44638         * lib/unictype/pr_lowercase.h: Regenerated.
44639         * lib/unictype/pr_math.h: Regenerated.
44640         * lib/unictype/pr_numeric.h: Regenerated.
44641         * lib/unictype/pr_other_alphabetic.h: Regenerated.
44642         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
44643         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
44644         * lib/unictype/pr_other_id_continue.h: Regenerated.
44645         * lib/unictype/pr_other_lowercase.h: Regenerated.
44646         * lib/unictype/pr_other_math.h: Regenerated.
44647         * lib/unictype/pr_punctuation.h: Regenerated.
44648         * lib/unictype/pr_sentence_terminal.h: Regenerated.
44649         * lib/unictype/pr_soft_dotted.h: Regenerated.
44650         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
44651         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
44652         * lib/unictype/pr_unified_ideograph.h: Regenerated.
44653         * lib/unictype/pr_uppercase.h: Regenerated.
44654         * lib/unictype/pr_xid_continue.h: Regenerated.
44655         * lib/unictype/pr_xid_start.h: Regenerated.
44656         * lib/unictype/pr_zero_width.h: Regenerated.
44657         * lib/unictype/scripts.h: Regenerated.
44658         * lib/unictype/scripts_byname.gperf: Regenerated.
44659         * lib/unictype/sy_java_ident.h: Regenerated.
44660         * lib/unilbrk/lbrkprop1.h: Regenerated.
44661         * lib/unilbrk/lbrkprop2.h: Regenerated.
44662         * tests/unictype/test-categ_C.c: Regenerated.
44663         * tests/unictype/test-categ_Cf.c: Regenerated.
44664         * tests/unictype/test-categ_Cn.c: Regenerated.
44665         * tests/unictype/test-categ_L.c: Regenerated.
44666         * tests/unictype/test-categ_Ll.c: Regenerated.
44667         * tests/unictype/test-categ_Lm.c: Regenerated.
44668         * tests/unictype/test-categ_Lo.c: Regenerated.
44669         * tests/unictype/test-categ_Lu.c: Regenerated.
44670         * tests/unictype/test-categ_M.c: Regenerated.
44671         * tests/unictype/test-categ_Mc.c: Regenerated.
44672         * tests/unictype/test-categ_Me.c: Regenerated.
44673         * tests/unictype/test-categ_Mn.c: Regenerated.
44674         * tests/unictype/test-categ_N.c: Regenerated.
44675         * tests/unictype/test-categ_Nd.c: Regenerated.
44676         * tests/unictype/test-categ_Nl.c: Regenerated.
44677         * tests/unictype/test-categ_No.c: Regenerated.
44678         * tests/unictype/test-categ_P.c: Regenerated.
44679         * tests/unictype/test-categ_Pd.c: Regenerated.
44680         * tests/unictype/test-categ_Pe.c: Regenerated.
44681         * tests/unictype/test-categ_Pf.c: Regenerated.
44682         * tests/unictype/test-categ_Pi.c: Regenerated.
44683         * tests/unictype/test-categ_Po.c: Regenerated.
44684         * tests/unictype/test-categ_Ps.c: Regenerated.
44685         * tests/unictype/test-categ_S.c: Regenerated.
44686         * tests/unictype/test-categ_Sk.c: Regenerated.
44687         * tests/unictype/test-categ_Sm.c: Regenerated.
44688         * tests/unictype/test-categ_So.c: Regenerated.
44689         * tests/unictype/test-ctype_alnum.c: Regenerated.
44690         * tests/unictype/test-ctype_alpha.c: Regenerated.
44691         * tests/unictype/test-ctype_graph.c: Regenerated.
44692         * tests/unictype/test-ctype_lower.c: Regenerated.
44693         * tests/unictype/test-ctype_print.c: Regenerated.
44694         * tests/unictype/test-ctype_punct.c: Regenerated.
44695         * tests/unictype/test-ctype_upper.c: Regenerated.
44696         * tests/unictype/test-decdigit.h: Regenerated.
44697         * tests/unictype/test-digit.h: Regenerated.
44698         * tests/unictype/test-numeric.h: Regenerated.
44699         * tests/unictype/test-pr_alphabetic.c: Regenerated.
44700         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
44701         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
44702         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
44703         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
44704         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
44705         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
44706         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
44707         * tests/unictype/test-pr_combining.c: Regenerated.
44708         * tests/unictype/test-pr_dash.c: Regenerated.
44709         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
44710         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
44711         * tests/unictype/test-pr_deprecated.c: Regenerated.
44712         * tests/unictype/test-pr_diacritic.c: Regenerated.
44713         * tests/unictype/test-pr_extender.c: Regenerated.
44714         * tests/unictype/test-pr_format_control.c: Regenerated.
44715         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
44716         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
44717         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
44718         * tests/unictype/test-pr_id_continue.c: Regenerated.
44719         * tests/unictype/test-pr_id_start.c: Regenerated.
44720         * tests/unictype/test-pr_ideographic.c: Regenerated.
44721         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
44722         * tests/unictype/test-pr_lowercase.c: Regenerated.
44723         * tests/unictype/test-pr_math.c: Regenerated.
44724         * tests/unictype/test-pr_numeric.c: Regenerated.
44725         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
44726         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
44727         Regenerated.
44728         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
44729         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
44730         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
44731         * tests/unictype/test-pr_other_math.c: Regenerated.
44732         * tests/unictype/test-pr_punctuation.c: Regenerated.
44733         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
44734         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
44735         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
44736         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
44737         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
44738         * tests/unictype/test-pr_uppercase.c: Regenerated.
44739         * tests/unictype/test-pr_xid_continue.c: Regenerated.
44740         * tests/unictype/test-pr_xid_start.c: Regenerated.
44741         * tests/unictype/test-pr_zero_width.c: Regenerated.
44742
44743         Update to Unicode 5.1.0.
44744         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
44745         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
44746         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
44747         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
44748         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
44749         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
44750         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
44751         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
44752         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
44753         (nonspacing_table_ind): Update.
44754         * tests/uniwidth/test-uc_width2.sh: Update expected result.
44755
44756         Update to Unicode 5.1.0.
44757         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
44758         code transform.
44759         * lib/uniname/uniname.c (unicode_character_name,
44760         unicode_name_character): Add the range 0x1Fxxx to the code transform.
44761         * lib/uniname/uninames.h: Regenerated.
44762         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
44763
44764 2009-02-07  Bruno Haible  <bruno@clisp.org>
44765
44766         Merge gen-ctype and gen-lbrk into a single program.
44767         * lib/gen-uni-tables.c: New file, incorporating
44768         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
44769         Add directory prefixes to the names of the generated files.
44770         * lib/unictype/gen-ctype.c: Remove file.
44771         * lib/unilbrk/gen-lbrk.c: Remove file.
44772         * modules/gen-uni-tables: New file.
44773         * modules/unictype/gen-ctype: Remove file.
44774         * modules/unilbrk/gen-lbrk: Remove file.
44775
44776 2009-02-07  Bruno Haible  <bruno@clisp.org>
44777
44778         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
44779
44780         New module 'unistr/u32-strcoll'.
44781         * modules/unistr/u32-strcoll: New file.
44782         * lib/unistr/u32-strcoll.c: New file.
44783
44784         New module 'unistr/u16-strcoll'.
44785         * modules/unistr/u16-strcoll: New file.
44786         * lib/unistr/u16-strcoll.c: New file.
44787
44788         New module 'unistr/u8-strcoll'.
44789         * modules/unistr/u8-strcoll: New file.
44790         * lib/unistr/u8-strcoll.c: New file.
44791         * lib/unistr/u-strcoll.h: New file.
44792
44793 2009-02-07  Bruno Haible  <bruno@clisp.org>
44794
44795         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
44796         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
44797         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
44798         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
44799         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
44800         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
44801
44802 2009-02-07  Bruno Haible  <bruno@clisp.org>
44803
44804         Make 64-bit clean.
44805         * lib/unictype/gen-ctype.c (output_predicate, output_category,
44806         output_combclass, output_bidi_category, output_decimal_digit,
44807         output_digit, output_numeric, output_mirror, output_scripts,
44808         output_ident_category): Use proper width specifier in format strings.
44809
44810 2009-02-07  Bruno Haible  <bruno@clisp.org>
44811
44812         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
44813         failure behaviour.
44814
44815 2009-02-07  Jim Meyering  <meyering@redhat.com>
44816
44817         regex: avoid compilation failure with upcoming gcc-4.4
44818         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
44819         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
44820         "... error: integer overflow in preprocessor expression".
44821
44822 2009-02-05  Ben Pfaff  <blp@gnu.org>
44823
44824         Fix link errors on Windows when close module is used.
44825         * modules/close: Add $(LIB_CLOSE) to Link section.
44826         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
44827         $(LIB_CLOSE) on Windows.
44828
44829 2009-02-05  Jim Meyering  <meyering@redhat.com>
44830
44831         still avoid unused-parameter warnings, but do it cleanly
44832         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
44833         (get_fs_usage): Cast to void instead.
44834         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
44835         (dev_from_mount_options, read_file_system_list): Cast to void.
44836         Prompted by Bruno Haible.
44837
44838 2009-02-04  Jim Meyering  <meyering@redhat.com>
44839
44840         fsusage.c: correct copyright year
44841         * lib/fsusage.c: Reflect year in which the change is pushed into
44842
44843         avoid misc. warnings
44844         * lib/fsusage.c (UNUSED_PARAM): Define.
44845         (get_fs_usage): Mark parameter "disk" as unused.
44846         * lib/getugroups.c (getgrent): Use "void" in prototype.
44847         * lib/mountlist.c: Mark unused parameters.
44848         (read_file_system_list): Declare a local with "const".
44849         * lib/nanosleep.c (getnow): Declare static.
44850         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
44851
44852         dirfd: set errno upon failure
44853         * lib/dirfd.c: Include <errno.h>.
44854         Set errno to ENOTSUP when returning -1.
44855         * modules/dirfd (Depends-on): Add errno.
44856         Suggested by John Kodis <kodis@comcast.net>.
44857
44858 2009-02-01  Bruno Haible  <bruno@clisp.org>
44859
44860         Don't assume sizeof (long) >= sizeof (void *).
44861         * lib/memcmp.c: Include stdint.h.
44862         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
44863         srcp2 to 'const byte *'.
44864         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
44865         types to uintptr_t.
44866         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
44867         * modules/memcmp (Depends-on): Add stdint.
44868         Reported by Ozkan Sezer <sezeroz@gmail.com>.
44869
44870 2009-01-30  Eric Blake  <ebb9@byu.net>
44871
44872         fix more require-before-expand issues
44873         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
44874         expand, AC_PROG_AWK.
44875         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
44876
44877 2009-01-28  Eric Blake  <ebb9@byu.net>
44878
44879         version-etc: use consistent URL formatting
44880         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
44881         Improve formatting.  Use fputs for string without %.
44882
44883 2009-01-28  Jim Meyering  <meyering@redhat.com>
44884
44885         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
44886         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
44887         "underquoted definition of NAME" from autoconf-2.59.
44888
44889 2009-01-28  Bruno Haible  <bruno@clisp.org>
44890
44891         * doc/gnulib.texi: Add "Obsolete modules" to index.
44892
44893 2009-01-28  Jim Meyering  <meyering@redhat.com>
44894
44895         useless-if-before-free: recognize more variants
44896         * build-aux/useless-if-before-free: Also recognize e.g.,
44897         if (NULL != p) free (p);
44898
44899 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
44900
44901         test-getaddrinfo: skip (don't fail) this test when there's no network
44902         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
44903         on the presumption that it means you lack network access.
44904
44905 2009-01-26  Jim Meyering  <meyering@redhat.com>
44906
44907         fflush: avoid warnings on modern systems
44908         * lib/fflush.c (rpl_fflush): Move declarations of locals,
44909         pos and result, into scopes where they're used.
44910
44911 2009-01-26  Eric Blake  <ebb9@byu.net>
44912
44913         Silence warning reintroduced by recent extensions patch.
44914         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
44915         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
44916         autoconf.
44917
44918         Backport improved autoconf semantics of AC_DEFUN_ONCE.
44919         * m4/00gnulib.m4: New file.
44920         * gnulib-tool (func_get_filelist): Always use it.
44921         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
44922         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
44923
44924 2009-01-25  Bruno Haible  <bruno@clisp.org>
44925
44926         Make test-quotearg work on MacOS X and AIX.
44927         * tests/test-quotearg.sh: New file.
44928         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
44929         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
44930         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
44931         include <libintl.h>.
44932         (fake_locale): Remove variable.
44933         (gettext, dgettext, dcgettext): Remove functions.
44934         (main): Instead of setting a fake locale, set a real locale. Call
44935         textdomain and bindtextdomain.
44936         * modules/quotearg-tests (Files): Add the new files.
44937         (Depends-on): Add gettext, setenv, unsetenv.
44938         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
44939         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
44940         Augment TESTS_ENVIRONMENT.
44941
44942 2009-01-25  Bruno Haible  <bruno@clisp.org>
44943
44944         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
44945         fr_FR.ISO8859-1 locale on MacOS X.
44946         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
44947         ja_JP.eucJP locale on MacOS X.
44948         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
44949         zh_CN.GB18030 locale on MacOS X.
44950
44951 2009-01-25  Bruno Haible  <bruno@clisp.org>
44952
44953         Avoid link errors on MacOS X 10.3.
44954         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
44955         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
44956
44957 2009-01-25  Bruno Haible  <bruno@clisp.org>
44958
44959         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
44960         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
44961         * modules/pipe (Files): Remove m4/posix_spawn.m4.
44962         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
44963         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
44964         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
44965         posix_spawnattr_init, posix_spawnattr_setsigmask,
44966         posix_spawnattr_setflags, posix_spawnattr_destroy.
44967
44968         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
44969         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
44970         * modules/execute (Files): Remove m4/posix_spawn.m4.
44971         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
44972         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
44973         posix_spawnattr_init, posix_spawnattr_setsigmask,
44974         posix_spawnattr_setflags, posix_spawnattr_destroy.
44975
44976 2009-01-25  Bruno Haible  <bruno@clisp.org>
44977
44978         * lib/glthread/threadlib.c: Include <stdlib.h>.
44979
44980 2009-01-25  Bruno Haible  <bruno@clisp.org>
44981
44982         * lib/glthread/threadlib.c (dummy): New declaration.
44983
44984 2009-01-25  Bruno Haible  <bruno@clisp.org>
44985
44986         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
44987         multibyte characters also for the GB18030 encoding. Don't crash when
44988         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
44989
44990 2009-01-25  Bruno Haible  <bruno@clisp.org>
44991
44992         Avoid redefining 'struct random_data' on OSF/1 5.1.
44993         * lib/stdlib.in.h: Include <random.h> if it exists.
44994         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
44995         HAVE_RANDOM_H. Include <random.h> when testing whether
44996         'struct random_data' exists.
44997         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
44998
44999 2009-01-25  Bruno Haible  <bruno@clisp.org>
45000
45001         Don't install charset.alias on MacOS X >= 10.3.
45002         * lib/localcharset.c (DARWIN7): New macro.
45003         (get_charset_aliases): Hardcode the result for Darwin7.
45004         * modules/localcharset (install-exec-local): Don't install
45005         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
45006
45007 2009-01-25  Bruno Haible  <bruno@clisp.org>
45008
45009         Don't install charset.alias on mingw and Cygwin.
45010         * modules/localcharset (install-exec-local): Don't install
45011         charset.alias on mingw and Cygwin, if the file does not yet exist.
45012         The result for these platforms is hardcoded in localcharset.c.
45013
45014 2009-01-25  Bruno Haible  <bruno@clisp.org>
45015
45016         Make it possible again to use AC_GNU_SOURCE together with gnulib.
45017         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
45018         before requiring AC_USE_SYSTEM_EXTENSIONS.
45019
45020 2009-01-25  Jim Meyering  <meyering@redhat.com>
45021
45022         c-strtod: avoid warnings
45023         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
45024         "assignment discards qualifiers from pointer target type" warnings.
45025
45026 2009-01-24  Bruno Haible  <bruno@clisp.org>
45027
45028         Add support for non-UTF-8 locales on MacOS X.
45029         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
45030         canonical encodings. For Darwin 7 and newer, don't map traditional
45031         encodings to UTF-8.
45032         Reported by Vincent Lefevre <vincent@vinc17.org>
45033         at <http://savannah.gnu.org/bugs/?25235>.
45034
45035 2009-01-24  Bruno Haible  <bruno@clisp.org>
45036
45037         * doc/gnulib.texi (Obsolete modules): New section.
45038         Reported by Mike Frysinger <vapier@gentoo.org>.
45039
45040 2009-01-24  Bruno Haible  <bruno@clisp.org>
45041
45042         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
45043         (%.dvi): New rule.
45044
45045 2009-01-24  Bruno Haible  <bruno@clisp.org>
45046
45047         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
45048         Reported by Eric Blake.
45049
45050 2009-01-24  Bruno Haible  <bruno@clisp.org>
45051
45052         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
45053         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
45054         Reported by Gary V. Vaughan <gary@gnu.org>.
45055
45056 2009-01-24  Bruno Haible  <bruno@clisp.org>
45057
45058         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
45059
45060 2009-01-23  Bruno Haible  <bruno@clisp.org>
45061
45062         Make c-strtod, c-strtold usable in libraries.
45063         * lib/c-strtod.c: Include string.h instead of xalloc.h.
45064         (C_STRTOD): Call strdup instead of xstrdup.
45065         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
45066         * modules/c-strtold (Depends-on): Likewise.
45067         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
45068         * NEWS: Mention the change.
45069         Reported by Michael Gold <mgold@ncf.ca>.
45070
45071 2009-01-23  Jim Meyering  <meyering@redhat.com>
45072
45073         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
45074         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
45075         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
45076
45077 2009-01-23  Simon Josefsson  <simon@josefsson.org>
45078
45079         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
45080         GNU CoreUtils.
45081         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
45082         * modules/version-etc (Description): Update.
45083
45084 2009-01-22  Bruno Haible  <bruno@clisp.org>
45085
45086         Cache the C locale object.
45087         * lib/c-strtod.c (c_locale_cache): New variable.
45088         (c_locale): New function.
45089         (C_STRTOD): Use it, and don't call freelocale.
45090         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
45091         Suggested by Paolo Bonzini.
45092
45093 2009-01-21  Bruno Haible  <bruno@clisp.org>
45094
45095         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
45096         conditions other than overflow.
45097
45098 2009-01-21  Bruno Haible  <bruno@clisp.org>
45099
45100         * lib/c-strtod.c: Include errno.h.
45101         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
45102         value from STRTOD_L and STRTOD.
45103
45104 2009-01-21  Bruno Haible  <bruno@clisp.org>
45105         and Jim Meyering  <meyering@redhat.com>
45106
45107         nanosleep: skip configure test (fail it) for apple universal builds
45108         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
45109         universal builds, assume that nanosleep does not work.
45110         * modules/nanosleep (Depends-on): Add multiarch.
45111
45112         mktime: skip configure test (fail it) for apple universal builds
45113         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
45114         universal builds, assume that mktime does not work.
45115         * modules/mktime (Depends-on): Add multiarch.
45116
45117 2009-01-21  Eric Blake  <ebb9@byu.net>
45118
45119         multiarch: avoid expand-before-require warning
45120         * modules/multiarch (configure.ac): Require, rather than expand,
45121         gl_MULTIARCH.
45122         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
45123         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
45124         enforce that all clients require it.  Partial reversion of
45125         2008-12-29 patch.
45126
45127         error: avoid expand-before-require warning
45128         * modules/errno (configure.ac): Require, rather than expand,
45129         gl_HEADER_ERRNO_H.
45130         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
45131         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
45132         enforce that all clients require it.
45133
45134         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
45135         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
45136         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
45137         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
45138
45139 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
45140
45141         Revert:
45142         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
45143
45144         regex: do not depend on obsolete modules.
45145         * modules/regex: Remove memcmp and memmove.
45146
45147 2009-01-20  Bruno Haible  <bruno@clisp.org>
45148
45149         Make the 'link' module link on Windows NT 4.
45150         * lib/link.c (_WIN32_WINNT): Don't define.
45151         (CreateHardLinkFuncType): New type.
45152         (CreateHardLinkFunc, initialized): New variables.
45153         (initialize): New function.
45154         (link): Invoke CreateHardLink indirectly through the function pointer.
45155
45156 2009-01-20  Bruno Haible  <bruno@clisp.org>
45157
45158         Fix compilation failure on mingw.
45159         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
45160
45161 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
45162
45163         * doc/c-strtod.texi: Mention a couple of restrictions.
45164
45165 2009-01-20  Jim Meyering  <meyering@redhat.com>
45166
45167         gettimeofday: move more declarations out of functions
45168         * lib/gettimeofday.c: Move extern declarations of tzset and
45169         gmtime out of containing functions.  Prompted by Bruno Haible.
45170
45171 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
45172
45173         regex: do not depend on obsolete modules.
45174         * modules/regex: Remove memcmp and memmove.
45175
45176 2009-01-19  Bruno Haible  <bruno@clisp.org>
45177
45178         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
45179         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
45180         gl_BIGENDIAN, not AC_C_BIGENDIAN.
45181         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
45182         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
45183
45184 2009-01-19  Bruno Haible  <bruno@clisp.org>
45185
45186         * tests/test-link.c: Include <errno.h>.
45187         (main): Exit with code 77 when a hard link cannot be created due to
45188         the file system.
45189         * tests/test-link.sh: Skip test when a hard link cannot be created due
45190         to the file system.
45191         Suggested by Eric Blake.
45192
45193 2009-01-19  Martin Lambers  <marlam@marlam.de>
45194
45195         * modules/link-tests: New file.
45196         * tests/test-link.sh: New file.
45197         * tests/test-link.c: New file.
45198
45199 2009-01-19  Eric Blake  <ebb9@byu.net>
45200
45201         doc: mention another function added in cygwin 1.7.0
45202         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
45203         Another new function in cygwin 1.7.
45204
45205 2009-01-19  Bruno Haible  <bruno@clisp.org>
45206
45207         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
45208         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
45209         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
45210         gl_BIGENDIAN, not AC_C_BIGENDIAN.
45211         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
45212         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
45213         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
45214         * m4/md4.m4 (gl_MD4): Likewise.
45215         * m4/md5.m4 (gl_MD5): Likewise.
45216         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
45217         * m4/sha1.m4 (gl_SHA1): Likewise.
45218         * m4/sha256.m4 (gl_SHA256): Likewise.
45219         * m4/sha512.m4 (gl_SHA512): Likewise.
45220
45221 2009-01-19  Bruno Haible  <bruno@clisp.org>
45222
45223         * modules/uniname/uniname-tests (Depends-on): Add progname.
45224         * tests/uniname/test-uninames.c: Include progname.h.
45225         (main): Call set_program_name.
45226
45227         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
45228         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
45229         (main): Call set_program_name.
45230
45231         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
45232         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
45233         (main): Call set_program_name.
45234
45235         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
45236         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
45237         (main): Call set_program_name.
45238
45239         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
45240         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
45241         (main): Call set_program_name.
45242
45243         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
45244         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
45245         (main): Call set_program_name.
45246
45247         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
45248         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
45249         (main): Call set_program_name.
45250
45251         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
45252         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
45253         (main): Call set_program_name.
45254
45255         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
45256         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
45257         (main): Call set_program_name.
45258
45259 2009-01-19  Eric Blake  <ebb9@byu.net>
45260
45261         test-unistd: test previous patch
45262         * tests/test-unistd.c: Test *_FILENO macros.
45263
45264         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
45265         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
45266         Guarantee a definition.
45267         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
45268         * modules/unistd-safer (Depends-on): Add dependency on unistd.
45269         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
45270         * lib/dup-safer.c (STDERR_FILENO): Likewise.
45271         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
45272         Likewise.
45273         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
45274         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
45275         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
45276         Likewise.
45277         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
45278         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
45279         (STDERR_FILENO): Likewise.
45280         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
45281         (STDERR_FILENO): Likewise.
45282         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
45283         (STDERR_FILENO): Likewise.
45284         Reported by Elbert Pol.
45285
45286 2009-01-19  Eric Blake  <ebb9@byu.net>
45287
45288         doc: mention more functions added in cygwin 1.7.0
45289         * doc/posix-functions/abort.texi (abort): Update wording related
45290         to cygwin.
45291         * doc/posix-functions/daylight.texi (daylight): Likewise.
45292         * doc/posix-functions/optarg.texi (optarg): Likewise.
45293         * doc/posix-functions/optarg.texi (opterr): Likewise.
45294         * doc/posix-functions/optarg.texi (optind): Likewise.
45295         * doc/posix-functions/optarg.texi (optopt): Likewise.
45296         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
45297         worked in 1.5.x, and was withdrawn in 1.7.
45298         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
45299         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
45300         cygwin versions.
45301         * doc/posix-functions/perror.texi (perror): Likewise.
45302         * doc/posix-functions/printf.texi (printf): Likewise.
45303         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
45304         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
45305         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
45306         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
45307         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
45308         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
45309         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
45310         Likewise.
45311         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
45312         Likewise.
45313         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
45314         this function.
45315         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
45316         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
45317         Likewise.
45318         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
45319         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
45320         * doc/posix-functions/confstr.texi (confstr): Likewise.
45321         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
45322         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
45323         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
45324         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
45325         * doc/posix-functions/fputws.texi (fputws): Likewise.
45326         * doc/posix-functions/fwide.texi (fwide): Likewise.
45327         * doc/posix-functions/getwc.texi (getwc): Likewise.
45328         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
45329         * doc/posix-functions/putwc.texi (putwc): Likewise.
45330         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
45331         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
45332         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
45333         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
45334         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
45335         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
45336         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
45337         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
45338         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
45339         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
45340         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
45341
45342 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
45343
45344         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
45345         * lib/ioctl.c: Include <sys/ioctl.h>.
45346
45347 2009-01-19  Simon Josefsson  <simon@josefsson.org>
45348
45349         * modules/getdate-tests (Depends-on): Add progname.
45350         * tests/test-getdate.c: Use progname module, to avoid link errors
45351         on non-glibc systems.
45352
45353 2009-01-18  Simon Josefsson  <simon@josefsson.org>
45354
45355         * modules/filenamecat-tests (Depends-on): Add progname.
45356         * modules/fstrcmp-tests (Depends-on): Likewise.
45357
45358         * tests/test-filenamecat.c: Use progname module, to avoid link
45359         errors on non-glibc systems.
45360         * tests/test-fstrcmp.c: Likewise.
45361
45362 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
45363
45364         gettimeofday: avoid warning: nested extern declaration of 'localtime'
45365         * lib/gettimeofday.c: Move extern declaration out of function.
45366
45367 2009-01-18  Bruno Haible  <bruno@clisp.org>
45368
45369         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
45370         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
45371         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
45372
45373 2009-01-18  Bruno Haible  <bruno@clisp.org>
45374
45375         * lib/strftime.c (MEMPCPY): Remove unused macro.
45376         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
45377
45378 2009-01-18  Martin Lambers  <marlam@marlam.de>
45379
45380         New module 'link'.
45381         * lib/unistd.in.h (link): New declaration.
45382         * lib/link.c: New file.
45383         * m4/link.m4: New file.
45384         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
45385         HAVE_LINK.
45386         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
45387         * modules/link: New file.
45388         * doc/posix-functions/link.texi: Mention the new module.
45389
45390 2009-01-18  Bruno Haible  <bruno@clisp.org>
45391
45392         * tests/test-avltree_list.c (main): Call set_program_name.
45393         * tests/test-avltree_oset.c (main): Likewise.
45394         * tests/test-obstack-printf.c: Include progname.h.
45395         (main): Call set_program_name.
45396         * tests/test-quotearg.c: Include progname.h.
45397         (main): Call set_program_name.
45398         * tests/test-xmemdup0.c: Include progname.h.
45399         (main): Call set_program_name.
45400
45401 2009-01-18  Bruno Haible  <bruno@clisp.org>
45402
45403         New module 'alphasort'.
45404         * lib/dirent.in.h (alphasort): New declaration.
45405         * lib/alphasort.c: New file, from glibc with modifications.
45406         * m4/alphasort.m4: New file.
45407         * modules/alphasort: New file.
45408         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
45409         HAVE_ALPHASORT.
45410         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
45411         HAVE_ALPHASORT.
45412         * doc/posix-functions/alphasort.texi: Mention the new module and the
45413         portability problems.
45414
45415 2009-01-18  Bruno Haible  <bruno@clisp.org>
45416
45417         New module 'scandir'.
45418         * lib/dirent.in.h (scandir): New declaration.
45419         * lib/scandir.c: New file, from glibc with modifications.
45420         * m4/scandir.m4: New file.
45421         * modules/scandir: New file.
45422         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
45423         HAVE_SCANDIR.
45424         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
45425         HAVE_SCANDIR.
45426         * doc/posix-functions/scandir.texi: Mention the new module and the
45427         portability problems.
45428
45429 2009-01-17  Bruno Haible  <bruno@clisp.org>
45430
45431         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
45432         Update documentation.
45433         (func_remove_suffix): Escape all dots in the suffix. Update
45434         documentation.
45435         (func_filter_filelist): Update documentation.
45436         Reported by Ralf Wildenhues.
45437
45438 2009-01-17  Bruno Haible  <bruno@clisp.org>
45439
45440         * modules/dprintf-posix-tests: New file.
45441         * tests/test-dprintf-posix.sh: New file.
45442         * tests/test-dprintf-posix.c: New file.
45443
45444         New modules 'dprintf', 'dprintf-posix'.
45445         * lib/stdio.in.h (dprintf): New declaration.
45446         * lib/dprintf.c: New file.
45447         * m4/dprintf.m4: New file.
45448         * m4/dprintf-posix.m4: New file.
45449         * modules/dprintf: New file.
45450         * modules/dprintf-posix: New file.
45451         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
45452         HAVE_DPRINTF, REPLACE_DPRINTF.
45453         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
45454         HAVE_DPRINTF, REPLACE_DPRINTF.
45455         * doc/posix-functions/dprintf.texi: Mention the new modules.
45456
45457 2009-01-17  Bruno Haible  <bruno@clisp.org>
45458
45459         * modules/vdprintf-posix-tests: New file.
45460         * tests/test-vdprintf-posix.sh: New file.
45461         * tests/test-vdprintf-posix.c: New file.
45462
45463         New modules 'vdprintf', 'vdprintf-posix'.
45464         * lib/stdio.in.h (vdprintf): New declaration.
45465         * lib/vdprintf.c: New file.
45466         * m4/vdprintf.m4: New file.
45467         * m4/vdprintf-posix.m4: New file.
45468         * modules/vdprintf: New file.
45469         * modules/vdprintf-posix: New file.
45470         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
45471         HAVE_VDPRINTF, REPLACE_VDPRINTF.
45472         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
45473         HAVE_VDPRINTF, REPLACE_VDPRINTF.
45474         * doc/posix-functions/vdprintf.texi: Mention the new modules.
45475
45476 2009-01-17  Bruno Haible  <bruno@clisp.org>
45477
45478         Fix replacement of fopen on mingw.
45479         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
45480         mingw.
45481
45482 2009-01-17  Bruno Haible  <bruno@clisp.org>
45483
45484         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
45485         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
45486
45487 2009-01-17  Bruno Haible  <bruno@clisp.org>
45488
45489         Avoid test-fflush2.sh failure on mingw.
45490         * tests/test-fflush2.c: Include binary-io.h.
45491         (main): Put standard input into binary mode.
45492         * modules/fflush-tests (Depends-on): Add binary-io.
45493
45494 2009-01-17  Bruno Haible  <bruno@clisp.org>
45495
45496         * lib/wchar.in.h: In another particular situation, include only the
45497         system's <wchar.h> file.
45498         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
45499         Reported by Albert Chin-A-Young <china@thewrittenword.com>
45500         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
45501
45502 2009-01-17  Bruno Haible  <bruno@clisp.org>
45503
45504         Support for stripping executables in --enable-relocatable.
45505         * build-aux/install-reloc: Expect one more argument, or an environment
45506         variable RELOC_STRIP_PROG. If set, strip the destination program and
45507         its wrapper.
45508         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
45509         RELOC_STRIP_PROG.
45510         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
45511         to set RELOCATABLE_STRIP.
45512         * NEWS: Mention the new Makefile requirement.
45513
45514 2009-01-17  Bruno Haible  <bruno@clisp.org>
45515
45516         * build-aux/install-reloc: Remove debugging information left over by
45517         C compiler on MacOS X.
45518
45519 2009-01-17  Bruno Haible  <bruno@clisp.org>
45520
45521         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
45522         * lib/progreloc.c (find_executable): Fix type of pointer passed to
45523         _NSGetExecutablePath.
45524
45525 2009-01-16  Jim Meyering  <meyering@redhat.com>
45526
45527         strerror: avoid warnings about discarding "const"
45528         * lib/strerror.c (rpl_strerror): Instead of returning a const
45529         string from each and every "case", use a variable, and add a single
45530         cast after the switch.
45531
45532 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
45533
45534         * lib/arpa_inet.in.h: Add extern "C" block for C++.
45535
45536 2009-01-16  Bruno Haible  <bruno@clisp.org>
45537
45538         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
45539         array initializer syntax that also works in C++ mode.
45540         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
45541
45542 2009-01-16  Jim Meyering  <meyering@redhat.com>
45543
45544         poll: suppress a warning
45545         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
45546         to ignore "...unsigned expression < 0 is always false" warnings.
45547
45548 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
45549
45550         poll: remove declarations of unused variables
45551         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
45552         sockbuf and optlen.
45553
45554 2009-01-15  Bruno Haible  <bruno@clisp.org>
45555
45556         Make fflush-after-ungetc POSIX compliant on BSD systems.
45557         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
45558         (clear_ungetc_buffer): Implement also for other systems.
45559         (rpl_fflush): On glibc systems, invoke
45560         clear_ungetc_buffer_preserving_position. Otherwise, invoke
45561         clear_ungetc_buffer after fetching the stream's position, not before.
45562
45563 2009-01-15  Bruno Haible  <bruno@clisp.org>
45564
45565         Make fflush-after-ungetc POSIX compliant on glibc systems.
45566         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
45567         after ungetc.
45568         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
45569         (rpl_fflush): On glibc systems, simply call the system's fflush
45570         function after clearing the ungetc buffer.
45571         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
45572         Instead, lseek only to the end of file, then use the system's fseeko
45573         for the rest. On glibc systems, reset the EOF indicator bit.
45574
45575 2009-01-15  Jim Meyering  <meyering@redhat.com>
45576
45577         openmp.m4: revert quote-adding change, for portability to older autoconf
45578         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
45579         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
45580         Simon Josefsson noticed the problem when using autoconf-2.61.
45581
45582 2009-01-15  Bruno Haible  <bruno@clisp.org>
45583
45584         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
45585         * tests/test-fflush2.c (ASSERT): Always fail.
45586         (main): Add two tests for fflush() after ungetc(), taking into account
45587         the Austin Group's clarification.
45588         Suggested by Eric Blake.
45589
45590 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
45591
45592         mktime.m4: remove K&R-style function prototypes
45593         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
45594         for the Sun C++ compiler.
45595
45596 2009-01-14  Bruno Haible  <bruno@clisp.org>
45597
45598         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
45599         while including <wchar.h>.
45600         * lib/wchar.in.h: In two particular situations on HP-UX, include only
45601         the system's <wchar.h> file.
45602         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
45603
45604 2009-01-14  Bruno Haible  <bruno@clisp.org>
45605
45606         * m4/csharp.m4: Don't mention gettext on the serial number line.
45607         * m4/csharpexec.m4: Likewise.
45608         * m4/eaccess.m4: Likewise.
45609         * m4/javaexec.m4: Likewise.
45610         * m4/sig_atomic_t.m4: Likewise.
45611         * m4/tmpdir.m4: Likewise.
45612         * m4/intldir.m4: Bump gettext version.
45613         * m4/lib-ld.m4: Likewise.
45614
45615 2009-01-14  Bruno Haible  <bruno@clisp.org>
45616
45617         * lib/progname.c (set_program_name): Add more comments.
45618         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
45619
45620 2009-01-14  Simon Josefsson  <simon@josefsson.org>
45621
45622         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
45623         were sys/stat.h does not define it.
45624
45625 2009-01-14  Jim Meyering  <meyering@redhat.com>
45626
45627         many *.m4 files: improve m4 quoting
45628         99% of this change was performed by running the following commands:
45629         git ls-files | grep '\.m4$' | xargs perl -pi \
45630           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
45631           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
45632           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
45633           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
45634         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
45635         The remainder were to add Copyright dates, increment serial numbers,
45636         undo some changes in comments, exclude m4/intl.m4, and add quotes
45637         around the "1" in ",1" where the unusual spacing prohibited the
45638         above regexps from doing the job.  For more details, see
45639         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
45640         * m4/acl.m4: Modified.
45641         * m4/afs.m4: Likewise.
45642         * m4/alloca.m4: Likewise.
45643         * m4/argp.m4: Likewise.
45644         * m4/argz.m4: Likewise.
45645         * m4/atexit.m4: Likewise.
45646         * m4/bison-i18n.m4: Likewise.
45647         * m4/bison.m4: Likewise.
45648         * m4/byteswap.m4: Likewise.
45649         * m4/c-stack.m4: Likewise.
45650         * m4/c-strtod.m4: Likewise.
45651         * m4/calloc.m4: Likewise.
45652         * m4/canonicalize-lgpl.m4: Likewise.
45653         * m4/chown.m4: Likewise.
45654         * m4/clock_time.m4: Likewise.
45655         * m4/codeset.m4: Likewise.
45656         * m4/copy-file.m4: Likewise.
45657         * m4/csharp.m4: Likewise.
45658         * m4/csharpcomp.m4: Likewise.
45659         * m4/csharpexec.m4: Likewise.
45660         * m4/d-ino.m4: Likewise.
45661         * m4/d-type.m4: Likewise.
45662         * m4/dirfd.m4: Likewise.
45663         * m4/double-slash-root.m4: Likewise.
45664         * m4/eaccess.m4: Likewise.
45665         * m4/eealloc.m4: Likewise.
45666         * m4/environ.m4: Likewise.
45667         * m4/errno_h.m4: Likewise.
45668         * m4/euidaccess.m4: Likewise.
45669         * m4/execute.m4: Likewise.
45670         * m4/fatal-signal.m4: Likewise.
45671         * m4/fchdir.m4: Likewise.
45672         * m4/fcntl_h.m4: Likewise.
45673         * m4/fileblocks.m4: Likewise.
45674         * m4/filenamecat.m4: Likewise.
45675         * m4/findprog.m4: Likewise.
45676         * m4/flexmember.m4: Likewise.
45677         * m4/fnmatch.m4: Likewise.
45678         * m4/fopen.m4: Likewise.
45679         * m4/fpending.m4: Likewise.
45680         * m4/fprintf-posix.m4: Likewise.
45681         * m4/free.m4: Likewise.
45682         * m4/frexp.m4: Likewise.
45683         * m4/frexpl.m4: Likewise.
45684         * m4/fsusage.m4: Likewise.
45685         * m4/ftruncate.m4: Likewise.
45686         * m4/gc-camellia.m4: Likewise.
45687         * m4/gc-random.m4: Likewise.
45688         * m4/gc.m4: Likewise.
45689         * m4/getaddrinfo.m4: Likewise.
45690         * m4/getcwd-abort-bug.m4: Likewise.
45691         * m4/getcwd-path-max.m4: Likewise.
45692         * m4/getdate.m4: Likewise.
45693         * m4/getdomainname.m4: Likewise.
45694         * m4/getgroups.m4: Likewise.
45695         * m4/gethostname.m4: Likewise.
45696         * m4/gethrxtime.m4: Likewise.
45697         * m4/getline.m4: Likewise.
45698         * m4/getloadavg.m4: Likewise.
45699         * m4/getndelim2.m4: Likewise.
45700         * m4/getpass.m4: Likewise.
45701         * m4/gettext.m4: Likewise.
45702         * m4/gettime.m4: Likewise.
45703         * m4/gettimeofday.m4: Likewise.
45704         * m4/gnulib-common.m4: Likewise.
45705         * m4/group-member.m4: Likewise.
45706         * m4/host-os.m4: Likewise.
45707         * m4/iconv.m4: Likewise.
45708         * m4/iconv_open.m4: Likewise.
45709         * m4/inet_ntop.m4: Likewise.
45710         * m4/inet_pton.m4: Likewise.
45711         * m4/inline.m4: Likewise.
45712         * m4/intldir.m4: Likewise.
45713         * m4/intlmacosx.m4: Likewise.
45714         * m4/intmax.m4: Likewise.
45715         * m4/intmax_t.m4: Likewise.
45716         * m4/inttypes.m4: Likewise.
45717         * m4/inttypes_h.m4: Likewise.
45718         * m4/inttypes-pri.m4: Likewise.
45719         * m4/isapipe.m4: Likewise.
45720         * m4/isnand.m4: Likewise.
45721         * m4/isnanf.m4: Likewise.
45722         * m4/isnanl.m4: Likewise.
45723         * m4/javacomp.m4: Likewise.
45724         * m4/javaexec.m4: Likewise.
45725         * m4/jm-winsz1.m4: Likewise.
45726         * m4/jm-winsz2.m4: Likewise.
45727         * m4/lchown.m4: Likewise.
45728         * m4/lcmessage.m4: Likewise.
45729         * m4/ldexpl.m4: Likewise.
45730         * m4/lib-ld.m4: Likewise.
45731         * m4/lib-link.m4: Likewise.
45732         * m4/libsigsegv.m4: Likewise.
45733         * m4/link-follow.m4: Likewise.
45734         * m4/localcharset.m4: Likewise.
45735         * m4/locale-fr.m4: Likewise.
45736         * m4/locale-ja.m4: Likewise.
45737         * m4/locale-tr.m4: Likewise.
45738         * m4/locale-zh.m4: Likewise.
45739         * m4/lock.m4: Likewise.
45740         * m4/longlong.m4: Likewise.
45741         * m4/ls-mntd-fs.m4: Likewise.
45742         * m4/lstat.m4: Likewise.
45743         * m4/malloc.m4: Likewise.
45744         * m4/mathl.m4: Likewise.
45745         * m4/mbrtowc.m4: Likewise.
45746         * m4/mbstate_t.m4: Likewise.
45747         * m4/mbswidth.m4: Likewise.
45748         * m4/memchr.m4: Likewise.
45749         * m4/memcmp.m4: Likewise.
45750         * m4/memcpy.m4: Likewise.
45751         * m4/memmem.m4: Likewise.
45752         * m4/memmove.m4: Likewise.
45753         * m4/mempcpy.m4: Likewise.
45754         * m4/memrchr.m4: Likewise.
45755         * m4/memset.m4: Likewise.
45756         * m4/minmax.m4: Likewise.
45757         * m4/mkdir-slash.m4: Likewise.
45758         * m4/mkdtemp.m4: Likewise.
45759         * m4/mktime.m4: Likewise.
45760         * m4/mmap-anon.m4: Likewise.
45761         * m4/mountlist.m4: Likewise.
45762         * m4/nanosleep.m4: Likewise.
45763         * m4/nls.m4: Likewise.
45764         * m4/nocrash.m4: Likewise.
45765         * m4/open.m4: Likewise.
45766         * m4/openat.m4: Likewise.
45767         * m4/openmp.m4: Likewise.
45768         * m4/pathmax.m4: Likewise.
45769         * m4/perl.m4: Likewise.
45770         * m4/physmem.m4: Likewise.
45771         * m4/pipe.m4: Likewise.
45772         * m4/po.m4: Likewise.
45773         * m4/poll.m4: Likewise.
45774         * m4/posixtm.m4: Likewise.
45775         * m4/posixver.m4: Likewise.
45776         * m4/printf-frexp.m4: Likewise.
45777         * m4/printf-frexpl.m4: Likewise.
45778         * m4/printf-posix.m4: Likewise.
45779         * m4/printf-posix-rpl.m4: Likewise.
45780         * m4/printf.m4: Likewise.
45781         * m4/progtest.m4: Likewise.
45782         * m4/putenv.m4: Likewise.
45783         * m4/readline.m4: Likewise.
45784         * m4/readlink.m4: Likewise.
45785         * m4/readutmp.m4: Likewise.
45786         * m4/realloc.m4: Likewise.
45787         * m4/regex.m4: Likewise.
45788         * m4/relocatable.m4: Likewise.
45789         * m4/relocatable-lib.m4: Likewise.
45790         * m4/rename-dest-slash.m4: Likewise.
45791         * m4/rename.m4: Likewise.
45792         * m4/rmdir-errno.m4: Likewise.
45793         * m4/rmdir.m4: Likewise.
45794         * m4/roundf.m4: Likewise.
45795         * m4/roundl.m4: Likewise.
45796         * m4/rpmatch.m4: Likewise.
45797         * m4/save-cwd.m4: Likewise.
45798         * m4/selinux-selinux-h.m4: Likewise.
45799         * m4/setenv.m4: Likewise.
45800         * m4/settime.m4: Likewise.
45801         * m4/sig2str.m4: Likewise.
45802         * m4/sig_atomic_t.m4: Likewise.
45803         * m4/signalblocking.m4: Likewise.
45804         * m4/signbit.m4: Likewise.
45805         * m4/sigpipe.m4: Likewise.
45806         * m4/sockets.m4: Likewise.
45807         * m4/sockpfaf.m4: Likewise.
45808         * m4/st_dm_mode.m4: Likewise.
45809         * m4/stat-time.m4: Likewise.
45810         * m4/stdbool.m4: Likewise.
45811         * m4/stdint.m4: Likewise.
45812         * m4/stdint_h.m4: Likewise.
45813         * m4/stpcpy.m4: Likewise.
45814         * m4/stpncpy.m4: Likewise.
45815         * m4/strcase.m4: Likewise.
45816         * m4/strchrnul.m4: Likewise.
45817         * m4/strcspn.m4: Likewise.
45818         * m4/strdup.m4: Likewise.
45819         * m4/strftime.m4: Likewise.
45820         * m4/strndup.m4: Likewise.
45821         * m4/strnlen.m4: Likewise.
45822         * m4/strpbrk.m4: Likewise.
45823         * m4/strptime.m4: Likewise.
45824         * m4/strsep.m4: Likewise.
45825         * m4/strtod.m4: Likewise.
45826         * m4/strtoimax.m4: Likewise.
45827         * m4/strtok_r.m4: Likewise.
45828         * m4/strtol.m4: Likewise.
45829         * m4/strtoll.m4: Likewise.
45830         * m4/strtoul.m4: Likewise.
45831         * m4/strtoull.m4: Likewise.
45832         * m4/strtoumax.m4: Likewise.
45833         * m4/strverscmp.m4: Likewise.
45834         * m4/threadlib.m4: Likewise.
45835         * m4/timegm.m4: Likewise.
45836         * m4/tm_gmtoff.m4: Likewise.
45837         * m4/tmpdir.m4: Likewise.
45838         * m4/tmpfile.m4: Likewise.
45839         * m4/tzset.m4: Likewise.
45840         * m4/uintmax_t.m4: Likewise.
45841         * m4/unlinkdir.m4: Likewise.
45842         * m4/unlocked-io.m4: Likewise.
45843         * m4/uptime.m4: Likewise.
45844         * m4/userspec.m4: Likewise.
45845         * m4/utimbuf.m4: Likewise.
45846         * m4/utime.m4: Likewise.
45847         * m4/utimes-null.m4: Likewise.
45848         * m4/utimes.m4: Likewise.
45849         * m4/vararrays.m4: Likewise.
45850         * m4/vasnprintf.m4: Likewise.
45851         * m4/vfprintf-posix.m4: Likewise.
45852         * m4/vprintf-posix.m4: Likewise.
45853         * m4/wait-process.m4: Likewise.
45854         * m4/wchar_t.m4: Likewise.
45855         * m4/wint_t.m4: Likewise.
45856         * m4/write-any-file.m4: Likewise.
45857         * m4/yield.m4: Likewise.
45858
45859 2009-01-13  Bruno Haible  <bruno@clisp.org>
45860
45861         Avoid test-copy-file.sh failures when ACL support insufficient.
45862         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
45863         TESTS_ENVIRONMENT.
45864         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
45865         Reported by Jim Meyering.
45866
45867 2009-01-13  Bruno Haible  <bruno@clisp.org>
45868
45869         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
45870         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
45871         * modules/unistdio/u8-printf-parse (Files): Likewise.
45872         * modules/unistdio/u32-printf-parse (Files): Likewise.
45873         * modules/unistdio/ulc-printf-parse (Files): Likewise.
45874
45875 2009-01-13  Simon Josefsson  <simon@josefsson.org>
45876
45877         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
45878         and m4/inttypes_h.m4 too.
45879
45880 2009-01-12  Eric Blake  <ebb9@byu.net>
45881
45882         tests: IRIX 6.2 cc can't compile -0.0 into .data
45883         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
45884         rather than at compile-time.
45885         * tests/test-floorl.c (minus_zero): Likewise.
45886         * tests/test-frexpl.c (minus_zero): Likewise.
45887         * tests/test-isnan.c (minus_zerol): Likewise.
45888         * tests/test-isnanl.h (minus_zero): Likewise.
45889         * tests/test-ldexpl.c (minus_zero): Likewise.
45890         * tests/test-roundl.c (minus_zero): Likewise.
45891         * tests/test-signbit.c (minus_zerol): Likewise.
45892         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
45893         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
45894         * tests/test-truncl.c (minus_zero): Likewise.
45895         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
45896         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
45897         Reported by Tom G. Christensen and Nelson H. F. Beebe.
45898
45899 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
45900
45901         regex: fix glibc bug 9697
45902         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
45903         handling.
45904
45905 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
45906
45907         regex: fix glibc bug 697
45908         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
45909         being NULL also if there are no backreferences.
45910
45911 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
45912
45913         regex: merge glibc changes
45914         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
45915         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
45916         re_string_skip_chars, re_string_reconstruct): Likewise.
45917         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
45918
45919 2009-01-07  Jim Meyering  <meyering@redhat.com>
45920
45921         poll: filter through cppi
45922         * lib/poll.c: Indent cpp directives to reflect nesting.
45923
45924 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
45925
45926         poll: don't return uninitialized
45927         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
45928
45929 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
45930
45931         avoid compile failure on AIX 6.1
45932         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
45933         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
45934
45935 2009-01-04  Jim Meyering  <meyering@redhat.com>
45936
45937         remove duplicate inclusion of <stdio.h>
45938         * tests/test-fprintf-posix.c: Likewise.
45939         * tests/test-printf-posix.c: Likewise.
45940         * tests/test-snprintf-posix.c: Likewise.
45941         * tests/test-sprintf-posix.c: Likewise.
45942         * tests/test-vasprintf-posix.c: Likewise.
45943         * tests/test-vfprintf-posix.c: Likewise.
45944         * tests/test-vprintf-posix.c: Likewise.
45945         * tests/test-vsnprintf-posix.c: Likewise.
45946         * tests/test-vsprintf-posix.c: Likewise.
45947
45948 2009-01-03  Jim Meyering  <meyering@redhat.com>
45949
45950         gnulib-tool: fix sed-based filtering
45951         * gnulib-tool (func_filter_filelist): Remove extra backslash
45952         in sed_fff_filter definition.
45953
45954 2009-01-02  Jim Meyering  <meyering@redhat.com>
45955
45956         strftime: avoid compilation failure on Solaris 2.6
45957         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
45958         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
45959         Don't #define mbrlen or mbsinit, since now they're guaranteed to
45960         be available.  Reported by Tom G. Christensen.  Details in
45961         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
45962
45963 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45964             Bruno Haible  <bruno@clisp.org>
45965
45966         Speed up gnulib-tool by doing more string processing through shell
45967         built-ins.
45968         * gnulib-tool (fast_func_append): New variable.
45969         (func_remove_prefix, func_remove_suffix): New functions.
45970         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
45971         (func_filter_filelist): New function.
45972         (func_get_dependencies): Use func_remove_suffix instead of sed.
45973         (func_get_automake_snippet): Use func_filter_filelist instead of a
45974         subshell and sed invocation.
45975
45976 2009-01-01  Bruno Haible  <bruno@clisp.org>
45977
45978         Fix a security bug.
45979         * gnulib-tool (func_import, import, update): Don't allow the characters
45980         '"', '$', '`', '\' in macro arguments that become part of commands that
45981         are evaluated.
45982
45983 2009-01-01  Bruno Haible  <bruno@clisp.org>
45984
45985         * gnulib-tool (func_reset_sigpipe): Add more comments.
45986
45987 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45988
45989         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
45990         func_emit_tests_Makefile_am, func_import): Abort loops early if we
45991         already know the answer.
45992
45993 2009-01-01  Jim Meyering  <meyering@redhat.com>
45994
45995         * lib/version-etc.c (version_etc_va): Update copyright year.
45996
45997 2008-12-30  Bruno Haible  <bruno@clisp.org>
45998
45999         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
46000         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
46001         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
46002
46003 2008-12-29  Eric Blake  <ebb9@byu.net>
46004
46005         multiarch: avoid autoconf AC_REQUIRE bug
46006         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
46007         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
46008         2.63 and older.
46009         Reported by Bruno Haible, and analyzed in
46010         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
46011
46012 2008-12-29  Bruno Haible  <bruno@clisp.org>
46013
46014         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
46015         files in subdirectories correctly.
46016         Reported by Ralf Wildenhues.
46017
46018 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46019
46020         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
46021         rather than 'join FILE -', for Solaris join.
46022
46023 2008-12-29  Bruno Haible  <bruno@clisp.org>
46024
46025         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
46026         quoting.
46027         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
46028         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
46029         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
46030         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
46031         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
46032         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
46033         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
46034         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
46035         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
46036         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
46037         * m4/nls.m4 (AM_NLS): Likewise.
46038         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
46039         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
46040         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
46041         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
46042         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
46043         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
46044         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
46045         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
46046         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
46047         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
46048         * m4/xsize.m4 (gl_XSIZE): Likewise.
46049         Suggested by Jim Meyering.
46050
46051 2008-11-17  Bruce Korb  <bkorb@gnu.org>
46052
46053         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
46054         * lib/parse-duration.c: use a switch instead of cascading if's.
46055
46056 2008-12-29  Eric Blake  <ebb9@byu.net>
46057
46058         wchar.h: supply WEOF on Irix 5.3
46059         * lib/wchar.in.h (wint_t): Also supply WEOF.
46060         * lib/wctype.in.h (wint_t): Likewise.
46061         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
46062         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
46063         Reported by Tom G. Christensen.
46064
46065 2008-12-26  Bruno Haible  <bruno@clisp.org>
46066
46067         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
46068         i486, i586, i686.
46069
46070 2008-12-26  Bruno Haible  <bruno@clisp.org>
46071
46072         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
46073
46074 2008-12-26  Bruno Haible  <bruno@clisp.org>
46075
46076         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
46077         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
46078         not __STDC_CONSTANT_MACROS.
46079         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
46080
46081 2008-12-25  Bruno Haible  <bruno@clisp.org>
46082
46083         Add support for universal builds to vasnprintf.
46084         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
46085         universal builds, guess no.
46086         * modules/vasnprintf-posix (Depends-on): Add multiarch.
46087         * modules/vasprintf-posix (Depends-on): Likewise.
46088         * modules/fprintf-posix (Depends-on): Likewise.
46089         * modules/vfprintf-posix (Depends-on): Likewise.
46090         * modules/snprintf-posix (Depends-on): Likewise.
46091         * modules/vsnprintf-posix (Depends-on): Likewise.
46092         * modules/sprintf-posix (Depends-on): Likewise.
46093         * modules/vsprintf-posix (Depends-on): Likewise.
46094         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
46095         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
46096         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
46097         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
46098         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
46099         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
46100         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
46101
46102         Add support for universal builds to <inttypes.h>.
46103         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
46104         _SCNu64_PREFIX): In Apple
46105         universal builds, define directly, using _LP64.
46106         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
46107         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
46108         * modules/inttypes (Depends-on): Add multiarch.
46109         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
46110
46111         Add support for universal builds to <stdint.h>.
46112         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
46113         universal builds, define directly, using _LP64.
46114         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
46115         Apple universal builds, don't test for the size and suffix of ptrdiff_t
46116         and size_t.
46117         * modules/stdint (Depends-on): Add multiarch.
46118         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
46119
46120         New module 'multiarch'.
46121         * modules/multiarch: New file.
46122         * m4/multiarch.m4: New file.
46123
46124 2008-12-25  Bruno Haible  <bruno@clisp.org>
46125
46126         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
46127
46128 2008-12-25  Bruno Haible  <bruno@clisp.org>
46129
46130         * modules/btowc (License): Relicense under LGPLv2+.
46131         * modules/mbsinit (License): Likewise.
46132         * modules/mbrtowc (License): Likewise.
46133         * modules/wcrtomb (License): Likewise.
46134         * modules/streq (License): Likewise.
46135         Reported by David Lutterkort <lutter@redhat.com>.
46136
46137 2008-12-23  Bruno Haible  <bruno@clisp.org>
46138
46139         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
46140
46141 2008-12-23  Bruno Haible  <bruno@clisp.org>
46142
46143         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
46144         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
46145         GETADDRINFO_LIB, not in LIBS.
46146         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
46147         * modules/canon-host (Link): Likewise.
46148         * NEWS: Mention the change.
46149         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
46150         GETADDRINFO_LIB.
46151
46152 2008-12-22  Bruno Haible  <bruno@clisp.org>
46153
46154         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
46155         * doc/posix-functions/iswalpha_l.texi: Likewise.
46156         * doc/posix-functions/iswblank_l.texi: Likewise.
46157         * doc/posix-functions/iswcntrl_l.texi: Likewise.
46158         * doc/posix-functions/iswctype_l.texi: Likewise.
46159         * doc/posix-functions/iswdigit_l.texi: Likewise.
46160         * doc/posix-functions/iswgraph_l.texi: Likewise.
46161         * doc/posix-functions/iswlower_l.texi: Likewise.
46162         * doc/posix-functions/iswprint_l.texi: Likewise.
46163         * doc/posix-functions/iswpunct_l.texi: Likewise.
46164         * doc/posix-functions/iswspace_l.texi: Likewise.
46165         * doc/posix-functions/iswupper_l.texi: Likewise.
46166         * doc/posix-functions/iswxdigit_l.texi: Likewise.
46167         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
46168         * doc/posix-functions/open_wmemstream.texi: Likewise.
46169         * doc/posix-functions/swscanf.texi: Likewise.
46170         * doc/posix-functions/towctrans_l.texi: Likewise.
46171         * doc/posix-functions/towlower.texi: Likewise.
46172         * doc/posix-functions/towlower_l.texi: Likewise.
46173         * doc/posix-functions/towupper.texi: Likewise.
46174         * doc/posix-functions/towupper_l.texi: Likewise.
46175         * doc/posix-functions/vfwprintf.texi: Likewise.
46176         * doc/posix-functions/vfwscanf.texi: Likewise.
46177         * doc/posix-functions/vswscanf.texi: Likewise.
46178         * doc/posix-functions/vwprintf.texi: Likewise.
46179         * doc/posix-functions/vwscanf.texi: Likewise.
46180         * doc/posix-functions/wcpcpy.texi: Likewise.
46181         * doc/posix-functions/wcpncpy.texi: Likewise.
46182         * doc/posix-functions/wcscasecmp.texi: Likewise.
46183         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
46184         * doc/posix-functions/wcscoll_l.texi: Likewise.
46185         * doc/posix-functions/wcsdup.texi: Likewise.
46186         * doc/posix-functions/wcsncasecmp.texi: Likewise.
46187         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
46188         * doc/posix-functions/wcsnlen.texi: Likewise.
46189         * doc/posix-functions/wcsnrtombs.texi: Likewise.
46190         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
46191         * doc/posix-functions/wctrans_l.texi: Likewise.
46192         * doc/posix-functions/wctype_l.texi: Likewise.
46193         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
46194         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
46195         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
46196         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
46197         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
46198         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
46199         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
46200         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
46201         * doc/glibc-functions/wcschrnul.texi: Likewise.
46202         * doc/glibc-functions/wcsftime_l.texi: Likewise.
46203         * doc/glibc-functions/wcstod_l.texi: Likewise.
46204         * doc/glibc-functions/wcstof_l.texi: Likewise.
46205         * doc/glibc-functions/wcstol_l.texi: Likewise.
46206         * doc/glibc-functions/wcstold_l.texi: Likewise.
46207         * doc/glibc-functions/wcstoll_l.texi: Likewise.
46208         * doc/glibc-functions/wcstoq.texi: Likewise.
46209         * doc/glibc-functions/wcstoul_l.texi: Likewise.
46210         * doc/glibc-functions/wcstoull_l.texi: Likewise.
46211         * doc/glibc-functions/wcstouq.texi: Likewise.
46212         * doc/glibc-functions/wmempcpy.texi: Likewise.
46213
46214 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
46215             Eric Blake  <ebb9@byu.net>
46216             Paolo Bonzini  <bonzini@gnu.org>
46217             Bruno Haible  <bruno@clisp.org>
46218
46219         Make c-stack work on Haiku.
46220         * lib/c-stack.c (SA_ONSTACK): Define fallback.
46221         (c_stack_action): Use SA_ONSTACK flag.
46222
46223 2008-12-22  Bruno Haible  <bruno@clisp.org>
46224
46225         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
46226
46227 2008-12-22  Bruno Haible  <bruno@clisp.org>
46228
46229         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
46230         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
46231         being overridden.
46232         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
46233         New macros.
46234         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
46235         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
46236         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
46237         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
46238
46239 2008-12-22  Bruno Haible  <bruno@clisp.org>
46240
46241         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
46242         from test code.
46243
46244 2008-12-22  Eric Blake  <ebb9@byu.net>
46245
46246         Avoid gcc warnings on cygwin.
46247         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
46248         Avoid unused variable.
46249         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
46250         Likewise.
46251
46252 2008-12-22  Bruno Haible  <bruno@clisp.org>
46253
46254         Remove HAVE_MBRTOWC conditionals.
46255         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
46256         (mbscasecmp): Assume mbrtowc function.
46257         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
46258         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
46259         * lib/mbschr.c: Include mbuiter.h unconditionally.
46260         (mbschr): Assume mbrtowc function.
46261         * lib/mbscspn.c: Include mbuiter.h unconditionally.
46262         (mbscspn): Assume mbrtowc function.
46263         * lib/mbslen.c: Include mbuiter.h unconditionally.
46264         (mbslen): Assume mbrtowc function.
46265         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
46266         (mbsncasecmp): Assume mbrtowc function.
46267         * lib/mbsnlen.c: Include mbiter.h unconditionally.
46268         (mbsnlen): Assume mbrtowc function.
46269         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
46270         (mbspbrk): Assume mbrtowc function.
46271         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
46272         (mbspcasecmp): Assume mbrtowc function.
46273         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
46274         (mbsrchr): Assume mbrtowc function.
46275         * lib/mbssep.c: Include mbuiter.h unconditionally.
46276         (mbssep): Assume mbrtowc function.
46277         * lib/mbsspn.c: Include mbuiter.h unconditionally.
46278         (mbsspn): Assume mbrtowc function.
46279         * lib/mbsstr.c: Include mbuiter.h unconditionally.
46280         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
46281         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
46282         (mbstok_r): Assume mbrtowc function.
46283         * lib/propername.c: Include mbuiter.h unconditionally.
46284         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
46285         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
46286         (trim2): Assume mbrtowc function.
46287         * lib/mbswidth.c (mbsinit): Remove fallback definition.
46288         (mbsnwidth): Assume mbrtowc function.
46289         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
46290         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
46291         fallback definitions.
46292         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
46293
46294 2008-12-22  Bruno Haible  <bruno@clisp.org>
46295
46296         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
46297
46298 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
46299
46300         * modules/regex: Request emulations for the mb*/wc* functions we need.
46301         * m4/regex.m4: Don't look for those functions here.
46302         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
46303
46304 2008-12-22  Bruno Haible  <bruno@clisp.org>
46305
46306         * modules/fnmatch (Depends-on): Remove duplicated dependency.
46307
46308 2008-12-21  Bruno Haible  <bruno@clisp.org>
46309
46310         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
46311         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
46312         (Include): Remove conditionalization.
46313         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
46314         (Include): Remove conditionalization.
46315         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
46316         (Include): Remove conditionalization.
46317         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
46318         * m4/mbfile.m4 (gl_MBFILE): Likewise.
46319         * NEWS: Mention the change.
46320         Reported by Alan Hourihane <alanh@fairlite.co.uk>
46321         via Sergey Poznyakoff <gray@gnu.org.ua>.
46322
46323 2008-12-21  Bruno Haible  <bruno@clisp.org>
46324
46325         * MODULES.html.sh (Extended multibyte and wide character utilities
46326         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
46327         wcrtomb, wcsrtombs.
46328         (Support for systems lacking POSIX:2008): Add accept, bind, close,
46329         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
46330         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
46331         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
46332
46333 2008-12-21  Bruno Haible  <bruno@clisp.org>
46334
46335         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
46336
46337 2008-12-21  Bruno Haible  <bruno@clisp.org>
46338
46339         * modules/wcsnrtombs-tests: New file.
46340         * tests/test-wcsnrtombs1.sh: New file.
46341         * tests/test-wcsnrtombs2.sh: New file.
46342         * tests/test-wcsnrtombs3.sh: New file.
46343         * tests/test-wcsnrtombs4.sh: New file.
46344         * tests/test-wcsnrtombs.c: New file.
46345
46346         New module 'wcsnrtombs'.
46347         * lib/wchar.in.h (wcsnrtombs): New declaration.
46348         * lib/wcsnrtombs.c: New file.
46349         * lib/wcsrtombs-state.c: New file.
46350         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
46351         (internal_state): Remove variable.
46352         * m4/wcsnrtombs.m4: New file.
46353         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
46354         compilation units.
46355         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
46356         HAVE_WCSNRTOMBS.
46357         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
46358         HAVE_WCSNRTOMBS.
46359         * modules/wcsnrtombs: New file.
46360         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
46361         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
46362
46363 2008-12-21  Bruno Haible  <bruno@clisp.org>
46364
46365         * modules/wcsrtombs-tests: New file.
46366         * tests/test-wcsrtombs1.sh: New file.
46367         * tests/test-wcsrtombs2.sh: New file.
46368         * tests/test-wcsrtombs3.sh: New file.
46369         * tests/test-wcsrtombs4.sh: New file.
46370         * tests/test-wcsrtombs.c: New file.
46371
46372         New module 'wcsrtombs'.
46373         * lib/wchar.in.h (wcsrtombs): New declaration.
46374         * lib/wcsrtombs.c: New file.
46375         * m4/wcsrtombs.m4: New file.
46376         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
46377         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
46378         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
46379         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
46380         * modules/wcsrtombs: New file.
46381         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
46382         bugs.
46383
46384 2008-12-21  Bruno Haible  <bruno@clisp.org>
46385
46386         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
46387         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
46388         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
46389         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
46390         if not correct.
46391         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
46392         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
46393         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
46394         m4/locale-zh.m4, m4/codeset.m4.
46395         * doc/posix-functions/wcrtomb.texi: Document the bug.
46396
46397 2008-12-21  Bruno Haible  <bruno@clisp.org>
46398
46399         Work around a btowc() bug on IRIX 6.5.
46400         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
46401         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
46402         REPLACE_WTOBC if not.
46403         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
46404         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
46405         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
46406
46407 2008-12-21  Bruno Haible  <bruno@clisp.org>
46408
46409         * modules/wcrtomb-tests: New file.
46410         * tests/test-wcrtomb.sh: New file.
46411         * tests/test-wcrtomb.c: New file.
46412
46413         New module 'wcrtomb'.
46414         * lib/wchar.in.h (wcrtomb): New declaration.
46415         * lib/wcrtomb.c: New file.
46416         * m4/wcrtomb.m4: New file.
46417         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
46418         HAVE_WCRTOMB.
46419         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
46420         HAVE_WCRTOMB.
46421         * modules/wcrtomb: New file.
46422         * doc/posix-functions/wcrtomb.texi: Mention the new module.
46423
46424 2008-12-21  Bruno Haible  <bruno@clisp.org>
46425
46426         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
46427         * modules/mbsrtowcs (Files): Likewise.
46428         * modules/wctob (Files): Likewise.
46429         * modules/c-strcase-tests (Files): Likewise.
46430         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
46431         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
46432         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
46433         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
46434         * modules/vasnprintf-posix-tests (Files): Likewise.
46435
46436 2008-12-21  William Pursell  <bill.pursell@gmail.com>
46437
46438         gitlog-to-changelog: pass all command-line arguments to git-log
46439         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
46440         it is sometimes convenient to filter the commits in various ways.
46441         gitlog-to-changelog only allows --since to specify a start date,
46442         but git-log itself supports many other filtering mechanisms.
46443         At the moment, I want to filter by branch name.  Rather than
46444         adding a --branch option to gitlog-to-changelog, it seems more
46445         flexible to simply pass all options directly to git-log and let
46446         git do the work.  Notice that this effectively makes --since a
46447         redundant option for gitlog-to-changelog, but removing it would
46448         require current usage to change since calls would then require
46449         an additional '--'.
46450
46451 2008-12-21  Bruno Haible  <bruno@clisp.org>
46452
46453         * modules/mbsnrtowcs-tests: New file.
46454         * tests/test-mbsnrtowcs1.sh: New file.
46455         * tests/test-mbsnrtowcs2.sh: New file.
46456         * tests/test-mbsnrtowcs3.sh: New file.
46457         * tests/test-mbsnrtowcs4.sh: New file.
46458         * tests/test-mbsnrtowcs.c: New file.
46459
46460         New module 'mbsnrtowcs'.
46461         * lib/wchar.in.h (mbsnrtowcs): New declaration.
46462         * lib/mbsnrtowcs.c: New file.
46463         * lib/mbsrtowcs-state.c: New file.
46464         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
46465         (internal_state): Remove variable.
46466         * m4/mbsnrtowcs.m4: New file.
46467         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
46468         compilation units.
46469         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
46470         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
46471         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
46472         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
46473         * modules/mbsnrtowcs: New file.
46474         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
46475         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
46476         portability problem.
46477
46478 2008-12-21  Bruno Haible  <bruno@clisp.org>
46479
46480         Work around mbsrtowcs bug.
46481         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
46482         (gl_FUNC_MBSRTOWCS): Invoke it.
46483         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
46484         m4/locale-zh.m4.
46485         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
46486
46487 2008-12-21  Bruno Haible  <bruno@clisp.org>
46488
46489         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
46490
46491 2008-12-21  Bruno Haible  <bruno@clisp.org>
46492
46493         Update doc for AIX.
46494         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
46495         16-bit wchar_t type.
46496         * doc/posix-functions/btowc.texi: Likewise.
46497         * doc/posix-functions/fgetwc.texi: Likewise.
46498         * doc/posix-functions/fgetws.texi: Likewise.
46499         * doc/posix-functions/fputwc.texi: Likewise.
46500         * doc/posix-functions/fputws.texi: Likewise.
46501         * doc/posix-functions/fwide.texi: Likewise.
46502         * doc/posix-functions/fwprintf.texi: Likewise.
46503         * doc/posix-functions/fwscanf.texi: Likewise.
46504         * doc/posix-functions/getwchar.texi: Likewise.
46505         * doc/posix-functions/getwc.texi: Likewise.
46506         * doc/posix-functions/iswalnum.texi: Likewise.
46507         * doc/posix-functions/iswalpha.texi: Likewise.
46508         * doc/posix-functions/iswblank.texi: Likewise.
46509         * doc/posix-functions/iswcntrl.texi: Likewise.
46510         * doc/posix-functions/iswctype.texi: Likewise.
46511         * doc/posix-functions/iswdigit.texi: Likewise.
46512         * doc/posix-functions/iswgraph.texi: Likewise.
46513         * doc/posix-functions/iswlower.texi: Likewise.
46514         * doc/posix-functions/iswprint.texi: Likewise.
46515         * doc/posix-functions/iswpunct.texi: Likewise.
46516         * doc/posix-functions/iswspace.texi: Likewise.
46517         * doc/posix-functions/iswupper.texi: Likewise.
46518         * doc/posix-functions/iswxdigit.texi: Likewise.
46519         * doc/posix-functions/mbrtowc.texi: Likewise.
46520         * doc/posix-functions/mbsrtowcs.texi: Likewise.
46521         * doc/posix-functions/mbstowcs.texi: Likewise.
46522         * doc/posix-functions/mbtowc.texi: Likewise.
46523         * doc/posix-functions/putwchar.texi: Likewise.
46524         * doc/posix-functions/putwc.texi: Likewise.
46525         * doc/posix-functions/swprintf.texi: Likewise.
46526         * doc/posix-functions/tolower.texi: Likewise.
46527         * doc/posix-functions/toupper.texi: Likewise.
46528         * doc/posix-functions/towctrans.texi: Likewise.
46529         * doc/posix-functions/ungetwc.texi: Likewise.
46530         * doc/posix-functions/vswprintf.texi: Likewise.
46531         * doc/posix-functions/wcrtomb.texi: Likewise.
46532         * doc/posix-functions/wcscat.texi: Likewise.
46533         * doc/posix-functions/wcschr.texi: Likewise.
46534         * doc/posix-functions/wcscmp.texi: Likewise.
46535         * doc/posix-functions/wcscoll.texi: Likewise.
46536         * doc/posix-functions/wcscpy.texi: Likewise.
46537         * doc/posix-functions/wcscspn.texi: Likewise.
46538         * doc/posix-functions/wcsftime.texi: Likewise.
46539         * doc/posix-functions/wcslen.texi: Likewise.
46540         * doc/posix-functions/wcsncat.texi: Likewise.
46541         * doc/posix-functions/wcsncmp.texi: Likewise.
46542         * doc/posix-functions/wcsncpy.texi: Likewise.
46543         * doc/posix-functions/wcspbrk.texi: Likewise.
46544         * doc/posix-functions/wcsrchr.texi: Likewise.
46545         * doc/posix-functions/wcsrtombs.texi: Likewise.
46546         * doc/posix-functions/wcsspn.texi: Likewise.
46547         * doc/posix-functions/wcsstr.texi: Likewise.
46548         * doc/posix-functions/wcstod.texi: Likewise.
46549         * doc/posix-functions/wcstof.texi: Likewise.
46550         * doc/posix-functions/wcstoimax.texi: Likewise.
46551         * doc/posix-functions/wcstok.texi: Likewise.
46552         * doc/posix-functions/wcstold.texi: Likewise.
46553         * doc/posix-functions/wcstoll.texi: Likewise.
46554         * doc/posix-functions/wcstol.texi: Likewise.
46555         * doc/posix-functions/wcstombs.texi: Likewise.
46556         * doc/posix-functions/wcstoull.texi: Likewise.
46557         * doc/posix-functions/wcstoul.texi: Likewise.
46558         * doc/posix-functions/wcstoumax.texi: Likewise.
46559         * doc/posix-functions/wcswidth.texi: Likewise.
46560         * doc/posix-functions/wcsxfrm.texi: Likewise.
46561         * doc/posix-functions/wctob.texi: Likewise.
46562         * doc/posix-functions/wctomb.texi: Likewise.
46563         * doc/posix-functions/wctrans.texi: Likewise.
46564         * doc/posix-functions/wctype.texi: Likewise.
46565         * doc/posix-functions/wcwidth.texi: Likewise.
46566         * doc/posix-functions/wmemchr.texi: Likewise.
46567         * doc/posix-functions/wmemcmp.texi: Likewise.
46568         * doc/posix-functions/wmemcpy.texi: Likewise.
46569         * doc/posix-functions/wmemmove.texi: Likewise.
46570         * doc/posix-functions/wmemset.texi: Likewise.
46571         * doc/posix-functions/wprintf.texi: Likewise.
46572         * doc/posix-functions/wscanf.texi: Likewise.
46573
46574 2008-12-21  Bruno Haible  <bruno@clisp.org>
46575
46576         Update doc for HP-UX 11.11.
46577         * doc/posix-functions/btowc.texi: Clarify that the function is missing
46578         in HP-UX version 11.00, not in all versions of HP-UX 11.
46579         * doc/posix-functions/fwide.texi: Likewise.
46580         * doc/posix-functions/fwprintf.texi: Likewise.
46581         * doc/posix-functions/fwscanf.texi: Likewise.
46582         * doc/posix-functions/inet_ntop.texi: Likewise.
46583         * doc/posix-functions/inet_pton.texi: Likewise.
46584         * doc/posix-functions/mbrlen.texi: Likewise.
46585         * doc/posix-functions/mbrtowc.texi: Likewise.
46586         * doc/posix-functions/mbsinit.texi: Likewise.
46587         * doc/posix-functions/mbsrtowcs.texi: Likewise.
46588         * doc/posix-functions/swprintf.texi: Likewise.
46589         * doc/posix-functions/swscanf.texi: Likewise.
46590         * doc/posix-functions/towctrans.texi: Likewise.
46591         * doc/posix-functions/vfwprintf.texi: Likewise.
46592         * doc/posix-functions/vswprintf.texi: Likewise.
46593         * doc/posix-functions/vwprintf.texi: Likewise.
46594         * doc/posix-functions/wcrtomb.texi: Likewise.
46595         * doc/posix-functions/wcsrtombs.texi: Likewise.
46596         * doc/posix-functions/wcsstr.texi: Likewise.
46597         * doc/posix-functions/wctob.texi: Likewise.
46598         * doc/posix-functions/wctrans.texi: Likewise.
46599         * doc/posix-functions/wmemchr.texi: Likewise.
46600         * doc/posix-functions/wmemcmp.texi: Likewise.
46601         * doc/posix-functions/wmemcpy.texi: Likewise.
46602         * doc/posix-functions/wmemmove.texi: Likewise.
46603         * doc/posix-functions/wmemset.texi: Likewise.
46604         * doc/posix-functions/wprintf.texi: Likewise.
46605         * doc/posix-functions/wscanf.texi: Likewise.
46606
46607 2008-12-21  Bruno Haible  <bruno@clisp.org>
46608
46609         Work around a portability problem.
46610         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
46611         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
46612
46613 2008-12-20  Bruno Haible  <bruno@clisp.org>
46614
46615         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
46616         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
46617         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
46618         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
46619         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
46620
46621         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
46622         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
46623         set.
46624         (GNULIB_defined_mbstate_t): New macro.
46625         (mbsinit): Redefine if REPLACE_MBSINIT is set.
46626         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
46627         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
46628         reuses the system's mbrtowc function but works around the bugs.
46629         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
46630         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
46631         macros.
46632         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
46633         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
46634         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
46635         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
46636         REPLACE_MBSINIT if mbsinit needs to be overridden.
46637         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
46638         REPLACE_MBSINIT, REPLACE_MBRTOWC.
46639         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
46640         REPLACE_MBSINIT, REPLACE_MBRTOWC.
46641         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
46642         m4/locale-zh.m4.
46643         (Depends): Add mbsinit.
46644         * modules/mbsinit (Depends): Add mbrtowc.
46645         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
46646
46647 2008-12-20  Bruno Haible  <bruno@clisp.org>
46648
46649         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
46650         so that there are no conversion errors on AIX.
46651         * tests/test-mbsrtowcs.c (main): LIkewise.
46652
46653 2008-12-20  Bruno Haible  <bruno@clisp.org>
46654
46655         Work around wctob bug on Solaris <= 9.
46656         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
46657         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
46658         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
46659         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
46660         * modules/wctob (Files): Add m4/locale-fr.m4.
46661         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
46662
46663 2008-12-20  Bruno Haible  <bruno@clisp.org>
46664
46665         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
46666         /dev/null.
46667         * tests/test-select-in.sh: Likewise.
46668         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
46669
46670 2008-12-20  Bruno Haible  <bruno@clisp.org>
46671
46672         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
46673         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
46674         Cygwin 1.5.x.
46675
46676 2008-12-20  Bruno Haible  <bruno@clisp.org>
46677
46678         Ensure mbstate_t is defined on HP-UX 11.11.
46679         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
46680         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
46681         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
46682         AC_USE_SYSTEM_EXTENSIONS.
46683         * modules/fnmatch (Depends-on): Add extensions.
46684         * modules/mbrlen (Depends-on): Likewise.
46685         * modules/mbrtowc (Depends-on): Likewise.
46686         * modules/mbsinit (Depends-on): Likewise.
46687         * modules/mbsrtowcs (Depends-on): Likewise.
46688         * modules/mbswidth (Depends-on): Likewise.
46689         * modules/quotearg (Depends-on): Likewise.
46690         * modules/strftime (Depends-on): Likewise.
46691
46692 2008-12-20  Bruno Haible  <bruno@clisp.org>
46693
46694         Ensure wctob is declared on IRIX 6.5.
46695         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
46696         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
46697         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
46698         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
46699         of HAVE_WCTOB.
46700         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
46701         HAVE_WCTOB.
46702         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
46703
46704 2008-12-19  Bruno Haible  <bruno@clisp.org>
46705
46706         * modules/mbsrtowcs-tests: New file.
46707         * tests/test-mbsrtowcs1.sh: New file.
46708         * tests/test-mbsrtowcs2.sh: New file.
46709         * tests/test-mbsrtowcs3.sh: New file.
46710         * tests/test-mbsrtowcs4.sh: New file.
46711         * tests/test-mbsrtowcs.c: New file.
46712
46713         New module 'mbsrtowcs'.
46714         * lib/wchar.in.h (mbsrtowcs): New declaration.
46715         * lib/mbsrtowcs.c: New file.
46716         * m4/mbsrtowcs.m4: New file.
46717         * modules/mbsrtowcs: New file.
46718         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
46719         HAVE_MBSRTOWCS.
46720         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
46721         HAVE_MBSRTOWCS.
46722         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
46723
46724 2008-12-19  Bruno Haible  <bruno@clisp.org>
46725
46726         New module 'mbrlen'.
46727         * lib/wchar.in.h (mbrlen): New declaration.
46728         * lib/mbrlen.c: New file.
46729         * m4/mbrlen.m4: New file.
46730         * modules/mbrlen: New file.
46731         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
46732         HAVE_MBRLEN.
46733         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
46734         HAVE_MBRLEN.
46735         * doc/posix-functions/mbrlen.texi: Document the new module.
46736
46737 2008-12-19  Bruno Haible  <bruno@clisp.org>
46738
46739         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
46740         * modules/mbrtowc (Depends-on): Add verify.
46741         Suggested by Paul Eggert.
46742
46743 2008-12-18  Bruno Haible  <bruno@clisp.org>
46744
46745         * modules/mbsinit-tests: New file.
46746         * tests/test-mbsinit.sh: New file.
46747         * tests/test-mbsinit.c: New file.
46748
46749 2008-12-18  Bruno Haible  <bruno@clisp.org>
46750
46751         * modules/mbrtowc-tests: New file.
46752         * tests/test-mbrtowc1.sh: New file.
46753         * tests/test-mbrtowc2.sh: New file.
46754         * tests/test-mbrtowc3.sh: New file.
46755         * tests/test-mbrtowc4.sh: New file.
46756         * tests/test-mbrtowc.c: New file.
46757
46758         New module 'mbrtowc'.
46759         * lib/wchar.in.h (mbstate_t): Override when the system does not have
46760         mbsinit and mbrtowc.
46761         (mbrtowc): New declaration.
46762         * lib/mbrtowc.c: New file.
46763         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
46764         * modules/mbrtowc: New file.
46765         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
46766         HAVE_MBRTOWC.
46767         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
46768         HAVE_MBRTOWC.
46769         * doc/posix-functions/mbrtowc.texi: Document the new module.
46770
46771 2008-12-18  Bruno Haible  <bruno@clisp.org>
46772
46773         New module 'wctob'.
46774         * lib/wchar.in.h (wctob): New declaration.
46775         * lib/wctob.c: New file.
46776         * m4/wctob.m4: New file.
46777         * modules/wctob: New file.
46778         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
46779         HAVE_WCTOB.
46780         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
46781         * doc/posix-functions/wctob.texi: Document the new module.
46782
46783 2008-12-18  Bruno Haible  <bruno@clisp.org>
46784
46785         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
46786         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
46787
46788 2008-12-18  Simon Josefsson  <simon@josefsson.org>
46789
46790         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
46791         G. Christensen" <tgc@jupiterrise.com>.
46792
46793         * lib/flock.c: Need to include errno.h.  Reported by "Tom
46794         G. Christensen" <tgc@jupiterrise.com>.
46795
46796         * lib/flock.c: Need to include string.h.  Reported by "Tom
46797         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
46798         <ebb9@byu.net>.
46799
46800 2008-12-18  Bruno Haible  <bruno@clisp.org>
46801
46802         * m4/locale-ja.m4: New file, from GNU gettext.
46803
46804 2008-12-17  Bruno Haible  <bruno@clisp.org>
46805
46806         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
46807         Suggested by Eric Blake.
46808
46809 2008-12-17  Bruno Haible  <bruno@clisp.org>
46810
46811         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
46812
46813 2008-12-17  Bruno Haible  <bruno@clisp.org>
46814
46815         * lib/mbsinit.c: Include verify.h. Verify an assumption.
46816         * modules/mbsinit (Depends-on): Add verify.
46817         Suggested by Paul Eggert.
46818
46819 2008-12-17  Bruno Haible  <bruno@clisp.org>
46820
46821         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
46822         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
46823         gl_FUNC_MBRTOWC.
46824         * m4/mbiter.m4 (gl_MBITER): LIkewise.
46825         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
46826         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
46827         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
46828         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
46829         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
46830         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
46831         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
46832         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
46833         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
46834         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
46835         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
46836         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
46837         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
46838         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
46839         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
46840         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
46841         * modules/trim (configure.ac): Likewise.
46842
46843 2008-12-17  Bruno Haible  <bruno@clisp.org>
46844
46845         * modules/btowc-tests: New file.
46846         * tests/test-btowc1.sh: New file.
46847         * tests/test-btowc2.sh: New file.
46848         * tests/test-btowc.c: New file.
46849
46850         New module 'btowc'.
46851         * lib/wchar.in.h (btowc): New declaration.
46852         * lib/btowc.c: New file.
46853         * m4/btowc.m4: New file.
46854         * modules/btowc: New file.
46855         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
46856         HAVE_BTOWC.
46857         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
46858         * doc/posix-functions/btowc.texi: Document the new module.
46859
46860 2008-12-17  Bruno Haible  <bruno@clisp.org>
46861
46862         New module 'mbsinit'.
46863         * lib/wchar.in.h (mbsinit): New declaration.
46864         * lib/mbsinit.c: New file.
46865         * m4/mbsinit.m4: New file.
46866         * modules/mbsinit: New file.
46867         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
46868         HAVE_MBSINIT.
46869         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
46870         HAVE_MBSINIT.
46871         * doc/posix-functions/mbsinit.texi: Document the new module.
46872
46873 2008-12-16  Bruno Haible  <bruno@clisp.org>
46874
46875         * lib/unistd.in.h: Add comment.
46876         * tests/test-environ.c: Don't include <stdlib.h>.
46877
46878 2008-12-16  Bruno Haible  <bruno@clisp.org>
46879
46880         * lib/parse-duration.h (parse_duration): Document return value
46881         convention.
46882         * lib/parse-duration.c: Include specification header first. Add
46883         comments.
46884         (_): Remove macro.
46885         (parse_year_month_day, parse_hour_minute_second): Move side effects
46886         outside of strchr call.
46887         (parse_non_iso8601): Move side effects outside of isspace call.
46888         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
46889         call.
46890
46891 2008-12-16  Bruno Haible  <bruno@clisp.org>
46892
46893         * tests/test-parse-duration.sh: Produce no output when the test
46894         succeeds.
46895
46896 2008-12-16  Bruno Haible  <bruno@clisp.org>
46897
46898         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
46899         expressions.
46900
46901 2008-12-15  Bruno Haible  <bruno@clisp.org>
46902
46903         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
46904         * doc/glibc-functions/flistxattr.texi: Likewise.
46905         * doc/glibc-functions/fopencookie.texi: Likewise.
46906         * doc/glibc-functions/fremovexattr.texi: Likewise.
46907         * doc/glibc-functions/fsetxattr.texi: Likewise.
46908         * doc/glibc-functions/getxattr.texi: Likewise.
46909         * doc/glibc-functions/lgetxattr.texi: Likewise.
46910         * doc/glibc-functions/listxattr.texi: Likewise.
46911         * doc/glibc-functions/llistxattr.texi: Likewise.
46912         * doc/glibc-functions/lremovexattr.texi: Likewise.
46913         * doc/glibc-functions/lsetxattr.texi: Likewise.
46914         * doc/glibc-functions/removexattr.texi: Likewise.
46915         * doc/glibc-functions/setxattr.texi: Likewise.
46916         * doc/posix-functions/open_memstream.texi: Likewise.
46917
46918 2008-12-15  Eric Blake  <ebb9@byu.net>
46919
46920         Update doc for cygwin 1.7.
46921         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
46922         functions.
46923         * doc/posix-functions/fchmodat.texi: Likewise.
46924         * doc/posix-functions/fchownat.texi: Likewise.
46925         * doc/posix-functions/fdopendir.texi: Likewise.
46926         * doc/posix-functions/fmemopen.texi: Likewise.
46927         * doc/posix-functions/freeaddrinfo.texi: Likewise.
46928         * doc/posix-functions/fstatat.texi: Likewise.
46929         * doc/posix-functions/futimens.texi: Likewise.
46930         * doc/posix-functions/gai_strerror.texi: Likewise.
46931         * doc/posix-functions/getaddrinfo.texi: Likewise.
46932         * doc/posix-functions/getnameinfo.texi: Likewise.
46933         * doc/posix-functions/if_freenameindex.texi: Likewise.
46934         * doc/posix-functions/if_indextoname.texi: Likewise.
46935         * doc/posix-functions/if_nameindex.texi: Likewise.
46936         * doc/posix-functions/if_nametoindex.texi: Likewise.
46937         * doc/posix-functions/insque.texi: Likewise.
46938         * doc/posix-functions/linkat.texi: Likewise.
46939         * doc/posix-functions/llrint.texi: Likewise.
46940         * doc/posix-functions/llrintf.texi: Likewise.
46941         * doc/posix-functions/llrintl.texi: Likewise.
46942         * doc/posix-functions/lockf.texi: Likewise.
46943         * doc/posix-functions/lrintl.texi: Likewise.
46944         * doc/posix-functions/mkdirat.texi: Likewise.
46945         * doc/posix-functions/mkfifoat.texi: Likewise.
46946         * doc/posix-functions/mknodat.texi: Likewise.
46947         * doc/posix-functions/mq_close.texi: Likewise.
46948         * doc/posix-functions/mq_getattr.texi: Likewise.
46949         * doc/posix-functions/mq_notify.texi: Likewise.
46950         * doc/posix-functions/mq_open.texi: Likewise.
46951         * doc/posix-functions/mq_receive.texi: Likewise.
46952         * doc/posix-functions/mq_send.texi: Likewise.
46953         * doc/posix-functions/mq_setattr.texi: Likewise.
46954         * doc/posix-functions/mq_timedreceive.texi: Likewise.
46955         * doc/posix-functions/mq_timedsend.texi: Likewise.
46956         * doc/posix-functions/mq_unlink.texi: Likewise.
46957         * doc/posix-functions/open_memstream.texi: Likewise.
46958         * doc/posix-functions/openat.texi: Likewise.
46959         * doc/posix-functions/posix_fadvise.texi: Likewise.
46960         * doc/posix-functions/posix_fallocate.texi: Likewise.
46961         * doc/posix-functions/posix_madvise.texi: Likewise.
46962         * doc/posix-functions/posix_memalign.texi: Likewise.
46963         * doc/posix-functions/posix_openpt.texi: Likewise.
46964         * doc/posix-functions/readlinkat.texi: Likewise.
46965         * doc/posix-functions/remque.texi: Likewise.
46966         * doc/posix-functions/renameat.texi: Likewise.
46967         * doc/posix-functions/rintl.texi: Likewise.
46968         * doc/posix-functions/sem_unlink.texi: Likewise.
46969         * doc/posix-functions/shm_open.texi: Likewise.
46970         * doc/posix-functions/shm_unlink.texi: Likewise.
46971         * doc/posix-functions/signgam.texi: Likewise.
46972         * doc/posix-functions/sigset.texi: Likewise.
46973         * doc/posix-functions/stpcpy.texi: Likewise.
46974         * doc/posix-functions/stpncpy.texi: Likewise.
46975         * doc/posix-functions/strerror.texi: Likewise.
46976         * doc/posix-functions/strtod.texi: Likewise.
46977         * doc/posix-functions/symlinkat.texi: Likewise.
46978         * doc/posix-functions/unlinkat.texi: Likewise.
46979         * doc/posix-functions/utimensat.texi: Likewise.
46980         * doc/glibc-functions/bindresvport.texi: Likewise.
46981         * doc/glibc-functions/dn_expand.texi: Likewise.
46982         * doc/glibc-functions/exp10.texi: Likewise.
46983         * doc/glibc-functions/exp10f.texi: Likewise.
46984         * doc/glibc-functions/fgetxattr.texi: Likewise.
46985         * doc/glibc-functions/flistxattr.texi: Likewise.
46986         * doc/glibc-functions/fopencookie.texi: Likewise.
46987         * doc/glibc-functions/freeifaddrs.texi: Likewise.
46988         * doc/glibc-functions/fremovexattr.texi: Likewise.
46989         * doc/glibc-functions/fsetxattr.texi: Likewise.
46990         * doc/glibc-functions/getifaddrs.texi: Likewise.
46991         * doc/glibc-functions/getxattr.texi: Likewise.
46992         * doc/glibc-functions/lgetxattr.texi: Likewise.
46993         * doc/glibc-functions/listxattr.texi: Likewise.
46994         * doc/glibc-functions/llistxattr.texi: Likewise.
46995         * doc/glibc-functions/lremovexattr.texi: Likewise.
46996         * doc/glibc-functions/lsetxattr.texi: Likewise.
46997         * doc/glibc-functions/pow10.texi: Likewise.
46998         * doc/glibc-functions/pow10f.texi: Likewise.
46999         * doc/glibc-functions/rcmd_af.texi: Likewise.
47000         * doc/glibc-functions/removexattr.texi: Likewise.
47001         * doc/glibc-functions/res_init.texi: Likewise.
47002         * doc/glibc-functions/res_mkquery.texi: Likewise.
47003         * doc/glibc-functions/res_query.texi: Likewise.
47004         * doc/glibc-functions/res_querydomain.texi: Likewise.
47005         * doc/glibc-functions/res_send.texi: Likewise.
47006         * doc/glibc-functions/rresvport_af.texi: Likewise.
47007         * doc/glibc-functions/setxattr.texi: Likewise.
47008         * doc/glibc-functions/strcasestr.texi: Likewise.
47009
47010 2008-12-15  Bruno Haible  <bruno@clisp.org>
47011
47012         Fix compilation error on OSF/1 4.0.
47013         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
47014         <sys/time.h>, simply delegate to the system header.
47015         Reported by Daniel Richard G. <oss@teragram.com>.
47016
47017 2008-12-15  Bruno Haible  <bruno@clisp.org>
47018
47019         * doc/posix-functions/openat.texi: Mention the 'openat' module.
47020         * doc/posix-functions/fchmodat.texi: Likewise.
47021         * doc/posix-functions/fchownat.texi: Likewise.
47022         * doc/posix-functions/fdopendir.texi: Likewise.
47023         * doc/posix-functions/fstatat.texi: Likewise.
47024         * doc/posix-functions/mkdirat.texi: Likewise.
47025         * doc/posix-functions/unlinkat.texi: Likewise.
47026
47027 2008-12-14  Bruno Haible  <bruno@clisp.org>
47028
47029         Update doc for POSIX:2008.
47030         * doc/posix-functions/faccessat.texi: New file.
47031         * doc/posix-functions/fchmodat.texi: New file.
47032         * doc/posix-functions/fchownat.texi: New file.
47033         * doc/posix-functions/fdopendir.texi: New file.
47034         * doc/posix-functions/fstatat.texi: New file.
47035         * doc/posix-functions/futimens.texi: New file.
47036         * doc/posix-functions/linkat.texi: New file.
47037         * doc/posix-functions/mkdirat.texi: New file.
47038         * doc/posix-functions/mkfifoat.texi: New file.
47039         * doc/posix-functions/mknodat.texi: New file.
47040         * doc/posix-functions/open_wmemstream.texi: New file.
47041         * doc/posix-functions/openat.texi: New file.
47042         * doc/posix-functions/psiginfo.texi: New file.
47043         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
47044         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
47045         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
47046         * doc/posix-functions/readlinkat.texi: New file.
47047         * doc/posix-functions/renameat.texi: New file.
47048         * doc/posix-functions/strerror_l.texi: New file.
47049         * doc/posix-functions/symlinkat.texi: New file.
47050         * doc/posix-functions/unlinkat.texi: New file.
47051         * doc/posix-functions/utimensat.texi: New file.
47052         * doc/gnulib.texi (Function Substitutes): Add these subsections.
47053
47054 2008-12-14  Bruno Haible  <bruno@clisp.org>
47055
47056         Update doc for POSIX:2008.
47057         * doc/posix-functions/alphasort.texi: Renamed from
47058         doc/glibc-functions/alphasort.texi.
47059         * doc/posix-functions/dirfd.texi: Renamed from
47060         doc/glibc-functions/dirfd.texi.
47061         * doc/posix-functions/dprintf.texi: Renamed from
47062         doc/glibc-functions/dprintf.texi.
47063         * doc/posix-functions/duplocale.texi: Renamed from
47064         doc/glibc-functions/duplocale.texi.
47065         * doc/posix-functions/fexecve.texi: Renamed from
47066         doc/glibc-functions/fexecve.texi.
47067         * doc/posix-functions/fmemopen.texi: Renamed from
47068         doc/glibc-functions/fmemopen.texi.
47069         * doc/posix-functions/freelocale.texi: Renamed from
47070         doc/glibc-functions/freelocale.texi.
47071         * doc/posix-functions/getdate_err.texi: Renamed from
47072         doc/glibc-functions/getdate_err.texi.
47073         * doc/posix-functions/isalnum_l.texi: Renamed from
47074         doc/glibc-functions/isalnum_l.texi.
47075         * doc/posix-functions/isalpha_l.texi: Renamed from
47076         doc/glibc-functions/isalpha_l.texi.
47077         * doc/posix-functions/isblank_l.texi: Renamed from
47078         doc/glibc-functions/isblank_l.texi.
47079         * doc/posix-functions/iscntrl_l.texi: Renamed from
47080         doc/glibc-functions/iscntrl_l.texi.
47081         * doc/posix-functions/isdigit_l.texi: Renamed from
47082         doc/glibc-functions/isdigit_l.texi.
47083         * doc/posix-functions/isgraph_l.texi: Renamed from
47084         doc/glibc-functions/isgraph_l.texi.
47085         * doc/posix-functions/islower_l.texi: Renamed from
47086         doc/glibc-functions/islower_l.texi.
47087         * doc/posix-functions/isprint_l.texi: Renamed from
47088         doc/glibc-functions/isprint_l.texi.
47089         * doc/posix-functions/ispunct_l.texi: Renamed from
47090         doc/glibc-functions/ispunct_l.texi.
47091         * doc/posix-functions/isspace_l.texi: Renamed from
47092         doc/glibc-functions/isspace_l.texi.
47093         * doc/posix-functions/isupper_l.texi: Renamed from
47094         doc/glibc-functions/isupper_l.texi.
47095         * doc/posix-functions/iswalnum_l.texi: Renamed from
47096         doc/glibc-functions/iswalnum_l.texi.
47097         * doc/posix-functions/iswalpha_l.texi: Renamed from
47098         doc/glibc-functions/iswalpha_l.texi.
47099         * doc/posix-functions/iswblank_l.texi: Renamed from
47100         doc/glibc-functions/iswblank_l.texi.
47101         * doc/posix-functions/iswcntrl_l.texi: Renamed from
47102         doc/glibc-functions/iswcntrl_l.texi.
47103         * doc/posix-functions/iswctype_l.texi: Renamed from
47104         doc/glibc-functions/iswctype_l.texi.
47105         * doc/posix-functions/iswdigit_l.texi: Renamed from
47106         doc/glibc-functions/iswdigit_l.texi.
47107         * doc/posix-functions/iswgraph_l.texi: Renamed from
47108         doc/glibc-functions/iswgraph_l.texi.
47109         * doc/posix-functions/iswlower_l.texi: Renamed from
47110         doc/glibc-functions/iswlower_l.texi.
47111         * doc/posix-functions/iswprint_l.texi: Renamed from
47112         doc/glibc-functions/iswprint_l.texi.
47113         * doc/posix-functions/iswpunct_l.texi: Renamed from
47114         doc/glibc-functions/iswpunct_l.texi.
47115         * doc/posix-functions/iswspace_l.texi: Renamed from
47116         doc/glibc-functions/iswspace_l.texi.
47117         * doc/posix-functions/iswupper_l.texi: Renamed from
47118         doc/glibc-functions/iswupper_l.texi.
47119         * doc/posix-functions/iswxdigit_l.texi: Renamed from
47120         doc/glibc-functions/iswxdigit_l.texi.
47121         * doc/posix-functions/isxdigit_l.texi: Renamed from
47122         doc/glibc-functions/isxdigit_l.texi.
47123         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
47124         doc/glibc-functions/mbsnrtowcs.texi.
47125         * doc/posix-functions/mkdtemp.texi: Renamed from
47126         doc/glibc-functions/mkdtemp.texi.
47127         * doc/posix-functions/newlocale.texi: Renamed from
47128         doc/glibc-functions/newlocale.texi.
47129         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
47130         doc/glibc-functions/nl_langinfo_l.texi.
47131         * doc/posix-functions/open_memstream.texi: Renamed from
47132         doc/glibc-functions/open_memstream.texi.
47133         * doc/posix-functions/opterr.texi: Renamed from
47134         doc/glibc-functions/opterr.texi.
47135         * doc/posix-functions/optind.texi: Renamed from
47136         doc/glibc-functions/optind.texi.
47137         * doc/posix-functions/optopt.texi: Renamed from
47138         doc/glibc-functions/optopt.texi.
47139         * doc/posix-functions/psignal.texi: Renamed from
47140         doc/glibc-functions/psignal.texi.
47141         * doc/posix-functions/scandir.texi: Renamed from
47142         doc/glibc-functions/scandir.texi.
47143         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
47144         doc/glibc-functions/sched_get_priority_min.texi.
47145         * doc/posix-functions/signgam.texi: Renamed from
47146         doc/glibc-functions/signgam.texi.
47147         * doc/posix-functions/stpcpy.texi: Renamed from
47148         doc/glibc-functions/stpcpy.texi.
47149         * doc/posix-functions/stpncpy.texi: Renamed from
47150         doc/glibc-functions/stpncpy.texi.
47151         * doc/posix-functions/strcasecmp_l.texi: Renamed from
47152         doc/glibc-functions/strcasecmp_l.texi.
47153         * doc/posix-functions/strcoll_l.texi: Renamed from
47154         doc/glibc-functions/strcoll_l.texi.
47155         * doc/posix-functions/strfmon_l.texi: Renamed from
47156         doc/glibc-functions/strfmon_l.texi.
47157         * doc/posix-functions/strftime_l.texi: Renamed from
47158         doc/glibc-functions/strftime_l.texi.
47159         * doc/posix-functions/strncasecmp_l.texi: Renamed from
47160         doc/glibc-functions/strncasecmp_l.texi.
47161         * doc/posix-functions/strndup.texi: Renamed from
47162         doc/glibc-functions/strndup.texi.
47163         * doc/posix-functions/strnlen.texi: Renamed from
47164         doc/glibc-functions/strnlen.texi.
47165         * doc/posix-functions/strsignal.texi: Renamed from
47166         doc/glibc-functions/strsignal.texi.
47167         * doc/posix-functions/strxfrm_l.texi: Renamed from
47168         doc/glibc-functions/strxfrm_l.texi.
47169         * doc/posix-functions/timer_gettime.texi: Renamed from
47170         doc/glibc-functions/timer_gettime.texi.
47171         * doc/posix-functions/tolower_l.texi: Renamed from
47172         doc/glibc-functions/tolower_l.texi.
47173         * doc/posix-functions/toupper_l.texi: Renamed from
47174         doc/glibc-functions/toupper_l.texi.
47175         * doc/posix-functions/towctrans_l.texi: Renamed from
47176         doc/glibc-functions/towctrans_l.texi.
47177         * doc/posix-functions/towlower_l.texi: Renamed from
47178         doc/glibc-functions/towlower_l.texi.
47179         * doc/posix-functions/towupper_l.texi: Renamed from
47180         doc/glibc-functions/towupper_l.texi.
47181         * doc/posix-functions/uselocale.texi: Renamed from
47182         doc/glibc-functions/uselocale.texi.
47183         * doc/posix-functions/vdprintf.texi: Renamed from
47184         doc/glibc-functions/vdprintf.texi.
47185         * doc/posix-functions/wcpcpy.texi:
47186         Renamed from doc/glibc-functions/wcpcpy.texi.
47187         * doc/posix-functions/wcpncpy.texi: Renamed from
47188         doc/glibc-functions/wcpncpy.texi.
47189         * doc/posix-functions/wcscasecmp.texi: Renamed from
47190         doc/glibc-functions/wcscasecmp.texi.
47191         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
47192         doc/glibc-functions/wcscasecmp_l.texi.
47193         * doc/posix-functions/wcscoll_l.texi: Renamed from
47194         doc/glibc-functions/wcscoll_l.texi.
47195         * doc/posix-functions/wcsdup.texi: Renamed from
47196         doc/glibc-functions/wcsdup.texi.
47197         * doc/posix-functions/wcsncasecmp.texi: Renamed from
47198         doc/glibc-functions/wcsncasecmp.texi.
47199         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
47200         doc/glibc-functions/wcsncasecmp_l.texi.
47201         * doc/posix-functions/wcsnlen.texi: Renamed from
47202         doc/glibc-functions/wcsnlen.texi.
47203         * doc/posix-functions/wcsnrtombs.texi: Renamed from
47204         doc/glibc-functions/wcsnrtombs.texi.
47205         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
47206         doc/glibc-functions/wcsxfrm_l.texi.
47207         * doc/posix-functions/wctrans_l.texi: Renamed from
47208         doc/glibc-functions/wctrans_l.texi.
47209         * doc/posix-functions/wctype_l.texi: Renamed from
47210         doc/glibc-functions/wctype_l.texi.
47211         * doc/gnulib.texi (Function Substitutes): Add these subsections.
47212         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
47213         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
47214         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
47215         these subsections.
47216         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
47217         Remove sections.
47218
47219 2008-12-14  Bruno Haible  <bruno@clisp.org>
47220
47221         Update doc for POSIX:2008.
47222         * doc/posix-functions/*.texi: Update URL of POSIX specification.
47223
47224 2008-12-14  Bruno Haible  <bruno@clisp.org>
47225
47226         Update doc for POSIX:2008.
47227         * doc/pastposix-functions/bcmp.texi: Renamed from
47228         doc/posix-functions/bcmp.texi.
47229         * doc/pastposix-functions/bcopy.texi: Renamed from
47230         doc/posix-functions/bcopy.texi.
47231         * doc/pastposix-functions/bsd_signal.texi: Renamed from
47232         doc/posix-functions/bsd_signal.texi.
47233         * doc/pastposix-functions/bzero.texi: Renamed from
47234         doc/posix-functions/bzero.texi.
47235         * doc/pastposix-functions/ecvt.texi: Renamed from
47236         doc/posix-functions/ecvt.texi.
47237         * doc/pastposix-functions/fcvt.texi: Renamed from
47238         doc/posix-functions/fcvt.texi.
47239         * doc/pastposix-functions/ftime.texi: Renamed from
47240         doc/posix-functions/ftime.texi.
47241         * doc/pastposix-functions/gcvt.texi: Renamed from
47242         doc/posix-functions/gcvt.texi.
47243         * doc/pastposix-functions/getcontext.texi: Renamed from
47244         doc/posix-functions/getcontext.texi.
47245         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
47246         doc/posix-functions/gethostbyaddr.texi.
47247         * doc/pastposix-functions/gethostbyname.texi: Renamed from
47248         doc/posix-functions/gethostbyname.texi.
47249         * doc/pastposix-functions/getwd.texi: Renamed from
47250         doc/posix-functions/getwd.texi.
47251         * doc/pastposix-functions/h_errno.texi: Renamed from
47252         doc/posix-functions/h_errno.texi.
47253         * doc/pastposix-functions/index.texi: Renamed from
47254         doc/posix-functions/index.texi.
47255         * doc/pastposix-functions/makecontext.texi: Renamed from
47256         doc/posix-functions/makecontext.texi.
47257         * doc/pastposix-functions/mktemp.texi: Renamed from
47258         doc/posix-functions/mktemp.texi.
47259         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
47260         doc/posix-functions/pthread_attr_getstackaddr.texi.
47261         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
47262         doc/posix-functions/pthread_attr_setstackaddr.texi.
47263         * doc/pastposix-functions/rindex.texi: Renamed from
47264         doc/posix-functions/rindex.texi.
47265         * doc/pastposix-functions/scalb.texi: Renamed from
47266         doc/posix-functions/scalb.texi.
47267         * doc/pastposix-functions/setcontext.texi: Renamed from
47268         doc/posix-functions/setcontext.texi.
47269         * doc/pastposix-functions/swapcontext.texi: Renamed from
47270         doc/posix-functions/swapcontext.texi.
47271         * doc/pastposix-functions/ualarm.texi: Renamed from
47272         doc/posix-functions/ualarm.texi.
47273         * doc/pastposix-functions/usleep.texi: Renamed from
47274         doc/posix-functions/usleep.texi.
47275         * doc/pastposix-functions/vfork.texi: Renamed from
47276         doc/posix-functions/vfork.texi.
47277         * doc/pastposix-functions/wcswcs.texi: Renamed from
47278         doc/posix-functions/wcswcs.texi.
47279         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
47280         (Function Substitutes): Update.
47281
47282 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47283
47284         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
47285         m4/strerror.m4.
47286
47287 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47288             Bruno Haible  <bruno@clisp.org>
47289
47290         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
47291
47292 2008-12-13  Bruno Haible  <bruno@clisp.org>
47293
47294         * modules/strtoull (Depends-on): Remove unistd.
47295
47296 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47297
47298         * modules/strtoull (Depends-on): Add stdlib.
47299
47300 2008-12-11  Simon Josefsson  <simon@josefsson.org>
47301
47302         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
47303
47304 2008-12-10  Jim Meyering  <meyering@redhat.com>
47305
47306         gl_ASSERT: don't say assertions are disabled when they're not
47307         * m4/assert.m4 (gl_ASSERT): Do not make configure report
47308         "checking whether to enable assertions... no", when they are in
47309         fact enabled.  This is solely a bug in the output of configure.
47310         In spite of saying "no", NDEBUG was not defined in that case.
47311         Also, as noted by Eric Blake, leave assertions enabled upon
47312         --enable-assert=INVALID.
47313
47314 2008-12-10  Bruno Haible  <bruno@clisp.org>
47315
47316         Change MODULES.html to refer to POSIX:2008 where possible.
47317         * MODULES.html.sh (POSIX2008_URL): New variable.
47318         (posix_headers): Remove sys/timeb, ucontext.
47319         (posix2001_headers): New variable.
47320         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
47321         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
47322         index, makecontext, mktemp, pthread_attr_getstackaddr,
47323         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
47324         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
47325         (posix2001_functions): New variable.
47326         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
47327         otherwise.
47328
47329 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47330
47331         add missing include to parse-duration.c
47332         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
47333         * modules/parse-duration (Depends-on): Add xalloc.
47334
47335         fix sed script reading maint.mk
47336         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
47337         (syntax-check-rules): Use it.
47338
47339 2008-12-09  Bruno Haible  <bruno@clisp.org>
47340
47341         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
47342         MacOS X 10.4/PowerPC.
47343         Reported by Simon Josefsson.
47344
47345 2008-12-08  Jim Meyering  <meyering@redhat.com>
47346
47347         work around mingw's lack of some S_IF definitions
47348         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
47349         Reported by Simon Josefsson.
47350
47351 2008-12-08  Bruno Haible  <bruno@clisp.org>
47352
47353         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
47354         applied to variables. Needed on MacOS X 10.4/PowerPC.
47355         Reported by Simon Josefsson.
47356
47357 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
47358         and Eric Blake  <ebb9@byu.net>
47359
47360         assert: honor --enable-assert
47361         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
47362         order to honor --enable-assert, rather than treating it as a
47363         synonym for --disable-assert.
47364
47365 2008-12-08  Jim Meyering  <meyering@redhat.com>
47366
47367         * lib/posixtm.c: Remove now-useless declaration of mktime.
47368
47369         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
47370
47371 2008-12-07  Bruno Haible  <bruno@clisp.org>
47372
47373         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
47374         test_once): Mark functions as static.
47375         * tests/test-tls.c (test_tls): Likewise.
47376
47377 2008-12-07  Bruno Haible  <bruno@clisp.org>
47378
47379         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
47380         iconv_register_autodetect.
47381
47382 2008-12-07  Jim Meyering  <meyering@redhat.com>
47383
47384         posixtm.c: avoid a warning
47385         * lib/posixtm.c (posixtime): Don't initialize tm0.
47386         It's no longer needed to placate gcc4's -Wuninitialized,
47387         and the attempt to placate would elicit a new warning.
47388
47389         unicodeio.c: mark unused parameters
47390         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
47391         (fallback_failure_callback): Likewise.
47392
47393 2008-12-07  Bruno Haible  <bruno@clisp.org>
47394
47395         * gnulib-tool (func_create_testdir): When building the tests
47396         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
47397         Reported by Simon Josefsson.
47398
47399 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47400
47401         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
47402
47403 2008-12-06  Bruno Haible  <bruno@clisp.org>
47404
47405         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
47406         Suggested by Eric Blake.
47407
47408 2008-12-06  Bruno Haible  <bruno@clisp.org>
47409
47410         Fix a c-stack test failure on MacOS X.
47411         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
47412         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
47413         handler for SIGBUS as well.
47414         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
47415         install a signal handler for SIGBUS as well.
47416         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
47417
47418 2008-12-06  Bruno Haible  <bruno@clisp.org>
47419
47420         Advocacy documentation.
47421         * doc/gnulib-intro.texi (Benefits): New section.
47422         * doc/gnulib.texi: Update.
47423
47424 2008-12-06  Bruno Haible  <bruno@clisp.org>
47425
47426         Document the 'manywarnings' module.
47427         * doc/manywarnings.texi: New file.
47428         * doc/gnulib.texi: Include it.
47429
47430 2008-12-05  Eric Blake  <ebb9@byu.net>
47431
47432         tests: silence some gcc warnings
47433         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
47434         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
47435         type mismatches.
47436
47437 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47438             Bruno Haible  <bruno@clisp.org>
47439
47440         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
47441
47442 2008-11-29  Jim Meyering  <meyering@redhat.com>
47443
47444         unicodeio.c: mark unused parameters
47445         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
47446         (fallback_failure_callback): Likewise.
47447
47448         fts: fix a thinko
47449         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
47450         (set_stat_type): Return S_IF*-valued "type" directly.
47451         Prompted by James Youngman's spotting a related bug.
47452         Confirmed by further testing through find.
47453
47454         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
47455         * lib/fts.c (D_TYPE): Define.
47456         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
47457         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
47458         (s_ifmt_shift_bits): New function.
47459         (set_stat_type): New function.
47460         (fts_build): When not calling fts_stat, call set_stat_type
47461         to propagate dirent.d_type info to fts_read caller.
47462         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
47463         fts_statp->st_mode type information may be valid.
47464
47465 2008-11-28  Simon Josefsson  <simon@josefsson.org>
47466
47467         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
47468         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
47469         <sds@gnu.org>.
47470
47471 2008-11-20  Bruno Haible  <bruno@clisp.org>
47472
47473         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
47474         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
47475         INCLUDE_NEXT.
47476         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
47477         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
47478         * modules/math (Makefile.am): Substitute
47479         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
47480         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
47481
47482 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
47483             Bruno Haible  <bruno@clisp.org>
47484
47485         * lib/stdint.in.h: Define all type macros so that their expansion is
47486         a single typedef'ed token. Fixes a compilation failure in Boost which
47487         does "using ::int8_t;".
47488
47489 2008-11-18  Simon Josefsson  <simon@josefsson.org>
47490
47491         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
47492         gl_MANYWARN_ALL_GCC.
47493         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
47494         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
47495         * modules/manywarnings: New file.
47496         * MODULES.html.sh: Mention manywarnings module.
47497
47498 2008-11-18  Bruno Haible  <bruno@clisp.org>
47499
47500         * doc/gnulib-tool.texi (Unit tests): New section.
47501
47502 2008-11-18  Simon Josefsson  <simon@josefsson.org>
47503
47504         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
47505         paths like 'lib/po/foo.po'.
47506
47507 2008-11-17  Simon Josefsson  <simon@josefsson.org>
47508
47509         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
47510         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
47511
47512 2008-11-17  Simon Josefsson  <simon@josefsson.org>
47513
47514         * m4/warnings.m4: Use CPPFLAGS to really check whether the
47515         parameter works.
47516
47517 2008-11-17  Simon Josefsson  <simon@josefsson.org>
47518
47519         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
47520
47521 2008-11-17  Bruce Korb  <bkorb@gnu.org>
47522
47523         * modules/parse-duration-tests: New file.
47524         * tests/test-parse-duration.sh: New file.
47525         * tests/test-parse-duration.c: New file.
47526
47527         New module 'parse-duration'.
47528         * lib/parse-duration.h: New file.
47529         * lib/parse-duration.c: New file.
47530         * modules/parse-duration: New file.
47531
47532 2008-11-17  Bruno Haible  <bruno@clisp.org>
47533
47534         * tests/test-select-out.sh: Comment out the first pipe test.
47535         Reported by Simon Josefsson.
47536
47537 2008-11-17  Bruno Haible  <bruno@clisp.org>
47538
47539         * modules/getaddrinfo (Depends-on): Add servent, hostent.
47540         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
47541         gl_HOSTENT.
47542
47543 2008-11-17  Bruno Haible  <bruno@clisp.org>
47544
47545         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
47546         -lnetwork and -lnet. Needed for Haiku and BeOS.
47547
47548 2008-11-16  Bruno Haible  <bruno@clisp.org>
47549
47550         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
47551
47552 2008-11-16  Bruno Haible  <bruno@clisp.org>
47553
47554         Avoid test failure on Haiku.
47555         * tests/test-fsync.c: Include <errno.h>.
47556         (main): Don't require that fsync (0) fails.
47557
47558 2008-11-15  Bruno Haible  <bruno@clisp.org>
47559
47560         New module 'hostent'.
47561         * modules/hostent: New file.
47562         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
47563
47564 2008-11-15  Bruno Haible  <bruno@clisp.org>
47565
47566         New module 'servent'.
47567         * modules/servent: New file.
47568         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
47569
47570 2008-11-15  Bruno Haible  <bruno@clisp.org>
47571
47572         Avoid generating same test program with two different rules.
47573         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
47574         test-frexp to test-frexp-nolibm.
47575         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
47576         test-frexpl to test-frexpl-nolibm.
47577
47578 2008-11-15  Bruno Haible  <bruno@clisp.org>
47579
47580         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
47581         $(FREXPL_LIBM).
47582
47583 2008-11-15  Bruno Haible  <bruno@clisp.org>
47584
47585         * lib/netdb.in.h: Activate the definitions also when the system's
47586         <netdb.h> has 'struct addrinfo'.
47587         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
47588         EAI_OVERFLOW or AI_NUMERICSERV.
47589         * doc/posix-headers/netdb.texi: Document the problem.
47590
47591 2008-11-15  Bruno Haible  <bruno@clisp.org>
47592
47593         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
47594
47595         Make the 'sched' module work on platforms where <sched.h> exists but
47596         is incomplete (such as Haiku).
47597         * lib/sched.in.h; Include the system's <sched.h> if it exists.
47598         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
47599         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
47600         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
47601         HAVE_STRUCT_SCHED_PARAM.
47602         * modules/sched (Depends-on): Add include_next.
47603         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
47604         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
47605         * doc/posix-headers/sched.texi: Document the issue.
47606
47607 2008-11-13  Jim Meyering  <meyering@redhat.com>
47608
47609         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
47610         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
47611         test would fail due to the difference in the Report bugs to ...
47612         line.  The expected address is empty, "<>", while the actual
47613         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
47614
47615 2008-11-12  Bruno Haible  <bruno@clisp.org>
47616
47617         lstat: don't compile lstat.c on systems lacking lstat
47618         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
47619         which don't have lstat; this is handled by lib/sys_stat.in.h already.
47620         Reported by Daniel P. Berrange via Jim Meyering.
47621
47622 2008-11-12  Jim Meyering  <meyering@redhat.com>
47623
47624         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
47625
47626 2008-11-12  Simon Josefsson  <simon@josefsson.org>
47627
47628         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
47629         instead.
47630
47631 2008-11-12  Bruno Haible  <bruno@clisp.org>
47632
47633         * lib/unicodeio.c: Include unistr.h.
47634         (utf8_wctomb): Remove function.
47635         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
47636
47637 2008-11-12  Simon Josefsson  <simon@josefsson.org>
47638
47639         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
47640         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
47641         <bruno@clisp.org>.
47642         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
47643
47644 2008-11-12  Simon Josefsson  <simon@josefsson.org>
47645
47646         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
47647         * doc/gnulib.texi: Add section for warnings.
47648
47649 2008-11-11  Bruno Haible  <bruno@clisp.org>
47650
47651         * lib/sockets.h: Add a comment.
47652
47653 2008-11-11  Karl Berry  <karl@gnu.org>
47654
47655         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
47656
47657 2008-11-11  Eric Blake  <ebb9@byu.net>
47658
47659         fdl.texi: avoid git symlinks
47660         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
47661
47662 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
47663
47664         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
47665
47666 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
47667
47668         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
47669         (gl_WARN_ADD): Substitute $2 if literal.
47670
47671 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
47672
47673         * m4/warning.m4: Remove.
47674
47675 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
47676
47677         * m4/warnings.m4: Almost complete rewrite. :-)
47678
47679 2008-11-10  Simon Josefsson  <simon@josefsson.org>
47680
47681         * modules/warnings: New module.
47682         * m4/warnings.m4: New file.
47683         * MODULES.html.sh: Mention warnings module.
47684         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
47685         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
47686
47687 2008-11-10  Eric Blake  <ebb9@byu.net>
47688
47689         fdl.texi: make a symlink to the latest version
47690         * doc/standards.texi: Revert today's earlier change.
47691         * doc/fdl-1.2.texi: Rename from old fdl.texi...
47692         * doc/fdl.texi: ...and replace this with a symlink to the newer
47693         fdl-1.3.texi.
47694
47695 2008-11-10  Bruno Haible  <bruno@clisp.org>
47696
47697         * tests/test-select-fd.c (main): Accept the result file name as fourth
47698         argument.
47699         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
47700         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
47701
47702 2008-11-10  Bruno Haible  <bruno@clisp.org>
47703
47704         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
47705         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
47706         as autoconf-substituted macros.
47707         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
47708         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
47709         gl_NETDB_H_DEFAULTS. Set these variables.
47710         * modules/netdb (Makefile.am): Substitute these variables.
47711
47712 2008-11-10  Eric Blake  <ebb9@byu.net>
47713
47714         standards.texi: include correct file for FDL 1.3
47715         * doc/standards.texi (GNU Free Documentation License): Change
47716         include file to pull in FDL 1.3, not 1.2.
47717
47718         fdl.texi: revert accidental change to license
47719         * doc/fdl.texi: This is FDL 1.2, not 1.3.
47720
47721 2008-11-10  Bruno Haible  <bruno@clisp.org>
47722
47723         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
47724         cross-compiling guesses also when the native compile gives no result.
47725
47726 2008-11-10  Bruno Haible  <bruno@clisp.org>
47727
47728         * lib/spawni.c (__spawni): Force variable into the stack.
47729
47730 2008-11-10  Bruno Haible  <bruno@clisp.org>
47731
47732         Add support for Haiku.
47733         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
47734         glibc and BeOS, but also on Haiku.
47735         * lib/fpurge.c (fpurge): Likewise.
47736         * lib/freadable.c (freadable): Likewise.
47737         * lib/freadahead.c (freadahead): Likewise.
47738         * lib/freading.c (freading): Likewise.
47739         * lib/freadptr.c (freadptr): Likewise.
47740         * lib/freadseek.c (freadptrinc): Likewise.
47741         * lib/fseeko.c (rpl_fseeko): Likewise.
47742         * lib/fseterr.c (fseterr): Likewise.
47743         * lib/fwritable.c (fwritable): Likewise.
47744         * lib/fwriting.c (fwriting): Likewise.
47745         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
47746
47747 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
47748
47749         * lib/config.charset: Treat Haiku like BeOS.
47750
47751 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
47752
47753         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
47754         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
47755
47756 2008-11-08  Bruno Haible  <bruno@clisp.org>
47757
47758         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
47759         AC_CACHE_CHECK.
47760
47761 2008-11-08  Bruno Haible  <bruno@clisp.org>
47762
47763         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
47764
47765 2008-11-08  Bruno Haible  <bruno@clisp.org>
47766
47767         * tests/test-select-fd.c: New file.
47768         * tests/test-select-in.sh: New file.
47769         * tests/test-select-out.sh: New file.
47770         * tests/test-select-stdin.c: New file.
47771         * modules/select-tests (Files): Add the new files.
47772         (Depends-on): Add gettimeofday.
47773         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
47774         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
47775         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
47776
47777 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
47778             Bruno Haible  <bruno@clisp.org>
47779
47780         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
47781
47782 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
47783
47784         * build-aux/pmccabe2html: Added support for C++ source files.
47785
47786 2008-11-05  Ben Pfaff  <blp@gnu.org>
47787
47788         Fix lib/close.c build on Windows.
47789         * modules/close (Files): Add lib/w32sock.h.
47790
47791 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
47792
47793         Accept Bison's NEWS format.
47794         * build-aux/announce-gen (print_news_deltas): Tweak
47795         $re_prefix.
47796
47797 2008-11-04  Bruno Haible  <bruno@clisp.org>
47798
47799         * modules/random_r (Maintainer): Add glibc.
47800
47801 2008-11-04  Simon Josefsson  <simon@josefsson.org>
47802
47803         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
47804         by karl@freefriends.org (Karl Berry).
47805         * doc/alloca.texi: Likewise.
47806         * doc/c-ctype.texi: Likewise.
47807         * doc/c-strcase.texi: Likewise.
47808         * doc/c-strcaseeq.texi: Likewise.
47809         * doc/c-strcasestr.texi: Likewise.
47810         * doc/c-strstr.texi: Likewise.
47811         * doc/c-strtod.texi: Likewise.
47812         * doc/c-strtold.texi: Likewise.
47813         * doc/ctime.texi: Likewise.
47814         * doc/error.texi: Likewise.
47815         * doc/fdl.texi: Likewise.
47816         * doc/gcd.texi: Likewise.
47817         * doc/getdate.texi: Likewise.
47818         * doc/gnulib-intro.texi: Likewise.
47819         * doc/gnulib-tool.texi: Likewise.
47820         * doc/gnulib.texi: Likewise.
47821         * doc/inet_ntoa.texi: Likewise.
47822         * doc/maintain.texi: Likewise.
47823         * doc/make-stds.texi: Likewise.
47824         * doc/quote.texi: Likewise.
47825         * doc/regexprops-generic.texi: Likewise.
47826         * doc/standards.texi: Likewise.
47827         * doc/verify.texi: Likewise.
47828         * doc/visibility.texi: Likewise.
47829         * doc/gnulib.texi (GNU Free Documentation License): Include
47830         fdl-1.3.texi instead of fdl.texi.
47831
47832 2008-11-04  Simon Josefsson  <simon@josefsson.org>
47833
47834         * doc/fdl-1.3.texi: New file, from
47835         <http://www.gnu.org/licenses/fdl-1.3.texi>.
47836         * modules/fdl-1.3: Add.
47837         * MODULES.html.sh: Add fdl-1.3.
47838
47839 2008-11-03  Bruno Haible  <bruno@clisp.org>
47840
47841         Make determination of absolute name of header file work with AIX xlc.
47842         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
47843         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
47844         preprocessing.
47845         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
47846         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
47847
47848 2008-11-03  Simon Josefsson  <simon@josefsson.org>
47849
47850         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
47851         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
47852         <ludo@gnu.org>.
47853
47854 2008-11-02  Bruno Haible  <bruno@clisp.org>
47855
47856         Mark 'strpbrk' obsolete.
47857         * modules/strpbrk (Status, Notice): New sections.
47858         * modules/strtok_r (Depends-on): Add strpbrk.
47859
47860 2008-11-02  Bruno Haible  <bruno@clisp.org>
47861
47862         Mark 'strdup' obsolete.
47863         * modules/strdup (Status, Notice): New sections.
47864         * modules/findprog (Depends-on): Add strdup.
47865         * modules/getaddrinfo (Depends-on): Likewise.
47866         * modules/localename (Depends-on): Likewise.
47867         * modules/relocatable-lib (Depends-on): Likewise.
47868         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
47869         * modules/relocatable-prog (Depends-on): Likewise.
47870         * modules/trim (Depends-on): Likewise.
47871         * modules/unictype/gen-ctype (Depends-on): Likewise.
47872         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
47873
47874 2008-11-02  Bruno Haible  <bruno@clisp.org>
47875
47876         Mark 'strcspn' obsolete.
47877         * modules/strcspn (Status, Notice): New sections.
47878
47879 2008-11-02  Bruno Haible  <bruno@clisp.org>
47880
47881         Mark 'rmdir' obsolete.
47882         * modules/rmdir (Status, Notice): New sections.
47883         * modules/clean-temp (Depends-on): Add rmdir.
47884         * modules/openat (Depends-on): Likewise.
47885
47886 2008-11-02  Bruno Haible  <bruno@clisp.org>
47887
47888         Mark 'raise' obsolete.
47889         * modules/raise (Status, Notice): New sections.
47890         (Include): Specify <signal.h>.
47891         * modules/stdio (Depends-on): Add raise.
47892         * modules/write (Depends-on): Likewise.
47893
47894 2008-11-02  Bruno Haible  <bruno@clisp.org>
47895
47896         Mark 'memset' obsolete.
47897         * modules/memset (Status, Notice): New sections.
47898
47899 2008-11-02  Bruno Haible  <bruno@clisp.org>
47900
47901         Mark 'memmove' obsolete.
47902         * modules/memmove (Status, Notice): New sections.
47903         * modules/argp (Depends-on): Add memmove.
47904         * modules/argz (Depends-on): Likewise.
47905         * modules/canonicalize (Depends-on): Likewise.
47906         * modules/canonicalize-lgpl (Depends-on): Likewise.
47907         * modules/fts (Depends-on): Likewise.
47908         * modules/getcwd (Depends-on): Likewise.
47909         * modules/human (Depends-on): Likewise.
47910         * modules/regex (Depends-on): Likewise.
47911         * modules/striconveh (Depends-on): Likewise.
47912         * modules/trim (Depends-on): Likewise.
47913         * modules/unistr/u8-move (Depends-on): Likewise.
47914         * modules/unistr/u16-move (Depends-on): Likewise.
47915         * modules/unistr/u32-move (Depends-on): Likewise.
47916
47917 2008-11-02  Bruno Haible  <bruno@clisp.org>
47918
47919         Mark 'memcpy' obsolete.
47920         * modules/memcpy (Status, Notice): New sections.
47921
47922 2008-11-02  Bruno Haible  <bruno@clisp.org>
47923
47924         Mark 'memcmp' obsolete.
47925         * modules/memcmp (Status, Notice): New sections.
47926         * modules/argmatch (Depends-on): Add memchr.
47927         * modules/backupfile (Depends-on): Likewise.
47928         * modules/c-strcasestr (Depends-on): Likewise.
47929         * modules/crypto/des (Depends-on): Likewise.
47930         * modules/csharpcomp (Depends-on): Likewise.
47931         * modules/fnmatch (Depends-on): Likewise.
47932         * modules/git-merge-changelog (Depends-on): Likewise.
47933         * modules/isnand (Depends-on): Likewise.
47934         * modules/isnand-nolibm (Depends-on): Likewise.
47935         * modules/isnanf (Depends-on): Likewise.
47936         * modules/isnanf-nolibm (Depends-on): Likewise.
47937         * modules/isnanl (Depends-on): Likewise.
47938         * modules/isnanl-nolibm (Depends-on): Likewise.
47939         * modules/mbchar (Depends-on): Likewise.
47940         * modules/memcoll (Depends-on): Likewise.
47941         * modules/quotearg (Depends-on): Likewise.
47942         * modules/regex (Depends-on): Likewise.
47943         * modules/relocatable-prog (Depends-on): Likewise.
47944         * modules/same (Depends-on): Likewise.
47945         * modules/signbit (Depends-on): Likewise.
47946         * modules/strcasestr-simple (Depends-on): Likewise.
47947         * modules/unictype/gen-ctype (Depends-on): Likewise.
47948         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
47949         * modules/uniname/uniname (Depends-on): Likewise.
47950         * modules/unistr/u8-cmp (Depends-on): Likewise.
47951
47952 2008-11-02  Bruno Haible  <bruno@clisp.org>
47953
47954         Mark 'memchr' obsolete.
47955         * modules/memchr (Status, Notice): New sections.
47956         * modules/argp (Depends-on): Add memchr.
47957         * modules/base64 (Depends-on): Likewise.
47958         * modules/c-strcasestr (Depends-on): Likewise.
47959         * modules/chdir-long (Depends-on): Likewise.
47960         * modules/fnmatch (Depends-on): Likewise.
47961         * modules/getsubopt (Depends-on): Likewise.
47962         * modules/git-merge-changelog (Depends-on): Likewise.
47963         * modules/glob (Depends-on): Likewise.
47964         * modules/strcasestr-simple (Depends-on): Likewise.
47965         * modules/strnlen (Depends-on): Likewise.
47966
47967 2008-11-02  Bruno Haible  <bruno@clisp.org>
47968
47969         Mark 'atexit' obsolete.
47970         * modules/atexit (Status, Notice): New sections.
47971         * modules/chdir-long (Depends-on): Add atexit.
47972         * modules/wait-process (Depends-on): Likewise.
47973
47974 2008-11-02  Bruno Haible  <bruno@clisp.org>
47975
47976         * gnulib-tool: New option --with-obsolete.
47977         (func_usage): Document it.
47978         (func_modules_transitive_closure): Drop obsolete dependencies if
47979         incobsolete is not true.
47980         (func_import): Read and save the incobsolete variable to the cache.
47981
47982 2008-11-02  Bruno Haible  <bruno@clisp.org>
47983
47984         * modules/TEMPLATE-EXTENDED: New field 'Status'.
47985         * gnulib-tool: New option --extract-status.
47986         (func_usage): Document it.
47987         (sed_extract_prog): Recognize it.
47988         (func_get_status): New function.
47989
47990 2008-10-30  Simon Josefsson  <simon@josefsson.org>
47991
47992         * modules/sockets (License): Change from LGPL to LGPLv2+.
47993
47994 2008-10-28  Simon Josefsson  <simon@josefsson.org>
47995
47996         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
47997
47998 2008-10-28  Simon Josefsson  <simon@josefsson.org>
47999
48000         * MODULES.html.sh (Support for systems lacking POSIX:2001):
48001         Mention times and sys_times.
48002         * modules/sys_times, modules/sys_times-tests: New modules.
48003         * modules/times, modules/times-tests: Likewise
48004         * m4/sys_times_h.m4: New file.
48005         * lib/sys_times.in.h: Likewise
48006         * lib/times.c: Likewise.
48007         * tests/test-sys_times.c: Likewise.
48008         * tests/test-times.c: Likewise.
48009         * doc/posix-headers/sys_times.texi: Update.
48010         * doc/posix-functions/times.texi: Update.
48011
48012 2008-10-28  Jim Meyering  <meyering@redhat.com>
48013
48014         * modules/tempname (Depends-on): Add lstat.
48015
48016         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
48017
48018 2008-10-28  Simon Josefsson  <simon@josefsson.org>
48019
48020         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
48021         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
48022         using idiom used elsewhere in gnulib.
48023
48024 2008-10-27  Jim Meyering  <meyering@redhat.com>
48025
48026         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
48027
48028 2008-10-27  Simon Josefsson  <simon@josefsson.org>
48029
48030         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
48031         TESTS_ENVIRONMENT, for shell scripts that needs to call built
48032         programs.
48033         * tests/test-argp-2.sh: Use $EXEEXT when needed.
48034
48035 2008-10-27  Simon Josefsson  <simon@josefsson.org>
48036
48037         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
48038
48039 2008-10-27  Bruno Haible  <bruno@clisp.org>
48040
48041         * tests/test-lstat.c: Include <stdio.h>.
48042
48043 2008-10-27  Simon Josefsson  <simon@josefsson.org>
48044
48045         * modules/lstat-tests: New module.
48046         * tests/test-lstat.c: New file.
48047
48048 2008-10-26  Jim Meyering  <meyering@redhat.com>
48049
48050         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
48051
48052 2008-10-26  Simon Josefsson  <simon@josefsson.org>
48053             Bruno Haible  <bruno@clisp.org>
48054
48055         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
48056         * modules/configmake (Include): Add a note that the include must come
48057         after all system headers.
48058         * lib/javaversion.c: Include configmake.h after all other includes.
48059
48060 2008-10-26  Bruno Haible  <bruno@clisp.org>
48061
48062         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
48063         HAVE_STRUCT_RANDOM_DATA to 1.
48064         (gl_STDLIB_H): Simplify.
48065
48066 2008-10-26  Simon Josefsson  <simon@josefsson.org>
48067
48068         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
48069         substitute HAVE_STRUCT_RANDOM_DATA.
48070         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
48071         random_data.
48072         * modules/stdlib (Makefile.am): Substitute
48073         HAVE_STRUCT_RANDOM_DATA.
48074
48075 2008-10-26  Simon Josefsson  <simon@josefsson.org>
48076
48077         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
48078         * doc/gnulib-intro.texi (Copyright): Likewise.
48079
48080 2008-10-26  Simon Josefsson  <simon@josefsson.org>
48081
48082         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
48083         findings.
48084
48085 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
48086             Bruno Haible  <bruno@clisp.org>
48087
48088         * lib/unistd.in.h: Include <winsock2.h>.
48089         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
48090         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
48091         Provide dummy declarations.
48092         (gethostname): Override.
48093         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
48094         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
48095         gl_PREREQ_SYS_H_WINSOCK2.
48096         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
48097         * doc/posix-functions/gethostname.texi: More details.
48098
48099 2008-10-25  Bruno Haible  <bruno@clisp.org>
48100
48101         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
48102         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
48103         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
48104
48105         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
48106         here ...
48107         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
48108         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
48109         gl_UNISTD_H_DEFAULTS.
48110
48111 2008-10-25  Eric Blake  <ebb9@byu.net>
48112
48113         signbit: avoid spurious compiler failure
48114         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
48115         declarations inside function.
48116
48117 2008-10-24  Simon Josefsson  <simon@josefsson.org>
48118             Bruno Haible  <bruno@clisp.org>
48119
48120         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
48121         * modules/random_r (Depends-on): Add stdint.
48122
48123 2008-10-24  Bruno Haible  <bruno@clisp.org>
48124
48125         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
48126         Eggert.
48127         * modules/strerror (License): Likewise.
48128
48129 2008-10-24  Jim Meyering  <meyering@redhat.com>
48130
48131         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
48132         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
48133
48134 2008-10-24  Eric Blake  <ebb9@byu.net>
48135
48136         getgroups: fix compilation when getgroups is available
48137         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
48138         but with <config.h> override of getgroups disabled.
48139
48140 2008-10-24  Simon Josefsson  <simon@josefsson.org>
48141
48142         * doc/gnulib.texi (Header files): Add note about C++ problems.
48143         Explained by Bruno Haible <bruno@clisp.org>.
48144
48145 2008-10-23  Bruno Haible  <bruno@clisp.org>
48146
48147         Define a dummy SA_NODEFER macro on Interix.
48148         * lib/signal.in.h (SA_NODEFER): Define fallback.
48149         Reported by Aleksey Cheusov <cheusov@tut.by> via
48150         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
48151
48152 2008-10-23  Bruno Haible  <bruno@clisp.org>
48153
48154         * modules/freadahead (License): Change to LGPLv2+.
48155         Suggested by Simon Josefsson.
48156
48157 2008-10-23  Jim Meyering  <meyering@redhat.com>
48158
48159         random_r: new module
48160         * modules/random_r: New file.
48161         * m4/random_r.m4: New file.
48162         * lib/random_r.c: New file, from glibc.
48163         * modules/random_r-tests: New file.
48164         * tests/test-random_r.c: New file.
48165         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
48166          Declare.
48167         (RAND_MAX): Define.
48168         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
48169         * modules/stdlib: Substitute them, too.
48170         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
48171         * doc/glibc-functions/initstate_r.texi: Mention the new module.
48172         * doc/glibc-functions/random_r.texi: Likewise.
48173         * doc/glibc-functions/setstate_r.texi: Likewise.
48174         * doc/glibc-functions/srandom_r.texi: Likewise.
48175         * config/srclist.txt: Mention it.
48176
48177 2008-10-23  David Lutterkort  <lutter@redhat.com>
48178
48179         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
48180         link requirement
48181
48182 2008-10-23  Jim Meyering  <meyering@redhat.com>
48183
48184         selinux-h: mark parameters of stub functions as intentionally unused
48185         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
48186         * lib/se-context.in.h: Likewise.
48187
48188 2008-10-22  Simon Josefsson  <simon@josefsson.org>
48189
48190         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
48191
48192 2008-10-22  Simon Josefsson  <simon@josefsson.org>
48193
48194         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
48195
48196 2008-10-22  Eric Blake  <ebb9@byu.net>
48197
48198         glthread/thread: avoid compiler warning
48199         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
48200         Add unreachable abort to silence compiler.
48201
48202 2008-10-22  Eric Blake  <ebb9@byu.net>
48203
48204         netdb: also supply struct addrinfo for cygwin 1.5.x
48205         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
48206         older cygwin.
48207         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
48208         cygwin.
48209         * doc/posix-headers/netdb.texi (netdb.h): Document this.
48210
48211 2008-10-22  Bruno Haible  <bruno@clisp.org>
48212
48213         * users.txt: Update entry about pspp.
48214
48215 2008-10-21  Bruno Haible  <bruno@clisp.org>
48216
48217         Simplification.
48218         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
48219         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
48220
48221         Simplification.
48222         * lib/ioctl.c (ioctl): Don't undefine.
48223         * lib/socket.c (socket): Don't undefine.
48224
48225         Remove unused module indicator macros.
48226         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
48227         GNULIB_$1 as a C macro.
48228
48229         * doc/posix-functions/close.texi: Undo last change.
48230         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
48231         Windows platforms.
48232
48233 2008-10-21  Bruno Haible  <bruno@clisp.org>
48234
48235         Add gethostname() declaration to <unistd.h>.
48236         * lib/unistd.in.h (gethostname): New declaration.
48237         * lib/gethostname.c: Include <unistd.h>.
48238         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
48239         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
48240         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
48241         and HAVE_GETHOSTNAME.
48242         * modules/gethostname (Depends-on): Add unistd.
48243         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
48244         (Include): Specify <unistd.h>.
48245         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
48246         HAVE_GETHOSTNAME.
48247         * tests/test-gethostname.c: Include <unistd.h> first.
48248
48249 2008-10-21  Bruno Haible  <bruno@clisp.org>
48250
48251         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
48252         * modules/select-tests (Depends-on): Likewise.
48253         Reported by Simon Josefsson.
48254
48255 2008-10-21  Simon Josefsson  <simon@josefsson.org>
48256
48257         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
48258         * lib/accept.c: New file, based on winsock.c.
48259         * lib/bind.c: New file, based on winsock.c.
48260         * lib/connect.c: New file, based on winsock.c.
48261         * lib/getpeername.c: New file, based on winsock.c.
48262         * lib/getsockname.c: New file, based on winsock.c.
48263         * lib/getsockopt.c: New file, based on winsock.c.
48264         * lib/ioctl.c: New file, based on winsock.c.
48265         * lib/listen.c: New file, based on winsock.c.
48266         * lib/recv.c: New file, based on winsock.c.
48267         * lib/recvfrom.c: New file, based on winsock.c.
48268         * lib/send.c: New file, based on winsock.c.
48269         * lib/sendto.c: New file, based on winsock.c.
48270         * lib/setsockopt.c: New file, based on winsock.c.
48271         * lib/shutdown.c: New file, based on winsock.c.
48272         * lib/socket.c: New file, based on winsock.c.
48273         * lib/w32sock.h: New file, based on winsock.c.
48274         * lib/winsock.c: Remove file.
48275         * modules/accept: Likewise.
48276         * modules/bind: Likewise.
48277         * modules/connect: Likewise.
48278         * modules/getpeername: Likewise.
48279         * modules/getsockname: Likewise.
48280         * modules/getsockopt: Likewise.
48281         * modules/ioctl: Likewise.
48282         * modules/listen: Likewise.
48283         * modules/recv: Likewise.
48284         * modules/recvfrom: Likewise.
48285         * modules/send: Likewise.
48286         * modules/sendto: Likewise.
48287         * modules/setsockopt: Likewise.
48288         * modules/shutdown: Likewise.
48289         * modules/socket: Use socket.c instead of winsock.c.
48290         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
48291         * doc/posix-functions/accept.texi: Doc fix.
48292         * doc/posix-functions/bind.texi: Doc fix.
48293         * doc/posix-functions/close.texi: Doc fix.
48294         * doc/posix-functions/connect.texi: Doc fix.
48295         * doc/posix-functions/getpeername.texi: Doc fix.
48296         * doc/posix-functions/getsockname.texi: Doc fix.
48297         * doc/posix-functions/getsockopt.texi: Doc fix.
48298         * doc/posix-functions/ioctl.texi: Doc fix.
48299         * doc/posix-functions/listen.texi: Doc fix.
48300         * doc/posix-functions/recv.texi: Doc fix.
48301         * doc/posix-functions/recvfrom.texi: Doc fix.
48302         * doc/posix-functions/send.texi: Doc fix.
48303         * doc/posix-functions/sendto.texi: Doc fix.
48304         * doc/posix-functions/setsockopt.texi: Doc fix.
48305         * doc/posix-functions/shutdown.texi: Doc fix.
48306         * doc/posix-functions/socket.texi: Doc fix.
48307
48308 2008-10-20  Bruno Haible  <bruno@clisp.org>
48309
48310         Take into account the role of SIGABRT_COMPAT on Windows 2008.
48311         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
48312         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
48313         as an alias for SIGABRT.
48314         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
48315         (sigaction): Map it to SIGABRT.
48316         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
48317
48318 2008-10-20  Bruno Haible  <bruno@clisp.org>
48319
48320         * lib/fts.c: Don't include lstat.h.
48321         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
48322
48323         Move the lstat() declaration to <sys/stat.h>.
48324         * lib/lstat.h: Remove file.
48325         * lib/sys_stat.in.h: Add special invocation convention.
48326         (lstat): New declaration.
48327         * lib/lstat.c (orig_lstat): New function.
48328         (rpl_lstat): Use orig_lstat instead of lstat.
48329         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
48330         AC_C_INLINE. Set REPLACE_LSTAT.
48331         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
48332         and REPLACE_LSTAT.
48333         * modules/lstat (Files): Remove lib/lstat.h.
48334         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
48335         (Include): Specify <sys/stat.h> instead of lstat.h.
48336         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
48337         REPLACE_LSTAT.
48338         * NEWS: Mention the change.
48339
48340 2008-10-20  Bruno Haible  <bruno@clisp.org>
48341
48342         * modules/posix_spawn-tests: New file.
48343         * tests/test-posix_spawn3.c: New file.
48344
48345 2008-10-20  Bruno Haible  <bruno@clisp.org>
48346
48347         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
48348         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
48349         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
48350         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
48351         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
48352
48353 2008-10-20  Bruno Haible  <bruno@clisp.org>
48354
48355         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
48356         of posix_spawn on AIX 5.3.
48357
48358 2008-10-20  Bruno Haible  <bruno@clisp.org>
48359
48360         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
48361
48362 2008-10-20  Bruno Haible  <bruno@clisp.org>
48363
48364         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
48365         of AC_LANG_PROGRAM.
48366
48367 2008-10-20  Simon Josefsson  <simon@josefsson.org>
48368
48369         * lib/netdb.in.h: Don't define GNU specific constants until they
48370         are supported or needed.  Reported by Bruno Haible
48371         <bruno@clisp.org>.
48372
48373 2008-10-20  Simon Josefsson  <simon@josefsson.org>
48374
48375         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
48376
48377 2008-10-20  Simon Josefsson  <simon@josefsson.org>
48378
48379         * lib/getaddrinfo.h: Remove file.
48380         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
48381         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
48382         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
48383         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
48384         * modules/netdb: Substitute GNULIB_GETADDRINFO.
48385         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
48386         * tests/test-getaddrinfo.c: Likewise.
48387         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
48388         * NEWS: Mention change.
48389
48390 2008-10-19  Bruno Haible  <bruno@clisp.org>
48391
48392         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
48393
48394 2008-10-19  Bruno Haible  <bruno@clisp.org>
48395
48396         * lib/wait-process.c: Include simply <sys/wait.h>.
48397         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
48398         WIFSTOPPED): Remove fallback definitions.
48399         * modules/wait-process (Depends-on): Add sys_wait.
48400
48401         New module 'sys_wait'.
48402         * modules/sys_wait: New file.
48403         * lib/sys_wait.in.h: New file, partially copied from
48404         lib/wait-process.c.
48405         * m4/sys_wait_h.m4: New file.
48406         * doc/posix-headers/sys_wait.texi: Mention the new module.
48407
48408 2008-10-19  Bruno Haible  <bruno@clisp.org>
48409
48410         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
48411
48412 2008-10-19  Bruno Haible  <bruno@clisp.org>
48413
48414         Assume that waitpid() fills an 'int' status, not a 'union wait'.
48415         * lib/wait-process.c (WAIT_T): Remove type.
48416         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
48417         (wait_subprocess): Update.
48418
48419 2008-10-19  Bruno Haible  <bruno@clisp.org>
48420
48421         New module 'atoll'.
48422         * modules/atoll: New file.
48423         * lib/stdlib.in.h (atoll): New declaration.
48424         * lib/atoll.c: New file, from glibc with modifications.
48425         * m4/atoll.m4: New file.
48426         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
48427         HAVE_ATOLL.
48428         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
48429         * doc/posix-functions/atoll.texi: Mention the new module.
48430
48431 2008-10-19  Bruno Haible  <bruno@clisp.org>
48432
48433         Add strtoull() declaration to <stdlib.h>.
48434         * lib/stdlib.in.h (strtoull): New declaration.
48435         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
48436         Set HAVE_STRTOULL.
48437         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
48438         HAVE_STRTOULL.
48439         * modules/strtoull (Depends-on): Add stdlib.
48440         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
48441         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
48442         HAVE_STRTOULL.
48443
48444 2008-10-19  Bruno Haible  <bruno@clisp.org>
48445
48446         Add strtoll() declaration to <stdlib.h>.
48447         * lib/stdlib.in.h (strtoll): New declaration.
48448         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
48449         Set HAVE_STRTOLL.
48450         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
48451         HAVE_STRTOLL.
48452         * modules/strtoll (Depends-on): Add stdlib.
48453         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
48454         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
48455
48456 2008-10-19  Bruno Haible  <bruno@clisp.org>
48457
48458         * modules/bcopy (Depends-on): Add strings.
48459         (Include): Specify <strings.h>.
48460
48461 2008-10-19  Bruno Haible  <bruno@clisp.org>
48462
48463         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
48464
48465 2008-10-19  Bruno Haible  <bruno@clisp.org>
48466
48467         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
48468         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
48469         mingw.
48470
48471 2008-10-19  Bruno Haible  <bruno@clisp.org>
48472
48473         * lib/atanl.c: Don't include isnanl.h.
48474         * lib/cosl.c: Likewise.
48475         * lib/ldexpl.c: Likewise.
48476         * lib/logl.c: Likewise.
48477         * lib/sinl.c: Likewise.
48478         * lib/sqrtl.c: Likewise.
48479         * lib/tanl.c: Likewise.
48480
48481         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
48482         * lib/isnanf.h: Remove file.
48483         * lib/isnand.h: Remove file.
48484         * lib/isnanl.h: Remove file.
48485         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
48486         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
48487         macros.
48488         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
48489         HAVE_ISNANF, don't define it as a C macro.
48490         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
48491         HAVE_ISNAND, don't define it as a C macro.
48492         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
48493         HAVE_ISNANL, don't define it as a C macro.
48494         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
48495         HAVE_ISNAN[FDL].
48496         * modules/isnanf (Files): Remove lib/isnanf.h.
48497         (Depends-on): Add math.
48498         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
48499         (Include): Specify <math.h> instead of isnanf.h.
48500         * modules/isnand (Files): Remove lib/isnand.h.
48501         (Depends-on): Add math.
48502         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
48503         (Include): Specify <math.h> instead of isnand.h.
48504         * modules/isnanl (Files): Remove lib/isnanl.h.
48505         (Depends-on): Add math.
48506         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
48507         (Include): Specify <math.h> instead of isnanl.h.
48508         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
48509         HAVE_ISNAN[FDL].
48510         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
48511         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
48512         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
48513         * NEWS: Mention the change.
48514
48515 2008-10-18  Bruno Haible  <bruno@clisp.org>
48516
48517         Add getusershell(), setusershell(), endusershell() declarations to
48518         <unistd.h>.
48519         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
48520         declarations.
48521         * lib/getusershell.c: Include unistd.h.
48522         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
48523         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
48524         HAVE_GETUSERSHELL.
48525         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
48526         and HAVE_GETUSERSHELL.
48527         * modules/getusershell (Depends-on): Add unistd, extensions.
48528         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
48529         (Include): Specify <unistd.h>.
48530         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
48531         HAVE_GETUSERSHELL.
48532
48533 2008-10-18  Bruno Haible  <bruno@clisp.org>
48534
48535         Add a getloadavg() declaration to <stdlib.h>.
48536         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
48537         getloadavg declaration.
48538         (getloadavg): New declaration.
48539         * lib/getloadavg.c: Include <stdlib.h> first.
48540         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
48541         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
48542         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
48543         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
48544         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
48545         * modules/getloadavg (Depends-on): Add stdlib, extensions.
48546         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
48547         (Include): Specify <stdlib.h>.
48548         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
48549         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
48550
48551 2008-10-18  Bruno Haible  <bruno@clisp.org>
48552
48553         * lib/dirchownmod.c: Don't include lchmod.h.
48554
48555         Move the lchmod() declaration to <sys/stat.h>.
48556         * lib/lchmod.h: Remove file.
48557         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
48558         (lchmod): New declaration, moved here from lib/lchown.h.
48559         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
48560         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
48561         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
48562         and HAVE_LCHMOD.
48563         * modules/lchmod (Files): Remove lib/lchmod.h.
48564         (Depends-on): Add sys_stat, extensions.
48565         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
48566         (Include): Specify <sys/stat.h> instead of lchmod.h.
48567         * modules/sys_stat (Depends-on): Add link-warning.
48568         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
48569         definition of GL_LINK_WARNING.
48570         * NEWS: Mention the change.
48571
48572 2008-10-18  Bruno Haible  <bruno@clisp.org>
48573
48574         * lib/fchdir.c: Don't include dirfd.h.
48575         * lib/fts.c: Likewise.
48576         * lib/getcwd.c: Likewise.
48577         * lib/glob.c: Likewise.
48578
48579         Move the dirfd() declaration to <dirent.h>.
48580         * lib/dirfd.h: Remove file.
48581         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
48582         (dirfd): New declaration.
48583         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
48584         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
48585         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
48586         HAVE_DECL_DIRFD.
48587         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
48588         HAVE_DECL_DIRFD.
48589         * modules/dirfd (Files): Remove lib/dirfd.h.
48590         (Depends-on): Add dirent, extensions.
48591         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
48592         (Include): Specify <dirent.h> instead of dirfd.h.
48593         * modules/dirent (Depends-on): Add link-warning.
48594         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
48595         definition of GL_LINK_WARNING.
48596         * NEWS: Mention the change.
48597
48598 2008-10-18  Bruno Haible  <bruno@clisp.org>
48599
48600         Move the euidaccess() declaration to <unistd.h>.
48601         * lib/euidaccess.h: Remove file.
48602         * lib/unistd.in.h (euidaccess): New declaration.
48603         * lib/euidaccess.c: Don't include euidaccess.h.
48604         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
48605         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
48606         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
48607         and HAVE_EUIDACCESS.
48608         * modules/euidaccess (Files): Remove lib/euidaccess.h.
48609         (Depends-on): Add unistd.
48610         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
48611         (Include): Specify <unistd.h> instead of euidaccess.h.
48612         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
48613         HAVE_EUIDACCESS.
48614         * NEWS: Mention the change.
48615
48616 2008-10-18  Bruno Haible  <bruno@clisp.org>
48617
48618         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
48619
48620         Move the getdomainname() declaration to <unistd.h>.
48621         * lib/getdomainname.h: Remove file.
48622         * lib/unistd.in.h (getdomainname): New declaration.
48623         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
48624         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
48625         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
48626         HAVE_GETDOMAINNAME.
48627         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
48628         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
48629         * modules/getdomainname (Files): Remove lib/getdomainname.h.
48630         (Depends-on): Add unistd, extensions.
48631         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
48632         (Includes): Specify <unistd.h> instead of getdomainname.h.
48633         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
48634         HAVE_GETDOMAINNAME.
48635         * NEWS: Mention the change.
48636
48637 2008-10-18  Bruno Haible  <bruno@clisp.org>
48638
48639         * modules/dirent: New file.
48640         * m4/dirent_h.m4: New file.
48641         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
48642         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
48643         * modules/fchdir (Files): Remove lib/dirent.in.h.
48644         (Depends-on): Add dirent.
48645         (Makefile.am): Move rules to modules/dirent.
48646         * doc/posix-headers/dirent.texi: Mention the new module.
48647
48648 2008-10-18  Bruno Haible  <bruno@clisp.org>
48649
48650         Avoid -Wunused-parameter warnings in public gnulib header files.
48651         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
48652         macro.
48653         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
48654
48655 2008-10-18  Bruno Haible  <bruno@clisp.org>
48656
48657         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
48658         * doc/glibc-functions/error.texi: Mention the module 'error'.
48659         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
48660         * doc/glibc-functions/getdomainname.texi: Mention the module
48661         'getdomainname'.
48662         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
48663         * doc/glibc-functions/getpagesize.texi: Mention the module
48664         'getpagesize'.
48665         * doc/glibc-functions/getusershell.texi: Mention the module
48666         'getusershell'.
48667         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
48668         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
48669         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
48670         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
48671         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
48672         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
48673         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
48674         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
48675         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
48676         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
48677         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
48678         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
48679         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
48680         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
48681
48682 2008-10-17  Bruno Haible  <bruno@clisp.org>
48683
48684         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
48685         HP-UX and IRIX, use -0.0L.
48686         * tests/test-ceill.c (minus_zero): Likewise.
48687         * tests/test-floorl.c (minus_zero): Likewise.
48688         * tests/test-frexpl.c (minus_zero): Likewise.
48689         * tests/test-isnan.c (minus_zerol): Likewise.
48690         * tests/test-isnanl.h (minus_zero): Likewise.
48691         * tests/test-ldexpl.c (minus_zero): Likewise.
48692         * tests/test-roundl.c (minus_zero): Likewise.
48693         * tests/test-signbit.c (minus_zerol): Likewise.
48694         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
48695         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
48696         * tests/test-truncl.c (minus_zero): Likewise.
48697         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
48698         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
48699         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
48700         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
48701
48702 2008-10-17  Bruno Haible  <bruno@clisp.org>
48703
48704         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
48705         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
48706         that it gets activated only for gcc >= 3.0.
48707         * lib/dirent.in.h: Likewise.
48708         * lib/errno.in.h: Likewise.
48709         * lib/fcntl.in.h: Likewise.
48710         * lib/float.in.h: Likewise.
48711         * lib/iconv.in.h: Likewise.
48712         * lib/inttypes.in.h: Likewise.
48713         * lib/locale.in.h: Likewise.
48714         * lib/math.in.h: Likewise.
48715         * lib/netdb.in.h: Likewise.
48716         * lib/netinet_in.in.h: Likewise.
48717         * lib/search.in.h: Likewise.
48718         * lib/signal.in.h: Likewise.
48719         * lib/spawn.in.h: Likewise.
48720         * lib/stdarg.in.h: Likewise.
48721         * lib/stdint.in.h: Likewise.
48722         * lib/stdio.in.h: Likewise.
48723         * lib/stdlib.in.h: Likewise.
48724         * lib/string.in.h: Likewise.
48725         * lib/strings.in.h: Likewise.
48726         * lib/sys_file.in.h: Likewise.
48727         * lib/sys_ioctl.in.h: Likewise.
48728         * lib/sys_select.in.h: Likewise.
48729         * lib/sys_socket.in.h: Likewise.
48730         * lib/sys_stat.in.h: Likewise.
48731         * lib/sys_time.in.h: Likewise.
48732         * lib/sysexits.in.h: Likewise.
48733         * lib/time.in.h: Likewise.
48734         * lib/unistd.in.h: Likewise.
48735         * lib/wchar.in.h: Likewise.
48736         * lib/wctype.in.h: Likewise.
48737         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
48738
48739 2008-10-17  Jim Meyering  <meyering@redhat.com>
48740
48741         ignore-value: don't depend on inline module
48742         * modules/ignore-value (Depends-on): Remove 'inline'.
48743         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
48744         Suggestion from Bruno Haible.
48745
48746 2008-10-17  Bruno Haible  <bruno@clisp.org>
48747
48748         New implementation of condition variables for Win32.
48749         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
48750         (gl_linked_waitqueue_t): New type.
48751         (gl_cond_t): Use it.
48752         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
48753         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
48754         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
48755         (glthread_cond_init_func, glthread_cond_wait_func,
48756         glthread_cond_timedwait_func, glthread_cond_signal_func,
48757         glthread_cond_broadcast_func, glthread_cond_destroy_func):
48758         Reimplemented on the basis of gl_linked_waitqueue_t.
48759         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
48760         gl_waitqueue_t.
48761         (gl_rwlock_t): Update.
48762         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
48763
48764 2008-10-17  Simon Josefsson  <simon@josefsson.org>
48765
48766         * modules/recvfrom (Depends-on): Add dependency on getpeername.
48767         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
48768
48769 2008-10-17  Jim Meyering  <meyering@redhat.com>
48770
48771         ignore-value: new module
48772         * modules/ignore-value: New file.
48773         * lib/ignore-value.h: New file.
48774         * MODULES.html.sh (Compiler warning management): New section,
48775         just for this module.  More to come.
48776
48777 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
48778
48779         open-safer.c: avoid 'signed and unsigned in conditional...' warning
48780         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
48781         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
48782
48783 2008-10-16  Jim Meyering  <meyering@redhat.com>
48784
48785         openat-die.c: avoid 'no previous prototype' warning
48786         * lib/openat-die.c: Include "openat.h".
48787         Reported by Reuben Thomas <rrt@sc3d.org>.
48788
48789 2008-10-16  Simon Josefsson  <simon@josefsson.org>
48790
48791         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
48792         * lib/netdb.in.h: Fix typo.
48793         Reported by Bruno Haible  <bruno@clisp.org>
48794
48795         * lib/netdb.in.h: Include sys/socket.h for platforms without
48796         netdb.h, to get structures like hostent on MinGW.
48797         * modules/netdb (Depends-on): Add sys_socket.
48798
48799 2008-10-15  Simon Josefsson  <simon@josefsson.org>
48800
48801         * modules/netdb, modules/netdb-tests: New file.
48802         * m4/netdb_h.m4: New file.
48803         * lib/netdb.in.h: Add, currently just an empty file pending
48804         definitions.
48805         * tests/test-netdb.c: New file.
48806         * doc/posix-headers/netdb.texi: Mention that we replace it if
48807         needed.
48808         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
48809         netdb.
48810
48811 2008-10-15  Simon Josefsson  <simon@josefsson.org>
48812
48813         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
48814         with code.
48815
48816 2008-10-13  Bruno Haible  <bruno@clisp.org>
48817
48818         * lib/glthread/cond.c (glthread_cond_wait_func,
48819         glthread_cond_timedwait_func): Add a comment.
48820
48821 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
48822
48823         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
48824         * tests/test-select.c: Likewise,
48825
48826 2008-10-13  Bruno Haible  <bruno@clisp.org>
48827
48828         * lib/glthread/cond.c (glthread_cond_wait_func,
48829         glthread_cond_timedwait_func): Fix variable name.
48830         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
48831
48832 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
48833
48834         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
48835         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
48836         struct sockaddr.sa_len.
48837         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
48838
48839 2008-10-13  Simon Josefsson  <simon@josefsson.org>
48840
48841         * build-aux/pmccabe2html: Add css and css_url parameters.
48842
48843 2008-10-12  Bruno Haible  <bruno@clisp.org>
48844
48845         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
48846         calling aclx_get.
48847         Reported by Rainer Tammer <tammer@tammer.net>.
48848
48849 2008-10-12  Bruno Haible  <bruno@clisp.org>
48850
48851         Use msvcrt aware primitives for creation/termination of Win32 threads.
48852         * lib/glthread/thread.c: Include <process.h>.
48853         (glthread_create_func): Use _beginthreadex instead of CreateThread.
48854         (wrapper_func): Update signature.
48855         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
48856
48857 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
48858             Bruno Haible  <bruno@clisp.org>
48859
48860         Provide a Win32 implementation of the 'cond' module.
48861         * lib/glthread/cond.h [USE_WIN32]: New implementation.
48862         * lib/glthread/cond.c (glthread_cond_init_func,
48863         glthread_cond_wait_func, glthread_cond_timedwait_func,
48864         glthread_cond_signal_func, glthread_cond_broadcast_func,
48865         glthread_cond_destroy_func) [USE_WIN32]: New functions.
48866         * modules/cond (Dependencies): Add gettimeofday.
48867
48868 2008-10-11  Bruno Haible  <bruno@clisp.org>
48869
48870         Make sleep work on older versions of mingw.
48871         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
48872         only whether it exists.
48873         * doc/posix-functions/sleep.texi: Mention the problem with older
48874         versions of mingw.
48875
48876 2008-10-11  Bruno Haible  <bruno@clisp.org>
48877
48878         New module 'shutdown'.
48879         * modules/shutdown: New file.
48880         * lib/sys_socket.in.h (shutdown): New declaration.
48881         * lib/winsock.c (shutdown): New function.
48882         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
48883         GNULIB_SHUTDOWN.
48884         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
48885         * doc/posix-functions/shutdown.texi: Document the new module.
48886
48887 2008-10-11  Jim Meyering  <meyering@redhat.com>
48888
48889         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
48890
48891 2008-10-11  Bruno Haible  <bruno@clisp.org>
48892
48893         New module 'fclose'.
48894         * modules/fclose: New file.
48895         * lib/stdio.in.h (fclose): New declaration.
48896         * lib/fclose.c: New file.
48897         * m4/fclose.m4: New file.
48898         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
48899         REPLACE_FCLOSE.
48900         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
48901         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
48902         REPLACE_FCLOSE.
48903         * modules/close (Depends-on): fclose.
48904         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
48905
48906 2008-10-11  Bruno Haible  <bruno@clisp.org>
48907
48908         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
48909         set errno and don't call _close.
48910
48911 2008-10-10  Bruno Haible  <bruno@clisp.org>
48912
48913         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
48914         ACL, not afterwards. Fixes test failure on Cygwin.
48915
48916 2008-10-09  Ben Pfaff  <blp@gnu.org>
48917
48918         * build-aux/announce-gen: Fix gnulib version related part of usage
48919         message.  Die with a useful error message if no tarballs are
48920         found.
48921
48922 2008-10-10  Jim Meyering  <meyering@redhat.com>
48923
48924         bootstrap: use git's --depth=N option only if it's supported
48925         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
48926         recognize the --depth option.  Reported by Pádraig Brady.
48927
48928 2008-10-09  Bruno Haible  <bruno@clisp.org>
48929
48930         New module 'ioctl'.
48931         * modules/ioctl: New file.
48932         * lib/sys_socket.in.h (ioctl): Remove declaration.
48933         * lib/winsock.c: Include <sys/ioctl.h>.
48934         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
48935         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
48936         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
48937         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
48938         * doc/posix-functions/ioctl.texi: Mention the new module.
48939
48940 2008-10-09  Bruno Haible  <bruno@clisp.org>
48941
48942         New module 'sys_ioctl'.
48943         * lib/sys_ioctl.in.h: New file.
48944         * m4/sys_ioctl_h.m4: New file.
48945         * modules/sys_ioctl: New file.
48946         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
48947
48948 2008-10-09  Bruno Haible  <bruno@clisp.org>
48949
48950         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
48951         * lib/winsock.c: Include <stdarg.h>.
48952         (rpl_ioctl): Change to second argument 'int' and then varargs.
48953
48954 2008-10-09  Bruno Haible  <bruno@clisp.org>
48955
48956         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
48957         when the sys_socket module is present and the system has <winsock2.h>.
48958
48959 2008-10-09  Bruno Haible  <bruno@clisp.org>
48960
48961         * doc/posix-functions/close.texi: Mention module 'close' instead of
48962         module 'sys_socket'.
48963
48964 2008-10-09  Bruno Haible  <bruno@clisp.org>
48965
48966         * doc/glibc-headers/sys_ioctl.texi: New file.
48967         * doc/gnulib.texi: Include it.
48968
48969 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
48970             Bruno Haible  <bruno@clisp.org>
48971
48972         Combine the two replacements of 'close'.
48973         * lib/sys_socket.in.h (close): Define to a reminder to include
48974         <unistd.h>.
48975         (_gl_close_fd_maybe_socket): New declaration.
48976         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
48977         * lib/winsock.c (close): Remove undefinition.
48978         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
48979         needed for the gnulib module 'close'.
48980         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
48981         define to an error symbol or to a warning, if suitable.
48982         * lib/close.c: Include <sys/socket.h>.
48983         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
48984         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
48985         UNISTD_H_HAVE_WINSOCK2_H.
48986         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
48987         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
48988         UNISTD_H_HAVE_WINSOCK2_H.
48989         * modules/sys_socket (Files): Add m4/unistd_h.m4.
48990         (configure.ac): Set a module indicator.
48991         (Makefile.am): Substitute GNULIB_CLOSE.
48992         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
48993         * modules/poll-tests (Depends-on): Add close.
48994         * modules/select-tests (Depends-on): Likewise.
48995
48996 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
48997             Bruno Haible  <bruno@clisp.org>
48998
48999         New module 'close'.
49000         * modules/close: New file.
49001         * lib/unistd.in.h (close): Move declaration out of the
49002         FCHDIR_REPLACEMENT scope.
49003         (_gl_unregister_fd): New declaration.
49004         * lib/close.c: New file.
49005         * lib/fchdir.c (rpl_close): Remove function.
49006         * m4/close.m4: New file.
49007         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
49008         close.
49009         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
49010         REPLACE_CLOSE.
49011         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
49012         REPLACE_CLOSE.
49013         * modules/fchdir (Depends-on): Add close.
49014
49015 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
49016             Bruno Haible  <bruno@clisp.org>
49017
49018         * lib/fcntl.in.h (open): Simplify conditionals.
49019         (_gl_register_fd): New declaration.
49020         * lib/fchdir.c (rpl_open): Remove function.
49021         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
49022         also.
49023         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
49024         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
49025         open.
49026
49027 2008-10-09  Jim Meyering  <meyering@redhat.com>
49028
49029         GNUmakefile: use the more name-space-friendly "_version"
49030         * top/GNUmakefile (_dummy): Update.
49031         (_version): Rename from "version".
49032
49033 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
49034             Bruno Haible  <bruno@clisp.org>
49035
49036         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
49037         rpl_close.
49038         (_gl_register_fd): New function, extracted from rpl_open.
49039         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
49040         (rpl_open, rpl_opendir): Use _gl_register_fd.
49041
49042 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
49043
49044         Fix organization of 'open' replacement.
49045         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
49046         (gl_FUNC_OPEN): Use it.
49047         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
49048
49049 2008-10-08  Bruno Haible  <bruno@clisp.org>
49050
49051         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
49052
49053 2008-10-08  Simon Josefsson  <simon@josefsson.org>
49054
49055         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
49056         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
49057         listen).
49058
49059 2008-10-08  Eric Blake  <ebb9@byu.net>
49060
49061         GNUmakefile: add 'make version' target
49062         * top/GNUmakefile (_curr-ver): Split version update rules...
49063         (version): ...into a target.
49064
49065 2008-10-07  Bruno Haible  <bruno@clisp.org>
49066
49067         Use a more portable replacement expression for -0.0L.
49068         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
49069         instead of -0.0L. Fix m4 quotation.
49070
49071         * tests/test-signbit.c: Include <float.h>.
49072         (minus_zero): New variable.
49073         (test_signbitl): Use minus_zero instead of -zero.
49074         * modules/signbit-tests (Depends-on): Add float.
49075
49076         * tests/test-ceill.c: Include <float.h>.
49077         (zero): Remove variable.
49078         (minus_zero): New variable.
49079         (main): Use minus_zero instead of -zero.
49080         * modules/ceill-tests (Depends-on): Add float.
49081
49082         * tests/test-floorl.c: Include <float.h>.
49083         (zero): Remove variable.
49084         (minus_zero): New variable.
49085         (main): Use minus_zero instead of -zero.
49086         * modules/floorl-tests (Depends-on): Add float.
49087
49088         * tests/test-roundl.c: Include <float.h>.
49089         (zero): Remove variable.
49090         (minus_zero): New variable.
49091         (main): Use minus_zero instead of -zero.
49092         * modules/roundl-tests (Depends-on): Add float.
49093
49094         * tests/test-truncl.c: Include <float.h>.
49095         (zero): Remove variable.
49096         (minus_zero): New variable.
49097         (main): Use minus_zero instead of -zero.
49098         * modules/truncl-tests (Depends-on): Add float.
49099
49100         * tests/test-frexpl.c (zero): Remove variable.
49101         (minus_zero): New variable.
49102         (main): Use minus_zero instead of -zero.
49103         * modules/frexpl-tests (Depends-on): Add float.
49104
49105         * tests/test-isnan.c (zerol): Remove variable.
49106         (minus_zerol): New variable.
49107         (test_long_double): Use minus_zerol instead of -zerol.
49108         * modules/isnan-tests (Depends-on): Add float.
49109
49110         * tests/test-isnanl.h (zero): Remove variable.
49111         (minus_zero): New variable.
49112         (main): Use minus_zero instead of -zero.
49113         * modules/isnanl-nolibm-tests (Depends-on): Add float.
49114         * modules/isnanl-tests (Depends-on): Add float.
49115
49116         * tests/test-ldexpl.c (zero): Remove variable.
49117         (minus_zero): New variable.
49118         (main): Use minus_zero instead of -zero.
49119         * modules/ldexpl-tests (Depends-on): Add float.
49120
49121         * tests/test-snprintf-posix.h (zerol): Remove variable.
49122         (minus_zerol): New variable.
49123         (test_function): Use minus_zerol instead of -zerol.
49124         * modules/snprintf-posix-tests (Depends-on): Add float.
49125         * modules/vsnprintf-posix-tests (Depends-on): Add float.
49126
49127         * tests/test-sprintf-posix.h (zerol): Remove variable.
49128         (minus_zerol): New variable.
49129         (test_function): Use minus_zerol instead of -zerol.
49130         * modules/sprintf-posix-tests (Depends-on): Add float.
49131         * modules/vsprintf-posix-tests (Depends-on): Add float.
49132
49133         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
49134         (minus_zerol): New variable.
49135         (test_function): Use minus_zerol instead of -zerol.
49136         * modules/vasnprintf-posix-tests (Depends-on): Add float.
49137
49138         * tests/test-vasprintf-posix.c (zerol): Remove variable.
49139         (minus_zerol): New variable.
49140         (test_function): Use minus_zerol instead of -zerol.
49141         * modules/vasprintf-posix-tests (Depends-on): Add float.
49142
49143 2008-10-07  Simon Josefsson  <simon@josefsson.org>
49144
49145         * MODULES.html.sh (Support for building documentation): Mention
49146         pmccabe2html.  Sort entries.
49147
49148         Add pmccabe2html module, from gnupdf.
49149         * build-aux/pmccabe.css: New file.
49150         * build-aux/pmccabe2html: New file.
49151         * m4/pmccabe2html.m4: New file.
49152         * modules/pmccabe2html: New file.
49153
49154 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
49155
49156         flock: new module
49157         * MODULES.html.sh: Add to list of modules.
49158         * lib/flock.c: flock implementation for Windows and Unix systems
49159         which have fcntl.
49160         * doc/glibc-functions/flock.texi: Update documentation.
49161         * lib/sys_file.in.h: <sys/file.h> header file.
49162         * m4/flock.m4: M4 macros.
49163         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
49164         * modules/flock: flock module.
49165         * modules/flock-tests: flock tests module.
49166         * modules/sys_file: sys/file.h module.
49167         * tests/test-flock.c: test suite for flock.
49168
49169 2008-10-06  Jim Meyering  <meyering@redhat.com>
49170
49171         bootstrap: check for LT_INIT more portably still ;-)
49172         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
49173         Spotted by Bruno Haible.
49174
49175 2008-10-06  Eric Blake  <ebb9@byu.net>
49176
49177         test-signbit: avoid tripping Irix cc bug on -0.0L
49178         * tests/test-signbit.c (minus_zerol): Delete, and replace with
49179         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
49180         entire testsuite consistent and avoids an Irix 6.2 bug.
49181
49182 2008-10-05  Bruno Haible  <bruno@clisp.org>
49183             Jim Meyering  <jim@meyering.net>
49184
49185         Add an option for ignoring EPIPE during close_stdout.
49186         * lib/closeout.h: Include <stdbool.h>.
49187         (close_stdout_set_ignore_EPIPE): New declaration.
49188         * lib/closeout.c: Include <stdbool.h>.
49189         (ignore_EPIPE): New variable.
49190         (close_stdout_set_ignore_EPIPE): New function.
49191         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
49192         * lib/close-stream.c (close_stream): Mention the possible EPIPE
49193         failure.
49194         * modules/closeout (Depends-on): Add stdbool.
49195
49196 2008-10-05  Bruno Haible  <bruno@clisp.org>
49197
49198         * modules/accept: New file.
49199         * modules/bind: New file.
49200         * modules/connect: New file.
49201         * modules/getpeername: New file.
49202         * modules/getsockname: New file.
49203         * modules/getsockopt: New file.
49204         * modules/listen: New file.
49205         * modules/recv: New file.
49206         * modules/recvfrom: New file.
49207         * modules/send: New file.
49208         * modules/sendto: New file.
49209         * modules/setsockopt: New file.
49210         * modules/socket: New file.
49211         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
49212         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
49213         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
49214         the particular module is requested. Add a link warning when the
49215         particular module is not requested.
49216         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
49217         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
49218         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
49219         the particular module is requested.
49220         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
49221         gl_SYS_SOCKET_H_DEFAULTS): New macros.
49222         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
49223         * modules/sys_socket (Depends-on): Add link-warning.
49224         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
49225         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
49226         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
49227         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
49228         GL_LINK_WARNING.
49229         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
49230         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
49231         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
49232         * doc/posix-functions/getpeername.texi: Mention the new module
49233         'getpeername'.
49234         * doc/posix-functions/getsockname.texi: Mention the new module
49235         'getsockname'.
49236         * doc/posix-functions/getsockopt.texi: Mention the new module
49237         'getsockopt'.
49238         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
49239         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
49240         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
49241         * doc/posix-functions/send.texi: Mention the new module 'send'.
49242         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
49243         * doc/posix-functions/setsockopt.texi: Mention the new module
49244         'setsockopt'.
49245         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
49246         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
49247         listen, connect, accept.
49248         * modules/select-tests (Depends-on): Likewise.
49249
49250 2008-10-05  Bruno Haible  <bruno@clisp.org>
49251
49252         * lib/winsock.c (strerror): Remove unused #undef.
49253         (rpl_close): Remove unused local variable.
49254
49255         * modules/sys_socket (Depends-on); Add errno.
49256
49257 2008-10-05  Bruno Haible  <bruno@clisp.org>
49258
49259         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
49260         (select): Add a link warning when the 'select' module is not used.
49261         * modules/sys_select (Depends-on): Add link-warning.
49262         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
49263         Suggested by Paolo Bonzini.
49264
49265 2008-10-05  Jim Meyering  <meyering@redhat.com>
49266
49267         bootstrap: check for LT_INIT more portably
49268         * build-aux/bootstrap: Avoid using grep -E, since it's not
49269         portable enough.  Suggestion from Bruno Haible.
49270
49271 2008-10-05  Bruno Haible  <bruno@clisp.org>
49272
49273         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
49274         as being fixed by gnulib.
49275
49276 2008-10-05  Bruno Haible  <bruno@clisp.org>
49277
49278         * modules/select-tests: New file, mostly copied from
49279         modules/sys_select-tests.
49280         * tests/test-select.c: New file, mostly copied from
49281         tests/test-sys_select.c.
49282         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
49283         * modules/sys_select-tests (Depends-on): Remove all dependencies.
49284         (Makefile.am): Remove test_sys_select_LDADD.
49285
49286         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
49287         to an undefined symbol, for an error message.
49288         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
49289         (gl_SYS_SELECT_H_DEFAULTS): New macro.
49290         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
49291         winsock-select.c here.
49292         * modules/sys_select (Files): Remove lib/winsock-select.c.
49293         (Depends-on): Remove alloca.
49294         (Makefile.am): Substitute GNULIB_SELECT.
49295         * modules/select: New file.
49296         * doc/posix-functions/select.texi: Update.
49297
49298 2008-10-05  Bruno Haible  <bruno@clisp.org>
49299
49300         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
49301         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
49302         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
49303         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
49304         getdtablesize.
49305         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
49306         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
49307
49308 2008-10-05  Bruno Haible  <bruno@clisp.org>
49309
49310         * modules/getdtablesize-tests: New file.
49311         * tests/test-getdtablesize.c: New file.
49312
49313         New module 'getdtablesize'.
49314         * lib/unistd.in.h (getdtablesize): New declaration.
49315         * lib/getdtablesize.c: New file.
49316         * m4/getdtablesize.m4: New file.
49317         * modules/getdtablesize: New file.
49318         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
49319         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
49320         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
49321         HAVE_GETDTABLESIZE.
49322         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
49323
49324 2008-10-05  Bruno Haible  <bruno@clisp.org>
49325
49326         * modules/sched (Makefile.am): Fix typo.
49327         Reported by Simon Josefsson.
49328
49329 2008-10-05  Jim Meyering  <meyering@redhat.com>
49330
49331         bootstrap: check for LT_INIT, too
49332         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
49333         are deprecated.  Suggestion from Ralf Wildenhues.
49334
49335 2008-10-05  Bruno Haible  <bruno@clisp.org>
49336
49337         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
49338         overriding them by ours.
49339         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
49340
49341 2008-10-05  Jim Meyering  <meyering@redhat.com>
49342
49343         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
49344         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
49345         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
49346
49347 2008-10-04  Bruno Haible  <bruno@clisp.org>
49348
49349         * modules/dup2 (License): Change to LGPLv2+.
49350         * modules/sleep (License): Likewise.
49351         * modules/perror (License): Likewise.
49352         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
49353         Blake.
49354         * modules/signal (License): Likewise.
49355         * modules/sigprocmask (License): Likewise.
49356         * modules/raise (License): Change to LGPLv2+, with approval by Jim
49357         Meyering.
49358
49359 2008-10-04  Bruno Haible  <bruno@clisp.org>
49360
49361         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
49362         Reported by Rainer Tammer <tammer@tammer.net>.
49363
49364 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
49365             Bruno Haible  <bruno@clisp.org>
49366
49367         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
49368         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
49369         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
49370
49371 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
49372
49373         filevercmp: new module
49374         * lib/filevercmp.h: New function filevercmp comparing version strings.
49375         * lib/filevercmp.c: Implementation of filevercmp function.
49376         * modules/filevercmp: Module metadata.
49377         * tests/test-filevercmp.c: Unit test for new module.
49378         * modules/filevercmp-tests: Unit test metadata.
49379         * MODULES.html.sh: Add filevercmp module.
49380
49381 2008-10-03  Bruno Haible  <bruno@clisp.org>
49382
49383         * lib/c-ctype.h: Add comment.
49384         Reported by Jim Meyering.
49385
49386 2008-10-02  Bruno Haible  <bruno@clisp.org>
49387
49388         * modules/posix_spawn-internal (Depends-on): Add 'open'.
49389
49390 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
49391
49392         * build-aux/bootstrap: Allow renaming bootstrap, and change the
49393         name of bootstrap.conf accordingly.
49394
49395 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
49396
49397         * build-aux/bootstrap: Install git-merge-changelog configuration
49398         items into .gitconfig if needed.
49399
49400 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
49401
49402         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
49403         git repository, and initialize/update it accordingly.
49404
49405 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
49406
49407         * modules/fsync-tests: New file.
49408         * tests/test-fsync.c: New file.
49409
49410         New module 'fsync'.
49411         * lib/fsync.c: New file.
49412         * m4/fsync.m4: New file.
49413         * modules/fsync: New file.
49414         * lib/unistd.in.h (fsync): New declaration.
49415         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
49416         GNULIB_FSYNC and HAVE_FSYNC.
49417         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
49418         * MODULES.html.sh (posix_functions): Add fsync.
49419         * doc/posix-functions/fsync.texi: Mention the new module.
49420
49421 2008-10-02  Jim Meyering  <meyering@redhat.com>
49422
49423         fts.c: sync with similar code from coreutils' remove.c
49424         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
49425         Guard also with "#if defined __linux__", since for now at least,
49426         this code is Linux-kernel-specific.
49427
49428 2008-10-02  Jim Meyering  <meyering@redhat.com>
49429
49430         fts: bug fixes
49431         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
49432         Include <sys/vfs.h>, not <sys/statfs.h>.
49433
49434         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
49435         Include <sys/vfs.h>, not <sys/statfs.h>.
49436
49437 2008-10-01  Bruno Haible  <bruno@clisp.org>
49438
49439         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
49440         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
49441         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
49442         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
49443         * doc/posix-functions/posix_spawnp.texi: Likewise.
49444         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
49445         whether posix_spawn actually works.
49446         * m4/pipe.m4 (gl_PIPE): Likewise.
49447         * modules/execute (Files): Add m4/posix_spawn.m4.
49448         * modules/pipe (Files): Add m4/posix_spawn.m4.
49449         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
49450
49451 2008-10-01  Jim Meyering  <meyering@redhat.com>
49452
49453         remove trailing spaces
49454         * NEWS: Likewise.
49455         * lib/poll.c (poll): Likewise.
49456         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
49457         * lib/winsock.c (rpl_close): Likewise.
49458         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
49459         * modules/yield: Likewise.
49460         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
49461         * tests/test-sys_select.c (connect_to_socket): Likewise.
49462
49463         fts.c: adjust a new interface to be more generally useful
49464         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
49465         (fts_build): Adjust caller.
49466
49467 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
49468
49469         * modules/cond-tests: New file.
49470         * tests/test-cond.c: New file.
49471
49472 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
49473             Bruno Haible  <bruno@clisp.org>
49474
49475         * modules/cond (Dependencies): Add errno, time.
49476         * lib/glthread/cond.h: Include <time.h>.
49477         (gl_cond_define, gl_cond_define_initialized): Use the same definition
49478         across platforms.
49479
49480 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
49481             Bruno Haible  <bruno@clisp.org>
49482
49483         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
49484
49485 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
49486             Bruno Haible  <bruno@clisp.org>
49487
49488         * modules/tls-tests (Depends-on): Add thread, yield.
49489         (configure.ac): Remove all checks.
49490         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
49491         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
49492         gl_thread_self): Remove definitions. Include glthread/thread.h and
49493         glthread/yield.h instead.
49494         (test_tls): Pass an additional NULL argument to gl_thread_join.
49495
49496 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
49497             Bruno Haible  <bruno@clisp.org>
49498
49499         * modules/lock-tests (Depends-on): Add thread, yield.
49500         (configure.ac): Remove all checks.
49501         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
49502         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
49503         gl_thread_self): Remove definitions. Include glthread/thread.h and
49504         glthread/yield.h instead.
49505         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
49506         additional NULL argument to gl_thread_join.
49507
49508 2008-09-30  Bruno Haible  <bruno@clisp.org>
49509
49510         Fix the Win32 implementation of the 'thread' module.
49511         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
49512         pointer type.
49513         (gl_thread_self): Invoke gl_thread_self_func.
49514         (gl_thread_self_func): New declaration.
49515         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
49516         (do_init_self_key, init_self_key): New functions.
49517         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
49518         Remove some fields.
49519         (running_threads, running_lock): Remove variables.
49520         (get_current_thread_handle): New function.
49521         (gl_thread_self_func, wrapper_func, glthread_create_func,
49522         glthread_join_func, gl_thread_exit_func): Largely rewritten and
49523         simplified.
49524
49525 2008-09-30  Bruno Haible  <bruno@clisp.org>
49526
49527         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
49528         files.
49529
49530 2008-09-30  Jim Meyering  <meyering@redhat.com>
49531
49532         fts.m4: correct the test for statfs.f_type
49533         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
49534         when checking for statfs.f_type.
49535
49536 2008-09-15  Simon Josefsson  <simon@josefsson.org>
49537
49538         tests: avoid some compiler warnings
49539         * tests/test-memchr.c (main): Pass NULL indirectly.
49540         * tests/test-getdate.c (main): Remove unused variable 'ret'.
49541
49542 2008-09-29  OndÅ™ej Vašík  <ovasik@redhat.com>
49543
49544         getdate.y: disallow countable dayshifts like "4 yesterday ago"
49545         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
49546         exactly specified dayshifts.
49547         (dayshift): New rule.
49548         (rel): Add dayshift.
49549         (relative_time_table) [tomorrow, yesterday, today, now]:
49550         Use tDAY_SHIFT in place of tDAY_UNIT.
49551         * tests/test-getdate.c: Add tests for now-disallowed countable
49552         dayshifts, e.g., "4 yesterday ago".
49553
49554 2008-09-29  Bruno Haible  <bruno@clisp.org>
49555
49556         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
49557         * tests/test-posix_spawn1.in.sh: Renamed from
49558         tests/test-posix_spawn.in.sh.
49559         * tests/test-posix_spawn2.c: New file.
49560         * tests/test-posix_spawn2.in.sh: New file.
49561         * modules/posix_spawnp-tests (Files): Update.
49562         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
49563
49564 2008-09-29  Bruno Haible  <bruno@clisp.org>
49565
49566         Propagate effects of putenv/setenv/unsetenv to child processes.
49567         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
49568         * lib/pipe.c (create_pipe): Likewise.
49569
49570 2008-09-29  Bruno Haible  <bruno@clisp.org>
49571
49572         Enable use of shell scripts as executables in mingw.
49573         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
49574         run the program as a shell script.
49575         * lib/pipe.c (create_pipe): Likewise.
49576         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
49577         resulting array.
49578
49579 2008-09-29  Eric Blake  <ebb9@byu.net>
49580
49581         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
49582
49583 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
49584
49585         * doc/posix-functions/accept.texi: Update mingw problems.
49586         * doc/posix-functions/bind.texi: Update mingw problems.
49587         * doc/posix-functions/close.texi: Update mingw problems.
49588         * doc/posix-functions/connect.texi: Update mingw problems.
49589         * doc/posix-functions/getpeername.texi: Update mingw problems.
49590         * doc/posix-functions/getsockname.texi: Update mingw problems.
49591         * doc/posix-functions/getsockopt.texi: Update mingw problems.
49592         * doc/posix-functions/ioctl.texi: Update mingw problems.
49593         * doc/posix-functions/listen.texi: Update mingw problems.
49594         * doc/posix-functions/recv.texi: Update mingw problems.
49595         * doc/posix-functions/recvfrom.texi: Update mingw problems.
49596         * doc/posix-functions/select.texi: Update mingw problems.
49597         * doc/posix-functions/send.texi: Update mingw problems.
49598         * doc/posix-functions/sendto.texi: Update mingw problems.
49599         * doc/posix-functions/setsockopt.texi: Update mingw problems.
49600         * doc/posix-functions/socket.texi: Update mingw problems.
49601
49602 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
49603             Bruno Haible  <bruno@clisp.org>
49604
49605         * lib/sys_select.in.h: Include sys/time.h.
49606         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
49607         * modules/sys_select: Depend on sys_time.
49608         * tests/test-sys_select.c: Test that sys/select.h defines struct
49609         timeval fully.
49610
49611 2008-09-29  Bruno Haible  <bruno@clisp.org>
49612
49613         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
49614         * lib/sys_select.in.h: Likewise.
49615
49616 2008-09-29  Bruno Haible  <bruno@clisp.org>
49617
49618         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
49619
49620 2008-09-29  Bruno Haible  <bruno@clisp.org>
49621
49622         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
49623         Set LIBSOCKET instead of augmenting LIBS.
49624         * modules/sockets (Link): New section.
49625         * modules/sockets-tests (test_sockets_LDADD): New variable.
49626         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
49627         * modules/poll-tests (test_poll_LDADD): New variable.
49628         * NEWS: Document the change.
49629
49630 2008-09-29  Bruno Haible  <bruno@clisp.org>
49631
49632         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
49633         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
49634         ARPA_INET_H directly.
49635         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
49636
49637 2008-09-28  Bruno Haible  <bruno@clisp.org>
49638
49639         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
49640         from gl_HEADER_SYS_SOCKET.
49641         (gl_HEADER_SYS_SOCKET): Invoke it.
49642         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
49643
49644 2008-09-28  Bruno Haible  <bruno@clisp.org>
49645
49646         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
49647         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
49648         Needed on OSF/1 4.0.
49649
49650 2008-09-28  Bruno Haible  <bruno@clisp.org>
49651
49652         Override open more carefully.
49653         * lib/open.c (orig_open): New function.
49654         (rpl_open): Use orig_open instead of open.
49655         * lib/fcntl.in.h: Add special invocation convention.
49656         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
49657         (gl_FUNC_OPEN): Invoke it.
49658
49659         Override freopen more carefully.
49660         * lib/freopen.c (orig_freopen): New function.
49661         (rpl_freopen): Use orig_freopen instead of freopen.
49662         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
49663         (gl_FUNC_FREOPEN): Invoke it.
49664
49665         Override fopen more carefully.
49666         * lib/fopen.c (orig_fopen): New function.
49667         (rpl_fopen): Use orig_fopen instead of fopen.
49668         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
49669         (gl_FUNC_FOPEN): Invoke it.
49670         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
49671
49672 2008-09-28  Bruno Haible  <bruno@clisp.org>
49673
49674         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
49675         SIGPIPE.
49676
49677 2008-09-28  Bruno Haible  <bruno@clisp.org>
49678
49679         * tests/test-sigaction.c (handler, main): Disable the check whether
49680         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
49681         glibc systems with LinuxThreads.
49682
49683 2008-09-28  Bruno Haible  <bruno@clisp.org>
49684
49685         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
49686
49687         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
49688         with AIX xlc.
49689         * lib/fcntl.in.h (open): Likewise.
49690         Reported by Rainer Tammer <tammer@tammer.net>.
49691
49692 2008-09-28  Bruno Haible  <bruno@clisp.org>
49693
49694         * modules/posix_spawnp-tests: New file.
49695         * tests/test-posix_spawn.c: New file.
49696         * tests/test-posix_spawn.in.sh: New file.
49697
49698         New module 'posix_spawnp'.
49699         * modules/posix_spawnp: New file.
49700         * lib/spawnp.c: New file, from GNU libc with modifications.
49701         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
49702
49703         New module 'posix_spawn'.
49704         * modules/posix_spawn: New file.
49705         * lib/spawn.c: New file, from GNU libc with modifications.
49706         * doc/posix-functions/posix_spawn.texi: Mention the new module.
49707
49708         New module 'posix_spawnattr_destroy'.
49709         * modules/posix_spawnattr_destroy: New file.
49710         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
49711         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
49712         module.
49713
49714         New module 'posix_spawnattr_setsigmask'.
49715         * modules/posix_spawnattr_setsigmask: New file.
49716         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
49717         modifications.
49718         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
49719         new module.
49720
49721         New module 'posix_spawnattr_getsigmask'.
49722         * modules/posix_spawnattr_getsigmask: New file.
49723         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
49724         modifications.
49725         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
49726         new module.
49727
49728         New module 'posix_spawnattr_setsigdefault'.
49729         * modules/posix_spawnattr_setsigdefault: New file.
49730         * lib/spawnattr_setdefault.c: New file, from GNU libc with
49731         modifications.
49732         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
49733         new module.
49734
49735         New module 'posix_spawnattr_getsigdefault'.
49736         * modules/posix_spawnattr_getsigdefault: New file.
49737         * lib/spawnattr_getdefault.c: New file, from GNU libc with
49738         modifications.
49739         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
49740         new module.
49741
49742         New module 'posix_spawnattr_setschedpolicy'.
49743         * modules/posix_spawnattr_setschedpolicy: New file.
49744         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
49745         modifications.
49746         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
49747         new module.
49748
49749         New module 'posix_spawnattr_getschedpolicy'.
49750         * modules/posix_spawnattr_getschedpolicy: New file.
49751         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
49752         modifications.
49753         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
49754         new module.
49755
49756         New module 'posix_spawnattr_setschedparam'.
49757         * modules/posix_spawnattr_setschedparam: New file.
49758         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
49759         modifications.
49760         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
49761         new module.
49762
49763         New module 'posix_spawnattr_getschedparam'.
49764         * modules/posix_spawnattr_getschedparam: New file.
49765         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
49766         modifications.
49767         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
49768         new module.
49769
49770         New module 'posix_spawnattr_setpgroup'.
49771         * modules/posix_spawnattr_setpgroup: New file.
49772         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
49773         modifications.
49774         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
49775         module.
49776
49777         New module 'posix_spawnattr_getpgroup'.
49778         * modules/posix_spawnattr_getpgroup: New file.
49779         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
49780         modifications.
49781         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
49782         module.
49783
49784         New module 'posix_spawnattr_setflags'.
49785         * modules/posix_spawnattr_setflags: New file.
49786         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
49787         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
49788         module.
49789
49790         New module 'posix_spawnattr_getflags'.
49791         * modules/posix_spawnattr_getflags: New file.
49792         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
49793         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
49794         module.
49795
49796         New module 'posix_spawnattr_init'.
49797         * modules/posix_spawnattr_init: New file.
49798         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
49799         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
49800         module.
49801
49802         New module 'posix_spawn_file_actions_destroy'.
49803         * modules/posix_spawn_file_actions_destroy: New file.
49804         * lib/spawn_faction_destroy.c: New file, from GNU libc with
49805         modifications.
49806         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
49807         the new module.
49808
49809         New module 'posix_spawn_file_actions_addopen'.
49810         * modules/posix_spawn_file_actions_addopen: New file.
49811         * lib/spawn_faction_addopen.c: New file, from GNU libc with
49812         modifications.
49813         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
49814         the new module.
49815
49816         New module 'posix_spawn_file_actions_adddup2'.
49817         * modules/posix_spawn_file_actions_adddup2: New file.
49818         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
49819         modifications.
49820         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
49821         the new module.
49822
49823         New module 'posix_spawn_file_actions_addclose'.
49824         * modules/posix_spawn_file_actions_addclose: New file.
49825         * lib/spawn_faction_addclose.c: New file, from GNU libc with
49826         modifications.
49827         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
49828         the new module.
49829
49830         New module 'posix_spawn_file_actions_init'.
49831         * modules/posix_spawn_file_actions_init: New file.
49832         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
49833         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
49834         new module.
49835
49836         New module 'posix_spawn-internal'.
49837         * modules/posix_spawn-internal: New file.
49838         * lib/spawn_int.h: New file, from GNU libc with modifications.
49839         * lib/spawni.c: New file, from GNU libc with modifications.
49840         * m4/posix_spawn.m4: New file.
49841
49842         New module 'spawn'.
49843         * modules/spawn: New file.
49844         * lib/spawn.in.h: New file, from GNU libc with modifications.
49845         * m4/spawn_h.m4: New file.
49846         * doc/posix-headers/spawn.texi: Mention the new module.
49847
49848 2008-09-28  Bruno Haible  <bruno@clisp.org>
49849
49850         * modules/sched-tests: New file.
49851         * tests/test-sched.c: New file.
49852
49853         New module 'sched'.
49854         * modules/sched: New file.
49855         * lib/sched.in.h: New file.
49856         * m4/sched_h.m4: New file.
49857         * doc/posix-headers/sched.texi: Mention the new module.
49858
49859 2008-09-27  Eric Blake  <ebb9@byu.net>
49860
49861         Fix previous patch, and tweak references to $0.
49862         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
49863         (func_version, func_gnulib_dir): Don't call this program
49864         gnulib-tool.
49865         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
49866         with using $0 in function.
49867         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
49868         (func_fatal_error): Reuse the name the user invoked us with.
49869
49870 2008-09-27  Bruno Haible  <bruno@clisp.org>
49871
49872         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
49873         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
49874         (gl_ICONV_H): Not here.
49875         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
49876         instead of assigning ICONV_H directly.
49877
49878         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
49879         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
49880         WCHAR_H directly.
49881
49882 2008-09-27  Bruno Haible  <bruno@clisp.org>
49883
49884         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
49885         * modules/arpa_inet (Depends-on): Add link-warning.
49886         (Makefile.am): Insert the definition of GL_LINK-WARNING.
49887         * modules/unistd (Makefile.am): Likewise.
49888
49889 2008-09-26  Bruno Haible  <bruno@clisp.org>
49890
49891         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
49892         variables.
49893         (func_version): Essentially copied from gnulib-tool.
49894         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
49895         func_readlink): Copied from gnulib-tool.
49896
49897 2008-09-26  Bruno Haible  <bruno@clisp.org>
49898
49899         * gnulib-tool (func_version): Change directory to $gnulib_dir before
49900         invoking git-version-gen.
49901
49902 2008-09-26  Bruno Haible  <bruno@clisp.org>
49903
49904         * posix-modules: Update to directory names changed on 2008-01-19.
49905         Remove commas in output before splitting into words. No more need to
49906         avoid 'ftruncate' since 2007-02-19.
49907
49908 2008-09-26  Bruno Haible  <bruno@clisp.org>
49909
49910         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
49911
49912 2008-09-26  Bruno Haible  <bruno@clisp.org>
49913
49914         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
49915         * modules/fwriteerror (Depends-on): Add errno.
49916
49917 2008-09-26  Bruno Haible  <bruno@clisp.org>
49918
49919         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
49920         * tests/test-vc-list-files-cvs.sh: Likewise.
49921
49922 2008-09-26  Bruno Haible  <bruno@clisp.org>
49923
49924         * doc/posix-headers/sys_resource.texi: Reorder items.
49925
49926 2008-09-26  Jim Meyering  <meyering@redhat.com>
49927
49928         fts: tweak inode comparison function
49929         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
49930         inode numbers, as documented.
49931
49932         fts: sort dirent entries on inode number before traversing
49933         This avoids a quadratic, seek-related performance penalty when
49934         operating on a directory containing many entries (measurable at 10k;
49935         3.5 hours at 2 million entries with a cold cache) on certain types
49936         of file systems, including ext3 and ext4, but not tmpfs.
49937         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
49938         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
49939         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
49940         (fs_handles_readdir_ordered_dirents_efficiently): New function.
49941         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
49942         (fts_build): Set the stat.st_ino member from D_INO.
49943         If it is likely to be useful, sort dirent entries on inode number.
49944
49945         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
49946         and the struct statfs.f_type member.
49947         * modules/fts (Depends-on): Add d-ino.
49948
49949 2008-09-26  Bruno Haible  <bruno@clisp.org>
49950
49951         * modules/sigpipe-die (Depends-on): Add sigpipe.
49952
49953         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
49954         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
49955         and GNULIB_STDIO_H_SIGPIPE are set.
49956         * lib/stdio-write.c: New file.
49957         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
49958         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
49959         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
49960         REPLACE_STDIO_WRITE_FUNCS.
49961         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
49962         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
49963         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
49964         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
49965         * modules/stdio (Files): Add lib/stdio-write.c.
49966         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
49967         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
49968         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
49969         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
49970         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
49971         REPLACE_FPRINTF_POSIX.
49972         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
49973         REPLACE_PRINTF_POSIX.
49974         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
49975         REPLACE_VFPRINTF_POSIX.
49976         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
49977         REPLACE_VPRINTF_POSIX.
49978         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
49979         SIGPIPE issue.
49980         * doc/posix-functions/fputc.texi: Likewise.
49981         * doc/posix-functions/fputs.texi: Likewise.
49982         * doc/posix-functions/fwrite.texi: Likewise.
49983         * doc/posix-functions/printf.texi: Likewise.
49984         * doc/posix-functions/putc.texi: Likewise.
49985         * doc/posix-functions/putchar.texi: Likewise.
49986         * doc/posix-functions/puts.texi: Likewise.
49987         * doc/posix-functions/vfprintf.texi: Likewise.
49988         * doc/posix-functions/vprintf.texi: Likewise.
49989
49990         * modules/safe-write (Depends-on): Add write.
49991
49992         * modules/sigpipe-tests: New file.
49993         * tests/test-sigpipe.c: New file.
49994         * tests/test-sigpipe.sh: New file.
49995
49996         * modules/write: New file.
49997         * lib/unistd.in.h: Include <sys/types.h>.
49998         (write): New declaration.
49999         * lib/write.c: New file.
50000         * m4/write.m4: New file.
50001         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
50002         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
50003         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
50004         GNULIB_WRITE, REPLACE_WRITE.
50005         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
50006         and the SIGPIPE issue.
50007
50008         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
50009         (raise): New declaration.
50010         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
50011         (ext_signal): New function.
50012         (rpl_raise): New function.
50013         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
50014         GNULIB_SIGNAL_H_SIGPIPE.
50015         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
50016         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
50017
50018         * modules/sigpipe: New file.
50019         * m4/sigpipe.m4: New file.
50020
50021 2008-09-25  Derek Price  <derek@ximbiot.com>
50022             Bruno Haible  <bruno@clisp.org>
50023
50024         * gnulib-tool (func_import): Report all license incompatibilities, not
50025         just the first one.
50026
50027 2008-09-25  Bruno Haible  <bruno@clisp.org>
50028
50029         * gnulib-tool (func_import): When computing the edits, consider not
50030         only the Makefile.ams that exist but also those that will be generated.
50031
50032 2008-09-25  Simon Josefsson  <simon@josefsson.org>
50033
50034         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
50035         fixes gnulib-tool --test warning about duplicate dependency.
50036
50037 2008-09-25  Bruno Haible  <bruno@clisp.org>
50038
50039         * gnulib-tool: Don't ask the user to perform edits in the generated
50040         Makefile.ams.
50041         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
50042         apply to the Makefile.am being generated.
50043         (func_emit_tests_Makefile_am): Execute edits that apply to the
50044         Makefile.am being generated.
50045         (func_import): Setup list of Makefile.am edits before emitting the
50046         Makefile.ams, not at the end.
50047         (func_create_testdir): Update.
50048         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
50049
50050 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
50051
50052         * gnulib-tool (func_import): Store the --tests-base option in the
50053         comment in gnulib-cache.m4.
50054
50055 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
50056
50057         * NEWS: Document increased portability that sys_select now provides.
50058
50059         * lib/sys_select.in.h: Install select wrapper.
50060         * lib/sys_socket.in.h: Use more descriptive name when there is no
50061         select wrapper.
50062         * lib/winsock-select.c: New.
50063         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
50064         Require gl_HEADER_SYS_SOCKET.
50065         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
50066         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
50067         * tests/test-sys_select.c: Add functional tests.
50068
50069 2008-09-24  Eric Blake  <ebb9@byu.net>
50070
50071         open, fopen: close fd leak in last patch
50072         * lib/open.c (rpl_open): Close fd before returning error.
50073         * lib/fopen.c (rpl_fopen): Close fd before returning error.
50074         * doc/posix-functions/open.texi (open): Document that Irix also
50075         has the bug.
50076         * doc/posix-functions/fopen.texi (fopen): Likewise.
50077         Reported by Paolo Bonzini.
50078
50079 2008-09-24  Bruno Haible  <bruno@clisp.org>
50080
50081         Ensure that a filename ending in a slash cannot be used to access a
50082         non-directory.
50083         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
50084         to check whether it's really a directory.
50085         * lib/fopen.c: Include fcntl.h, unistd.h.
50086         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
50087         and fdopen().
50088         * modules/fopen (Depends-on): Add unistd.
50089         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
50090         * tests/test-fopen.c (main): Likewise.
50091         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
50092         * doc/posix-functions/fopen.texi: Likewise.
50093         Reported by Eric Blake.
50094
50095 2008-09-23  Eric Blake  <ebb9@byu.net>
50096
50097         c-stack: avoid compiler optimizations when provoking overflow
50098         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
50099         recursion harder to optimize, to ensure a stack overflow occurs.
50100         * tests/test-c-stack.c (recurse): Likewise.
50101         Borrowed from libsigsegv.
50102
50103         c-stack: work around Irix sigaltstack bug
50104         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
50105         whether sigaltstack uses wrong end of stack_t (copied in part from
50106         libsigsegv).
50107         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
50108         Irix bug, without requiring an over-allocation.
50109         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
50110         bug.
50111
50112         fopen: document mingw bug on directories
50113         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
50114         not allowing a stream visiting a directory, even though reading
50115         from such a stream is not portable.
50116
50117 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
50118
50119         * lib/poll.c: Rewrite.
50120         * modules/poll: Depend on alloca.
50121
50122 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
50123
50124         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
50125         instead define prototypes for a full set of wrappers.  Ensure
50126         that Cygwin does not use the compatibility code, which is only
50127         for MinGW.
50128         * lib/winsock.c: New.
50129         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
50130         * modules/sys_socket: Add lib/winsock.c.
50131
50132         * modules/poll-tests: Add errno and perror.
50133         * tests/test-poll.c: Use ioctl, not ioctlsocket.
50134
50135 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
50136
50137         * tests/test-poll.c: Downgrade minimum needed Winsock version.
50138
50139 2008-09-23  Bruno Haible  <bruno@clisp.org>
50140
50141         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
50142         * doc/glibc-functions/*: Likewise.
50143
50144 2008-09-23  Simon Josefsson  <simon@josefsson.org>
50145
50146         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
50147         success.
50148
50149 2008-09-22  Eric Blake  <ebb9@byu.net>
50150             Bruno Haible  <bruno@clisp.org>
50151
50152         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
50153         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
50154         supply %A but mishandle pseudo-NaN.
50155         Reported by Simon Josefsson.
50156
50157 2008-09-21  Bruno Haible  <bruno@clisp.org>
50158
50159         * tests/test-lock.c (main): Tweak skip message.
50160         * tests/test-tls.c (main): Likewise.
50161
50162 2008-09-21  Bruno Haible  <bruno@clisp.org>
50163
50164         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
50165         whether 'struct sigaction' has sa_sigaction here...
50166         (gl_PREREQ_SIG_HANDLER_H): ... not here.
50167         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
50168
50169 2008-09-21  Bruno Haible  <bruno@clisp.org>
50170
50171         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
50172         section.
50173         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
50174         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
50175         the new section.
50176         (Support for obsolete systems lacking POSIX:2001): New section.
50177         (String handling <string.h>): Move strdup to the new section.
50178         Suggested by Simon Josefsson and Paolo Bonzini.
50179
50180 2008-09-21  Bruno Haible  <bruno@clisp.org>
50181
50182         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
50183         exponents in %e and %g results on 'long double'. Needed for mingw's
50184         improved *printf functions.
50185         * tests/test-vasprintf-posix.c (test_function): Likewise.
50186         * tests/test-snprintf-posix.h (test_function): Likewise.
50187         * tests/test-sprintf-posix.h (test_function): Likewise.
50188         Reported by Eric Blake.
50189
50190 2008-09-21  Bruno Haible  <bruno@clisp.org>
50191
50192         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
50193         * tests/test-sprintf-posix.h (test_function): Likewise.
50194
50195 2008-09-21  Bruno Haible  <bruno@clisp.org>
50196
50197         * modules/getpass (Depends-on): Add strdup-posix.
50198
50199         New module 'strdup-posix'.
50200         * modules/strdup-posix: New file.
50201         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
50202         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
50203         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
50204         REPLACE_STRDUP.
50205         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
50206         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
50207         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
50208         strdup-posix.
50209
50210         * modules/strdup (Depends-on): Remove malloc-posix.
50211
50212 2008-09-20  Bruno Haible  <bruno@clisp.org>
50213
50214         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
50215         Wildenhues.
50216
50217 2008-09-20  Bruno Haible  <bruno@clisp.org>
50218
50219         Ensure that wint_t gets defined on IRIX 5.3.
50220         * lib/wchar.in.h (wint_t): Define if not defined by the system.
50221         * lib/wctype.in.h (wint_t): Likewise.
50222         (__wctype_wint_t): Remove type.
50223         (isw*): Use wint_t instead of __wctype_wint_t.
50224         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
50225         * modules/wchar (Files): Add m4/wint_t.m4.
50226         (Makefile.am): Substitute HAVE_WINT_T.
50227         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
50228         * tests/test-wctype.c: Check that wint_t is defined.
50229         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
50230         * doc/posix-headers/wctype.texi: Likewise.
50231         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
50232
50233 2008-09-18  Bruno Haible  <bruno@clisp.org>
50234
50235         * gnulib-tool (func_exit): Update comment.
50236
50237 2008-09-18  Simon Josefsson  <simon@josefsson.org>
50238
50239         * modules/getaddrinfo (Depends-on): Remove strdup, this module
50240         assumes strdup exists and does not depend on strdup to return
50241         ENOMEM on out of memory conditions.
50242
50243 2008-09-18  Bruno Haible  <bruno@clisp.org>
50244
50245         * lib/vasnprintf.c (VASNPRINTF): When printing Â±0.0L in
50246         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
50247         digits for the exponent.
50248
50249 2008-09-18  Jim Meyering  <meyering@redhat.com>
50250             Bruno Haible  <bruno@clisp.org>
50251
50252         * lib/vasnprintf.c (decimal_point_char): Define also if
50253         NEED_PRINTF_INFINITE_LONG_DOUBLE.
50254
50255 2008-09-16  Bruno Haible  <bruno@clisp.org>
50256         and Eric Blake  <ebb9@byu.net>
50257
50258         vasnprintf: support Irix 5.3
50259         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
50260         that mishandle long double infinity.
50261         Reported by Tom G. Christensen.
50262
50263 2008-09-16  Bruno Haible  <bruno@clisp.org>
50264
50265         * doc/glibc-functions/scandir.texi: Mention the function is missing on
50266         Solaris 9.
50267         * doc/glibc-functions/alphasort.texi: Likewise.
50268         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
50269
50270 2008-09-16  Jim Meyering  <meyering@redhat.com>
50271
50272         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
50273         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
50274         a umask modification leak out of a subshell.  Otherwise, the
50275         opensolaris /bin/sh would be accepted and thus cause unwarranted
50276         failures in the coreutils test suite.
50277
50278 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
50279
50280         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
50281         to succeed.
50282
50283 2008-09-16  Jim Meyering  <meyering@redhat.com>
50284
50285         avoid spurious test failure when library is built without ACL support
50286         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
50287         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
50288         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
50289         * tests/test-copy-acl.sh: Likewise.
50290
50291 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50292
50293         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
50294         based on character occurrence counts.
50295
50296 2008-09-15  Eric Blake  <ebb9@byu.net>
50297
50298         tests: avoid some compiler warnings
50299         * tests/test-memchr.c (main): Pass NULL indirectly.
50300         * tests/test-closein.c (main): Avoid unused variable.
50301
50302 2008-09-15  Bruno Haible  <bruno@clisp.org>
50303
50304         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
50305         are missing on OpenBSD 4.0 individually.
50306         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
50307
50308 2008-09-15  Bruno Haible  <bruno@clisp.org>
50309
50310         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
50311         * doc/posix-functions/strerror.texi: Mention also Cygwin.
50312         * doc/posix-functions/perror.texi: Likewise.
50313         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
50314         is missing.
50315         Reported by Eric Blake.
50316
50317         * lib/errno.in.h: Use replacement values >= 2000.
50318         Reported by Eric Blake.
50319
50320 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50321
50322         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
50323         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
50324         limit.
50325         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
50326         compareseq was aborted.
50327
50328 2008-09-14  Bruno Haible  <bruno@clisp.org>
50329
50330         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
50331         yvec_edit_count.
50332         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
50333         (fstrcmp_bounded): Simplify result computation accordingly.
50334
50335 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50336
50337         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
50338         (fstrcmp): Define in terms of fstrcmp_bounded.
50339         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
50340         lower_bound argument.
50341         Return quickly if the result is certainly < lower_bound.
50342         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
50343
50344 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50345
50346         * lib/diffseq.h (EARLY_ABORT): New macro.
50347         (compareseq): Change return type to bool. Return true when EARLY_ABORT
50348         evaluates to true.
50349
50350 2008-09-14  Bruno Haible  <bruno@clisp.org>
50351
50352         * modules/perror-tests: New file.
50353         * tests/test-perror.sh: New file.
50354         * tests/test-perror.c: New file.
50355
50356         New module 'perror'.
50357         * lib/stdio.in.h (perror): New declaration.
50358         * lib/perror.c: New file.
50359         * m4/perror.m4: New file.
50360         * modules/perror: New file.
50361         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
50362         * doc/posix-functions/perror.texi: Mention the perror module.
50363         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
50364         REPLACE_PERROR.
50365         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
50366         REPLACE_PERROR.
50367
50368 2008-09-14  Bruno Haible  <bruno@clisp.org>
50369
50370         * modules/stdio (Makefile.am): Reorder to match the order in
50371         lib/stdio.in.h.
50372         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
50373
50374 2008-09-13  Bruno Haible  <bruno@clisp.org>
50375
50376         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
50377
50378 2008-09-13  Bruno Haible  <bruno@clisp.org>
50379
50380         Extend strerror to cover the added errno values.
50381         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
50382         (rpl_strerror): Provide error messages for the added errno values and
50383         for the WSA* values.
50384         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
50385         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
50386         strerror.
50387         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
50388         * modules/strerror (Depends-on): Add errno.
50389         * doc/posix-functions/strerror.texi: Document the change.
50390         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
50391         and EOVERFLOW.
50392
50393 2008-09-13  Bruno Haible  <bruno@clisp.org>
50394
50395         * modules/EOVERFLOW: Remove file.
50396         * m4/eoverflow.m4: Remove file.
50397         * modules/EOVERFLOW-tests: Remove file.
50398         * tests/test-EOVERFLOW.c: Remove file.
50399         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
50400         * modules/ftell (Depends-on): Likewise.
50401         * modules/getdelim (Depends-on): Likewise.
50402         * modules/getugroups (Depends-on): Likewise.
50403         * modules/poll (Depends-on): Likewise.
50404         * modules/snprintf (Depends-on): Likewise.
50405         * modules/sprintf-posix (Depends-on): Likewise.
50406         * modules/vasnprintf (Depends-on): Likewise.
50407         * modules/vasprintf (Depends-on): Likewise.
50408         * modules/vfprintf-posix (Depends-on): Likewise.
50409         * modules/vsnprintf (Depends-on): Likewise.
50410         * modules/vsprintf-posix (Depends-on): Likewise.
50411         * modules/xvasprintf (Depends-on): Likewise.
50412         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
50413         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
50414         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
50415         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
50416         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
50417         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
50418         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
50419         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
50420         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
50421         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
50422         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
50423         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
50424         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
50425         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
50426         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
50427         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
50428         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
50429         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
50430         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
50431         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
50432         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
50433         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
50434         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
50435         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
50436         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
50437         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
50438         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
50439         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
50440         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
50441         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
50442         * MODULES.html.sh: Remove EOVERFLOW.
50443         * NEWS: Mention the change.
50444
50445 2008-09-13  Bruno Haible  <bruno@clisp.org>
50446
50447         * modules/errno-tests: New file.
50448         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
50449
50450         * lib/errno.in.h: New file.
50451         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
50452         * modules/errno: New file.
50453         * doc/posix-headers/errno.texi: Update documentation.
50454         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
50455
50456 2008-09-13  Bruno Haible  <bruno@clisp.org>
50457
50458         * tests/test-poll.c: Use #if for native Windows, rather than testing
50459         __MSVCRT__.
50460
50461 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
50462             Bruno Haible  <bruno@clisp.org>
50463
50464         * lib/glob.c: Don't include <pwd.h> on native Windows.
50465         (WINDOWS32): New macro.
50466         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
50467
50468 2008-09-13  Bruno Haible  <bruno@clisp.org>
50469
50470         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
50471         (ETIMEDOUT): Remove macro.
50472         (glthread_cond_timedwait_multithreaded): New declaration.
50473         (glthread_cond_timedwait): Use it.
50474         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
50475         (glthread_cond_timedwait_multithreaded): New function.
50476
50477 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
50478
50479         * modules/poll-tests: Do not check for io.h.
50480         * tests/test-poll.c: Check for __MSVCRT__ instead.
50481
50482 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
50483
50484         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
50485         * modules/poll-tests: Add inet_pton, stdbool, sockets.
50486         * tests/test-poll.c: Use them.  Use _pipe on Windows.
50487
50488 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
50489
50490         * modules/poll-tests: New.
50491         * tests/test-poll.c: New.
50492
50493 2008-09-12  Eric Blake  <ebb9@byu.net>
50494
50495         frexp: test for NetBSD failure on -0.0
50496         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
50497         not all, bugs from NetBSD 3.0 have been fixed.
50498         * doc/posix-functions/frexp.texi (frexp): Document bug.
50499         Reported by Thomas Klausner.
50500
50501         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
50502         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
50503         literal -0.0.
50504         Reported by Jonathan C. Patschke <jp@centtech.com>.
50505
50506 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
50507
50508         * lib/glthread/cond.h: Use dummy implementation also if
50509         USE_WIN32_THREADS.
50510
50511 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
50512
50513         * modules/fnmatch-posix (License): Change to LGPLv2+.
50514         * modules/fnmatch-gnu (License): Likewise.
50515
50516 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
50517
50518         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
50519
50520 2008-09-11  Jim Meyering  <meyering@redhat.com>
50521
50522         * users.txt: Add gtk-vnc.
50523
50524 2008-09-08  Simon Josefsson  <simon@josefsson.org>
50525
50526         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
50527         rotate amounts.
50528
50529         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
50530         required for 16-bit and 8-bit rotates.
50531         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
50532         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
50533         UINT8_MAX instead of hard-coded constants.
50534         Suggested by Paul Eggert.
50535
50536 2008-09-07  Bruno Haible  <bruno@clisp.org>
50537
50538         * tests/test-striconveh.c (main): Check behaviour when converting from
50539         UTF-7.
50540
50541         Make striconveh work better with stateful encodings.
50542         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
50543         that iconv does not increment the inptr when returning -1/EINVAL.
50544
50545 2008-09-07  Bruno Haible  <bruno@clisp.org>
50546
50547         * build-aux/config.rpath: Update according to libtool-2.2.6.
50548         * build-aux/config.libpath: Likewise.
50549
50550 2008-09-06  Bruno Haible  <bruno@clisp.org>
50551
50552         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
50553         * lib/freadptr.c (freadptr): Likewise.
50554         * lib/freadseek.c (freadptrinc): Likewise.
50555         Reported by Simon Josefsson.
50556
50557 2008-09-06  Bruno Haible  <bruno@clisp.org>
50558
50559         * modules/freadptr (License): Change to LGPLv2+.
50560         * modules/freadseek (License): Likewise.
50561         Suggested by Eric Blake.
50562
50563         * modules/memchr2 (License): Change to LGPLv2+.
50564         Approved by Eric Blake.
50565
50566 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50567             Bruno Haible  <bruno@clisp.org>
50568
50569         Make gnulib-tool work with native 'sed' on AIX.
50570         * gnulib-tool (sed_noop): New variable.
50571         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
50572         func_add_or_update, func_create_testdir): Use it to initialize sed
50573         script variables.
50574         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
50575
50576 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
50577             Bruno Haible  <bruno@clisp.org>
50578
50579         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
50580         also works after #include directives.
50581
50582 2008-09-04  OndÅ™ej Vašík  <ovasik@redhat.com>
50583
50584         getdate.y: reject an out-of-range timezone value
50585         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
50586         the range [-24...+24].  When specified with only one or two digits,
50587         * tests/test-getdate.c: Tests for the fix.
50588         * doc/getdate.texi: Document this change.
50589
50590 2008-09-03  Bruno Haible  <bruno@clisp.org>
50591
50592         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
50593
50594 2008-09-02  Simon Josefsson  <simon@josefsson.org>
50595
50596         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
50597         <bruce.korb@gmail.com> with ideas from Ben Pfaff
50598         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
50599         Blake <ebb9@byu.net>.
50600
50601         * tests/test-bitrotate.c: Add more test vectors.
50602
50603 2008-09-02  Eric Blake  <ebb9@byu.net>
50604
50605         vasnprintf-posix: handle large precision via %.*d
50606         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
50607         when handling it ourselves.
50608         * tests/test-vasnprintf-posix.c (test_function): Add test.
50609         * tests/test-snprintf-posix.h (test_function): Likewise.
50610         * tests/test-sprintf-posix.h (test_function): Likewise.
50611         * tests/test-vasprintf-posix.c (test_function): Likewise.
50612         Reported by Alain Guibert.
50613
50614 2008-09-01  Eric Blake  <ebb9@byu.net>
50615
50616         c-stack: make configure-time check more robust
50617         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
50618         successful sigaction call.
50619         Reported by Tom G. Christensen.
50620
50621 2008-09-01  Bruno Haible  <bruno@clisp.org>
50622
50623         New module 'findprog-lgpl'.
50624         * modules/findprog-lgpl: New file.
50625         * lib/findprog-lgpl.c: New file.
50626         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
50627         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
50628         to decide whether to use strdup or xstrdup, concatenated_filename or
50629         xconcatenated_filename.
50630
50631 2008-09-01  Bruno Haible  <bruno@clisp.org>
50632
50633         Split module 'concat-filename' into 'concat-filename' (LGPL) and
50634         'xconcat-filename' (GPL).
50635         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
50636         (License): Change to LGPLv2+.
50637         * modules/xconcat-filename: New file.
50638         * lib/concat-filename.h (concatenated_filename): Change specification.
50639         (xconcatenated_filename): New declaration.
50640         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
50641         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
50642         memory situations.
50643         * lib/xconcat-filename.c: New file.
50644         * NEWS: Mention the change.
50645         * lib/findprog.c: Include concat-filename.h, not filename.h.
50646         (find_in_path): Use xconcatenated_filename instead of
50647         concatenated_filename.
50648         * lib/javacomp.c: Include concat-filename.h, not filename.h.
50649         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
50650         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
50651         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
50652         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
50653         instead of concatenated_filename.
50654         * lib/javaexec.c: Include concat-filename.h, not filename.h.
50655         (execute_java_class): Use xconcatenated_filename instead of
50656         concatenated_filename.
50657         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
50658         * modules/javacomp (Depends-on): Likewise.
50659         * modules/javaexec (Depends-on): Likewise.
50660
50661 2008-09-01  Bruno Haible  <bruno@clisp.org>
50662
50663         Split module 'filename' into 'filename' and 'concat-filename'.
50664         * modules/filename: Keep only lib/filename.h.
50665         (License): Change to LGPLv2+.
50666         * modules/concat-filename: New file, extracted from modules/filename.
50667         * lib/filename.h (concatenated_filename): Remove declaration.
50668         * lib/concat-filename.h: New file, extracted from lib/filename.h.
50669         * lib/concat-filename.c: Include concat-filename.h.
50670         * NEWS: Mention the change.
50671
50672 2008-09-01  Simon Josefsson  <simon@josefsson.org>
50673
50674         * lib/bitrotate.h (rotl8, rotr8): Add.
50675
50676         * modules/bitrotate (configure.ac): Need
50677         AC_REQUIRE([AC_C_INLINE]).
50678         (Description): Mention stdint.h.  Reported by Bruno Haible
50679         <bruno@clisp.org>.
50680
50681         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
50682         Paolo Bonzini <bonzini@gnu.org>.
50683
50684 2008-08-31  Bruno Haible  <bruno@clisp.org>
50685
50686         Assume Solaris specific bi-arch conventions on Solaris systems.
50687         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
50688         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
50689         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
50690         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
50691         like acl_libdirstem.
50692         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
50693         acl_libdirstem.
50694         * NEWS: Mention the change.
50695         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
50696
50697 2008-08-31  Jim Meyering  <meyering@redhat.com>
50698
50699         * lib/strftime.h: Add comments describing the two added arguments.
50700
50701         remove duplicate #include directives
50702         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
50703         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
50704
50705 2008-08-31  Bruno Haible  <bruno@clisp.org>
50706
50707         New module 'sigpipe-die'.
50708         * modules/sigpipe-die: New file.
50709         * lib/sigpipe-die.h: New file.
50710         * lib/sigpipe-die.c: New file.
50711         * MODULES.html.sh (Signal handling): Add sigpipe-die.
50712
50713 2008-08-31  Bruno Haible  <bruno@clisp.org>
50714
50715         Don't override previously installed signal handlers.
50716         * lib/fatal-signal.c (saved_sigactions): New variable.
50717         (uninstall_handlers): Reset the signal to the saved handler, not
50718         to SIG_DFL (except when ignored).
50719         (install_handlers): Save the previous handlers.
50720
50721 2008-08-30  Bruno Haible  <bruno@clisp.org>
50722
50723         * gnulib-tool (func_reset_sigpipe): New function.
50724         (func_get_automake_snippet, func_modules_transitive_closure,
50725         func_import): Invoke it before a join command that reads from stdin,
50726         to avoid "echo: write error: Broken pipe" error messages on stderr.
50727         Reported by Sam Steingold <sds@gnu.org>.
50728
50729 2008-08-30  Bruno Haible  <bruno@clisp.org>
50730
50731         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
50732         Code copied from m4/open.m4.
50733         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
50734         access and the filename ends in a slash. Code copied from lib/open.c.
50735         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
50736         * tests/test-fopen.c (main): Check against bug with trailing slash.
50737
50738 2008-08-29  Bruno Haible  <bruno@clisp.org>
50739
50740         Avoid some "gcc -pedantic" warnings.
50741         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
50742         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
50743         * lib/dirent.in.h: Likewise.
50744         * lib/fcntl.in.h: Likewise.
50745         * lib/float.in.h: Likewise.
50746         * lib/iconv.in.h: Likewise.
50747         * lib/inttypes.in.h: Likewise.
50748         * lib/locale.in.h: Likewise.
50749         * lib/math.in.h: Likewise.
50750         * lib/netinet_in.in.h: Likewise.
50751         * lib/search.in.h: Likewise.
50752         * lib/signal.in.h: Likewise.
50753         * lib/stdarg.in.h: Likewise.
50754         * lib/stdint.in.h: Likewise.
50755         * lib/stdio.in.h: Likewise.
50756         * lib/stdlib.in.h: Likewise.
50757         * lib/string.in.h: Likewise.
50758         * lib/strings.in.h: Likewise.
50759         * lib/sys_select.in.h: Likewise.
50760         * lib/sys_socket.in.h: Likewise.
50761         * lib/sys_stat.in.h: Likewise.
50762         * lib/sys_time.in.h: Likewise.
50763         * lib/sysexits.in.h: Likewise.
50764         * lib/time.in.h: Likewise.
50765         * lib/unistd.in.h: Likewise.
50766         * lib/wchar.in.h: Likewise.
50767         * lib/wctype.in.h: Likewise.
50768         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
50769         * modules/fchdir (Makefile.am): Likewise.
50770         * modules/fcntl (Makefile.am): Likewise.
50771         * modules/float (Makefile.am): Likewise.
50772         * modules/iconv_open (Makefile.am): Likewise.
50773         * modules/inttypes (Makefile.am): Likewise.
50774         * modules/locale (Makefile.am): Likewise.
50775         * modules/math (Makefile.am): Likewise.
50776         * modules/netinet_in (Makefile.am): Likewise.
50777         * modules/search (Makefile.am): Likewise.
50778         * modules/signal (Makefile.am): Likewise.
50779         * modules/stdarg (Makefile.am): Likewise.
50780         * modules/stdint (Makefile.am): Likewise.
50781         * modules/stdio (Makefile.am): Likewise.
50782         * modules/stdlib (Makefile.am): Likewise.
50783         * modules/string (Makefile.am): Likewise.
50784         * modules/strings (Makefile.am): Likewise.
50785         * modules/sys_select (Makefile.am): Likewise.
50786         * modules/sys_socket (Makefile.am): Likewise.
50787         * modules/sys_stat (Makefile.am): Likewise.
50788         * modules/sys_time (Makefile.am): Likewise.
50789         * modules/sysexits (Makefile.am): Likewise.
50790         * modules/time (Makefile.am): Likewise.
50791         * modules/unistd (Makefile.am): Likewise.
50792         * modules/wchar (Makefile.am): Likewise.
50793         * modules/wctype (Makefile.am): Likewise.
50794         Reported by Reuben Thomas <rrt@sc3d.org>.
50795
50796 2008-08-29  Bruno Haible  <bruno@clisp.org>
50797
50798         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
50799         any more.
50800
50801 2008-08-29  Simon Josefsson  <simon@josefsson.org>
50802
50803         * MODULES.html.sh (Misc): Add bitrotate.
50804
50805         * modules/bitrotate: New file.
50806
50807         * lib/bitrotate.h: New file.
50808
50809         * modules/bitrotate-tests: New file.
50810
50811         * tests/test-bitrotate.c: New file.
50812
50813         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
50814         on the bitrotate module.
50815
50816         * lib/arctwo.c: Use new bitrotate module.
50817
50818 2008-08-29  Jim Meyering  <meyering@redhat.com>
50819
50820         bootstrap: merge changes from coreutils
50821         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
50822         of copied files.  Remove a kludge, now that this is fixed.
50823         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
50824         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
50825         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
50826
50827 2008-08-29  Bruno Haible  <bruno@clisp.org>
50828
50829         * MODULES.html.sh: Remove --cvs-urls option.
50830
50831 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
50832
50833         maint.mk: adjust to file name change
50834         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
50835
50836 2008-08-28  Jim Meyering  <meyering@redhat.com>
50837
50838         * modules/getndelim2 (License): Relicense to LGPLv2+.
50839         Approved by Richard Stallman for the version of 1995, and by
50840         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
50841
50842 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
50843
50844         * lib/getdelim.c (flockfile, funlockfile): Make all of them
50845         dummy if one is not available.  Do not touch them if
50846         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
50847         (getc_maybe_unlocked): New.
50848         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
50849
50850 2008-08-26  Eric Blake  <ebb9@byu.net>
50851
50852         doc/INSTALL: resync from autoconf
50853         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
50854         (INSTALL_PRELUDE): Delete; this is done more efficiently by
50855         moving...
50856         * install.texi [!autoconf]: ...here.  Resync from autoconf.
50857         * INSTALL: Regenerate.
50858         * INSTALL.ISO: New file.
50859         * INSTALL.UTF-8: Likewise.
50860
50861 2008-08-26  Jim Meyering  <meyering@redhat.com>
50862
50863         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
50864         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
50865         these definitions conditional, so that they may be overridden, too.
50866
50867 2008-08-26  Bruno Haible  <bruno@clisp.org>
50868
50869         Generate INSTALL file variants with prettier quotes.
50870         * doc/Makefile (INSTALL_PRELUDE): New macro.
50871         (INSTALL): Use it.
50872         (INSTALL.ISO, INSTALL.UTF-8): New rules.
50873
50874 2008-08-26  Bruno Haible  <bruno@clisp.org>
50875
50876         Run makeinfo in an English locale.
50877         * doc/Makefile (MAKEINFO): New variable.
50878
50879 2008-08-26  Bruno Haible  <bruno@clisp.org>
50880
50881         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
50882         Suggested by Eric Blake.
50883
50884 2008-08-25  Bruno Haible  <bruno@clisp.org>
50885
50886         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
50887
50888 2008-08-25  Eric Blake  <ebb9@byu.net>
50889
50890         c-stack: test that stack overflow can be caught
50891         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
50892         that platform allows handling stack overflow; at least OS/2 EMX
50893         has sigaltstack, but crashes before transferring control to
50894         handler on stack overflow.
50895         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
50896         check for HAVE_STACK_OVERFLOW_HANDLING.
50897         Reported by Elbert Pol.
50898
50899 2008-08-25  Bruno Haible  <bruno@clisp.org>
50900
50901         * doc/posix-functions/strftime.texi: Fix description of strftime
50902         module.
50903
50904 2008-08-24  Bruno Haible  <bruno@clisp.org>
50905
50906         * tests/uniwidth/test-uc_width2.c: New file.
50907         * tests/uniwidth/test-uc_width2.sh: New file.
50908         * modules/uniwidth/width-tests (Files): Add the new files.
50909         (TESTS): Add uniwidth/test-uc_width2.sh.
50910         (TESTS_ENVIRONMENT): New variable.
50911         (check_PROGRAMS): Add test-uc_width2.
50912         (test_uc_width2_SOURCES): New variable.
50913
50914         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
50915         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
50916         not 0x00AB.
50917         Reported by Alexander V. Lukyanov <lav@netis.ru>.
50918
50919 2008-08-22  Eric Blake  <ebb9@byu.net>
50920
50921         test-lock, test-tls: mention why a test is skipped
50922         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
50923         skipped.
50924         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
50925
50926         count-one-bits: relax license
50927         * modules/count-one-bits (License): Relicense to LGPLv2+.
50928         Suggested by Ludovic Courtès, approved by Ben Pfaff.
50929
50930 2008-08-22  Andreas Schwab  <schwab@suse.de>
50931
50932         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
50933         Remove spurious space in assignment.
50934
50935 2008-08-21  Simon Josefsson  <simon@josefsson.org>
50936
50937         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
50938         Paul Eggert <eggert@CS.UCLA.EDU>.
50939
50940 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
50941
50942         * modules/gettext: Add m4/threadlib.m4.
50943
50944 2008-08-19  Eric Blake  <ebb9@byu.net>
50945
50946         test-c-stack: fix compilation failure on FreeBSD 5.0
50947         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
50948         headers before <sys/resource.h>.
50949         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
50950         the bug.
50951         Reported by Nelson H. F. Beebe.
50952
50953         strverscmp: migrate from "strverscmp.h" to <string.h>
50954         * modules/string (Makefile.am): Add new hooks.
50955         * modules/strverscmp (Files): Remove strverscmp.h.
50956         (Depends-on): Add string.
50957         (configure.ac): Add indicator.
50958         (Include): Mention new header.
50959         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
50960         defaults.
50961         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
50962         results.
50963         * lib/strverscmp.h: Delete.
50964         * lib/string.in.h (strverscmp): Provide declaration, when needed.
50965         * tests/test-strverscmp.c (includes): Adjust client.
50966         * lib/check-version.c (includes): Likewise.
50967         * NEWS: Document the change.
50968
50969         strverscmp: add unit test
50970         * modules/strverscmp-tests: New file.
50971         * tests/test-strverscmp.c: Likewise.
50972
50973 2008-08-19  Simon Josefsson  <simon@josefsson.org>
50974
50975         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
50976         regarding Windows crypto stuff, from Mono.
50977
50978 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
50979
50980         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
50981         if present, for intel RND.  Return error on failures.
50982
50983 2008-08-18  Ben Pfaff  <blp@gnu.org>
50984
50985         gitlog-to-changelog: give better diagnostic for failed pipe-open
50986         * build-aux/gitlog-to-changelog: Improve error message: suggest
50987         that the version of Git may be too old.
50988
50989 2008-08-18  Simon Josefsson  <simon@josefsson.org>
50990
50991         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
50992         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
50993
50994 2008-08-18  Bruno Haible  <bruno@clisp.org>
50995
50996         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
50997         pthread_in_use().
50998
50999 2008-08-18  Bruno Haible  <bruno@clisp.org>
51000
51001         * lib/glthread/threadlib.c: Include <pthread.h>.
51002
51003 2008-08-18  Bruno Haible  <bruno@clisp.org>
51004
51005         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
51006         glthread_recursive_lock_* macros.
51007         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
51008         Fix syntax error.
51009
51010 2008-08-18  Bruno Haible  <bruno@clisp.org>
51011
51012         * lib/glthread/thread.c: Avoid forcing a context switch right after
51013         thread creation.
51014
51015 2008-08-17  Bruno Haible  <bruno@clisp.org>
51016
51017         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
51018         * lib/glthread/thread.h: Provide Win32 specific implementation.
51019         * modules/thread (Files): Add lib/glthread/thread.c.
51020         (Depends-on): Add lock.
51021         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
51022
51023 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
51024
51025         New module 'yield'.
51026         * modules/yield: New file.
51027         * lib/glthread/yield.h: New file.
51028         * m4/yield.m4: New file.
51029         * MODULES.html.sh (Multithreading): Add yield.
51030
51031 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
51032
51033         New module 'thread'.
51034         * modules/thread: New file.
51035         * lib/glthread/thread.h: New file.
51036         * m4/thread.m4: New file.
51037         * MODULES.html.sh (Multithreading): Add thread.
51038
51039 2008-08-17  Bruno Haible  <bruno@clisp.org>
51040
51041         * lib/glthread/lock.h: Include <stdlib.h> always.
51042         * lib/glthread/tls.h: Likewise.
51043         * lib/glthread/cond.h: Likewise.
51044
51045 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
51046
51047         New module 'cond'.
51048         * modules/cond: New file.
51049         * lib/glthread/cond.h: New file.
51050         * lib/glthread/cond.c: New file.
51051         * m4/cond.m4: New file.
51052         * MODULES.html.sh (Multithreading): Add cond.
51053
51054 2008-08-16  Eric Blake  <ebb9@byu.net>
51055
51056         c-stack: fix regression on Irix 5.3 from 2008-06-21
51057         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
51058         sa_sigaction...
51059         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
51060         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
51061         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
51062         * modules/signal (Makefile.am): Use the value.
51063         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
51064         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
51065         * doc/posix-headers/signal.texi (signal.h): Document this
51066         portability issue.
51067         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
51068         Reported by Tom G. Christensen.
51069
51070 2008-08-17  Bruno Haible  <bruno@clisp.org>
51071
51072         New module 'threadlib'.
51073         * modules/threadlib: New file.
51074         * lib/glthread/threadlib.c: New file, extracted from
51075         lib/glthread/lock.c.
51076         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
51077         functions.
51078         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
51079         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
51080         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
51081         macros.
51082         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
51083         (gl_DISABLE_THREADS): Remove macro.
51084         * modules/lock (Files): Remove build-aux/config.rpath.
51085         (Depends-on): Remove havelib. Add threadlib.
51086         (configure.ac-early): Remove section.
51087         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
51088         * modules/tls (Depends-on): Remove lock. Add threadlib.
51089         (Link): New section, copied from threadlib.
51090         * MODULES.html.sh (Multithreading): Add threadlib.
51091
51092 2008-08-14  Bruno Haible  <bruno@clisp.org>
51093
51094         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
51095         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
51096         glthread_rwlock_unlock, glthread_rwlock_destroy,
51097         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
51098         glthread_recursive_lock_destroy): Define as macros always.
51099         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
51100         glthread_lock_lock.
51101         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
51102         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
51103         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
51104         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
51105         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
51106         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
51107         (glthread_recursive_lock_lock_func): Renamed from
51108         glthread_recursive_lock_lock.
51109         (glthread_recursive_lock_unlock_func): Renamed from
51110         glthread_recursive_lock_unlock.
51111         (glthread_recursive_lock_destroy_func): Renamed from
51112         glthread_recursive_lock_destroy.
51113
51114 2008-08-14  Bruno Haible  <bruno@clisp.org>
51115
51116         * lib/glthread/lock.h: Renamed from lib/lock.h.
51117         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
51118         * lib/glthread/tls.h: Renamed from lib/tls.h.
51119         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
51120         * lib/fstrcmp.c: Update includes.
51121         * lib/strsignal.c: Update includes.
51122         * modules/lock (Files, Makefile.am): Update.
51123         (Include): Change to "glthread/lock.h".
51124         * modules/tls (Files, Makefile.am): Update.
51125         (Include): Change to "glthread/tls.h".
51126         * tests/test-lock.c: Update includes.
51127         * tests/test-tls.c: Update includes.
51128         * NEWS: Mention the renamed header files.
51129
51130 2008-08-11  Jim Meyering  <meyering@redhat.com>
51131
51132         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
51133
51134 2008-08-11  Eric Blake  <ebb9@byu.net>
51135
51136         test-c-stack: avoid C99-ism
51137         * tests/test-c-stack.c (main): Fix whitespace, move declaration
51138         before statement.
51139         Reported by Alain Guibert.
51140
51141 2008-08-10  Jim Meyering  <meyering@redhat.com>
51142
51143         ensure that return value of uinttostr et al are not ignored
51144         * lib/inttostr.h (__GNUC_PREREQ): Define.
51145         (__attribute_warn_unused_result__): Define.
51146         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
51147
51148 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
51149
51150         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
51151         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
51152
51153 2008-08-07  Jim Meyering  <meyering@redhat.com>
51154
51155         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
51156
51157         * modules/mkstemp (License): Relicense under LGPLv2+.
51158         * modules/tempname (License): Likewise.
51159
51160 2008-08-06  Bruno Haible  <bruno@clisp.org>
51161
51162         * lib/poll.c (poll): Further micro-optimization.
51163
51164 2008-08-06  Jim Meyering  <meyering@redhat.com>
51165
51166         inet_pton.c: use locale-independent tolower
51167         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
51168         (inet_pton6): Use c_tolower rather than tolower.
51169         * modules/inet_pton (Depends-on): Add c-ctype.
51170
51171 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
51172
51173         * lib/poll.c (poll): Avoid division when timeout is 0, cache
51174         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
51175
51176 2008-08-06  Jim Meyering  <meyering@redhat.com>
51177
51178         * modules/inet_pton (License): Relicense under LGPLv2+.
51179
51180 2008-08-03  Bruno Haible  <bruno@clisp.org>
51181
51182         Additional non-aborting API for lock and tls.
51183         * lib/lock.h: Include <errno.h>.
51184         (glthread_lock_init): New macro/function.
51185         (gl_lock_init): Define as wrapper around glthread_lock_init.
51186         (glthread_lock_lock): New macro/function.
51187         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
51188         (glthread_lock_unlock): New macro/function.
51189         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
51190         (glthread_lock_destroy): New macro/function.
51191         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
51192         (glthread_rwlock_init): New macro/function.
51193         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
51194         (glthread_rwlock_rdlock): New macro/function.
51195         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
51196         (glthread_rwlock_wrlock): New macro/function.
51197         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
51198         (glthread_rwlock_unlock): New macro/function.
51199         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
51200         (glthread_rwlock_destroy): New macro/function.
51201         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
51202         (glthread_recursive_lock_init): New macro/function.
51203         (gl_recursive_lock_init): Define as wrapper around
51204         glthread_recursive_lock_init.
51205         (glthread_recursive_lock_lock): New macro/function.
51206         (gl_recursive_lock_lock): Define as wrapper around
51207         glthread_recursive_lock_lock.
51208         (glthread_recursive_lock_unlock): New macro/function.
51209         (gl_recursive_lock_unlock): Define as wrapper around
51210         glthread_recursive_lock_unlock.
51211         (glthread_recursive_lock_destroy): New macro/function.
51212         (gl_recursive_lock_destroy): Define as wrapper around
51213         glthread_recursive_lock_destroy.
51214         (glthread_once): New macro/function.
51215         (gl_once): Define as wrapper around glthread_once.
51216         Update function declarations.
51217         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
51218         glthread_rwlock_init. Return error code.
51219         (glthread_rwlock_rdlock_multithreaded): Renamed from
51220         glthread_rwlock_rdlock. Return error code.
51221         (glthread_rwlock_wrlock_multithreaded): Renamed from
51222         glthread_rwlock_wrlock. Return error code.
51223         (glthread_rwlock_unlock_multithreaded): Renamed from
51224         glthread_rwlock_unlock. Return error code.
51225         (glthread_rwlock_destroy_multithreaded): Renamed from
51226         glthread_rwlock_destroy. Return error code.
51227         (glthread_recursive_lock_init_multithreaded): Renamed from
51228         glthread_recursive_lock_init. Return error code.
51229         (glthread_recursive_lock_lock_multithreaded): Renamed from
51230         glthread_recursive_lock_lock. Return error code.
51231         (glthread_recursive_lock_unlock_multithreaded): Renamed from
51232         glthread_recursive_lock_unlock. Return error code.
51233         (glthread_recursive_lock_destroy_multithreaded): Renamed from
51234         glthread_recursive_lock_destroy. Return error code.
51235         (glthread_once_call): Make static.
51236         (glthread_once_multithreaded): Renamed from glthread_once.
51237         * lib/tls.h: Include <errno.h>.
51238         (glthread_tls_key_init): New macro/function.
51239         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
51240         (glthread_tls_set): New macro/function.
51241         (gl_tls_set): Define as wrapper around glthread_tls_set.
51242         (glthread_tls_key_destroy): New macro/function.
51243         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
51244         Update function declarations.
51245         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
51246         glthread_tls_get.
51247         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
51248
51249 2008-08-04  Eric Blake  <ebb9@byu.net>
51250
51251         gnumakefile: use space, not TAB, outside of targets
51252         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
51253
51254 2008-08-02  Jim Meyering  <meyering@redhat.com>
51255
51256         getdate.y: avoid locale-dependent date parsing failure
51257         In Turkish locales, getdate would fail to recognize keywords
51258         containing a lowercase "i".  The solution is not to rely on
51259         locale-sensitive case-conversion.
51260         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
51261         (lookup_word): Use c_toupper in place of toupper.
51262         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
51263         Reported by Vefa Bicakci <bicave@superonline.com> in
51264         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
51265         * modules/getdate (Depends-on): Add c-ctype.
51266
51267 2008-08-02  Bruno Haible  <bruno@clisp.org>
51268
51269         * gnulib-tool (func_import): When updating or creating a .gitignore
51270         file, prepend each added line with a slash, and ignore leading slashes
51271         from the existing lines.
51272         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
51273
51274 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51275
51276         Portability fix for GNU make 3.79.1.
51277         * top/GNUmakefile: Avoid 'else COND', which older GNU make
51278         versions do not understand.
51279
51280 2008-08-01  Bruno Haible  <bruno@clisp.org>
51281
51282         Work around bug of HP-UX 10.20 cc with -0.0 literal.
51283         * tests/test-isnanf.h (zero): New variable.
51284         (main): Avoid literal -0.0f.
51285         * tests/test-isnand.h (zero): New variable.
51286         (main): Avoid literal -0.0.
51287         * tests/test-isnanl.h (zero): New variable.
51288         (main): Avoid literal -0.0L.
51289         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
51290         (test_float, test_double, test_long_double): Avoid literals -0.0f,
51291         -0.0, -0.0L.
51292         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
51293         (test_signbitd): Avoid literal -0.0.
51294         (test_signbitl): Avoid literal -0.0L.
51295         * tests/test-ceilf1.c (zero): New variable.
51296         (main): Avoid literal -0.0f.
51297         * tests/test-ceill.c (zero): New variable.
51298         (main): Avoid literal -0.0L.
51299         * tests/test-floorf1.c (zero): New variable.
51300         (main): Avoid literal -0.0f.
51301         * tests/test-floorl.c (zero): New variable.
51302         (main): Avoid literal -0.0L.
51303         * tests/test-roundf1.c (zero): New variable.
51304         (main): Avoid literal -0.0f.
51305         * tests/test-round1.c (zero): New variable.
51306         (main): Avoid literal -0.0.
51307         * tests/test-roundl.c (zero): New variable.
51308         (main): Avoid literal -0.0L.
51309         * tests/test-truncf1.c (zero): New variable.
51310         (main): Avoid literal -0.0f.
51311         * tests/test-trunc1.c (zero): New variable.
51312         (main): Avoid literal -0.0.
51313         * tests/test-truncl.c (zero): New variable.
51314         (main): Avoid literal -0.0L.
51315         * tests/test-frexp.c (zero): New variable.
51316         (main): Avoid literal -0.0.
51317         * tests/test-frexpl.c (zero): New variable.
51318         (main): Avoid literal -0.0L.
51319         * tests/test-ldexpl.c (zero): New variable.
51320         (main): Avoid literal -0.0L.
51321         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
51322         (zerod, zerol): New variables.
51323         (test_function): Avoid literals -0.0, -0.0L.
51324         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
51325         (zerod, zerol): New variables.
51326         (test_function): Avoid literals -0.0, -0.0L.
51327         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
51328         (zerod, zerol): New variables.
51329         (test_function): Avoid literals -0.0, -0.0L.
51330         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
51331         (zerod, zerol): New variables.
51332         (test_function): Avoid literals -0.0, -0.0L.
51333         * tests/test-strtod.c (zero): New variable.
51334         (main): Avoid literal -0.0.
51335         Reported by Jonathan C. Patschke <jp@centtech.com>.
51336
51337 2008-07-31  Jim Meyering  <meyering@redhat.com>
51338
51339         sha256.h: correct definition of SHA224_DIGEST_SIZE
51340         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
51341         Reported by Paulie Pena IV <paulie4@gmail.com>.
51342         Define as 224 / 8, rather than as a literal.
51343         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
51344         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
51345         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
51346
51347 2008-07-31  Bruno Haible  <bruno@clisp.org>
51348
51349         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
51350         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
51351         Reported by Jonathan Patschke <jp@centtech.com>.
51352
51353 2008-07-31  Bruno Haible  <bruno@clisp.org>
51354
51355         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
51356         Reported by Paolo Bonzini <bonzini@gnu.org>.
51357
51358 2008-07-30  Eric Blake  <ebb9@byu.net>
51359
51360         test-strtod: allow compilation without -lm
51361         * tests/test-strtod.c (main): Avoid link dependence on fabs.
51362         Reported by Dennis Clarke <blastwave@gmail.com>.
51363
51364 2008-07-28  Jim Meyering  <meyering@redhat.com>
51365
51366         bootstrap: work also when there are no .po files in po/
51367         * build-aux/bootstrap (update_po_files): Complete the change
51368         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
51369
51370 2008-07-27  Jim Meyering  <meyering@redhat.com>
51371
51372         * users.txt: Add zile.
51373
51374 2008-07-26  Ben Pfaff  <blp@gnu.org>
51375
51376         Add missing dependencies on new m4/exponent[fdl].m4 files.
51377         * modules/isnanf-nolibm: Add m4/exponentf.m4.
51378         * modules/isnand-nolibm: Add m4/exponentd.m4.
51379         * modules/isnanl-nolibm: Add m4/exponentl.m4.
51380         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
51381         m4/isnan[fdl].m4, because the macros actually used moved.
51382         Reported by Jim Meyering.
51383
51384 2008-07-14  Ben Pfaff  <blp@gnu.org>
51385
51386         Add isinf module.
51387         * lib/isinf.c: New file.
51388         * lib/math.in.h: Define isinf macro if we have decided to replace
51389         it.
51390         * m4/isinf.m4: New file.
51391         * m4/math_h.m4: Initialize and substitute variables for isinf
51392         module.
51393         * modules/isinf: New file.
51394         * modules/isinf-tests: New file.
51395         * modules/math: Add substitutions for new module.
51396         * tests/test-isinf.c: New file.
51397         * doc/posix-functions/isinf.texi: Mention new module.
51398         * MODULES.html.sh: Mention new module.
51399
51400 2008-07-14  Ben Pfaff  <blp@gnu.org>
51401
51402         Factor out some macros for use by additional modules.
51403         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
51404         exponentf.m4.
51405         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
51406         exponentd.m4.
51407         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
51408         file exponentl.m4.
51409         * m4/exponentf.m4: New file.
51410         * m4/exponentd.m4: New file.
51411         * m4/exponentl.m4: New file.
51412         * modules/isnanf: Use new file m4/exponentf.m4.
51413         * modules/isnand: Use new file m4/exponentd.m4.
51414         * modules/isnanl: Use new file m4/exponentl.m4.
51415
51416 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
51417
51418         mktime.c: normalize tp->tm_isdst value to -1/0/1.
51419         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
51420         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
51421         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
51422
51423         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
51424         readlink on platforms without PATH_MAX.
51425
51426 2008-07-21  Eric Blake  <ebb9@byu.net>
51427
51428         Warn, not fail, on stale version.
51429         * top/GNUmakefile (_curr-ver): Tone down previous patch.
51430
51431         Don't allow installation with stale devel version number.
51432         * top/GNUmakefile (_is-install-target): New macro.
51433         (_curr-ver): Forbid installation with stale version number.
51434
51435 2008-07-20  Bruno Haible  <bruno@clisp.org>
51436
51437         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
51438         TESTS_ENVIRONMENT.
51439         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
51440
51441 2008-07-20  Bruno Haible  <bruno@clisp.org>
51442
51443         * lib/c-stack.h (c_stack_action): Add documentation.
51444         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
51445
51446 2008-07-20  Bruno Haible  <bruno@clisp.org>
51447
51448         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
51449         * modules/readlink (License): Likewise.
51450
51451 2008-07-17  Eric Blake  <ebb9@byu.net>
51452
51453         * modules/c-stack (Link): Fix typo.
51454
51455         Make c-stack use libsigsegv, when available.
51456         * modules/c-stack (Depends-on): Add libsigsegv.
51457         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
51458         needed.
51459         * lib/c-stack.c (SIGSTKSZ): Define fallback.
51460         (segv_handler, overflow_handler, c_stack_action)
51461         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
51462         implementation when libsigsegv is available, but only when using
51463         the library is necessary.
51464         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
51465         comment, explaining why XSI check fails on Linux.
51466         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
51467         * tests/test-c-stack2.sh: Tweak skip message.
51468         * NEWS: Document new link-time requirements.
51469
51470 2008-07-16  Eric Blake  <ebb9@byu.net>
51471
51472         c-stack: Expose false positives when not using libsigsegv.
51473         * modules/c-stack-tests (Files): Expand test.
51474         * tests/test-c-stack.c (main): Add means to conditionally trigger
51475         non-overflow SIGSEGV.
51476         * tests/test-c-stack2.sh: New file.
51477
51478 2008-07-14  Bruno Haible  <bruno@clisp.org>
51479
51480         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
51481         Reported by Eric Blake.
51482
51483 2008-07-14  Sam Steingold  <sds@gnu.org>
51484             Bruno Haible  <bruno@clisp.org>
51485
51486         New module libsigsegv.
51487         * modules/libsigsegv: New file.
51488         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
51489         modifications.
51490         * MODULES.html.sh (Signal handling): New section.
51491
51492 2008-07-14  Bruno Haible  <bruno@clisp.org>
51493
51494         * modules/unictype/ctype-* (Description): Add the word "function".
51495         Improves the resulting doc in MODULES.html.
51496
51497 2008-07-12  Ben Pfaff  <blp@gnu.org>
51498
51499         Add longlong module.
51500         * modules/longlong: New file.
51501
51502 2008-07-12  Bruno Haible  <bruno@clisp.org>
51503
51504         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
51505         to empty.
51506
51507 2008-07-10  Ben Pfaff  <blp@gnu.org>
51508
51509         Add isnan module.
51510         * doc/posix-functions/isnan.texi: Mention new module.
51511         * lib/math.in.h: Define isnan macro if we have decided to replace
51512         it.
51513         * m4/isnan.m4: New file.
51514         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
51515         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
51516         also.
51517         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
51518         redundancy.
51519         * m4/math_h.m4: Initialize and substitute variables for isnan
51520         module.
51521         * modules/isnan: New file.
51522         * modules/isnan-tests: New file.
51523         * modules/math: Add substitutions for new module.
51524         * tests/test-isnan.c: New file.
51525         * MODULES.html.sh: Mention new module.
51526
51527 2008-07-10  Ben Pfaff  <blp@gnu.org>
51528
51529         Add isnanf module.
51530         * lib/isnanf.m4: New file.
51531         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
51532         (gl_HAVE_ISNANF_IN_LIBM): New macro.
51533         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
51534         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
51535         * modules/isnanf: New file.
51536         * modules/isnanf-tests: New file.
51537         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
51538         files.
51539         * tests/test-isnanf-nolibm.c: factored most of its contents into
51540         new file tests/test-isnanf.h.
51541         * tests/test-isnanf.h: New file.
51542         * tests/test-isnanf.c: New file.
51543         * MODULES.html.sh: Mention new module.
51544         * doc/glibc-functions/isnanf.texi: Mention new module.
51545
51546 2008-07-10  Ben Pfaff  <blp@gnu.org>
51547
51548         Add isnand module.
51549         * lib/isnand.h: New file.
51550         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
51551         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
51552         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
51553         functionality also.
51554         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
51555         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
51556         (gl_HAVE_ISNAND_IN_LIBM): New macro.
51557         * modules/isnand: New file.
51558         * modules/isnand-tests: New file.
51559         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
51560         files.
51561         * tests/test-isnand-nolibm.c: factored most of its contents into
51562         new file tests/test-isnand.h.
51563         * tests/test-isnand.h: New file.
51564         * tests/test-isnand.c: New file.
51565         * MODULES.html.sh: Mention new module.
51566
51567 2008-07-10  Ben Pfaff  <blp@gnu.org>
51568
51569         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
51570         * lib/isnand.h: Rename lib/isnand-nolibm.h.
51571         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
51572         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
51573         * modules/isnanf-nolibm: Update references to renamed files.
51574         * modules/isnand-nolibm: Likewise.
51575         * modules/isnanf-nolibm-tests: Likewise.
51576         * modules/isnand-nolibm-tests: Likewise.
51577         * lib/frexp.c: Likewise.
51578         * lib/isfinite.c: Likewise.
51579         * lib/signbitd.c: Likewise.
51580         * lib/signbitf.c: Likewise.
51581         * lib/vasnprintf.c: Likewise.
51582         * tests/test-ceilf1.c: Likewise.
51583         * tests/test-ceilf2.c: Likewise.
51584         * tests/test-floorf1.c: Likewise.
51585         * tests/test-floorf2.c: Likewise.
51586         * tests/test-frexp.c: Likewise.
51587         * tests/test-round1.c: Likewise.
51588         * tests/test-round2.c: Likewise.
51589         * tests/test-roundf1.c: Likewise.
51590         * tests/test-strtod.c: Likewise.
51591         * tests/test-trunc1.c: Likewise.
51592         * tests/test-trunc2.c: Likewise.
51593         * tests/test-truncf1.c: Likewise.
51594         * tests/test-truncf2.c: Likewise.
51595         * NEWS: Mention the renamed header files.
51596
51597 2008-07-11  Jim Meyering  <meyering@redhat.com>
51598
51599         vc-list-files: make the last-resort awk code more portable
51600         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
51601         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
51602         does not support it.
51603
51604 2008-07-10  Eric Blake  <ebb9@byu.net>
51605
51606         Work with tar's bootstrap.
51607         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
51608         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
51609         an m4 comment.
51610
51611 2008-07-09  Jim Meyering  <meyering@redhat.com>
51612
51613         posix-shell.m4: fix typo that made this test malfunction
51614         * m4/posix-shell.m4: Remove capitalization in variable name.
51615
51616 2008-07-08  Bruno Haible  <bruno@clisp.org>
51617
51618         * m4/onceonly.m4: Update comments.
51619         Reported by Ben Pfaff <blp@cs.stanford.edu>.
51620
51621 2008-07-04  Jim Meyering  <meyering@redhat.com>
51622
51623         * users.txt: Add vc-dwim.
51624         (bison, coreutils): Use the gitweb URL.
51625
51626 2008-07-03  Jim Meyering  <meyering@redhat.com>
51627
51628         * users.txt: Add libffcall.  From Sam Steingold.
51629
51630 2008-07-03  OndÅ™ej Vašík  <ovasik@redhat.com>
51631
51632         getdate.y: do not ignore TZ with relative day, month or year offset
51633         * lib/getdate.y (get_date): Move the tz-handling block to follow the
51634         relative-date-handling, since otherwise, the latter would clobber the
51635         sole output (an updated Start value) of the tz-handling block.
51636         * tests/test-getdate.c: Tests for the fix
51637
51638 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51639
51640         Recognize 'foo_LIBRARIES += libgnu.a'.
51641         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
51642         makefile snippet has already specified an installation location,
51643         also using '+='.
51644
51645 2008-07-02  OndÅ™ej Vašík  <ovasik@redhat.com>
51646
51647         getdate.y: factor out common actions
51648         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
51649         Use them in place of open-coded actions.
51650
51651 2008-07-01  Simon Josefsson  <simon@josefsson.org>
51652
51653         Add self-test for getdate module.
51654         * modules/getdate-tests: New file.
51655         * tests/test-getdate.c: New file.
51656
51657 2008-06-29  Bruno Haible  <bruno@clisp.org>
51658
51659         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
51660         .gitignore.
51661         Reported by Sylvain Beucler <beuc@beuc.net>.
51662
51663 2008-06-29  Bruno Haible  <bruno@clisp.org>
51664
51665         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
51666         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
51667
51668 2008-06-29  Bruno Haible  <bruno@clisp.org>
51669
51670         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
51671         EXTRA_DIST.
51672         Reported by Sylvain Beucler <beuc@beuc.net>.
51673
51674 2008-06-26  Jim Meyering  <meyering@redhat.com>
51675
51676         make several modules depend on the "open" module
51677         This provides slightly increased consistency when opening-for-write
51678         the name of a non-directory spelled with a trailing slash.
51679         * modules/chdir-safer: Likewise.
51680         * modules/chown: Likewise.
51681         * modules/clean-temp: Likewise.
51682         * modules/copy-file: Likewise.
51683         * modules/fchdir: Likewise.
51684         * modules/fcntl-safer: Likewise.
51685         * modules/pipe: Likewise.
51686         * modules/utime: Likewise.
51687         Prompted by Eric Blake and Bruno Haible.
51688
51689 2008-06-24  Andreas Schwab  <schwab@suse.de>
51690
51691         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
51692         literals can be used as initializers for global variables.
51693
51694 2008-06-23  Eric Blake  <ebb9@byu.net>
51695
51696         Make gnulib-cache.m4 easier to diff.
51697         * gnulib-tool (func_import): Allow newlines when reading cached
51698         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
51699
51700 2008-06-23  Bruno Haible  <bruno@clisp.org>
51701
51702         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
51703         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
51704         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
51705         m4/signalblocking.m4.
51706         (gl_PREREQ_SIGACTION): Don't invoke it.
51707         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
51708         gl_PREREQ_SIG_HANDLER_H.
51709         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
51710         Don't check for sigaction here.
51711
51712 2008-06-23  Bruno Haible  <bruno@clisp.org>
51713
51714         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
51715         (install_handlers): Don't set the SA_RESETHAND flag.
51716
51717 2008-06-23  Bruno Haible  <bruno@clisp.org>
51718
51719         * m4/sigaction.m4: Comment fixes.
51720         * lib/signal.in.h: Likewise.
51721
51722 2008-06-23  Eric Blake  <ebb9@byu.net>
51723
51724         Fix typo.
51725         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
51726
51727         Avoid SA_ namespace.
51728         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
51729         Reported by Ralf Wildenhues.
51730
51731         Avoid test failure due to SA_RESTORER.
51732         * tests/test-sigaction.c (SA_MASK): New macro.
51733         (main): Avoid failing due to extension flags being set.
51734         Reported by Jim Meyering.
51735
51736         Revert use of sig-handler.h in sigprocmask.c.
51737         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
51738         it requires the existence of struct sigaction.
51739         * lib/sigprocmask.c (handler_t): Restore typedef.
51740         (rpl_signal, old_handlers): Use local type.
51741
51742 2008-06-22  Bruno Haible  <bruno@clisp.org>
51743
51744         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
51745         conditionally.
51746         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
51747
51748 2008-06-22  Bruno Haible  <bruno@clisp.org>
51749
51750         * doc/posix-functions/siginterrupt.texi: Move note.
51751
51752         * lib/signal.in.h (SA_RESTART): New macro.
51753         * lib/sigaction.c: Update comment.
51754
51755         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
51756
51757         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
51758         (gl_PREREQ_SIGPROCMASK): Invoke it.
51759         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
51760
51761         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
51762
51763         * lib/sigprocmask.c: Update a comment.
51764
51765 2008-06-21  Eric Blake  <ebb9@byu.net>
51766
51767         Use sigaction module rather than signal().
51768         * modules/c-stack (Depends-on): Add sigaction.
51769         * modules/fatal-signal (Depends-on): Likewise.
51770         * modules/nanosleep (Depends-on): Likewise.
51771         * modules/sigprocmask (Files): Add sig-handler.h.
51772         * modules/sigaction (Files): Likewise.
51773         * lib/sig-handler.h (get_handler): New file, suggested by Paul
51774         Eggert.
51775         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
51776         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
51777         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
51778         (init_fatal_signals): Likewise.
51779         * lib/nanosleep.c (rpl_nanosleep): Likewise.
51780         (siginterrupt): Delete fallback.
51781         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
51782         instead.
51783         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
51784         siginterrupt.
51785
51786         New module sigaction, for mingw.
51787         * modules/sigaction: New module...
51788         * modules/sigaction-tests: ...and its test.
51789         * m4/sigaction.m4: New file.
51790         * lib/sigaction.c: Likewise.
51791         * tests/test-sigaction.c: Likewise.
51792         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
51793         * modules/signal (Makefile.am): Likewise.
51794         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
51795         needed.
51796         * doc/posix-headers/signal.texi (signal.h): Mention provided
51797         types.
51798         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
51799         that sigaction is preferable.
51800         * doc/posix-functions/sigaction.texi (sigaction): Mention new
51801         module.
51802         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
51803         sigaction.
51804
51805         Improve robustness of sigprocmask by overriding signal.
51806         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
51807         is in use.
51808         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
51809         (SIGKILL, SIGSTOP): Provide fallbacks.
51810         (rpl_signal): Implement.
51811         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
51812         signal can be called inside handlers.
51813
51814         Fix nanosleep module on mingw.
51815         * modules/nanosleep (Depends-on): Add sys_select.
51816         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
51817
51818         Fix licensing of sigprocmask.
51819         * modules/raise (License): Relicense as LGPL.
51820
51821 2008-06-21  Bruno Haible  <bruno@clisp.org>
51822
51823         * lib/propername.c (proper_name_utf8): Don't use the transliterated
51824         result if it contains question marks.
51825         Reported by Michael Geng <linux@michaelgeng.de>.
51826
51827 2008-06-19  Bruno Haible  <bruno@clisp.org>
51828
51829         Fix CVS-ism.
51830         * doc/gnulib.texi: Include updated-stamp.texi.
51831         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
51832         (updated-stamp.texi): New rule.
51833         (gnulib.info): Depend on it.
51834         * doc/.gitignore: Add updated-stamp.texi.
51835         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
51836
51837 2008-06-19  Bruno Haible  <bruno@clisp.org>
51838
51839         * doc/Makefile (gnulib.info): Update and simplify dependencies.
51840         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
51841
51842 2008-06-19  Eric Blake  <ebb9@byu.net>
51843
51844         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
51845         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
51846         Reported by Stepan Kasal.
51847
51848 2008-06-18  Bruno Haible  <bruno@clisp.org>
51849
51850         * lib/fatal-signal.c (init_fatal_signals): Add comment.
51851         Reported by Eric Blake.
51852
51853 2008-06-18  Eric Blake  <ebb9@byu.net>
51854
51855         Work around cygwin 1.5.25 strsignal bug.
51856         * tests/test-strsignal.c: Allow for const char *.
51857         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
51858
51859 2008-06-18  Simon Josefsson  <simon@josefsson.org>
51860
51861         * users.txt: Update URL to article and add author/date
51862         information.
51863
51864 2008-06-17  Bruno Haible  <bruno@clisp.org>
51865
51866         New macro gl_DISABLE_THREADS.
51867         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
51868         if the user did not pass --enable-threads or --disable-threads option.
51869         (gl_DISABLE_THREADS): New macro.
51870         Reported by Eric Blake <ebb9@byu.net>.
51871
51872 2008-06-17  Bruno Haible  <bruno@clisp.org>
51873
51874         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
51875         when the macro ignores it.
51876         Based on a patch by Eric Blake <ebb9@byu.net>.
51877
51878 2008-06-17  Bruno Haible  <bruno@clisp.org>
51879
51880         * modules/tls (License): Change to LGPLv2+.
51881         Reported by Eric Blake.
51882
51883 2008-06-17  Eric Blake  <ebb9@byu.net>
51884
51885         Simplify c-stack prerequisites.
51886         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
51887         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
51888         no longer requires <ucontext.h> to exist.  Optimize setrlimit
51889         check.
51890         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
51891         <sys/resource.h>.
51892
51893         Move c-stack test into testsuite.
51894         * modules/c-stack-tests: New file.
51895         * lib/c-stack.c [DEBUG]: Move test program...
51896         * tests/test-c-stack.c: ...into this new file.  Skip rather than
51897         fail test if sigaltstack is lacking.
51898         * tests/test-c-stack.sh: New driver file.
51899
51900 2008-06-16  Eric Blake  <ebb9@byu.net>
51901
51902         Use raise module consistently.
51903         * modules/fatal-signal (Depends-on): Add raise.
51904         * modules/sigprocmask (Depends-on): Likewise.
51905         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
51906         * lib/sigprocmask.c (sigprocmask): Likewise.
51907         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
51908         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
51909
51910         Fix compliance bug in sigpending.
51911         * lib/sigprocmask.c (sigpending): Return pending array via
51912         parameter, not return value.
51913
51914 2008-06-14  Eric Blake  <ebb9@byu.net>
51915
51916         Improve obstack-printf test code.
51917         * tests/test-obstack-printf.c (test_function): Fix comment, and
51918         simplify usage of obstack_* in macros.  Add a test for coverage.
51919         Reported by Bruno Haible.
51920
51921 2008-06-14  Bruno Haible  <bruno@clisp.org>
51922
51923         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
51924         array size as a constant, not as a const variable.
51925         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
51926         AC_USE_SYSTEM_EXTENSIONS.
51927         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
51928         Test whether the obstack_printf function actually exists.
51929         * modules/obstack-printf (Depends-on): Add extensions.
51930         (Include): Remove obstack.h.
51931         * modules/obstack-printf-posix (Depends-on): Add extensions.
51932         (Include): Remove obstack.h.
51933
51934 2008-06-13  Eric Blake  <ebb9@byu.net>
51935
51936         Add obstack-printf and obstack-printf-posix modules.
51937         * modules/obstack-printf: New file.
51938         * modules/obstack-printf-posix: Likewise.
51939         * MODULES.html.sh (Misc): Mention them.
51940         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
51941         Likewise.
51942         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
51943         Likewise.
51944         * modules/stdio (Makefile.am): Accomodate new modules.
51945         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
51946         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
51947         Declare.
51948         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
51949         functions.
51950         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
51951         (gl_REPLACE_OBSTACK_PRINTF): New macros
51952         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
51953         * tests/test-obstack-printf.c: New file.
51954         * modules/obstack-printf-tests: Likewise.
51955         * modules/obstack-printf-posix-tests: Likewise.
51956
51957 2008-06-11  Bruno Haible  <bruno@clisp.org>
51958
51959         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
51960         * lib/open.c: Include errno.h.
51961         (open): Fail when attempting to write to a file that has a trailing
51962         slash.
51963         * tests/test-open.c (main): Test against trailing slash bug.
51964         * doc/posix-functions/open.texi: Mention the trailing slash bug.
51965
51966 2008-06-10  Bruno Haible  <bruno@clisp.org>
51967
51968         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
51969         for $? to work inside the trap command, with various /bin/sh-s.
51970         * tests/test-vc-list-files-cvs.sh: Likewise.
51971
51972 2008-06-10  Bruno Haible  <bruno@clisp.org>
51973
51974         * lib/acl-internal.h: Don't include gettext.h here.
51975         * lib/set-mode-acl.c: Include gettext.h here.
51976         * lib/copy-acl.c: Likewise.
51977
51978 2008-06-10  Bruno Haible  <bruno@clisp.org>
51979
51980         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
51981         * lib/wait-process.c (wait_subprocess): Likewise.
51982         * lib/execute.h (execute): Add termsigp argument.
51983         * lib/execute.c (execute): Likewise.
51984         * lib/csharpcomp.c (compile_csharp_using_pnet,
51985         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
51986         * lib/csharpexec.c (execute_csharp_using_pnet,
51987         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
51988         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
51989         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
51990         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
51991         is_jikes_present): Update.
51992         * lib/javaexec.c (execute_java_class): Update.
51993         * lib/javaversion.c (execute_and_read_line): Update.
51994         * NEWS: Document the changes.
51995         Reported by Eric Blake.
51996
51997 2008-06-10  Eric Blake  <ebb9@byu.net>
51998
51999         Add missing include.
52000         * tests/test-strstr.c (includes): Add <signal.h>.
52001         * tests/test-strcasestr.c (includes): Likewise.
52002         * tests/test-memmem.c (includes): Likewise.
52003
52004 2008-06-10  Bruno Haible  <bruno@clisp.org>
52005
52006         * lib/wait-process.c (wait_subprocess): Add an assertion.
52007
52008 2008-06-10  Bruno Haible  <bruno@clisp.org>
52009
52010         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
52011
52012 2008-06-10  Bruno Haible  <bruno@clisp.org>
52013
52014         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
52015         using alarm().
52016         * tests/test-strcasestr.c (main): Likewise.
52017         * tests/test-strstr.c (main): Likewise.
52018
52019 2008-06-09  Bruno Haible  <bruno@clisp.org>
52020
52021         Work around the Solaris 10 ACE ACLs ABI change.
52022         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
52023         declare if ACL_NO_TRIVIAL is present.
52024         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
52025         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
52026         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
52027         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
52028         define if ACL_NO_TRIVIAL is present.
52029         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
52030         and use the current ABI.
52031         (file_has_acl): Use same #if condition as elsewhere.
52032         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
52033         in use, and use the current ABI.
52034         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
52035         Reported by Jim Meyering.
52036
52037 2008-06-09  Eric Blake  <ebb9@byu.net>
52038
52039         Work around environments that (stupidly) ignore SIGALRM.
52040         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
52041         before using alarm().
52042         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
52043         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
52044         Reported by Ian Beckwith <ianb@erislabs.net>.
52045
52046         Produce autobuild blurb earlier in log.
52047         * modules/autobuild (configure.ac-early): Move AB_INIT here.
52048
52049 2008-06-09  Jim Meyering  <meyering@redhat.com>
52050         and OndÅ™ej Vašík  <ovasik@redhat.com>
52051
52052         utimens.c: correct kernel bug work-around
52053         OndÅ™ej Vašík found that the invalid return value of 280 indicates
52054         failure, not success, and the kernel bug we're trying to work
52055         around affects not just the utimensat call, but also the fallback
52056         futimens call.
52057         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
52058         not success.
52059         [HAVE_FUTIMENS]: Use the same work-around, here.
52060
52061 2008-06-09  Jim Meyering  <meyering@redhat.com>
52062
52063         add more guards around definition of ACE_-related code
52064         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
52065         ALLOW and ACE_OWNER are also defined.
52066
52067 2008-06-08  Bruno Haible  <bruno@clisp.org>
52068
52069         * lib/acl-internal.h: Add me as co-author.
52070         * lib/file-has-acl.c: Likewise.
52071         * lib/set-mode-acl.c: Likewise.
52072         * lib/copy-acl.c: Likewise.
52073
52074 2008-06-08  Bruno Haible  <bruno@clisp.org>
52075
52076         Add support for AIX ACLs.
52077         * lib/acl-internal.h (acl_nontrivial): New declaration.
52078         * lib/file-has-acl.c (acl_nontrivial): New function.
52079         (file_has_acl): Add implementation using AIX 4 ACL API.
52080         * lib/set-mode-acl.c (qset_acl): Likewise.
52081         * lib/copy-acl.c (qcopy_acl): Likewise.
52082
52083 2008-06-08  Bruno Haible  <bruno@clisp.org>
52084
52085         Add support for HP-UX ACLs.
52086         * lib/acl-internal.h (acl_nontrivial): New declaration.
52087         * lib/file-has-acl.c (acl_nontrivial): New function.
52088         (file_has_acl): Add implementation using HP-UX 11 ACL API.
52089         * lib/set-mode-acl.c (qset_acl): Likewise.
52090         * lib/copy-acl.c (qcopy_acl): Likewise.
52091
52092 2008-06-08  Bruno Haible  <bruno@clisp.org>
52093
52094         Add support for Cygwin ACLs.
52095         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
52096         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
52097         the chmod_or_fchmod call.
52098         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
52099
52100 2008-06-08  Bruno Haible  <bruno@clisp.org>
52101
52102         Fix bug with setuid modes in Solaris 10+ code.
52103         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
52104         succeeded, when the mode contains some special bits.
52105
52106 2008-06-08  Bruno Haible  <bruno@clisp.org>
52107
52108         Add support for Solaris 7..10 ACLs.
52109         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
52110         declarations.
52111         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
52112         functions.
52113         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
52114         * lib/set-mode-acl.c (qset_acl): Likewise.
52115         * lib/copy-acl.c (qcopy_acl): Likewise.
52116
52117 2008-06-08  Bruno Haible  <bruno@clisp.org>
52118
52119         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
52120         declaration.
52121         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
52122         (acl_access_nontrivial): Remove MacOS X case.
52123         (file_has_acl): Use acl_extended_nontrivial.
52124         * lib/copy-acl.c (qcopy_acl): Likewise.
52125
52126 2008-06-08  Bruno Haible  <bruno@clisp.org>
52127
52128         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
52129
52130 2008-06-08  Jim Meyering  <meyering@redhat.com>
52131
52132         * modules/acl (Maintainer): Add Bruno Haible.
52133
52134 2008-06-07  Bruno Haible  <bruno@clisp.org>
52135
52136         Improve support for Tru64 ACLs.
52137         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
52138         ACL on OSF/1.
52139
52140 2008-06-07  Bruno Haible  <bruno@clisp.org>
52141
52142         Add support for MacOS X ACLs.
52143         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
52144         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
52145         * lib/set-mode-acl.c (qset_acl): Likewise.
52146         * lib/copy-acl.c (qcopy_acl): Likewise.
52147
52148 2008-06-07  Bruno Haible  <bruno@clisp.org>
52149
52150         Fix memory leak introduced on 2008-05-22.
52151         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
52152         use.
52153
52154 2008-06-07  Bruno Haible  <bruno@clisp.org>
52155
52156         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
52157         to construct an empty ACL.
52158
52159 2008-06-07  Bruno Haible  <bruno@clisp.org>
52160
52161         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
52162         precisely.
52163         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
52164
52165 2008-06-07  Bruno Haible  <bruno@clisp.org>
52166
52167         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
52168         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
52169
52170 2008-06-07  Bruno Haible  <bruno@clisp.org>
52171
52172         * doc/posix-functions/_setjmp.texi: Explain the use of this function
52173         regardless of POSIX.
52174         * doc/posix-functions/_longjmp.texi: Likewise.
52175         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
52176         SystemV platform in this case.
52177
52178 2008-06-06  Eric Blake  <ebb9@byu.net>
52179
52180         Document abort() bugs.
52181         * doc/posix-functions/abort.texi (abort): Mention anomalies.
52182
52183         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
52184         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
52185         sigsetjmp.
52186         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
52187         siglongjmp, but only as a macro.
52188         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
52189         is obsolete.
52190         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
52191
52192         Tweak documentation to cover cygwin argz bugs.
52193         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
52194         argz bug fix; no code change needed since no cygwin releases
52195         occurred between the last fix and the bug being tested.
52196         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
52197         module and recently fixed cygwin bugs.
52198         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
52199         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
52200         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
52201         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
52202         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
52203         Likewise.
52204         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
52205         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
52206         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
52207         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
52208         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
52209         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
52210         Likewise.
52211
52212         Avoid gcc warning on cygwin.
52213         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
52214         !ACL_NO_TRIVIAL]: Avoid unused variable.
52215
52216 2008-06-05  Eric Blake  <ebb9@byu.net>
52217
52218         Be tolerant of UNKNOWN version in gnulib-tool test dir.
52219         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
52220         git-version-gen fails to come up with a version.
52221         Reported by Simon Josefsson.
52222
52223 2008-06-05  Jim Meyering  <meyering@redhat.com>
52224             Paul Eggert  <eggert@cs.ucla.edu>
52225
52226         utimens.c: work around a probable Linux kernel bug
52227         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
52228         appears to be a kernel bug that causes utimensat to return 280
52229         instead of 0, indicating success.
52230
52231 2008-06-04  Bruno Haible  <bruno@clisp.org>
52232
52233         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
52234         2008-06-01 commit.
52235
52236 2008-06-04  Bruno Haible  <bruno@clisp.org>
52237
52238         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
52239         * lib/file-has-acl.c (acl_access_nontrivial): New function.
52240         (file_has_acl): Use it. Save errno afterwards.
52241         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
52242
52243 2008-06-03  Bruno Haible  <bruno@clisp.org>
52244
52245         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
52246         draft code. Simplify #ifs.
52247         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
52248         Put Solaris code after POSIX-draft code. Fix comments regarding
52249         Solaris 10, HP-UX. Mention Cygwin.
52250         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
52251
52252 2008-06-03  Eric Blake  <ebb9@byu.net>
52253
52254         Provide fallback for older kernels.
52255         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
52256         Provide runtime fallback if kernel lacks support.
52257         Reported by Mike Frysinger.
52258
52259 2008-06-02  Bruno Haible  <bruno@clisp.org>
52260
52261         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
52262         it exists.
52263
52264 2008-06-02  Bruno Haible  <bruno@clisp.org>
52265
52266         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
52267         * lib/copy-acl.c (qcopy_acl): Update comment.
52268
52269 2008-06-02  Bruno Haible  <bruno@clisp.org>
52270
52271         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
52272         like ACL APIs.
52273
52274 2008-06-02  Bruno Haible  <bruno@clisp.org>
52275
52276         * tests/test-file-has-acl.sh: Use different code for Cygwin.
52277         * tests/test-set-mode-acl.sh: Likewise.
52278         * tests/test-copy-acl.sh: Likewise.
52279         * tests/test-copy-file.sh: Likewise.
52280
52281 2008-06-02  Bruno Haible  <bruno@clisp.org>
52282
52283         * tests/test-file-has-acl.sh: Remove unused code.
52284
52285 2008-06-01  Bruno Haible  <bruno@clisp.org>
52286
52287         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
52288         (copy_acl): Just a wrapper around qcopy_acl that emits the error
52289         messages.
52290         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
52291
52292 2008-06-01  Bruno Haible  <bruno@clisp.org>
52293
52294         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
52295         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
52296         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
52297         APIs.
52298         * modules/acl-tests (configure.ac): Remove tests now contained in
52299         m4/acl.m4.
52300
52301 2008-06-02  Jim Meyering  <meyering@redhat.com>
52302
52303         announce-gen: use a better key-server host name
52304         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
52305         it may be more consistently reliable.  Suggested by Werner Koch
52306         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
52307
52308 2008-06-01  Bruno Haible  <bruno@clisp.org>
52309
52310         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
52311         Reported by Voroskoi Andras <voroskoi@gmail.com>.
52312
52313 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
52314
52315         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
52316
52317 2008-06-01  Bruno Haible  <bruno@clisp.org>
52318
52319         New ACL tests.
52320         * tests/test-file-has-acl.sh: New file.
52321         * tests/test-file-has-acl.c: New file.
52322         * tests/test-set-mode-acl.sh: New file.
52323         * tests/test-set-mode-acl.c: New file.
52324         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
52325         * tests/test-copy-acl.c: New file.
52326         * modules/acl-tests: New file, based on modules/copy-file-tests.
52327         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
52328         (Depends-on): Add acl-tests.
52329         (configure.ac): Remove checks.
52330         (Makefile.am): Don't create test-sameacls program here any more.
52331
52332 2008-06-01  Bruno Haible  <bruno@clisp.org>
52333
52334         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
52335         * tests/test-sameacls.c: Include progname.h.
52336         (main): Invoke set_program_name. Portability fixes for MacOS X,
52337         Solaris, HP-UX.
52338
52339 2008-06-01  Bruno Haible  <bruno@clisp.org>
52340
52341         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
52342         function.
52343         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
52344
52345 2008-06-01  Bruno Haible  <bruno@clisp.org>
52346
52347         * modules/rpmatch (Depends-on): Add strdup.
52348
52349 2008-06-01  Bruno Haible  <bruno@clisp.org>
52350
52351         * lib/pipe.c: Include unistd-safer.h.
52352         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
52353         * modules/pipe (Depends-on): Add unistd-safer.
52354
52355 2008-05-30  Simon Josefsson  <simon@josefsson.org>
52356
52357         * modules/autobuild (configure.ac): Call AB_INIT.
52358
52359 2008-05-30  Simon Josefsson  <simon@josefsson.org>
52360
52361         * tests/test-getaddrinfo.c: Don't print debug messages by default.
52362         Suggested by Bruno Haible <bruno@clisp.org>.
52363
52364 2008-05-30  Simon Josefsson  <simon@josefsson.org>
52365
52366         * tests/test-base64.c: Cast size_t to unsigned long when invoking
52367         printf.  Use %lu instead of %d.  Reported by Bruno Haible
52368         <bruno@clisp.org>.
52369
52370 2008-05-29  Eric Blake  <ebb9@byu.net>
52371
52372         Prefer new POSIX 200x interfaces over futimesat.
52373         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
52374         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
52375         when available.
52376         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
52377
52378 2008-05-28  Bruno Haible  <bruno@clisp.org>
52379
52380         * modules/stpcpy (License): Change to LGPLv2+.
52381         Requested by David Lutterkort <dlutter@redhat.com>.
52382
52383 2008-05-27  Bruno Haible  <bruno@clisp.org>
52384
52385         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
52386         current mingw.
52387         Reported by Jose E. Marchesi <jemarch@gnu.org>.
52388
52389 2008-05-27  Bruno Haible  <bruno@clisp.org>
52390
52391         * modules/iconv_open (Link): New section, from module 'iconv'.
52392         * modules/striconv (Link): Likewise.
52393         * modules/striconveh (Link): Likewise.
52394         * modules/xstriconv (Link): Likewise.
52395         * modules/unicodeio (Link): Likewise.
52396         * modules/propername (Link): Likewise.
52397         Reported by Jim Meyering.
52398
52399 2008-05-26  Jim Meyering  <meyering@redhat.com>
52400
52401         sha256: do not artificially restrict buffer length to be < 2^32
52402         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
52403         uint32_t to size_t.
52404         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
52405         to match.
52406
52407         avoid unaligned access errors, e.g., on sparc
52408         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
52409         direct access through a possibly-unaligned uint64* pointer.
52410         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
52411         direct access through a possibly-unaligned uint32* pointer.
52412         Prompted by this patch from Tom "spot" Callaway:
52413         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
52414
52415         sha512.c: fix typo in comment
52416         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
52417
52418 2008-05-25  Bruno Haible  <bruno@clisp.org>
52419
52420         * lib/set-mode-acl.c: Renamed from lib/acl.c.
52421         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
52422         (Makefile.am): Update lib_SOURCES.
52423
52424 2008-05-25  Bruno Haible  <bruno@clisp.org>
52425
52426         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
52427
52428 2008-05-25  Jim Meyering  <meyering@redhat.com>
52429
52430         useless-if-before-free: freed expr may have white-space differences
52431         * build-aux/useless-if-before-free: Recognize cases in which the
52432         freed expression differs from the tested one in embedded white
52433         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
52434         $1 was used, so we can't make any regexp shy.  Improved tests now
52435         detect this.
52436
52437         useless-if-before-free: accept white space in the expression.
52438         * build-aux/useless-if-before-free: For now, any white space
52439         in the expression must be identical in the free argument.
52440
52441         useless-if-before-free: efficiency tweak
52442         * build-aux/useless-if-before-free: Make the expression-matching
52443         regexp "shy".
52444         Make the *outer* regexp shy, not the expr-matching one.
52445
52446         update code-in-comment to accept cast of free arg
52447         * build-aux/useless-if-before-free: Update regexp.
52448
52449 2008-05-25  Bruno Haible  <bruno@clisp.org>
52450
52451         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
52452         * modules/copy-file-tests (Files, Makefile.am): Update.
52453         * tests/test-copy-file.c (func_test_copy): Update.
52454
52455 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
52456
52457         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
52458
52459 2008-05-23  Bruno Haible  <bruno@clisp.org>
52460
52461         Improve support for ACLs on OSF/1.
52462         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
52463         Remove fallback for unknown flavors of ACLs.
52464
52465 2008-05-22  Bruno Haible  <bruno@clisp.org>
52466
52467         Add support for ACLs on OSF/1.
52468         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
52469         replacements.
52470         (acl_free_text): New macro fallback.
52471         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
52472         acl_free.
52473         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
52474         acl_free_text function. Require AC_C_INLINE.
52475
52476 2008-05-22  Bruno Haible  <bruno@clisp.org>
52477
52478         Make copy_acl work on MacOS X 10.5.
52479         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
52480         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
52481         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
52482         If MODE_INSIDE_ACL, don't assume that every system has the same text
52483         representation for ACLs as FreeBSD.
52484         * lib/copy-acl.c (copy_acl): Add support for platforms with
52485         !MODE_INSIDE_ACL.
52486         * lib/file-has-acl.c (file_has_acl): Likewise.
52487         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
52488         FreeBSD, MacOS X, or IRIX, respectively.
52489
52490 2008-05-22  Bruno Haible  <bruno@clisp.org>
52491
52492         * lib/acl.h: Don't include <sys/acl.h>.
52493         (GETACLCNT): Move fallback to lib/acl-internal.h.
52494         * lib/acl-internal.h: Include <sys/acl.h> here.
52495         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
52496
52497 2008-05-22  Bruno Haible  <bruno@clisp.org>
52498
52499         Split off copy_acl function to separate file.
52500         * lib/copy-acl.c: New file, extracted from lib/acl.c.
52501         * lib/acl.c (copy_acl): Moved function to separate file.
52502         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
52503         * modules/acl (Files): Add lib/copy-acl.c.
52504         (Makefiles.am): Augment lib_SOURCES.
52505
52506 2008-05-22  Bruno Haible  <bruno@clisp.org>
52507
52508         * modules/copy-file-tests: New file.
52509         * tests/test-copy-file.sh: New file.
52510         * tests/test-copy-file.c: New file.
52511         * tests/test-copy-file-sameacls.c: New file.
52512
52513 2008-05-22  Eric Blake  <ebb9@byu.net>
52514
52515         Avoid gcc warning.
52516         * tests/test-memcmp.c (main): Pass NULL indirectly.
52517
52518 2008-05-21  Bruno Haible  <bruno@clisp.org>
52519
52520         Add reference doc about ACLs.
52521         * doc/acl-resources.txt: New file.
52522         * doc/acl-cygwin.txt: New file.
52523
52524 2008-05-21  Bruno Haible  <bruno@clisp.org>
52525
52526         Avoid one more warning from gcc.
52527         * lib/vasnprintf.c (IF_LINT): Update comments.
52528         (VASNPRINTF): Use it also for the 'prefix' array initializer.
52529
52530 2008-05-21  Jim Meyering  <meyering@redhat.com>
52531
52532         avoid a warning from gcc
52533         * lib/vasnprintf.c (IF_LINT): Define.
52534         (scale10_round_decimal_long_double):
52535         Use it to avoid a "may be used uninitialized" warning.
52536         (scale10_round_decimal_double): Likewise.
52537
52538 2008-05-21  Simon Josefsson  <simon@josefsson.org>
52539
52540         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
52541         declared.
52542
52543 2008-05-20  Bruno Haible  <bruno@clisp.org>
52544
52545         * tests/test-memcmp.c (main): Test also the sign of the result. Test
52546         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
52547
52548 2008-05-20  Simon Josefsson  <simon@josefsson.org>
52549
52550         * modules/memcmp-tests: New file.
52551         * tests/test-memcmp.c: New file.
52552
52553 2008-05-19  Bruno Haible  <bruno@clisp.org>
52554
52555         * modules/propername (Notice, configure.ac): Put quoted "..." into
52556         --keyword option.
52557         * lib/propername.h: Update comments accordingly.
52558         Reported by Eric Blake.
52559
52560 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
52561
52562         * modules/getpass-gnu (Depends-on): Add fseeko.
52563
52564 2008-05-19  Simon Josefsson  <simon@josefsson.org>
52565
52566         * modules/base64-tests: New file.
52567
52568 2008-05-19  Bo Borgerson <gigabo@gmail.com>
52569
52570         * lib/base64.c (base64_decode_ctx): If a decode context structure
52571         was passed in use it to ignore newlines.  If a context structure
52572         was _not_ passed in, continue to treat newlines as garbage (this
52573         is the historical behavior).  Formerly base64_decode.
52574         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
52575         takes a decode context structure.
52576         * lib/base64.h (base64_decode): Macro for four-argument calls.
52577         (base64_decode_alloc): Likewise.
52578         * lib/base64.c (base64_decode_ctx): If a decode context structure
52579         was passed in use it to ignore newlines.  If a context structure
52580         was _not_ passed in, continue to treat newlines as garbage (this
52581         is the historical behavior).  Formerly base64_decode.
52582         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
52583         takes a decode context structure.
52584         * lib/base64.h (base64_decode): Macro for four-argument calls.
52585         (base64_decode_alloc): Likewise.
52586
52587 2008-05-19  Jim Meyering  <meyering@redhat.com>
52588
52589         avoid a warning from gcc
52590         * lib/trim.c (IF_LINT): Define.
52591         (trim2): Use it to avoid a "may be used uninitialized" warning.
52592
52593         Fix doc typo.
52594         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
52595
52596 2008-05-19  Bruno Haible  <bruno@clisp.org>
52597
52598         * doc/glibc-functions/getpass.texi: Document limits of other
52599         implementations.
52600
52601 2008-05-19  Simon Josefsson  <simon@josefsson.org>
52602             Bruno Haible <bruno@clisp.org>
52603
52604         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
52605
52606 2008-05-18  Bruno Haible  <bruno@clisp.org>
52607
52608         * modules/propername: New file, from GNU gettext.
52609         * lib/propername.h: New file, from GNU gettext.
52610         * lib/propername.c: New file, from GNU gettext.
52611         * MODULES.html.sh (Internationalization functions): Add propername.
52612
52613 2008-05-16  Jim Meyering  <meyering@redhat.com>
52614             Bruno Haible  <bruno@clisp.org>
52615
52616         Avoid some warnings from "gcc -Wshadow".
52617         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
52618
52619 2008-05-15  Eric Blake  <ebb9@byu.net>
52620
52621         Extend previous patch to cygwin 1.7.0.
52622         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
52623         fast implementation in cygwin >= 1.7.0.
52624         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
52625         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
52626
52627 2008-05-15  Bruno Haible  <bruno@clisp.org>
52628
52629         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
52630         implementation in glibc >= 2.9.
52631         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
52632         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
52633
52634 2008-05-15  Bruno Haible  <bruno@clisp.org>
52635
52636         * MODULES.html.sh (Internationalization functions): Remove linebreak.
52637         (Unicode string functions): Add unilbrk/*.
52638         Reported by Karl Berry.
52639
52640 2008-05-15  Eric Blake  <ebb9@byu.net>
52641
52642         Fix violation of <stdbool.h> replacement in regex.
52643         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
52644         * lib/regexec.c (re_search_internal): Likewise.
52645         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
52646
52647 2008-05-15  Jim Meyering  <meyering@redhat.com>
52648
52649         avoid distracting test output when git or cvs is not found
52650         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
52651         * tests/test-vc-list-files-git.sh: Likewise.
52652
52653 2008-05-15  Eric Blake  <ebb9@byu.net>
52654
52655         Glibc finally accepted the memmem speedup code, bugzilla #5514.
52656         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
52657         glibc version.
52658         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
52659         * doc/posix-functions/strstr.texi (strstr): Likewise.
52660         * lib/str-two-way.h (MAX): Sychronize with glibc.
52661
52662 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
52663
52664         * lib/regcomp.c (optimize_utf8): Add a note on why we test
52665         opr.ctx_type.
52666         (calc_first): Initialize constraint field.
52667         (duplicate_node_closure): Use it instead of special casing ANCHORS.
52668         Fix grammar.
52669         (duplicate_node): Merge constraint field for all node types.
52670         (calc_eclosure_iter): Look at constraint field for all node types.
52671         * lib/regex_internal.c (create_cd_newstate): Don't look at
52672         opr.ctx_type.
52673
52674 2008-05-14  Bruno Haible  <bruno@clisp.org>
52675
52676         Help GCC to do better code generation.
52677         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
52678         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
52679         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
52680         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
52681         Declare with attribute 'malloc' if supported.
52682
52683 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
52684
52685         use "echo STR|wc -c" rather than unportable "expr length STR"
52686         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
52687         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
52688
52689 2008-05-14  Jim Meyering  <meyering@redhat.com>
52690
52691         use dd ibs=$n count=1 ... rather than less-portable head -c$n
52692         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
52693         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
52694         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
52695         via Collin Lasse.
52696
52697 2008-05-14  Eric Blake  <ebb9@byu.net>
52698
52699         Avoid quadratic growth in gl_LIBSOURCES.
52700         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
52701         Suggested by Bruno Haible.
52702
52703         Test xmemdup0.
52704         * modules/xmemdup0-tests: New file.
52705         * tests/test-xmemdup0.c: Likewise.
52706
52707 2008-05-13  Eric Blake  <ebb9@byu.net>
52708
52709         Split xmemdup0 into its own module.
52710         * modules/xmemdup0: New file.
52711         * lib/xmemdup0.h: Likewise.
52712         * lib/xmemdup0.c: Likewise.
52713         * MODULES.html.sh (Memory management functions): Add xmemdup0.
52714         * lib/xalloc.h (xmemdup0): Remove.
52715         * lib/xmalloc.c (xmemdup0): Likewise.
52716
52717 2008-05-13  Eric Blake  <ebb9@byu.net>
52718             Bruno Haible  <bruno@clisp.org>
52719
52720         Reduce number of forks required during autoconf.
52721         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
52722         and gl_LIBSOURCES_DIR.
52723         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
52724         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
52725         m4_syscmd per file.
52726         <m4_foreach_w>: Move...
52727         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
52728
52729 2008-05-13  Eric Blake  <ebb9@byu.net>
52730
52731         * gnulib-tool: Fix various comment typos.
52732
52733 2008-05-12  Bruno Haible  <bruno@clisp.org>
52734
52735         Tailor the linebreaking algorithm.
52736         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
52737
52738 2008-05-12  Bruno Haible  <bruno@clisp.org>
52739
52740         Update to Unicode 5.0.0.
52741         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
52742         LBP_JV, LBP_JT. Redistribute values.
52743         (unilbrk_table): Change size.
52744         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
52745         Unicode TR#14 rev. 22.
52746         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
52747         LBP_JV, LBP_JT. Redistribute values.
52748         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
52749         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
52750         Update.
52751         * lib/unilbrk/lbrkprop1.h: Regenerated.
52752         * lib/unilbrk/lbrkprop2.h: Regenerated.
52753         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
52754         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
52755         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
52756         Likewise.
52757         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
52758         Likewise.
52759         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
52760         result.
52761         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
52762         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
52763         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
52764         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
52765         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
52766         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
52767
52768 2008-05-11  Bruno Haible  <bruno@clisp.org>
52769
52770         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
52771
52772 2008-05-11  Bruno Haible  <bruno@clisp.org>
52773
52774         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
52775         * modules/unilbrk/gen-lbrk: New file.
52776
52777 2008-05-11  Bruno Haible  <bruno@clisp.org>
52778
52779         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
52780         * m4/sha512.m4 (gl_SHA512): Likewise.
52781
52782 2008-05-11  Jim Meyering  <meyering@redhat.com>
52783
52784         New modules: crypto/sha256, crypto/sha512 (from coreutils)
52785         * modules/crypto/sha256: New file.
52786         * modules/crypto/sha512: Likewise.
52787         * lib/sha256.c: Likewise.
52788         * lib/sha256.h: Likewise.
52789         * lib/sha512.c: Likewise.
52790         * lib/sha512.h: Likewise.
52791         * lib/u64.h: Likewise.
52792         * m4/sha256.m4: Likewise.
52793         * m4/sha512.m4: Likewise.
52794         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
52795
52796 2008-05-10  Bruno Haible  <bruno@clisp.org>
52797
52798         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
52799         (Input/Output <stdio.h>): Add xprintf.
52800         (Signal handling <signal.h>): Add strsignal.
52801         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
52802         (Core language properties): Add func.
52803         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
52804         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
52805         strings.
52806         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
52807         (Input/output): New section.
52808         (File system functions): Add openat-die, stat-macros.
52809         (Networking functions): Add sockets.
52810         (Unicode string functions): Add unictype/*.
52811         (Support for building libraries and executables): Add gperf.
52812         (Support for building documentation): Add agpl-3.0.
52813         (Misc): Add nocrash.
52814
52815 2008-05-10  Bruno Haible  <bruno@clisp.org>
52816
52817         * modules/unictype/gen-ctype: New file.
52818
52819 2008-05-10  Jim Meyering  <meyering@redhat.com>
52820
52821         Make chdir-safer.c more efficient on a system with no symlinks.
52822         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
52823         also if ELOOP is zero.  Suggested by Bruno Haible.
52824
52825         Make chdir-safer.c slightly safer.
52826         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
52827         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
52828
52829         Avoid compile failure on systems without ELOOP (like mingw).
52830         * lib/chdir-safer.c (ELOOP): Define if not already defined.
52831         Reported by Bruno Haible.
52832
52833 2008-05-10  Bruno Haible  <bruno@clisp.org>
52834
52835         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
52836         (is_utf8_encoding): Use a case-insensitive comparison.
52837         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
52838         streq.
52839
52840 2008-05-10  Bruno Haible  <bruno@clisp.org>
52841
52842         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
52843         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
52844         * lib/unilbrk/ulc-common.h (iconv_string_length,
52845         iconv_string_keeping_offsets): Remove declarations.
52846         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
52847         Don't include <iconv.h>, streq.h, xsize.h.
52848         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
52849         conversion.
52850         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
52851         <iconv.h>, streq.h, xsize.h.
52852         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
52853         conversion.
52854         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
52855         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
52856         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
52857         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
52858
52859 2008-05-10  Bruno Haible  <bruno@clisp.org>
52860
52861         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
52862         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
52863
52864         * modules/unilbrk/u32-width-linebreaks-tests: New file.
52865         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
52866
52867         * modules/unilbrk/u16-width-linebreaks-tests: New file.
52868         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
52869
52870         * modules/unilbrk/u8-width-linebreaks-tests: New file.
52871         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
52872
52873         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
52874         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
52875
52876         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
52877         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
52878
52879         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
52880         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
52881
52882         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
52883         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
52884
52885 2008-05-10  Bruno Haible  <bruno@clisp.org>
52886
52887         Split up 'linebreak' module.
52888         * lib/unilbrk.h: New file, based on lib/linebreak.h.
52889         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
52890         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
52891         modifications.
52892         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
52893         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
52894         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
52895         lib/linebreak.c.
52896         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
52897         lib/linebreak.c.
52898         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
52899         lib/linebreak.c.
52900         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
52901         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
52902         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
52903         lib/linebreak.c.
52904         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
52905         lib/linebreak.c.
52906         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
52907         lib/linebreak.c.
52908         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
52909         lib/linebreak.c.
52910         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
52911         lib/linebreak.c.
52912         * modules/unilbrk/base: New file.
52913         * modules/unilbrk/tables: New file.
52914         * modules/unilbrk/u8-possible-linebreaks: New file.
52915         * modules/unilbrk/u16-possible-linebreaks: New file.
52916         * modules/unilbrk/u32-possible-linebreaks: New file.
52917         * modules/unilbrk/ulc-common: New file.
52918         * modules/unilbrk/ulc-possible-linebreaks: New file.
52919         * modules/unilbrk/u8-width-linebreaks: New file.
52920         * modules/unilbrk/u16-width-linebreaks: New file.
52921         * modules/unilbrk/u32-width-linebreaks: New file.
52922         * modules/unilbrk/ulc-width-linebreaks: New file.
52923         * lib/linebreak.h: Remove file.
52924         * lib/linebreak.c: Remove file.
52925         * m4/linebreak.m4: Remove file.
52926         * modules/linebreak: Remove file.
52927         * NEWS: Mention the changes.
52928
52929 2008-05-09  Eric Blake  <ebb9@byu.net>
52930
52931         Add xmemdup0.
52932         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
52933         implementation.
52934         * lib/xmalloc.c (xmemdup0): New C implementation.
52935
52936 2008-05-08  Bruno Haible  <bruno@clisp.org>
52937
52938         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
52939
52940 2008-05-07  Eric Blake  <ebb9@byu.net>
52941
52942         Support cross-compilation of <wctype.h>.
52943         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
52944         AC_CACHE_CHECK.
52945
52946 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
52947
52948         * build-aux/vc-list-files: Add support for bzr.
52949
52950 2008-05-03  Jim Meyering  <meyering@redhat.com>
52951
52952         avoid failed assertion with tight malloc
52953         * tests/test-getndelim2.c: Correct an off-by-one assertion.
52954
52955 2008-05-03  Simon Josefsson  <simon@josefsson.org>
52956
52957         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
52958         are needed from arpa/inet.h.
52959         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
52960         Reported by Bruno Haible.
52961
52962 2008-05-02  Jim Meyering  <meyering@redhat.com>
52963
52964         avoid compilation error on FreeBSD 6
52965         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
52966
52967 2008-05-01  Jim Meyering  <meyering@redhat.com>
52968
52969         useless-if-before-free: correct --help's exit status description
52970         * build-aux/useless-if-before-free (usage): Like grep, exit 0
52971         for one or more matches, etc.  Reported by Bruno Haible.
52972
52973         vc-list-files: make the stand-alone gnulib test work
52974         * modules/vc-list-files-tests (configure.ac):
52975         Define and AC_SUBST abs_aux_dir.
52976         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
52977         $(abs_top_srcdir) to each script and having each of them
52978         duplicate the work of setting PATH, set PATH here, using
52979         the new variable, abs_aux_dir instead.
52980         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
52981         * tests/test-vc-list-files-git.sh: Likewise.
52982         Reported by Bruno Haible.
52983
52984 2008-05-01  Bruno Haible  <bruno@clisp.org>
52985
52986         * lib/getndelim2.c (getndelim2): Fix newsize computation during
52987         reallocation. Rename 'done' to 'found_delimiter'.
52988
52989 2008-05-01  Jim Meyering  <meyering@redhat.com>
52990
52991         vc-list-files: accommodate /bin/sh like the one from Solaris 10
52992         * build-aux/vc-list-files: Use `...`, not $(...).
52993
52994 2008-04-30  Jim Meyering  <meyering@redhat.com>
52995
52996         add tests for vc-list-files
52997         * modules/vc-list-files-tests: New module.
52998         * tests/test-vc-list-files-cvs.sh: New file.
52999         * tests/test-vc-list-files-git.sh: New file.
53000
53001         avoid a warning from gcc
53002         * lib/getndelim2.c (IF_LINT): Define.
53003         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
53004
53005         vc-list-files: work properly with build-aux/cvsu, too
53006         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
53007         to all cvs-based clauses.
53008
53009         vc-list-files: work properly in the CVS+awk case, too
53010         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
53011
53012         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
53013         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
53014         take more than one file argument, so .  Add quotes, just in case $dir
53015         ever contains a shell meta-character.  Prompted by Soren Hansen in
53016         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
53017
53018 2008-04-29  Eric Blake  <ebb9@byu.net>
53019
53020         Optimize getndelim2 to use block operations when possible.
53021         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
53022         freadseek, and memchr2.
53023         * lib/getndelim2.c (getndelim2): Use them for block reads.
53024
53025 2008-04-29  Bruno Haible  <bruno@clisp.org>
53026
53027         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
53028         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
53029         * modules/inet_ntop (Depends-on): Add extensions.
53030         * modules/inet_pton (Depends-on): Likewise.
53031         Reported by Simon Josefsson.
53032
53033 2008-04-29  Jim Meyering  <meyering@redhat.com>
53034
53035         When the is more than one match in a block, match all of them.
53036         * build-aux/useless-if-before-free: Iterate through each block
53037         until there are no more matches.
53038
53039         Fix broken useless-if-before-free script.
53040         * build-aux/useless-if-before-free: Fix typo: missing "?" after
53041         the expression to match cast of argument to free-like function.
53042
53043 2008-04-29  Eric Blake  <ebb9@byu.net>
53044
53045         Use new header.
53046         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
53047
53048 2008-04-29  Jim Meyering  <meyering@redhat.com>
53049
53050         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
53051         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
53052         by gnulib to exist and to declare e.g., inet_ntop.
53053         Don't include "inet_ntop.h", now removed.
53054
53055         * m4/arpa_inet_h.m4: Remove trailing blanks.
53056
53057 2008-04-29  Eric Blake  <ebb9@byu.net>
53058
53059         Silence valgrind on safe reads beyond potential array bounds.
53060         * lib/rawmemchr.valgrind: New file.
53061         * lib/strchrnul.valgrind: Likewise.
53062         * modules/rawmemchr (Files): Distribute new file.
53063         * modules/strchrnul (Files): Likewise.
53064         Suggested by Bruno Haible.
53065
53066 2008-04-29  Bruno Haible  <bruno@clisp.org>
53067
53068         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
53069         (inet_ntop, inet_pton): Change portability warning's wording.
53070         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
53071         Invoke gl_CHECK_NEXT_HEADERS.
53072         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
53073         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
53074         set ARPA_INET_H.
53075         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
53076         * modules/arpa_inet (Description): No longer only for systems that
53077         lack it.
53078         (Depends-on): Add include_next.
53079         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
53080         HAVE_ARPA_INET_H.
53081
53082 2008-04-29  Jim Meyering  <meyering@redhat.com>
53083
53084         * modules/mkdir (License): Re-license as LGPLv2+.
53085
53086 2008-04-29  Bruno Haible  <bruno@clisp.org>
53087
53088         * modules/rawmemchr (Maintainer): Set to Eric.
53089         * modules/strchrnul (Maintainer): Likewise.
53090
53091 2008-04-29  Simon Josefsson  <simon@josefsson.org>
53092
53093         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
53094         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
53095
53096         * modules/arpa_inet (arpa/inet.h): Use them.
53097
53098 2008-04-28  Eric Blake  <ebb9@byu.net>
53099
53100         Test getndelim2.
53101         * modules/getndelim2-tests: New file.
53102         * tests/test-getndelim2.c: Likewise.
53103         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
53104         stream.
53105         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
53106
53107         * MODULES.html.sh: Document new module.
53108
53109 2008-04-20  Bruno Haible  <bruno@clisp.org>
53110
53111         * lib/c-stack.c (die): Use raise.
53112         * modules/c-stack (Depends-on): Add raise.
53113
53114 2008-04-28  Bruno Haible  <bruno@clisp.org>
53115
53116         Expect rpmatch to be declared.
53117         * lib/yesno.c (rpmatch): Remove declaration.
53118
53119         Declare rpmatch.
53120         * lib/stdlib.in.h (rpmatch): New declaration.
53121         * lib/rpmatch.c: Include <stdlib.h> first.
53122         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
53123         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
53124         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
53125         HAVE_RPMATCH.
53126         * modules/rpmatch (Depends-on): Add stdlib, extensions.
53127         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
53128         (Include): Set to <stdlib.h>.
53129         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
53130         HAVE_RPMATCH.
53131         * NEWS: Document the change.
53132
53133 2008-04-28  Bruno Haible  <bruno@clisp.org>
53134
53135         Change rpmatch to use nl_langinfo when appropriate.
53136         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
53137         (N_): New macro.
53138         (localized_pattern): New function/macro.
53139         (try): Remove match, nomatch arguments. Copy the pattern into safe
53140         memory before caching it.
53141         (rpmatch): Use localized_pattern. Add translator comments.
53142         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
53143         Suggested by Eric Blake.
53144         * modules/rpmatch (Depends-on): Add stdbool.
53145
53146 2008-04-28  Eric Blake  <ebb9@byu.net>
53147
53148         Add rawmemchr module, matching glibc.
53149         * modules/string (Makefile.am): New indicator.
53150         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
53151         * lib/string.in.h (rawmemchr): Declare when appropriate.
53152         * modules/rawmemchr: New file.
53153         * m4/rawmemchr.m4: Likewise.
53154         * lib/rawmemchr.c: Likewise.
53155         * modules/rawmemchr-tests: Likewise.
53156         * tests/test-rawmemchr.c: Likewise.
53157         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
53158         module.
53159         * modules/strchrnul (Depends-on): Add rawmemchr.
53160         * lib/strchrnul.c (strchrnul): Optimize a corner case.
53161
53162         Whitespace cleanup.
53163         * tests/test-strchrnul.c: Reindent.
53164         * lib/strchrnul.c: Likewise.
53165
53166         Optimize and test strchrnul.
53167         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
53168         * modules/strchrnul-tests: New file.
53169         * tests/test-strchrnul.c: Likewise.
53170
53171         Remove intprops dependency.
53172         * modules/memchr (Depends-on): Remove intprops.
53173         * modules/memrchr (Depends-on): Likewise.
53174         * modules/memchr2 (Depends-on): Likewise.
53175         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
53176         * lib/memrchr.c (__memrchr): Likewise.
53177         * lib/memrchr2.c (memchr2): Likewise.
53178         Reported by Simon Josefsson.
53179
53180 2008-04-28  Simon Josefsson  <simon@josefsson.org>
53181
53182         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
53183         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
53184
53185 2008-04-28  Simon Josefsson  <simon@josefsson.org>
53186
53187         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
53188
53189         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
53190
53191         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
53192
53193         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
53194         declarations.
53195         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
53196
53197         * m4/inet_pton.m4: Don't check for header files.
53198
53199         * m4/inet_ntop.m4: Don't check for header files.
53200
53201 2008-04-28  Simon Josefsson  <simon@josefsson.org>
53202
53203         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
53204         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
53205         trigger for cygwin).
53206         Reported by Bruno Haible  <bruno@clisp.org>.
53207
53208 2008-04-28  Bruno Haible  <bruno@clisp.org>
53209
53210         * doc/posix-functions/strdup.texi: Mention mingw problem.
53211
53212 2008-04-27  Bruno Haible  <bruno@clisp.org>
53213
53214         * modules/stat-time-tests (Depends-on): Add sleep.
53215         * tests/test-stat-time.c (force_unlink): New function.
53216         (cleanup): Use it.
53217         (test_mtime): Remove the ctime related tests.
53218         (test_ctime): New function, containing the ctime related tests.
53219         (main): Call test_ctime, except on native Windows platforms.
53220
53221 2008-04-27  Bruno Haible  <bruno@clisp.org>
53222
53223         * lib/rpmatch.c (rpmatch): Add some comments.
53224         Reported by James Youngman <jay@gnu.org>.
53225
53226 2008-04-27  Bruno Haible  <bruno@clisp.org>
53227
53228         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
53229         quiet NaNs.
53230
53231 2008-04-27  Bruno Haible  <bruno@clisp.org>
53232
53233         Make test-yesno.sh work on mingw.
53234         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
53235         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
53236         (main): Set stdin to binary mode.
53237         * modules/yesno-tests (Depends-on): Add binary-io.
53238
53239 2008-04-27  Bruno Haible  <bruno@clisp.org>
53240
53241         Fix 'isfinite' on x86, x86_64, ia64 platforms.
53242         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
53243         argument that lie outside the IEEE 854 domain.
53244         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
53245         (gl_ISFINITE): Use it.
53246         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
53247
53248 2008-04-27  Bruno Haible  <bruno@clisp.org>
53249
53250         Allow local renaming in config.h.
53251         * lib/memrchr.c (memrchr): Don't undefine outside libc.
53252
53253 2008-04-27  Bruno Haible  <bruno@clisp.org>
53254
53255         * lib/memchr.c (__memchr): Change type of 'i'.
53256         * lib/memchr2.c (memchr2): Likewise.
53257
53258 2008-04-26  Eric Blake  <ebb9@byu.net>
53259         and Bruno Haible  <bruno@clisp.org>
53260
53261         Optimize and test memrchr.
53262         * modules/memrchr (Depends-on): Add intprops.
53263         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
53264         * modules/memrchr-tests: New file.
53265         * tests/test-memrchr.c: New file.
53266
53267 2008-04-26  Bruno Haible  <bruno@clisp.org>
53268
53269         Add tentative support for DragonFly BSD.
53270         * lib/stdio-impl.h: Add macros for DragonFly BSD.
53271         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
53272         fp.
53273         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
53274         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
53275         * lib/fpurge.c (fpurge): Likewise.
53276         * lib/freadable.c (freaadable): Likewise.
53277         * lib/freadahead.c (freadahead): Likewise.
53278         * lib/freading.c (freading): Likewise.
53279         * lib/freadptr.c (freadptr): Likewise.
53280         * lib/freadseek.c (freadptrinc): Likewise.
53281         * lib/fseeko.c (fseeko): Likewise.
53282         * lib/fseterr.c (fseterr): Likewise.
53283         * lib/fwritable.c (fwritable): Likewise.
53284         * lib/fwriting.c (fwriting): Likewise.
53285
53286 2008-04-26  Bruno Haible  <bruno@clisp.org>
53287
53288         * lib/stdio-impl.h: New file.
53289         * lib/fbufmode.c: Include stdio-impl.h.
53290         (fbufmode): Use fp_, remove redundant #defines.
53291         * lib/fflush.c: Include stdio-impl.h.
53292         (clear_ungetc_buffer): Remove redundant #defines.
53293         * lib/fpurge.c: Include stdio-impl.h.
53294         (fpurge): Remove redundant #defines.
53295         * lib/freadable.c: Include stdio-impl.h.
53296         (freadable): Remove redundant #defines.
53297         * lib/freadahead.c: Include stdio-impl.h.
53298         (freadahead): Remove redundant #defines.
53299         * lib/freading.c: Include stdio-impl.h.
53300         (freading): Remove redundant #defines.
53301         * lib/freadptr.c: Include stdio-impl.h.
53302         (freadptr): Remove redundant #defines.
53303         * lib/freadseek.c: Include stdio-impl.h.
53304         (freadptrinc): Remove redundant #defines.
53305         * lib/fseeko.c: Include stdio-impl.h.
53306         (rpl_fseeko): Remove redundant #defines.
53307         * lib/fseterr.c: Include stdio-impl.h.
53308         (fseterr): Remove redundant #defines.
53309         * lib/fwritable.c: Include stdio-impl.h.
53310         (fwritable: Remove redundant #defines.
53311         * lib/fwriting.c: Include stdio-impl.h.
53312         (fwriting): Remove redundant #defines.
53313         * modules/fbufmode (Files): Add lib/stdio-impl.h.
53314         * modules/fflush (Files): Likewise.
53315         * modules/fpurge (Files): Likewise.
53316         * modules/freadable (Files): Likewise.
53317         * modules/freadahead (Files): Likewise.
53318         * modules/freading (Files): Likewise.
53319         * modules/freadptr (Files): Likewise.
53320         * modules/freadseek (Files): Likewise.
53321         * modules/fseeko (Files): Likewise.
53322         * modules/fseterr (Files): Likewise.
53323         * modules/fwritable (Files): Likewise.
53324         * modules/fwriting (Files): Likewise.
53325
53326 2008-04-26  Bruno Haible  <bruno@clisp.org>
53327
53328         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
53329         restore_seek_optimization, update_fpos_cache): New functions, extracted
53330         from rpl_fflush.
53331         (rpl_fflush): Use them.
53332         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
53333         (gl_REPLACE_FFLUSH): Use it.
53334
53335 2008-04-26  Bruno Haible  <bruno@clisp.org>
53336
53337         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
53338         on Solaris.
53339         * tests/test-xstrtoimax.sh: Likewise.
53340         * tests/test-xstrtoumax.sh: Likewise.
53341         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
53342
53343 2008-04-26  Bruno Haible  <bruno@clisp.org>
53344
53345         * modules/memchr-tests: New file.
53346         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
53347
53348 2008-04-26  Eric Blake  <ebb9@byu.net>
53349             Bruno Haible  <bruno@clisp.org>
53350
53351         * lib/memchr.c: Include intprops.h.
53352         (__memchr): Optimize parallel detection of matching bytes. Rename local
53353         variables. Add explanatory comments.
53354
53355 2008-04-26  Bruno Haible  <bruno@clisp.org>
53356
53357         Fix module 'memchr', broken since 2000-10-28.
53358         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
53359
53360 2008-04-26  Bruno Haible  <bruno@clisp.org>
53361
53362         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
53363         comments.
53364
53365 2008-04-25  Eric Blake  <ebb9@byu.net>
53366
53367         Use native fstatat on cygwin 1.7.0.
53368         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
53369         first.
53370
53371 2008-04-23  Eric Blake  <ebb9@byu.net>
53372
53373         Improve memchr2 performance.
53374         * lib/memchr2.c (memchr2): Further optimize parallel detection of
53375         NUL bytes.
53376         * modules/memchr2 (Depends-on): Use intprops.h.
53377
53378 2008-04-23  Simon Josefsson  <simon@josefsson.org>
53379
53380         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
53381         an inline function instead of a CPP macro.  Patch by Ben Pfaff
53382         <blp@cs.stanford.edu>.
53383
53384 2008-04-23  Simon Josefsson  <simon@josefsson.org>
53385
53386         * lib/arpa_inet.in.h: New file.
53387
53388         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
53389         (Makefile.am): Sed in substitute header file.
53390
53391         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
53392         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
53393
53394         * modules/inet_ntop (configure.ac): Use
53395         gl_ARPA_INET_MODULE_INDICATOR.
53396
53397         * modules/inet_pton (configure.ac): Use
53398         gl_ARPA_INET_MODULE_INDICATOR.
53399
53400 2008-04-22  Jim Meyering  <meyering@redhat.com>
53401
53402         * modules/verify (License): Re-license as LGPLv2+.
53403
53404 2008-04-22  Simon Josefsson  <simon@josefsson.org>
53405
53406         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
53407         parameter to void* as per POSIX standard (MinGW uses char*).
53408
53409 2008-04-21  Bruno Haible  <bruno@clisp.org>
53410
53411         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
53412         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
53413         Define to replacements if REPLACE_ISWCNTRL is 1.
53414         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
53415         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
53416         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
53417         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
53418         what it fixes.
53419         * doc/posix-functions/iswalpha.texi: Likewise.
53420         * doc/posix-functions/iswblank.texi: Likewise.
53421         * doc/posix-functions/iswcntrl.texi: Likewise.
53422         * doc/posix-functions/iswdigit.texi: Likewise.
53423         * doc/posix-functions/iswgraph.texi: Likewise.
53424         * doc/posix-functions/iswlower.texi: Likewise.
53425         * doc/posix-functions/iswprint.texi: Likewise.
53426         * doc/posix-functions/iswpunct.texi: Likewise.
53427         * doc/posix-functions/iswspace.texi: Likewise.
53428         * doc/posix-functions/iswupper.texi: Likewise.
53429         * doc/posix-functions/iswxdigit.texi: Likewise.
53430         Reported by Alain Guibert.
53431
53432 2008-04-21  Bruno Haible  <bruno@clisp.org>
53433
53434         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
53435         Patch by Alain Guibert.
53436
53437 2008-04-21  Bruno Haible  <bruno@clisp.org>
53438
53439         Fix test failures on mingw.
53440         * tests/test-xstrtol.c (print_no_progname): New function.
53441         (main): Install it in error_print_progname hook.
53442         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
53443         * tests/test-xstrtoimax.sh: Likewise.
53444         * tests/test-xstrtoumax.sh: Likewise.
53445
53446 2008-04-21  Bruno Haible  <bruno@clisp.org>
53447
53448         Fix test failure on mingw.
53449         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
53450
53451 2008-04-21  Bruno Haible  <bruno@clisp.org>
53452
53453         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
53454         Actually assign a value.
53455
53456 2008-04-20  Bruno Haible  <bruno@clisp.org>
53457
53458         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
53459         take 2.
53460         * lib/canonicalize.c (canonicalize_file_name): Elide if the
53461         'canonicalize-lgpl' module is also used.
53462         * lib/canonicalize-lgpl.c: Undo last change.
53463         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
53464
53465 2008-04-20  Bruno Haible  <bruno@clisp.org>
53466
53467         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
53468         config.h. Provide _mkdir based fallback for mingw.
53469         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
53470         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
53471         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
53472         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
53473         rather than defining mkdir in config.h.
53474         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
53475         (gl_SYS_STAT_H_DEFAULTS): New macro.
53476         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
53477         HAVE_IO_H any more.
53478         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
53479         HAVE_DECL_MKDIR and HAVE_IO_H.
53480
53481 2008-04-20  Bruno Haible  <bruno@clisp.org>
53482
53483         * lib/isapipe.c: Port to native Windows platforms.
53484
53485 2008-04-20  Bruno Haible  <bruno@clisp.org>
53486
53487         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
53488
53489 2008-04-21  Eric Blake  <ebb9@byu.net>
53490
53491         Work around preprocessors that don't handle UINTMAX_MAX.
53492         * lib/memchr2.c (memchr2): Avoid embedded #if.
53493         Reported by Alain Guibert, fix suggested by Bruno Haible.
53494
53495 2008-04-21  Simon Josefsson  <simon@josefsson.org>
53496
53497         * doc/posix-functions/strftime.texi (strftime): Explain better
53498         Windows incompatibility.  Suggested by Micah Cowan
53499         <micah@cowan.name>.
53500
53501 2008-04-20  Bruno Haible  <bruno@clisp.org>
53502
53503         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
53504         unistr/u8-mblen.
53505
53506 2008-04-20  Bruno Haible  <bruno@clisp.org>
53507
53508         Fix test failure on platforms with non-GNU iconv.
53509         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
53510         (U_TO_U8): Use it, rather than u16_to_u8.
53511         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
53512         units at the end of the input string.
53513         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
53514
53515 2008-04-20  Bruno Haible  <bruno@clisp.org>
53516
53517         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
53518         when the resulting length is 0.
53519         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
53520
53521 2008-04-20  Bruno Haible  <bruno@clisp.org>
53522
53523         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
53524         works.
53525         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
53526
53527 2008-04-20  Bruno Haible  <bruno@clisp.org>
53528
53529         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
53530         * modules/tsearch-tests (configure.ac): Test for initstate function.
53531
53532 2008-04-20  Bruno Haible  <bruno@clisp.org>
53533
53534         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
53535         for nlink_t if missing.
53536         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
53537
53538 2008-04-19  Bruno Haible  <bruno@clisp.org>
53539
53540         Work around snprintf bug on Linux libc5.
53541         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
53542         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
53543         gl_SNPRINTF_SIZE1.
53544         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
53545         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
53546         that test failed.
53547         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
53548         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
53549         * modules/snprintf (Files): Add m4/printf.m4.
53550         * modules/vsnprintf (Files): Likewise.
53551         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
53552         * doc/posix-functions/vsnprintf.texi: Likewise.
53553
53554 2008-04-19  Bruno Haible  <bruno@clisp.org>
53555
53556         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
53557         from 0.0058 to less than 10^-7.
53558
53559 2008-04-19  Bruno Haible  <bruno@clisp.org>
53560
53561         Fix rounding when a precision is given.
53562         * lib/vasnprintf.c (is_borderline): New function.
53563         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
53564         9...9x.
53565         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
53566         %e, %g.
53567         * tests/test-vasprintf-posix.c (test_function): Likewise.
53568         * tests/test-snprintf-posix.h (test_function): Likewise.
53569         * tests/test-sprintf-posix.h (test_function): Likewise.
53570         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
53571         * tests/test-printf-posix.h (test_function): Likewise.
53572         * tests/test-printf-posix.output: Update.
53573         Reported by John Darrington <john@darrington.wattle.id.au> via
53574         Ben Pfaff <blp@cs.stanford.edu>.
53575
53576 2008-04-18  Simon Josefsson  <simon@josefsson.org>
53577
53578         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
53579         Suggested by Bruno Haible <bruno@clisp.org>.
53580
53581 2008-04-17  Bruno Haible  <bruno@clisp.org>
53582
53583         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
53584         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
53585         implementation.
53586         Patch by Bruce Merry <bmerry@gmail.com>.
53587
53588 2008-04-17  Simon Josefsson  <simon@josefsson.org>
53589
53590         * doc/posix-functions/strftime.texi (strftime): Mention that %e
53591         doesn't work under Windows.
53592
53593 2008-04-16  Bruno Haible  <bruno@clisp.org>
53594
53595         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
53596         New macros.
53597         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
53598         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
53599         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
53600         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
53601         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
53602         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
53603         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
53604         macros.
53605         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
53606         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
53607         Northern Sotho, Uighur.
53608
53609 2008-04-16  Bruno Haible  <bruno@clisp.org>
53610
53611         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
53612         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
53613         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
53614         Reported by Daniel Bergström <daniel@octocode.com>.
53615
53616 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
53617             Bruno Haible  <bruno@clisp.org>
53618
53619         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
53620         function.
53621         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
53622         New functions, mostly extracted from gl_locale_name_default.
53623         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
53624
53625 2008-04-16  Eric Blake  <ebb9@byu.net>
53626
53627         Adjust strtod detection to catch glibc 2.7 bug.
53628         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
53629         Reported by John Gatewood Ham.
53630
53631 2008-04-16  Bruno Haible  <bruno@clisp.org>
53632
53633         Add tentative support for Linux libc5.
53634         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
53635         * lib/fpurge.c (fpurge): Likewise.
53636         * lib/freadable.c (freadable): Likewise.
53637         * lib/freadahead.c (freadahead): Likewise.
53638         * lib/freading.c (freading): Likewise.
53639         * lib/freadptr.c (freadptr): Likewise.
53640         * lib/freadseek.c (freadptrinc): Likewise.
53641         * lib/fseeko.c (rpl_fseeko): Likewise.
53642         * lib/fseterr.c (fseterr): Likewise.
53643         * lib/fwritable.c (fwritable): Likewise.
53644         * lib/fwriting.c (fwriting): Likewise.
53645         Reported by Alain Guibert <alguibert+bts@free.fr>.
53646
53647 2008-04-15  Bruno Haible  <bruno@clisp.org>
53648
53649         * modules/mathl (configure.ac): Define module indicator.
53650
53651 2008-04-15  Bruno Haible  <bruno@clisp.org>
53652
53653         * lib/logl.c (logl): Remove unused variables.
53654
53655 2008-04-15  Bruno Haible  <bruno@clisp.org>
53656
53657         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
53658         fails.
53659
53660 2008-04-15  Bruno Haible  <bruno@clisp.org>
53661
53662         * lib/trim.c (trim2): Fix argument of isspace() macro.
53663
53664 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
53665
53666         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
53667         to 0.
53668         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
53669
53670 2008-04-14  Bruno Haible  <bruno@clisp.org>
53671
53672         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
53673         AC_LANG_PROGRAM argument.
53674         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
53675         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
53676         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
53677         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
53678         * m4/math_h.m4 (gl_MATH_H): Likewise.
53679         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
53680         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
53681         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
53682         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
53683         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
53684         * m4/regex.m4 (gl_REGEX): Likewise.
53685         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
53686         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
53687         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
53688         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
53689         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
53690         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
53691         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
53692         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
53693
53694 2008-04-14  Jim Meyering  <meyering@redhat.com>
53695
53696         test-strtod: fix typos: s/abs/fabs/
53697         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
53698
53699 2008-04-13  Bruno Haible  <bruno@clisp.org>
53700
53701         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
53702         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
53703         module is also used and while not building the reloc-wrapper.
53704
53705 2008-04-13  Bruno Haible  <bruno@clisp.org>
53706
53707         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
53708
53709 2008-04-13  Bruno Haible  <bruno@clisp.org>
53710
53711         Fix AIX compilation failure introduced on 2008-04-02.
53712         * tests/test-frexp.c (exp): Undefine before redefining.
53713         * tests/test-frexpl.c (exp): Likewise.
53714
53715 2008-04-13  Bruno Haible  <bruno@clisp.org>
53716
53717         Work around a HP-UX stdio bug.
53718         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
53719         * tests/test-ftello.c (main): Likewise.
53720         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
53721         * doc/posix-functions/ftello.texi: Likewise.
53722
53723 2008-04-13  Bruno Haible  <bruno@clisp.org>
53724
53725         Make test-signbit pass on HP-UX/hppa.
53726         * tests/test-signbit.c (minus_zerol): New variable.
53727         (test_signbitl): Use it.
53728
53729 2008-04-13  Bruno Haible  <bruno@clisp.org>
53730
53731         Make truncl work on OSF/1 4.0.
53732         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
53733         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
53734         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
53735         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
53736         HAVE_DECL_TRUNCL.
53737         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
53738         HAVE_DECL_TRUNCL.
53739         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
53740
53741 2008-04-13  Bruno Haible  <bruno@clisp.org>
53742
53743         * lib/unictype.h: Remove trailing comma from enumeration definitions.
53744
53745 2008-04-13  Bruno Haible  <bruno@clisp.org>
53746
53747         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
53748         expression, so as to avoid HP-UX 11 cc compiler bug.
53749
53750 2008-04-13  Bruno Haible  <bruno@clisp.org>
53751
53752         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
53753
53754 2008-04-13  Bruno Haible  <bruno@clisp.org>
53755
53756         * lib/git-merge-changelog.c: Remove empty declaration outside of
53757         functions.
53758
53759 2008-04-13  Bruno Haible  <bruno@clisp.org>
53760
53761         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
53762
53763 2008-04-13  Bruno Haible  <bruno@clisp.org>
53764
53765         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
53766         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
53767         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
53768         also if it exists but lacks definitions of the SHUT_* macros.
53769         * modules/sys_socket (Description): Update.
53770         Reported by Elbert Pol <e.pol@chello.nl>.
53771
53772 2008-04-13  Bruno Haible  <bruno@clisp.org>
53773
53774         * lib/localcharset.c (OS2): Don't redefine if already defined.
53775         Reported by Elbert Pol <e.pol@chello.nl>.
53776
53777 2008-04-13  Bruno Haible  <bruno@clisp.org>
53778
53779         * lib/binary-io.h [__EMX__]: Include <io.h>.
53780         Reported by Elbert Pol <e.pol@chello.nl>.
53781
53782 2008-04-12  Bruno Haible  <bruno@clisp.org>
53783
53784         * lib/fpucw.h: Enable the definitions also for x86_64.
53785         Needed for NetBSD/x86_64.
53786         Reported by Thomas Klausner <tk@giga.or.at>.
53787
53788 2008-04-12  Bruno Haible  <bruno@clisp.org>
53789
53790         * tests/test-strtod.c: Include isnand.h.
53791         (main): Use isnand instead of isnan.
53792         Reported by Jim Meyering.
53793
53794 2008-04-12  Bruno Haible  <bruno@clisp.org>
53795
53796         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
53797         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
53798
53799 2008-04-12  Jim Meyering  <meyering@redhat.com>
53800
53801         * m4/math_h.m4 (gl_MATH_H): Fix typos.
53802
53803 2008-04-12  Bruno Haible  <bruno@clisp.org>
53804
53805         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
53806         Reported by Elbert Pol <e.pol@chello.nl>.
53807
53808 2008-04-12  Eric Blake  <ebb9@byu.net>
53809
53810         Work around Solaris 10 math.h bug.
53811         * m4/math_h.m4 (gl_MATH_H): Check for bug.
53812         (gl_MATH_H_DEFAULTS): Set up default.
53813         * modules/math (Makefile.am): Replace new indicators.
53814         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
53815         * tests/test-math.c (main): Test this.
53816         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
53817         * doc/posix-headers/math.texi (math.h): Mention bug.
53818         Reported by Nelson H. F. Beebe and Jim Meyering.
53819
53820 2008-04-11  Bruno Haible  <bruno@clisp.org>
53821
53822         Adapt to future versions of Apple GCC.
53823         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
53824         Reported by Peter O'Gorman <peter@pogma.com>.
53825
53826 2008-04-11  Bruno Haible  <bruno@clisp.org>
53827
53828         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
53829
53830 2008-04-11  Bruno Haible  <bruno@clisp.org>
53831
53832         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
53833
53834         * modules/getaddrinfo-tests (Makefile.am): Define
53835         test_getaddrinfo_LDADD.
53836
53837 2008-04-11  Bruno Haible  <bruno@clisp.org>
53838
53839         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
53840         (init): Fix syntax error.
53841         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
53842         is declared.
53843
53844 2008-04-11  Bruno Haible  <bruno@clisp.org>
53845
53846         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
53847         * modules/glob (Depends-on): Add stdbool.
53848
53849 2008-04-11  Bruno Haible  <bruno@clisp.org>
53850
53851         * lib/trim.c: Include <string.h>.
53852
53853 2008-04-11  Eric Blake  <ebb9@byu.net>
53854
53855         Avoid compile failure on OS/2.
53856         * lib/regex_internal.h (internal_function): Disable optimization
53857         on OS/2 (__EMX__), where it caused compiler error.
53858         Reported by Elbert Pol.
53859
53860 2008-04-11  Bruno Haible  <bruno@clisp.org>
53861
53862         Flush the standard error stream before aborting. Needed on mingw.
53863         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
53864         * tests/test-array_list.c (ASSERT): Likewise.
53865         * tests/test-array_oset.c (ASSERT): Likewise.
53866         * tests/test-avltree_list.c (ASSERT): Likewise.
53867         * tests/test-avltree_oset.c (ASSERT): Likewise.
53868         * tests/test-avltreehash_list.c (ASSERT): Likewise.
53869         * tests/test-binary-io.c (ASSERT): Likewise.
53870         * tests/test-byteswap.c (ASSERT): Likewise.
53871         * tests/test-c-ctype.c (ASSERT): Likewise.
53872         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
53873         * tests/test-c-strcasestr.c (ASSERT): Likewise.
53874         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
53875         * tests/test-c-strstr.c (ASSERT): Likewise.
53876         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
53877         * tests/test-canonicalize.c (ASSERT): Likewise.
53878         * tests/test-carray_list.c (ASSERT): Likewise.
53879         * tests/test-ceilf1.c (ASSERT): Likewise.
53880         * tests/test-ceilf2.c (ASSERT): Likewise.
53881         * tests/test-ceill.c (ASSERT): Likewise.
53882         * tests/test-count-one-bits.c (ASSERT): Likewise.
53883         * tests/test-fbufmode.c (ASSERT): Likewise.
53884         * tests/test-fflush2.c (ASSERT): Likewise.
53885         * tests/test-floorf1.c (ASSERT): Likewise.
53886         * tests/test-floorf2.c (ASSERT): Likewise.
53887         * tests/test-floorl.c (ASSERT): Likewise.
53888         * tests/test-fopen.c (ASSERT): Likewise.
53889         * tests/test-fpending.c (ASSERT): Likewise.
53890         * tests/test-fprintf-posix.c (ASSERT): Likewise.
53891         * tests/test-fpurge.c (ASSERT): Likewise.
53892         * tests/test-freadable.c (ASSERT): Likewise.
53893         * tests/test-freadahead.c (ASSERT): Likewise.
53894         * tests/test-freading.c (ASSERT): Likewise.
53895         * tests/test-freadptr.c (ASSERT): Likewise.
53896         * tests/test-freadptr2.c (ASSERT): Likewise.
53897         * tests/test-freadseek.c (ASSERT): Likewise.
53898         * tests/test-freopen.c (ASSERT): Likewise.
53899         * tests/test-frexp.c (ASSERT): Likewise.
53900         * tests/test-frexpl.c (ASSERT): Likewise.
53901         * tests/test-fseek.c (ASSERT): Likewise.
53902         * tests/test-fseeko.c (ASSERT): Likewise.
53903         * tests/test-fstrcmp.c (ASSERT): Likewise.
53904         * tests/test-ftell.c (ASSERT): Likewise.
53905         * tests/test-ftello.c (ASSERT): Likewise.
53906         * tests/test-func.c (ASSERT): Likewise.
53907         * tests/test-fwritable.c (ASSERT): Likewise.
53908         * tests/test-fwriting.c (ASSERT): Likewise.
53909         * tests/test-getdelim.c (ASSERT): Likewise.
53910         * tests/test-getline.c (ASSERT): Likewise.
53911         * tests/test-i-ring.c (ASSERT): Likewise.
53912         * tests/test-iconv-utf.c (ASSERT): Likewise.
53913         * tests/test-iconv.c (ASSERT): Likewise.
53914         * tests/test-isfinite.c (ASSERT): Likewise.
53915         * tests/test-isnand.c (ASSERT): Likewise.
53916         * tests/test-isnanf.c (ASSERT): Likewise.
53917         * tests/test-isnanl.h (ASSERT): Likewise.
53918         * tests/test-ldexpl.c (ASSERT): Likewise.
53919         * tests/test-linked_list.c (ASSERT): Likewise.
53920         * tests/test-linkedhash_list.c (ASSERT): Likewise.
53921         * tests/test-localename.c (ASSERT): Likewise.
53922         * tests/test-lseek.c (ASSERT): Likewise.
53923         * tests/test-mbscasecmp.c (ASSERT): Likewise.
53924         * tests/test-mbscasestr1.c (ASSERT): Likewise.
53925         * tests/test-mbscasestr2.c (ASSERT): Likewise.
53926         * tests/test-mbscasestr3.c (ASSERT): Likewise.
53927         * tests/test-mbscasestr4.c (ASSERT): Likewise.
53928         * tests/test-mbschr.c (ASSERT): Likewise.
53929         * tests/test-mbscspn.c (ASSERT): Likewise.
53930         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
53931         * tests/test-mbspbrk.c (ASSERT): Likewise.
53932         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
53933         * tests/test-mbsrchr.c (ASSERT): Likewise.
53934         * tests/test-mbsspn.c (ASSERT): Likewise.
53935         * tests/test-mbsstr1.c (ASSERT): Likewise.
53936         * tests/test-mbsstr2.c (ASSERT): Likewise.
53937         * tests/test-mbsstr3.c (ASSERT): Likewise.
53938         * tests/test-memchr2.c (ASSERT): Likewise.
53939         * tests/test-memmem.c (ASSERT): Likewise.
53940         * tests/test-open.c (ASSERT): Likewise.
53941         * tests/test-printf-frexp.c (ASSERT): Likewise.
53942         * tests/test-printf-frexpl.c (ASSERT): Likewise.
53943         * tests/test-printf-posix.c (ASSERT): Likewise.
53944         * tests/test-quotearg.c (ASSERT): Likewise.
53945         * tests/test-rbtree_list.c (ASSERT): Likewise.
53946         * tests/test-rbtree_oset.c (ASSERT): Likewise.
53947         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
53948         * tests/test-round1.c (ASSERT): Likewise.
53949         * tests/test-roundf1.c (ASSERT): Likewise.
53950         * tests/test-roundl.c (ASSERT): Likewise.
53951         * tests/test-signbit.c (ASSERT): Likewise.
53952         * tests/test-sleep.c (ASSERT): Likewise.
53953         * tests/test-snprintf-posix.c (ASSERT): Likewise.
53954         * tests/test-snprintf.c (ASSERT): Likewise.
53955         * tests/test-sprintf-posix.c (ASSERT): Likewise.
53956         * tests/test-stat-time.c (ASSERT): Likewise.
53957         * tests/test-strcasestr.c (ASSERT): Likewise.
53958         * tests/test-strerror.c (ASSERT): Likewise.
53959         * tests/test-striconv.c (ASSERT): Likewise.
53960         * tests/test-striconveh.c (ASSERT): Likewise.
53961         * tests/test-striconveha.c (ASSERT): Likewise.
53962         * tests/test-strsignal.c (ASSERT): Likewise.
53963         * tests/test-strstr.c (ASSERT): Likewise.
53964         * tests/test-strtod.c (ASSERT): Likewise.
53965         * tests/test-trunc1.c (ASSERT): Likewise.
53966         * tests/test-trunc2.c (ASSERT): Likewise.
53967         * tests/test-truncf1.c (ASSERT): Likewise.
53968         * tests/test-truncf2.c (ASSERT): Likewise.
53969         * tests/test-truncl.c (ASSERT): Likewise.
53970         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
53971         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
53972         * tests/test-vasnprintf.c (ASSERT): Likewise.
53973         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
53974         * tests/test-vasprintf.c (ASSERT): Likewise.
53975         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
53976         * tests/test-vprintf-posix.c (ASSERT): Likewise.
53977         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
53978         * tests/test-vsnprintf.c (ASSERT): Likewise.
53979         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
53980         * tests/test-wcwidth.c (ASSERT): Likewise.
53981         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
53982         * tests/test-xprintf-posix.c (ASSERT): Likewise.
53983         * tests/test-xvasprintf.c (ASSERT): Likewise.
53984         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
53985         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
53986         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
53987         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
53988         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
53989         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
53990         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
53991         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
53992         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
53993         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
53994         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
53995         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
53996         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
53997         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
53998         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
53999         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
54000         * tests/unictype/test-block_list.c (ASSERT): Likewise.
54001         * tests/unictype/test-block_of.c (ASSERT): Likewise.
54002         * tests/unictype/test-block_test.c (ASSERT): Likewise.
54003         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
54004         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
54005         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
54006         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
54007         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
54008         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
54009         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
54010         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
54011         * tests/unictype/test-combining.c (ASSERT): Likewise.
54012         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
54013         * tests/unictype/test-digit.c (ASSERT): Likewise.
54014         * tests/unictype/test-mirror.c (ASSERT): Likewise.
54015         * tests/unictype/test-numeric.c (ASSERT): Likewise.
54016         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
54017         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
54018         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
54019         * tests/unictype/test-scripts.c (ASSERT): Likewise.
54020         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
54021         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
54022         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
54023         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
54024         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
54025         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
54026         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
54027         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
54028         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
54029         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
54030         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
54031         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
54032         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
54033         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
54034         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
54035         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
54036         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
54037         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
54038         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
54039         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
54040         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
54041         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
54042         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
54043         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
54044         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
54045         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
54046         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
54047         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
54048         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
54049         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
54050         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
54051         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
54052         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
54053         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
54054         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
54055         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
54056         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
54057         Reported by Eric Blake.
54058
54059 2008-04-11  Bruno Haible  <bruno@clisp.org>
54060
54061         * lib/wchar.in.h: Tweak comment.
54062
54063 2008-04-11  Bruno Haible  <bruno@clisp.org>
54064
54065         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
54066         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
54067         gl_COMMON.
54068         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
54069
54070 2008-04-11  Bruno Haible  <bruno@clisp.org>
54071
54072         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
54073
54074 2008-04-11  Simon Josefsson  <simon@josefsson.org>
54075
54076         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
54077         of attempting to use non-existing /dev/*random.  Based on patch
54078         from Adam Strzelecki <ono@java.pl> in
54079         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
54080
54081 2008-04-08  Bruno Haible  <bruno@clisp.org>
54082
54083         Add tentative support for emx+gcc.
54084         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
54085         * lib/fpurge.c (fpurge): Likewise.
54086         * lib/freadable.c (freadable): Likewise.
54087         * lib/freadahead.c (freadahead): Likewise.
54088         * lib/freading.c (freading): Likewise.
54089         * lib/freadptr.c (freadptr): Likewise.
54090         * lib/freadseek.c (freadptrinc): Likewise.
54091         * lib/fseeko.c (rpl_fseeko): Likewise.
54092         * lib/fseterr.c (fseterr): Likewise.
54093         * lib/fwritable.c (fwritable): Likewise.
54094         * lib/fwriting.c (fwriting): Likewise.
54095         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
54096
54097 2008-04-09  Eric Blake  <ebb9@byu.net>
54098
54099         Avoid some autoconf warnings.
54100         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
54101         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
54102         * m4/afs.m4 (gl_AFS): Likewise.
54103         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
54104         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
54105         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
54106         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
54107         (gl_INTEGER_TYPE_SUFFIX): Likewise.
54108         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
54109         (AC_CHECK_DECLS_ONCE): Likewise.
54110         Rename file...
54111         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
54112         gnulib-tool requires autoconf 2.59 or better.
54113         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
54114
54115 2008-04-08  Eric Blake  <ebb9@byu.net>
54116
54117         Use 'git describe --match' if present (added in git 1.5.5).
54118         * build-aux/git-version-gen: Limit result to tags that match 'v*'
54119         if possible.
54120
54121 2008-04-08  Bruno Haible  <bruno@clisp.org>
54122
54123         Add tentative support for OpenServer.
54124         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
54125         _ptr, _cnt.
54126         * lib/fpurge.c (fpurge): Likewise.
54127         * lib/freadable.c (freadable): Likewise.
54128         * lib/freadahead.c (freadahead): Likewise.
54129         * lib/freading.c (freading): Likewise.
54130         * lib/freadptr.c (freadptr): Likewise.
54131         * lib/freadseek.c (freadptrinc): Likewise.
54132         * lib/fseeko.c (rpl_fseeko): Likewise.
54133         * lib/fseterr.c (fseterr): Likewise.
54134         * lib/fwritable.c (fwritable): Likewise.
54135         * lib/fwriting.c (fwriting): Likewise.
54136         Reported by Roger Cornelius <rac@tenzing.org> and
54137         Brian K. White <brian@aljex.com>.
54138
54139 2008-04-06  Jim Meyering  <meyering@redhat.com>
54140
54141         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
54142
54143 2008-04-06  Bruno Haible  <bruno@clisp.org>
54144
54145         Avoid possible error with non-ASCII bytes in UTF-8 locales.
54146         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
54147         * tests/test-printf-posix.sh: Likewise.
54148         * tests/test-vfprintf-posix.sh: Likewise.
54149         * tests/test-vprintf-posix.sh: Likewise.
54150         * tests/test-xprintf-posix.sh: Likewise.
54151
54152 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54153
54154         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
54155         hide error from 'ls', needed on OS/2.
54156         Report by Elbert Pol <elbert.pol@gmail.com>.
54157
54158 2008-04-04  Eric Blake  <ebb9@byu.net>
54159
54160         Make test-fseeko.c failures meaningful.
54161         * tests/test-fseeko.c: Print line number on failure.
54162         * tests/test-fseek.c: Likewise.
54163         Reported by Nelson H. F. Beebe.
54164
54165         Improve strtod bug detection check.
54166         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
54167         required for Solaris 10.
54168         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
54169
54170 2008-04-04  Bruno Haible  <bruno@clisp.org>
54171
54172         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
54173         by m4/setenv.m4.
54174
54175 2008-04-03  Eric Blake  <ebb9@byu.net>
54176
54177         Ensure sane .version contents.
54178         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
54179         version string.
54180         * build-aux/git-version-gen: Improve documentation.
54181
54182         Make GNU make output nicer.
54183         * top/GNUmakefile [!_have-Makefile]: Add dependency on
54184         MAKECMDGOALS to enforce message for all command line targets.  Set
54185         srcdir for use in maint.mk.
54186
54187         Another maintainer tweak.
54188         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
54189         a target that regenerates version.
54190
54191 2008-04-03  Jim Meyering  <meyering@redhat.com>
54192
54193         vc-list-files: don't cause coreutils "make po-check" failure
54194         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
54195
54196 2008-04-03  Eric Blake  <ebb9@byu.net>
54197
54198         Allow VPATH usage of vc-list-files.
54199         * build-aux/vc-list-files (scriptversion): Add timestamp.
54200         (options): Add --help, --version, -C.
54201         (CVS): Support installed cvsu.
54202
54203 2008-04-02  Bruno Haible  <bruno@clisp.org>
54204
54205         Avoid some "statement with no effect" warnings from gcc.
54206         * tests/test-wctype.c (main): Explicitly ignore unused values.
54207         Reported by Jim Meyering.
54208
54209 2008-04-02  Jim Meyering  <meyering@redhat.com>
54210
54211         Avoid some warnings from "gcc -Wshadow".
54212         * tests/test-frexp.c (exp): Define to a different identifier.
54213         * tests/test-frexpl.c (exp): Likewise.
54214
54215 2008-04-03  Jim Meyering  <meyering@redhat.com>
54216
54217         bootstrap: remove dangling *.[ch] symlinks from lib
54218         * build-aux/bootstrap [dangling symlink removal]: Move find's
54219         -depth option to precede all others, to avoid a warning.
54220         Remove *.[ch] files too, and from "$source_base" (usually lib/).
54221
54222 2008-04-02  Bruno Haible  <bruno@clisp.org>
54223
54224         Avoid some warnings from "gcc -Wshadow".
54225         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
54226         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
54227         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
54228         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
54229         Reported by Jim Meyering.
54230
54231 2008-04-01  Bruno Haible  <bruno@clisp.org>
54232
54233         Fix test to work on IRIX 6.5 with cc.
54234         * tests/test-math.c (numeric_equal): New function.
54235         (main): Use it.
54236
54237 2008-04-01  Bruno Haible  <bruno@clisp.org>
54238
54239         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
54240
54241 2008-04-01  Bruno Haible  <bruno@clisp.org>
54242
54243         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
54244         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
54245         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
54246         (Depends-on): Remove math.
54247
54248         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
54249         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
54250         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
54251         (Depends-on): Remove math.
54252
54253         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
54254         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
54255         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
54256         (Depends-on): Remove math.
54257         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
54258         (Depends-on): Remove math.
54259
54260         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
54261         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
54262         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
54263         (Depends-on): Remove math.
54264         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
54265         (Depends-on): Remove math.
54266
54267         * tests/test-round1.c: Include nan.h.
54268         (main): Use NaNd instead of NAN.
54269         * modules/round-tests (Files): Add tests/nan.h.
54270
54271         * tests/test-trunc1.c: Include nan.h.
54272         (main): Use NaNd instead of NAN.
54273         * modules/trunc-tests (Files): Add tests/nan.h.
54274
54275         * tests/test-roundf1.c: Include nan.h.
54276         (main): Use NaNf instead of NAN.
54277         * modules/roundf-tests (Files): Add tests/nan.h.
54278
54279         * tests/test-truncf1.c: Include nan.h.
54280         (main): Use NaNf instead of NAN.
54281         * modules/truncf-tests (Files): Add tests/nan.h.
54282
54283         * tests/test-ceilf1.c: Include nan.h.
54284         (main): Use NaNf instead of NAN.
54285         * modules/ceilf-tests (Files): Add tests/nan.h.
54286
54287         * tests/test-floorf1.c: Include nan.h.
54288         (main): Use NaNf instead of NAN.
54289         * modules/floorf-tests (Files): Add tests/nan.h.
54290
54291         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
54292         (main): Use NaNf instead of NAN.
54293         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
54294
54295         * tests/test-isnand.c: Include nan.h instead of <math.h>.
54296         (main): Use NaNd instead of NAN.
54297         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
54298
54299         * tests/test-frexp.c: Include nan.h.
54300         (main): Use NaNd instead of NAN.
54301         * modules/frexp-tests (Files): Add tests/nan.h.
54302
54303         * lib/isnan.c: Don't include <math.h>.
54304         (FUNC): Don't use NAN macro.
54305         * modules/isnand-nolibm (Depends-on): Remove math.
54306         * modules/isnanf-nolibm (Depends-on): Remove math.
54307         * modules/isnanl (Depends-on): Remove math.
54308         * modules/isnanl-nolibm (Depends-on): Remove math.
54309
54310         * tests/nan.h: New file.
54311
54312 2008-04-01  Eric Blake  <ebb9@byu.net>
54313
54314         Fix typos.
54315         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
54316         values to be the right type.
54317
54318         For now, cater to gnulib strtod inaccuracies.
54319         * tests/test-strtod.c (main): Allow 1-ulp error on expected
54320         fractional results.  While not as nice from a QoI perspective, it
54321         is a quicker patch than correctly implementing decimal to binary
54322         rounding.
54323
54324 2008-03-31  Eric Blake  <ebb9@byu.net>
54325
54326         Guarantee a definition of NAN.
54327         * lib/math.in.h (NAN): Define if missing.
54328         * tests/test-math.c (main): Test it.
54329         * doc/posix-headers/math.texi (math.h): Document this.
54330         * lib/isnan.c (rpl_isnand): Use it.
54331         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
54332         * tests/test-floorf1.c (NaN): Likewise.
54333         * tests/test-frexp.c (NaN): Likewise.
54334         * tests/test-isnand.c (NaN): Likewise.
54335         * tests/test-isnanf.c (NaN): Likewise.
54336         * tests/test-round1.c (NaN): Likewise.
54337         * tests/test-roundf1.c (NaN): Likewise.
54338         * tests/test-snprintf-posix.h (NaN): Likewise.
54339         * tests/test-sprintf-posix.h (NaN): Likewise.
54340         * tests/test-trunc1.c (NaN): Likewise.
54341         * tests/test-truncf1.c (NaN): Likewise.
54342         * tests/test-vasnprintf-posix.c (NaN): Likewise.
54343         * tests/test-vasprintf-posix.c (NaN): Likewise.
54344         * modules/isnand-nolibm (Depends-on): Add math.
54345         * modules/isnanf-nolibm (Depends-on): Likewise.
54346         * modules/isnanl (Depends-on): Likewise.
54347         * modules/isnanl-nolibm (Depends-on): Likewise.
54348         * modules/snprintf-posix-tests (Depends-on): Likewise.
54349         * modules/sprintf-posix-tests (Depends-on): Likewise.
54350         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
54351         * modules/vsprintf-posix-tests (Depends-on): Likewise.
54352         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
54353         * modules/vasprintf-posix-tests (Depends-on): Likewise.
54354
54355 2008-03-31  Bruno Haible  <bruno@clisp.org>
54356
54357         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
54358         * doc/posix-functions/strtod.texi: Likewise.
54359
54360 2008-03-31  Bruno Haible  <bruno@clisp.org>
54361
54362         * tests/test-strtod.c (main): Don't use C99 syntax.
54363
54364 2008-03-31  Bruno Haible  <bruno@clisp.org>
54365
54366         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
54367         Reported by Eric Blake.
54368
54369 2008-03-31  Jim Meyering  <meyering@redhat.com>
54370
54371         Don't compare actual signbit return values.
54372         * tests/test-strtod.c (main): Rather, compare only their
54373         zero/non-zero nature.
54374
54375 2008-03-31  Eric Blake  <ebb9@byu.net>
54376
54377         More strtod documentation.
54378         * doc/posix-functions/strtod.texi (strtod): Interpret more test
54379         failures as distinct bugs.
54380
54381 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
54382
54383         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
54384         Problem reported by Erik Benada in
54385         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
54386
54387 2008-03-30  Bruno Haible  <bruno@clisp.org>
54388
54389         * tests/test-strtod.c: Add comments about which assertion fails on which
54390         platform.
54391         * doc/posix-functions/strtod.texi: Add info about many more platforms.
54392
54393 2008-03-30  Eric Blake  <ebb9@byu.net>
54394
54395         Test signbit behavior on zeros.
54396         * tests/test-signbit.c (test_signbitf): Add tests for zero.
54397         (test_signbitd, test_signbitl): Likewise.
54398
54399         More strtod touchups.
54400         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
54401         sign of negative underflow, for now.  Use .5, not .1.
54402         * doc/posix-functions/strtod.texi (strtod): Mention these
54403         limitations.
54404         Reported by Jim Meyering.
54405
54406 2008-03-30  Bruno Haible  <bruno@clisp.org>
54407
54408         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
54409         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
54410
54411 2008-03-30  Bruno Haible  <bruno@clisp.org>
54412
54413         Avoid failure when attempting to return empty iconv results on some
54414         platforms.
54415         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
54416         allocation, don't report ENOMEM when the resulting string is empty.
54417
54418 2008-03-30  Bruno Haible  <bruno@clisp.org>
54419
54420         Fix buffer overrun.
54421         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
54422         Don't consider the width for tmp_length. Check count against tmp_length
54423         before doing the padding. Ensure enough allocation during padding.
54424
54425 2008-03-30  Eric Blake  <ebb9@byu.net>
54426
54427         strtod touchups.
54428         * lib/strtod.c (strtod): Avoid compiler warnings.
54429         Reported by Jim Meyering.
54430
54431 2008-03-30  Bruno Haible  <bruno@clisp.org>
54432
54433         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
54434         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
54435         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
54436         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
54437         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
54438         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
54439         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
54440         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
54441
54442         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
54443         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
54444         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
54445         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
54446         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
54447         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
54448         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
54449         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
54450
54451         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
54452         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
54453         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
54454         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
54455         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
54456         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
54457         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
54458         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
54459
54460         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
54461         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
54462
54463         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
54464         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
54465
54466         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
54467         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
54468
54469         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
54470         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
54471         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
54472
54473         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
54474         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
54475         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
54476
54477         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
54478         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
54479         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
54480
54481         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
54482         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
54483         * modules/vasprintf (Depends-on): Add EOVERFLOW.
54484
54485         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
54486         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
54487         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
54488         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
54489         (Depends-on): Add EOVERFLOW.
54490         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
54491         (Depends-on): Add EOVERFLOW.
54492         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
54493         (Depends-on): Add EOVERFLOW.
54494         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
54495         (Depends-on): Add EOVERFLOW.
54496         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
54497         (Depends-on): Add EOVERFLOW.
54498         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
54499         (Depends-on): Add EOVERFLOW.
54500         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
54501         (Depends-on): Add EOVERFLOW.
54502         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
54503         (Depends-on): Add EOVERFLOW.
54504
54505         * lib/sprintf.c (EOVERFLOW): Remove fallback.
54506         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
54507         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
54508
54509         * lib/snprintf.c (EOVERFLOW): Remove fallback.
54510         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
54511         * modules/snprintf (Depends-on): Add EOVERFLOW.
54512
54513         * lib/poll.c (EOVERFLOW): Remove fallback.
54514         * modules/poll (Depends-on): Add EOVERFLOW.
54515
54516         * lib/getugroups.c (EOVERFLOW): Remove fallback.
54517         * modules/getugroups (Depends-on): Add EOVERFLOW.
54518
54519         * lib/getdelim.c (EOVERFLOW): Remove fallback.
54520         * modules/getdelim (Depends-on): Add EOVERFLOW.
54521
54522         * lib/ftell.c (EOVERFLOW): Remove fallback.
54523         * modules/ftell (Depends-on): Add EOVERFLOW.
54524
54525         * lib/fprintf.c (EOVERFLOW): Remove fallback.
54526         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
54527         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
54528
54529         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
54530
54531         * modules/EOVERFLOW-tests: New file.
54532         * tests/test-EOVERFLOW.c: New file.
54533
54534         * modules/EOVERFLOW: New file.
54535         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
54536
54537 2008-03-30  Bruno Haible  <bruno@clisp.org>
54538
54539         Fix bug introduced on 2007-06-10.
54540         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
54541         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
54542
54543 2008-03-30  Bruno Haible  <bruno@clisp.org>
54544
54545         Improve freadseek's efficiency after ungetc.
54546         * lib/freadseek.c: Include freadahead.h.
54547         (freadptrinc): New function, extracted from freadseek.
54548         (freadseek): Use it in a loop. Use freadahead to determine the number
54549         of loop iterations.
54550         * modules/freadseek (Depends-on): Add freadahead.
54551         (configure.ac): Require AC_C_INLINE.
54552
54553 2008-03-30  Bruno Haible  <bruno@clisp.org>
54554
54555         * lib/freadseek.c (freadseek): Don't ignore the return value of
54556         freadptr.
54557
54558 2008-03-29  Eric Blake  <ebb9@byu.net>
54559
54560         Add hex float support.
54561         * modules/strtod (Depends-on): Add c-ctype.
54562         (Link): Mention POW_LIB.
54563         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
54564         whitespace between 'e' and exponent.
54565         * tests/test-strtod.c (main): Enable hex float tests.
54566         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
54567         now provides.
54568
54569         Document various strtod bugs, with some fixes.
54570         * doc/posix-functions/strtod.texi (strtod): Document bugs with
54571         "-0x", "inf", "nan", and hex constants.
54572         * doc/posix-functions/atof.texi (atof): Likewise.
54573         * modules/stdlib (Makefile.am): Support strtod.
54574         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
54575         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
54576         detect additional strtod bugs.
54577         * lib/stdlib.in.h (rpl_strtod): Add declarations.
54578         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
54579         bool where appropriate.  Parse 'inf' and 'nan'.
54580         * tests/test-strtod.c: New file.
54581         * modules/strtod (Depends-on): Add stdbool, stdlib.
54582         (configure.ac): Turn on module indicator.
54583         * modules/strtod-tests: New module.
54584
54585 2008-03-29  Eric Blake  <ebb9@byu.net>
54586
54587         Fix ftell on mingw.
54588         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
54589         * modules/ftell-tests (Depends-on): Add binary-io.
54590         * modules/ftello-tests (Depends-on): Likewise.
54591         * tests/test-ftell.c (main): Enhance test to cover behavior after
54592         ungetc.  Enforce binary mode.
54593         * tests/test-ftello.c (main): Likewise.
54594
54595         Pass test-freadseek on cygwin.
54596         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
54597         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
54598         ungetc buffer.
54599
54600         * tests/test-fflush2.c (main): Fix typo.
54601
54602 2008-03-29  Bruno Haible  <bruno@clisp.org>
54603
54604         * tests/test-fflush2.c (main): Temporarily disable the contents of
54605         this test.
54606         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
54607         Reported by Eric Blake.
54608
54609 2008-03-28  Simon Josefsson  <simon@josefsson.org>
54610
54611         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
54612         (GC_SHA224_DIGEST_SIZE): Add.
54613
54614         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
54615         (gc_hash_digest_length): Likewise.
54616         (gc_hash_buffer): Likewise.
54617
54618 2008-03-25  Bruno Haible  <bruno@clisp.org>
54619
54620         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
54621         detail which gettext release to use.
54622         Reported by Simon Josefsson.
54623
54624 2008-03-26  Jim Meyering  <meyering@redhat.com>
54625
54626         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
54627         * modules/gnumakefile (clean-GNUmakefile): Also, use
54628         test ... && ... || : syntax rather than if-then ... fi.
54629
54630         gnumakefile: Don't double-quote-expand $(VPATH) value.
54631         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
54632
54633 2008-03-24  Eric Blake  <ebb9@byu.net>
54634
54635         Alter GNUmakefile to install into top directory.
54636         * modules/maintainer-makefile: Split, and add dependency...
54637         * modules/gnumakefile: to this new module.
54638         * build-aux/GNUmakefile: Move...
54639         * top/GNUmakefile: ...here.
54640         * build-aux/maint.mk: Move...
54641         * top/maint.mk: ...here.
54642         * MODULES.html.sh (Support for maintaining...): Document new
54643         module.
54644
54645 2008-03-23  Bruno Haible  <bruno@clisp.org>
54646
54647         * gnulib-tool: New options --vc-files, --no-vc-files.
54648         (func_usage): Document them.
54649         (vc_files): New variable.
54650         (func_import): Consider vc_files.
54651         (func_create_testdir): Set vc_files to empty.
54652         Suggested by Jim Meyering and Karl Berry.
54653
54654 2008-03-23  Bruno Haible  <bruno@clisp.org>
54655
54656         Fix regex compilation error on HP-UX 11.
54657         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
54658         * modules/regex (Files): Add m4/mbstate_t.m4.
54659         Reported by Ton Voon <ton.voon@altinity.com>.
54660
54661 2008-03-23  Bruno Haible  <bruno@clisp.org>
54662
54663         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
54664
54665 2008-03-23  Eric Blake  <ebb9@byu.net>
54666             Bruno Haible  <bruno@clisp.org>
54667
54668         Install files from top/ in the destination directory.
54669         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
54670         augmentation also for the files from top/.
54671         (func_import, func_create_testdir): Rewrite file names:
54672         top/filename -> filename.
54673
54674 2008-03-23  Bruno Haible  <bruno@clisp.org>
54675
54676         Tweak "gnulib --version" output.
54677         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
54678
54679 2008-03-23  Bruno Haible  <bruno@clisp.org>
54680
54681         Tweak "gnulib --version" output.
54682         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
54683         rather than contents of ChangeLog, when possible.
54684
54685 2008-03-21  Eric Blake  <ebb9@byu.net>
54686
54687         More --version tweaks.
54688         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
54689         date of last ChangeLog entry.
54690
54691 2008-03-21  Jim Meyering  <meyering@redhat.com>
54692
54693         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
54694
54695 2008-03-20  Eric Blake  <ebb9@byu.net>
54696
54697         VPATH fix.
54698         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
54699
54700 2008-03-20  Simon Josefsson  <simon@josefsson.org>
54701
54702         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
54703         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
54704
54705 2008-03-20  Eric Blake  <ebb9@byu.net>
54706
54707         Sync GNUmakefile with coreutils.
54708         * build-aux/GNUmakefile (have-Makefile): Rename...
54709         (_have-Makefile): ...to this, for namespace consideration.
54710         (GNUmakefile.cfg): Include, if present.
54711         (_autoreconf): Define a default.
54712         (_is-dist-target): New rule for rebuilds to pick up intra-release
54713         version.
54714         (maint-cfg.mk): Rename...
54715         (cfg.mk): ...to this.
54716
54717 2008-03-18  Jim Meyering  <meyering@redhat.com>
54718
54719         New script and module: mktempd
54720         * MODULES.html.sh (maint+release support): Add mktempd.
54721         * build-aux/mktempd: New file.
54722         * modules/mktempd: New file.
54723
54724 2008-03-15  Jim Meyering  <meyering@redhat.com>
54725
54726         Undo last change.
54727         * lib/sha1.c, lib/md5.c: 63 != ~63.
54728         Reported by Andreas Schwab.
54729
54730         sha1.c, md5.c: Hoist a redundant expression.
54731         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
54732         "ctx->buflen" only once, before calling *_process_block.
54733         * lib/md5.c (md5_process_bytes): Likewise.
54734
54735 2008-03-14  Eric Blake  <ebb9@byu.net>
54736
54737         Bump copyright year in files generated by gnulib-tool.
54738         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
54739         gnulib-tool, rather than hard-coding it.
54740
54741         Fix 'gnulib-tool --version' output to work with git.
54742         * gnulib-tool (func_gnulib_dir): New function, extracted from...
54743         (startup): ...here.
54744         (func_version): Use it to invoke git-version-gen, rather than
54745         relying on CVS keyword expansion.  Modernize wording.
54746         (cvsdatestamp, last_checkin_date, version): Kill unused
54747         variables.
54748
54749 2008-03-12  Jim Meyering  <meyering@redhat.com>
54750
54751         Recognize optional cast of the argument to free.
54752         * build-aux/useless-if-before-free: Update regexps.
54753
54754         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
54755
54756 2008-03-11  Bruno Haible  <bruno@clisp.org>
54757
54758         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
54759         by a single package.
54760         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
54761         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
54762         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
54763         Reported by Sam Steingold <sds@gnu.org>.
54764
54765 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
54766
54767         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
54768         repositories.
54769
54770 2008-03-11  Bruno Haible  <bruno@clisp.org>
54771
54772         Avoid conflicts between local macro definitions.
54773         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
54774         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
54775
54776 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
54777             Bruno Haible  <bruno@clisp.org>
54778
54779         Make va_copy work with some version of xlc on AIX 5.1.
54780         * lib/stdarg.in.h: New file.
54781         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
54782         On AIX, use a <stdarg.h> file substitute.
54783         * modules/stdarg (Files): Add lib/stdarg.in.h.
54784         (Depends-on): Add include_next.
54785         (Makefile.am): Build a stdarg.h substitute if requested.
54786         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
54787
54788 2008-03-10  Bruno Haible  <bruno@clisp.org>
54789
54790         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
54791         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
54792         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
54793
54794 2008-03-10  Bruno Haible  <bruno@clisp.org>
54795
54796         * modules/stdlib (Depends-on): Add include_next, remove
54797         absolute-header.
54798
54799 2008-03-09  Bruno Haible  <bruno@clisp.org>
54800
54801         * lib/freadahead.h (freadahead): Document more precisely.
54802         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
54803         the sum of both buffer sizes.
54804         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
54805         * NEWS: Document the change.
54806
54807 2008-03-09  Bruno Haible  <bruno@clisp.org>
54808
54809         Extend freadptr to return also the buffer size.
54810         * lib/freadptr.h (freadptr): Add sizep argument.
54811         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
54812         (freadptr): Add sizep argument. Determine buffer size like freadahead
54813         does.
54814         * tests/test-freadptr.c: Don't include freadahead.h.
54815         (main): Adapt for new calling convention of freadptr.
54816         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
54817         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
54818         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
54819         tests/test-freadptr2.sh.
54820         (Depends): Remove freadahead.
54821         (TESTS): Add test-freadptr2.sh.
54822         (check_PROGRAMS): Add test-freadptr2.
54823
54824 2008-03-09  Bruno Haible  <bruno@clisp.org>
54825
54826         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
54827         Report and solution by Simon Josefsson.
54828
54829 2008-03-06  Bruno Haible  <bruno@clisp.org>
54830
54831         Make fflush after ungetc work on BSD platforms.
54832         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
54833         * tests/test-fflush2.c: New file.
54834         * tests/test-fflush2.sh: New file.
54835         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
54836         tests/test-fflush2.c.
54837         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
54838         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
54839
54840 2008-03-06  Eric Blake  <ebb9@byu.net>
54841
54842         Likewise for ftello.
54843         * modules/ftello (Dependencies): Add extensions.
54844         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
54845
54846 2008-03-06  Bruno Haible  <bruno@clisp.org>
54847
54848         * modules/fseeko (Dependencies): Add extensions.
54849         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
54850         Needed on glibc systems.
54851
54852 2008-03-06  Bruno Haible  <bruno@clisp.org>
54853
54854         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
54855         email address.
54856         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
54857
54858 2008-03-06  Bruno Haible  <bruno@clisp.org>
54859
54860         * users.txt: Add libgnupdf.
54861
54862 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
54863
54864         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
54865         (Header File Substitutes, Function Substitutes,
54866         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
54867         (Build robot for gnulib): Fix typo.
54868
54869 2008-03-06  Bruno Haible  <bruno@clisp.org>
54870
54871         * doc/gnulib-tool.texi (VCS Issues): Small updates.
54872         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
54873
54874 2008-03-06  Bruno Haible  <bruno@clisp.org>
54875
54876         * doc/func.texi: New file, extracted from doc/gnulib.texi.
54877         * doc/gnulib.texi: Include it.
54878
54879 2008-03-06  Simon Josefsson  <simon@josefsson.org>
54880
54881         * modules/func (License): Change license to unlimited; there was
54882         no LGPL parts in the module anyway.
54883
54884 2008-03-06  Simon Josefsson  <simon@josefsson.org>
54885
54886         * modules/__func__: Renamed to modules/func.
54887         * modules/__func__-tests: Renamed to modules/func-tests.
54888         * tests/test-__func__.c: Renamed to tests/test-func.c.
54889         * m4/__func__.m4: Renamed to m4/func.m4.
54890         * doc/gnulib.texi (__func__): Section renamed to func.
54891         Suggested by Eric Blake <ebb9@byu.net>.
54892
54893 2008-03-06  Simon Josefsson  <simon@josefsson.org>
54894
54895         * doc/gnulib.texi (__func__): Use C99 terminology when talking
54896         about __func__.  Make example self-contained.  Suggested by Eric
54897         Blake <ebb9@byu.net>.
54898
54899         * tests/test-__func__.c (main): Avoid extraneous () around __func.
54900         Suggested by Eric Blake <ebb9@byu.net>.
54901
54902 2008-03-06  Simon Josefsson  <simon@josefsson.org>
54903
54904         * modules/__func__: New file.
54905         * modules/__func__-tests: New file.
54906         * tests/test-__func__.c: New file.
54907         * m4/__func__.m4: New file.
54908         * doc/gnulib.texi (__func__): Document __func__ module.
54909
54910 2008-03-05  Simon Josefsson  <simon@josefsson.org>
54911
54912         * modules/byteswap (License): Re-license as LGPLv2+.
54913
54914 2008-03-05  Simon Josefsson  <simon@josefsson.org>
54915
54916         * doc/Makefile: Add pdf target.
54917
54918 2008-03-05  Simon Josefsson  <simon@josefsson.org>
54919
54920         * modules/inline (License): Use 'unlimited', since there are only
54921         *.m4 files in this module.
54922
54923 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
54924             Bruno Haible  <bruno@clisp.org>
54925
54926         Add support for HP C 7.1 on OpenVMS 8.3.
54927         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
54928
54929 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
54930
54931         Update VMS specifics.
54932         * lib/getopt.c [VMS]: Remove include of unixlib.h.
54933
54934 2008-03-02  Jim Meyering  <meyering@redhat.com>
54935
54936         Remove the last dependency on the "free" module.
54937         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
54938         Reported by Bob Proulx.
54939
54940         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
54941
54942         Remove useless "if" tests before free.  Deprecate "free" module.
54943         * doc/posix-functions/free.texi: Mention that this
54944         module is no longer useful.
54945         * modules/free (Notice): Say this module is obsolete.
54946         * modules/readutmp (Depends-on): Remove free.
54947         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
54948         * lib/putenv.c (putenv): Likewise.
54949         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
54950         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
54951         * tests/test-c-strcasestr.c (main): Likewise.
54952         * tests/test-c-strstr.c (main): Likewise.
54953         * tests/test-mbscasestr1.c (main): Likewise.
54954         * tests/test-mbscasestr2.c (main): Likewise.
54955         * tests/test-mbsstr1.c (main): Likewise.
54956         * tests/test-mbsstr2.c (main): Likewise.
54957         * tests/test-memmem.c (main): Likewise.
54958         * tests/test-strcasestr.c (main): Likewise.
54959         * tests/test-striconv.c (main): Likewise.
54960         * tests/test-striconveh.c (main): Likewise.
54961         * tests/test-striconveha.c (main): Likewise.
54962         * tests/test-strstr.c (main): Likewise.
54963
54964         * build-aux/git-version-gen: Adjust a comment and the Usage string.
54965
54966         bootstrap: sync from coreutils again
54967         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
54968
54969 2008-03-01  Jim Meyering  <meyering@redhat.com>
54970
54971         bootstrap: sync from coreutils
54972         * build-aux/bootstrap (update_po_files): Copy a .po file into place
54973         also when the target doesn't exist.
54974
54975 2008-03-01  Eric Blake  <ebb9@byu.net>
54976
54977         Fix bugs in last patch.
54978         * lib/memchr2.c (memchr2): Fix typo.
54979         * tests/test-memchr2.c: Test previous bug, and don't use GNU
54980         extension.
54981         Reported by Bruce Korb.
54982
54983         New module 'memchr2'.
54984         * modules/memchr2: New file.
54985         * modules/memchr2-tests: Likewise.
54986         * lib/memchr2.h: Likewise.
54987         * lib/memchr2.c: Likewise, based on memchr.c.
54988         * tests/test-memchr2.c: New test.
54989         * MODULES.html.sh (String handling): Add memchr2.
54990
54991 2008-02-29  Bruno Haible  <bruno@clisp.org>
54992
54993         * modules/freadseek-tests: New file.
54994         * tests/test-freadseek.sh: New file.
54995         * tests/test-freadseek.c: New file.
54996
54997         New module 'freadseek'.
54998         * modules/freadseek: New file.
54999         * lib/freadseek.h: New file.
55000         * lib/freadseek.c: New file.
55001         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
55002
55003 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
55004
55005         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
55006         wydawca.
55007
55008         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
55009         program_invocation_name and program_invocation_short_name are
55010         present.
55011
55012 2008-02-28  Bruno Haible  <bruno@clisp.org>
55013
55014         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
55015         * tests/test-freadptr.sh: Also test non-seekable stdin.
55016
55017 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
55018
55019         * build-aux/bootstrap (source_base, m4_base)
55020         (doc_base, tests_base): New variables.
55021         (gnulib_tool_options): Do not hardcode base directories, use
55022         the above variables instead.
55023
55024 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
55025
55026         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
55027
55028 2008-02-28  Bruno Haible  <bruno@clisp.org>
55029
55030         * modules/freadptr-tests: New file.
55031         * tests/test-freadptr.sh: New file.
55032         * tests/test-freadptr.c: New file.
55033
55034         New module 'freadptr'.
55035         * modules/freadptr: New file.
55036         * lib/freadptr.h: New file.
55037         * lib/freadptr.c: New file.
55038         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
55039
55040 2008-02-26  Karl Berry  <karl@freefriends.org>
55041
55042         Sync from Libtool:
55043         * libltdl/argz.c (argz_add, argz_count): New functions.
55044         * libltdl/argz.in.h: Declare them.
55045         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
55046
55047 2008-02-22  Bruno Haible  <bruno@clisp.org>
55048
55049         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
55050         is a pointer type.  Needed for HP-UX 10.
55051         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
55052         * doc/posix-functions/gmtime_r.texi: Likewise.
55053         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
55054
55055 2008-02-24  Bruno Haible  <bruno@clisp.org>
55056
55057         * modules/environ-tests: New file.
55058         * tests/test-environ.c: New file.
55059
55060         New module 'environ'.
55061         * modules/environ: New file.
55062         * lib/unistd.in.h (environ): New declaration.
55063         * m4/environ.m4: New file.
55064         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
55065         after use.
55066         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
55067         HAVE_DECL_ENVIRON.
55068         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
55069         HAVE_DECL_ENVIRON.
55070         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
55071         wrong claim that 'environ' is missing on some systems.
55072         * modules/execute (Depends-on): Add environ.
55073         * lib/execute.c (environ): Remove fallback declaration.
55074         * modules/pipe (Depends-on): Add environ.
55075         * lib/pipe.c (environ): Remove fallback declaration.
55076         * modules/setenv (Depends-on): Add environ.
55077         * lib/setenv.c (environ): Remove fallback declaration.
55078         * modules/unsetenv (Depends-on): Add environ.
55079         * lib/unsetenv.c (environ): Remove fallback declaration.
55080         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
55081         m4/environ.m4.
55082         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
55083         (gl_PREREQ_UNSETENV): Likewise.
55084
55085 2008-02-24  Bruno Haible  <bruno@clisp.org>
55086
55087         * doc/posix-functions/environ.texi: Document the MacOS X problem.
55088
55089 2008-02-20  Bob Proulx  <bob@proulx.com>
55090
55091         Enable use of older two part flavor 'git describe'.
55092         * build-aux/git-version-gen: If using the older two part flavor of
55093         git version then recreate the third part now present in the
55094         newer three part flavor of git describe.
55095
55096 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
55097
55098         * lib/fts.c (fts_build): Typo correction to comment.
55099
55100 2008-02-17  Bruno Haible  <bruno@clisp.org>
55101
55102         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
55103         generating no-op conflicts.
55104
55105 2008-02-17  Bruno Haible  <bruno@clisp.org>
55106
55107         Speed up by 10%.
55108         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
55109         result_entries, rather than an index-based loop.
55110
55111 2008-02-17  Bruno Haible  <bruno@clisp.org>
55112
55113         Speed up by 25%.
55114         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
55115         'hashcode_cached'.
55116         (entry_create): New function.
55117         (entry_hashcode): Use the cached hashcode if possible.
55118         (read_changelog_file, try_split_merged_entry): Use entry_create.
55119
55120 2008-02-17  Bruno Haible  <bruno@clisp.org>
55121
55122         Speed up from O(n^2) to O(n) for long ChangeLog files.
55123         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
55124         (read_changelog_file): Change implementation of entries_reversed list
55125         to rbtreehash.
55126         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
55127
55128 2008-02-17  Bruno Haible  <bruno@clisp.org>
55129
55130         New option --split-merged-entry.
55131         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
55132         (find_paragraph_end, try_split_merged_entry): New functions.
55133         (long_options): Add option --split-merged-entry.
55134         (usage): Document option --split-merged-entry.
55135         (main): Implement option --split-merged-entry.
55136         Reported by Eric Blake.
55137
55138 2008-02-17  Bruno Haible  <bruno@clisp.org>
55139
55140         * lib/git-merge-changelog.c: Include c-strstr.h.
55141         (main): Support the "git pull --rebase" situation.
55142         * modules/git-merge-changelog (Depends-on): Add c-strstr.
55143         Reported by Eric Blake.
55144
55145 2008-02-16  Eric Blake  <ebb9@byu.net>
55146
55147         Avoid doubling \ in common case of "c-maybe" quoting style.
55148         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
55149         eliding outer quotes.
55150         * lib/quotearg.h: Document this.
55151         * tests/test-quotearg.c (result_strings, inputs, results_g)
55152         (flag_results, locale_results): Test it by adding a new string to
55153         each test group.
55154         (compare_strings): Test new string.
55155
55156 2008-02-13  Eric Blake  <ebb9@byu.net>
55157
55158         Avoid trigraph quoting in default output.
55159         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
55160         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
55161         unless explicitly requested.
55162         * tests/test-quotearg.c (flag_results, main): Add additional tests.
55163
55164 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
55165
55166         Don't rely on signed integer overflowing to negative value.
55167         * lib/getugroups.c (getugroups): Include <limits.h>.
55168         Instead, compare against INT_MAX, and increment only if the test passes.
55169
55170 2008-02-13  Jim Meyering  <meyering@redhat.com>
55171         and Eric Blake  <ebb9@byu.net>
55172
55173         Avoid shadowing warning and compile errors on Linux.
55174         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
55175         forwarding macros on Linux.
55176         (dcgettext): Define a stub, for Linux.
55177         (results_g, main): Avoid warnings.
55178
55179 2008-02-12  Eric Blake  <ebb9@byu.net>
55180
55181         Silence warning in last patch.
55182         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
55183
55184         Quotearg part 4: add tests, fix c-maybe colon quoting.
55185         * lib/quotearg.h: Improve documentation.
55186         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
55187         escapes when adding outer quotes.  When quoting trigraphs, use
55188         valid C notation.  When quoting NUL, omit extra characters if next
55189         character is not digit.  Alter prototype.
55190         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
55191         callers.
55192         * modules/quotearg-tests: New module.
55193         * tests/test-quotearg.c: New test.
55194
55195 2008-02-07  Eric Blake  <ebb9@byu.net>
55196
55197         Quotearg part 3: add flag to control outer quote elision.
55198         * lib/quotearg.h (c_maybe_quoting_style): New style.
55199         (enum quoting_flags): Better documentation of flags.
55200         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
55201         c-maybe style.
55202         (quotearg_buffer_restyled): Handle new flag to elide outer
55203         quotes.
55204
55205         Quotearg part 2: add flag that can control NUL elision.
55206         * lib/quotearg.h (set_quoting_flags): New prototype.
55207         * lib/quotearg.c (struct quoting_options): Add flag field.
55208         (set_quoting_flags): New function.
55209         (quotearg_buffer_restyled): Add flags parameter.
55210         (quotearg_alloc_mem): Set the flag if length cannot be returned.
55211         (quotearg_n_options): Set the flag, since length cannot be
55212         returned.
55213         (quoting_options_from_style): Default flags correctly.
55214
55215         Quotearg part 1: more wrappers, restore quotearg_char state.
55216         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
55217         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
55218         (quotearg_colon_mem): New wrappers.
55219         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
55220         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
55221         functions.
55222         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
55223         (quotearg_colon_mem): New functions.
55224
55225 2008-02-11  Bruno Haible  <bruno@clisp.org>
55226
55227         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
55228         library in the current directory: it does not work with parallel make.
55229         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
55230
55231 2008-02-11  Bruno Haible  <bruno@clisp.org>
55232
55233         * .gitattributes: New file.
55234
55235 2008-02-11  Jim Meyering  <meyering@redhat.com>
55236
55237         useless-if-before-free: Fix reversed exit values.
55238         * build-aux/useless-if-before-free: Use correct values
55239         for EXIT_MATCH and EXIT_NO_MATCH.
55240
55241         * build-aux/useless-if-before-free: Close stdout carefully.
55242
55243 2008-02-10  Bruno Haible  <bruno@clisp.org>
55244
55245         New module 'git-merge-changelog'.
55246         * modules/git-merge-changelog: New file.
55247         * lib/git-merge-changelog.c: New file.
55248
55249 2008-02-10  Jim Meyering  <meyering@redhat.com>
55250
55251         useless-if-before-free: New option: --list (-l).
55252
55253         useless-if-before-free: Don't exit immediately upon open failure.
55254         * build-aux/useless-if-before-free: Exit 2 for errors.
55255         Upon failure to open a file, don't exit immediately.
55256         Rather, just warn and continue with any remaining files.
55257
55258 2008-02-10  Bruno Haible  <bruno@clisp.org>
55259
55260         New abstract list operation 'node_set_value'.
55261         * lib/gl_list.h (gl_list_node_set_value): New function.
55262         (struct gl_list_implementation): New field node_set_value.
55263         * lib/gl_list.c (gl_list_node_set_value): New function.
55264         * lib/gl_array_list.c (gl_array_node_set_value): New function.
55265         (gl_array_list_implementation): Update.
55266         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
55267         (gl_carray_list_implementation): Update.
55268         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
55269         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
55270         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
55271         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
55272         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
55273         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
55274         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
55275         Update.
55276         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
55277         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
55278         (gl_sublist_list_implementation): Update.
55279
55280 2008-02-10  Bruno Haible  <bruno@clisp.org>
55281
55282         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
55283         Needed when ELEMENT is #defined to 'some_type *'.
55284
55285 2008-02-10  Jim Meyering  <meyering@redhat.com>
55286
55287         New script and module: useless-if-before-free
55288         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
55289         * build-aux/useless-if-before-free: New file.
55290         * modules/useless-if-before-free: New file.
55291
55292         * build-aux/gitlog-to-changelog: Use committer date, not author date.
55293
55294         xstrtol_error: Fix typo.
55295         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
55296         s/exit_failure/exit_status/.
55297
55298 2008-02-09  Jim Meyering  <meyering@redhat.com>
55299
55300         New script and module: gitlog-to-changelog
55301         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
55302         * modules/gitlog-to-changelog: New file.
55303         * build-aux/gitlog-to-changelog: New file.
55304
55305 2008-02-08  Jim Meyering  <meyering@redhat.com>
55306
55307         Avoid two "parameter unused" warnings.
55308         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
55309         Mark "st" as used.
55310
55311         Use "git COMMAND", not "git-COMMAND".
55312         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
55313         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
55314         * build-aux/git-version-gen: Use "git status", not "git-status".
55315
55316 2008-02-07  Bruno Haible  <bruno@clisp.org>
55317
55318         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
55319         Avoids a crash on Windows Vista.
55320         Reported by Adam Strzelecki <ono@java.pl> via
55321         Simon Josefsson <simon@josefsson.org>.
55322
55323 2008-02-06  Bruno Haible  <bruno@clisp.org>
55324
55325         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
55326         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
55327         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
55328         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
55329         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
55330         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
55331         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
55332         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
55333         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
55334         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
55335         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
55336         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
55337         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
55338         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
55339         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
55340         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
55341         left-adjust flag.
55342         * tests/test-snprintf-posix.h (test_function): Likewise.
55343         * tests/test-sprintf-posix.h (test_function): Likewise.
55344         * tests/test-vasprintf-posix.c (test_function): Likewise.
55345         * doc/posix-functions/fprintf.texi: Update.
55346         * doc/posix-functions/printf.texi: Update.
55347         * doc/posix-functions/snprintf.texi: Update.
55348         * doc/posix-functions/sprintf.texi: Update.
55349         * doc/posix-functions/vfprintf.texi: Update.
55350         * doc/posix-functions/vprintf.texi: Update.
55351         * doc/posix-functions/vsnprintf.texi: Update.
55352         * doc/posix-functions/vsprintf.texi: Update.
55353         Reported by Peter Fales <psfales@alcatel-lucent.com>.
55354
55355 2008-02-06  Bruno Haible  <bruno@clisp.org>
55356
55357         Fix bug introduced on 2008-01-26.
55358         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
55359
55360 2008-02-06  Bruno Haible  <bruno@clisp.org>
55361
55362         Fix bug introduced on 2007-06-10.
55363         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
55364         !NEED_PRINTF_FLAG_ZERO.
55365
55366 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
55367
55368         getloadavg: use libperfstat on AIX5
55369         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
55370
55371 2008-02-03  Bruno Haible  <bruno@clisp.org>
55372
55373         * lib/diffseq.h: Add comments about required #includes.
55374         Reported by Michael Biggs <gnulib@doubleplum.net>.
55375
55376 2008-02-01  Bruno Haible  <bruno@clisp.org>
55377
55378         * users.txt: Add gnuit.
55379
55380 2008-01-31  Bruno Haible  <bruno@clisp.org>
55381
55382         * lib/md4.c (set_uint32): Mark as inline.
55383         * lib/md5.c (set_uint32): Likewise.
55384         * lib/sha1.c (set_uint32): Likewise.
55385         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
55386         * m4/md5.m4 (gl_MD5): Likewise.
55387         * m4/sha1.m4 (gl_SHA1): Likewise.
55388
55389 2008-01-31  Jim Meyering  <meyering@redhat.com>
55390
55391         Use "sizeof VAR", rather than a literal "4".
55392         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
55393         * lib/md4.c (md4_read_ctx): Likewise.
55394         * lib/sha1.c (sha1_read_ctx): Likewise.
55395
55396 2008-01-31  Simon Josefsson  <simon@josefsson.org>
55397
55398         * tests/test-sha1.c: New file, based on test-md5.c.
55399
55400         * modules/crypto/sha1-tests: New file.
55401
55402 2008-01-31  Simon Josefsson  <simon@josefsson.org>
55403
55404         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
55405
55406 2008-01-31  Jim Meyering  <meyering@redhat.com>
55407
55408         Prefer "sizeof v" over the equivalent "4".
55409         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
55410         * lib/md5.c (set_uint32): Likewise.
55411         * lib/sha1.c (set_uint32): Likewise.
55412
55413 2008-01-31  Simon Josefsson  <simon@josefsson.org>
55414
55415         * lib/sha1.c (set_uint32): Mark function as static.
55416
55417 2008-01-31  Simon Josefsson  <simon@josefsson.org>
55418
55419         md2: clarify comments to say that alignment is not required.
55420         * lib/md2.h: Remove warning about alignment in comment.
55421         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
55422         never been required.
55423
55424 2008-01-31  Simon Josefsson  <simon@josefsson.org>
55425
55426         md4: adapt alignment constraint fix from sha1.
55427         * lib/md4.c (set_uint32): New function, from sha1.c
55428         (md4_read_ctx): Use it.
55429         (md4_finish_ctx): Doc fix.
55430         * lib/md4.h: Doc fix.
55431
55432 2008-01-31  Simon Josefsson  <simon@josefsson.org>
55433
55434         md5: adapt alignment constraint fix from sha1.
55435         * lib/md5.c (set_uint32): New function, from sha1.c
55436         (md5_read_ctx): Use it.
55437         (md5_finish_ctx): Doc fix.
55438         * lib/md5.h: Doc fix.
55439
55440 2008-01-30  Peter Palfrader  <weasel@debian.org>
55441
55442         sha1: remove the result buffer alignment constraint
55443         * lib/sha1.c (set_uint32): New function.
55444         (sha1_read_ctx): Rewrite to remove the result buffer alignment
55445         constraint.
55446         (sha1_finish_ctx): Remove comment warning about alignment constraint.
55447         * lib/sha1.h: Likewise.
55448
55449 2008-01-30  Andreas Schwab  <schwab@suse.de>
55450             Bruno Haible  <bruno@clisp.org>
55451
55452         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
55453         correct definition of LDBL_MIN_EXP.
55454
55455 2008-01-30  Karl Berry  <karl@gnu.org>
55456
55457         * config/srclist-update: try to preserve x bit on updates.
55458         * config/srclistvars.sh: update for karl.
55459
55460 2008-01-29  Jim Meyering  <meyering@redhat.com>
55461
55462         vasnprintf.c: Avoid warning about unused label
55463         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
55464         "overflow" label definition and associated code with the
55465         same cpp condition that guards the sole use of that label.
55466
55467 2008-01-26  Bruno Haible  <bruno@clisp.org>
55468
55469         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
55470         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
55471         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
55472         * lib/isnanl-nolibm.h (isnanl): Likewise.
55473         Reported by Paul Eggert <eggert@cs.ucla.edu>.
55474
55475 2008-01-26  Bruno Haible  <bruno@clisp.org>
55476
55477         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
55478         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
55479
55480 2008-01-26  Bruno Haible  <bruno@clisp.org>
55481
55482         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
55483         GCC >= 4.0 built-in.
55484         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
55485
55486 2008-01-26  Bruno Haible  <bruno@clisp.org>
55487
55488         Rename isnan, applicable to 'double' only, to isnand.
55489         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
55490         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
55491         (configure.ac): Update.
55492         (Include): Replace "isnan.h" with "isnand.h".
55493         * m4/isnand.m4: Renamed from m4/isnan.m4.
55494         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
55495         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
55496         instead of isnan.c.
55497         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
55498         instead of HAVE_ISNAN_IN_LIBC.
55499         (isnand): Renamed from isnan.
55500         * lib/isnand.c: New file.
55501         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
55502         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
55503         (Makefile.am): Update.
55504         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
55505         Include isnand.h instead of isnan.h.
55506         (main): Test isnand instead of isnan.
55507         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
55508         isnan-nolibm.
55509         * modules/frexp (Depends-on): Likewise.
55510         * modules/frexp-tests (Depends-on): Likewise.
55511         * modules/frexp-nolibm (Depends-on): Likewise.
55512         * modules/frexp-nolibm-tests (Depends-on): Likewise.
55513         * modules/isfinite (Depends-on): Likewise.
55514         * modules/round-tests (Depends-on): Likewise.
55515         * modules/signbit (Depends-on): Likewise.
55516         * modules/signbit-tests (Depends-on): Likewise.
55517         * modules/snprintf-posix (Depends-on): Likewise.
55518         * modules/sprintf-posix (Depends-on): Likewise.
55519         * modules/trunc-tests (Depends-on): Likewise.
55520         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
55521         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
55522         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
55523         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
55524         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
55525         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
55526         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
55527         * modules/vasnprintf-posix (Depends-on): Likewise.
55528         * modules/vasprintf-posix (Depends-on): Likewise.
55529         * modules/vfprintf-posix (Depends-on): Likewise.
55530         * modules/vsnprintf-posix (Depends-on): Likewise.
55531         * modules/vsprintf-posix (Depends-on): Likewise.
55532         * lib/frexp.c: Include isnand.h instead of isnan.h.
55533         (ISNAN): Set to isnand instead of isnan.
55534         * lib/isfinite.c: Include isnand.h instead of isnan.h.
55535         (gl_isfinited): Use isnand instead of isnan.
55536         * lib/signbitd.c: Include isnand.h instead of isnan.h.
55537         (gl_signbitd): Use isnand instead of isnan.
55538         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
55539         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
55540         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
55541         (main): Use isnand instead of isnan.
55542         * tests/test-round1.c: Include isnand.h.
55543         (main): Use isnand instead of isnan.
55544         * tests/test-round2.c: Include isnand.h instead of isnan.h.
55545         (ISNAN): Set to isnand instead of isnan.
55546         * tests/test-trunc1.c: Include isnand.h.
55547         (main): Use isnand instead of isnan.
55548         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
55549         (equal): Use isnand instead of isnan.
55550         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
55551         isnand-nolibm.
55552         * NEWS: Mention the change.
55553
55554 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
55555             Bruno Haible  <bruno@clisp.org>
55556
55557         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
55558         the GCC builtins for signbits are present and set
55559         REPLACE_SIGNBIT_USING_GCC if so.
55560         * lib/math.in.h (signbit): Define using GCC builtins if
55561         REPLACE_SIGNBIT_USING_GCC is set.
55562         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
55563         REPLACE_SIGNBIT_USING_GCC.
55564         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
55565
55566 2008-01-25  Jim Meyering  <meyering@redhat.com>
55567
55568         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
55569         * lib/poll.c: Include <config.h>, not "config.h".
55570         * tests/test-getaddrinfo.c: Likewise.
55571
55572 2008-01-25  Simon Josefsson  <simon@josefsson.org>
55573
55574         * modules/sockets-tests: New file.
55575
55576 2008-01-24  Simon Josefsson  <simon@josefsson.org>
55577
55578         * modules/sockets: New module, can be used to call WSA_Startup and
55579         WSA_Cleanup when needed.
55580
55581         * lib/sockets.h, lib/sockets.c: New files.
55582
55583         * m4/sockets.m4: New file.
55584
55585         * tests/test-sockets.c: New file.
55586
55587 2008-01-19  Bruno Haible  <bruno@clisp.org>
55588
55589         * doc/posix-headers: Renamed from doc/headers.
55590         * doc/posix-functions: Renamed from doc/functions.
55591         * doc/gnulib.texi: Update.
55592
55593 2008-01-19  Bruno Haible  <bruno@clisp.org>
55594
55595         * doc/glibc-functions/strcasestr.texi: Include contents of
55596         doc/functions/strcasestr.texi, fixing the list of platforms.
55597         * doc/functions/strcasestr.texi: Remove file.
55598
55599 2008-01-19  Bruno Haible  <bruno@clisp.org>
55600
55601         * doc/glibc-functions/memmem.texi: Include contents of
55602         doc/functions/memmem.texi.
55603         * doc/functions/memmem.texi: Remove file.
55604
55605 2008-01-18  Bruno Haible  <bruno@clisp.org>
55606
55607         * doc/glibc-functions/*.texi: New files.
55608         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
55609         to use the new files.
55610
55611 2008-01-17  Bruno Haible  <bruno@clisp.org>
55612
55613         * tests/test-gethostname.c (main): Fix printf statement.
55614
55615 2008-01-17  Simon Josefsson  <simon@josefsson.org>
55616
55617         * modules/gethostname-tests: New file.
55618
55619         * tests/test-gethostname.c: New file.
55620
55621 2008-01-17  Simon Josefsson  <simon@josefsson.org>
55622
55623         * lib/gethostname.c: Include string.h unconditionally, strncpy is
55624         used by the UNAME case.  Reported by Bruno Haible
55625         <bruno@clisp.org>.
55626
55627 2008-01-17  Eric Blake  <ebb9@byu.net>
55628
55629         Convert c-strcasestr to be more efficient.
55630         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
55631         (Depends-on): Add c-strcase, remove malloca, strnlen.
55632         * tests/test-c-strcasestr.c (main): Enhance test.
55633         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
55634
55635 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
55636
55637         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
55638         Use it in creating po/Makevars.
55639
55640 2008-01-15  Simon Josefsson  <simon@josefsson.org>
55641
55642         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
55643         Applications that requires it should initialize libgcrypt
55644         manually.
55645
55646 2008-01-16  Simon Josefsson  <simon@josefsson.org>
55647
55648         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
55649
55650 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
55651
55652         Fix problem with getdate on mingw32 reported by Simon Josefsson
55653         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
55654         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
55655         tzname", when deciding whether to declare tzname.
55656         * lib/strftime.c (tzname): Likewise.
55657
55658 2008-01-15  Bruno Haible  <bruno@clisp.org>
55659
55660         Work around a MacOS X 10.5 bug in frexpl().
55661         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
55662         * doc/functions/frexpl.texi: Document the bug.
55663         Reported by Elias Pipping <pipping@gentoo.org>.
55664
55665 2008-01-14  Eric Blake  <ebb9@byu.net>
55666
55667         Touch up previous patch.
55668         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
55669         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
55670
55671         Convert strcasestr module to use Two-Way algorithm.
55672         * modules/strcasestr-simple: New module, based on the old
55673         strcasestr, but with Two-Way rather than KMP.
55674         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
55675         * lib/string.in.h (rpl_strcasestr): Declare.
55676         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
55677         performance.
55678         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
55679         * modules/string (Makefile.am): Support strcasestr.
55680         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
55681         * modules/strcasestr-tests (Depends-on): Check for alarm.
55682         * tests/test-strcasestr.c: Augment test.
55683         * lib/str-two-way.h: Clean up stray macro.
55684         * NEWS: Document new module.
55685         * MODULES.html.sh (string handling): Likewise.
55686         * doc/functions/strcasestr.texi: New file.
55687         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
55688         here, since it is not a POSIX function.
55689
55690 2008-01-14  Colin Watson  <cjwatson@debian.org>
55691             Bruno Haible  <bruno@clisp.org>
55692
55693         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
55694         works fine; if not, set REPLACE_STRSIGNAL.
55695         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
55696         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
55697         REPLACE_STRSIGNAL.
55698         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
55699         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
55700         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
55701
55702 2008-01-14  Bruno Haible  <bruno@clisp.org>
55703
55704         * modules/strsignal (Include): Change to <string.h>.
55705
55706 2008-01-14  Colin Watson  <cjwatson@debian.org>
55707
55708         * modules/argp (Notice): Add a notice recommending to change
55709         XGETTEXT_OPTIONS.
55710         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
55711
55712 2008-01-13  Colin Watson  <cjwatson@debian.org>
55713
55714         * modules/strsignal-tests: New file.
55715         * tests/test-strsignal.c: New file.
55716
55717         * lib/strsignal.c: New file, from glibc with modifications.
55718         * lib/siglist.h: New file, from glibc with modifications.
55719         * lib/string.in.h (strsignal): New declaration.
55720         * m4/strsignal.m4: New file.
55721         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
55722         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
55723         * modules/strsignal: New file.
55724         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
55725         HAVE_DECL_STRSIGNAL.
55726
55727 2008-01-13  Bruno Haible  <bruno@clisp.org>
55728
55729         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
55730         locale encoding is not ASCII. Needed for OpenBSD 4.0.
55731         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
55732         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
55733
55734 2008-01-13  Bruno Haible  <bruno@clisp.org>
55735
55736         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
55737         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
55738         * lib/argp.h (__attribute__): Likewise.
55739         * lib/c-stack.c (__attribute__): Likewise.
55740         * lib/error.h (__attribute__): Likewise.
55741         * lib/fts.c (__attribute__): Likewise.
55742         * lib/openat.h (__attribute__): Likewise.
55743         * lib/stdio.in.h (__attribute__): Likewise.
55744         * lib/string.in.h (__attribute__): Likewise.
55745         * lib/utimens.c (__attribute__): Likewise.
55746         * lib/vasnprintf.h (__attribute__): Likewise.
55747         * lib/xalloc.h (__attribute__): Likewise.
55748         * lib/xprintf.h (__attribute__): Likewise.
55749         * lib/xstrtol.h (__attribute__): Likewise.
55750         * lib/xvasprintf.h (__attribute__): Likewise.
55751
55752 2008-01-12  Bruno Haible  <bruno@clisp.org>
55753
55754         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
55755         * doc/glibc-headers/a.out.texi: New file.
55756         * doc/glibc-headers/aliases.texi: New file.
55757         * doc/glibc-headers/alloca.texi: New file.
55758         * doc/glibc-headers/ar.texi: New file.
55759         * doc/glibc-headers/argp.texi: New file.
55760         * doc/glibc-headers/argz.texi: New file.
55761         * doc/glibc-headers/byteswap.texi: New file.
55762         * doc/glibc-headers/crypt.texi: New file.
55763         * doc/glibc-headers/endian.texi: New file.
55764         * doc/glibc-headers/envz.texi: New file.
55765         * doc/glibc-headers/err.texi: New file.
55766         * doc/glibc-headers/error.texi: New file.
55767         * doc/glibc-headers/execinfo.texi: New file.
55768         * doc/glibc-headers/fpu_control.texi: New file.
55769         * doc/glibc-headers/fstab.texi: New file.
55770         * doc/glibc-headers/fts.texi: New file.
55771         * doc/glibc-headers/getopt.texi: New file.
55772         * doc/glibc-headers/ieee754.texi: New file.
55773         * doc/glibc-headers/ifaddrs.texi: New file.
55774         * doc/glibc-headers/libintl.texi: New file.
55775         * doc/glibc-headers/mcheck.texi: New file.
55776         * doc/glibc-headers/mntent.texi: New file.
55777         * doc/glibc-headers/obstack.texi: New file.
55778         * doc/glibc-headers/paths.texi: New file.
55779         * doc/glibc-headers/printf.texi: New file.
55780         * doc/glibc-headers/pty.texi: New file.
55781         * doc/glibc-headers/resolv.texi: New file.
55782         * doc/glibc-headers/shadow.texi: New file.
55783         * doc/glibc-headers/sysexits.texi: New file.
55784         * doc/glibc-headers/ttyent.texi: New file.
55785
55786 2008-01-12  Jim Meyering  <meyering@redhat.com>
55787
55788         announce-gen: emit Gnulib's git-based version string.
55789         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
55790         New option --gnulib-version=V, where V is expected to be
55791         the output of running git describe in the gnulib directory.
55792         (get_tool_versions): Request feedback on xdelta.  I suspect it's
55793         not useful, and plan to stop publishing an xdelta file with each
55794         coreutils release.
55795
55796         * build-aux/announce-gen: Also check for lzma-compressed files.
55797
55798 2008-01-11  Bruno Haible  <bruno@clisp.org>
55799
55800         * tests/test-memmem.c (main): Increase maximum allowed time.
55801         * tests/test-strstr.c (main): Likewise.
55802
55803 2008-01-11  Bruno Haible  <bruno@clisp.org>
55804
55805         * doc/functions/memmem.texi: Add more precisions about platforms.
55806         * doc/functions/strstr.texi: Likewise.
55807
55808 2008-01-10  Eric Blake  <ebb9@byu.net>
55809
55810         * m4/strstr.m4: Delete cruft from copy-n-paste.
55811         Reported by Bruno Haible.
55812
55813 2008-01-10  Bruno Haible  <bruno@clisp.org>
55814
55815         Make c-strstr rely on strstr.
55816         * lib/c-strstr.c: Don't include str-kmp.h.
55817         (c_strstr): Define in terms of strstr.
55818         * modules/c-strstr (Files): Remove lib/str-kmp.h.
55819         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
55820
55821 2008-01-10  Bruno Haible  <bruno@clisp.org>
55822
55823         * doc/gnulib.texi (String Functions in C Locale): New section.
55824         * doc/c-ctype.texi: New file.
55825         * doc/c-strcase.texi: New file.
55826         * doc/c-strcaseeq.texi: New file.
55827         * doc/c-strcasestr.texi: New file.
55828         * doc/c-strstr.texi: New file.
55829         * doc/c-strtod.texi: New file.
55830         * doc/c-strtold.texi: New file.
55831
55832 2008-01-10  Eric Blake  <ebb9@byu.net>
55833
55834         * lib/relocatable.h: Fix a comment.
55835
55836 2008-01-10  Eric Blake  <ebb9@byu.net>
55837
55838         Share two-way algorithm.
55839         * lib/str-two-way.h: New file, merged from...
55840         * lib/memmem.c: ...here...
55841         * lib/strstr.c: ...and here.
55842         * modules/memmem (Files): Use it.
55843         * modules/strstr (Files): Likewise.
55844
55845         Avoid quadratic strstr implementations.
55846         * lib/strstr.c: New file.
55847         * m4/strstr.m4: Likewise.
55848         * modules/strstr: Likewise.
55849         * modules/strstr-tests: Likewise.
55850         * tests/test-strstr.c: Likewise.
55851         * lib/string.in.h (rpl_strstr): Declare.
55852         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
55853         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
55854         * modules/string (Makefile.am): Likewise.
55855         * MODULES.html.sh (string handling): Mention new module.
55856         * doc/functions/strstr.texi (strstr): Document the bug.
55857
55858 2008-01-10  Bruno Haible  <bruno@clisp.org>
55859
55860         * lib/relocatable.h (relocate): State whether result is freshly
55861         allocated or not.
55862         * lib/relocatable.c (relocate): Return a freshly allocated string
55863         instead of a pointer to a privately held string.
55864         Reported by Sylvain Beucler <beuc@gnu.org>.
55865
55866 2008-01-10  Colin Watson  <cjwatson@debian.org>
55867
55868         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
55869         s/S_ISNLK/S_ISLNK/.
55870
55871 2008-01-09  Bruno Haible  <bruno@clisp.org>
55872
55873         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
55874         and other files.
55875         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
55876         if it's only a guess.
55877         * modules/memmem: Simplify by depending on memmem-simple.
55878
55879 2008-01-09  Bruno Haible  <bruno@clisp.org>
55880
55881         Work around OpenBSD 4.0 tdelete() bug.
55882         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
55883         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
55884         macros and don't redefine the enum values.
55885         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
55886         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
55887         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
55888
55889 2008-01-09  Bruno Haible  <bruno@clisp.org>
55890
55891         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
55892         (main): Don't perform the tests if setlocale did not install a UTF-8
55893         locale. Needed on OpenBSD 4.0.
55894         * modules/wcwidth-tests (Depends-on): Add localcharset.
55895
55896 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
55897
55898         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
55899         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
55900         * NEWS: announce this.
55901         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
55902
55903 2008-01-09  Simon Josefsson  <simon@josefsson.org>
55904         and Eric Blake  <ebb9@byu.net>
55905
55906         Add memmem-simple module.
55907         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
55908         (gl_FUNC_MEMMEM): Separate performance from presence checks.
55909         * modules/memmem-simple: New file.
55910         * modules/memmem (Description): Tweak.
55911         * MODULES.html.sh (string handling): Mention new module.
55912         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
55913         addressed by memmem-simple.
55914         * NEWS: Document the difference.
55915
55916 2008-01-09  Eric Blake  <ebb9@byu.net>
55917
55918         Give gcc some memmem optimization hints.
55919         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
55920         (strcasestr): Declare as pure.
55921         * modules/memmem (Maintainer): Claim my implementation.
55922
55923 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55924
55925         Support AIX 6.1 and higher.
55926         * build-aux/config.libpath: Likewise.
55927         * build-aux/config.rpath: Likewise.
55928
55929 2008-01-08  Jim Meyering  <meyering@redhat.com>
55930             Bruno Haible  <bruno@clisp.org>
55931
55932         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
55933         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
55934         Reported by Peter Fales in
55935         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
55936
55937 2008-01-08  Bruno Haible  <bruno@clisp.org>
55938
55939         * modules/unictype/category-of (Depends-on): Add
55940         unictype/category-none.
55941         * modules/unictype/category-and-tests (Depends-on): Add
55942         unictype/category-{L,N,Lu,Nd}.
55943         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
55944         * modules/unictype/category-or-tests (Depends-on): Add
55945         unictype/category-{L,N}.
55946         * modules/unictype/category-name-tests (Depends-on): Add
55947         unictype/category-{Z,Nl}.
55948         Reported by Simon Josefsson.
55949
55950 2008-01-08  Bruno Haible  <bruno@clisp.org>
55951
55952         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
55953         convention better.
55954         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
55955         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
55956         Reported by Peter Miller <millerp@canb.auug.org.au>.
55957
55958 2008-01-08  Eric Blake  <ebb9@byu.net>
55959
55960         Rewrite memmem to guarantee linear complexity without malloc.
55961         * lib/memmem.c (memmem): Use Two-Way rather than
55962         Knuth-Morris-Pratt, to allow O(1) space usage.
55963         (critical_factorization, two_way_short_needle)
55964         (two_way_long_needle): New functions.
55965         (knuth_morris_pratt): Delete.
55966         * modules/memmem (Depends-on): No longer need malloca or stdbool.
55967         Add stdint.
55968         * tests/test-memmem.c (main): Add tests for periodic needle and
55969         sublinear performance.
55970         * doc/functions/memmem.texi (memmem): Document other deficiencies
55971         in cygwin and older glibc.
55972
55973 2008-01-08  Bruno Haible  <bruno@clisp.org>
55974
55975         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
55976         augmentation.
55977
55978 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
55979
55980         Add a configure time option: --disable-acl.
55981         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
55982         AC_ARG_ENABLE(acl).
55983
55984 2008-01-06  Simon Josefsson  <simon@josefsson.org>
55985
55986         * tests/test-localename.c: Don't include obsolete "setenv.h".
55987
55988         * modules/localename-tests (Depends-on): Need unsetenv.
55989
55990 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55991
55992         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
55993
55994 2008-01-06  Colin Watson  <cjwatson@debian.org>
55995
55996         * users.txt: Add man-db.
55997
55998 2008-01-07  Bruno Haible  <bruno@clisp.org>
55999
56000         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
56001         previous section name.
56002
56003 2008-01-07  Bruno Haible  <bruno@clisp.org>
56004
56005         * lib/progname.c (set_program_name): Don't strip off a leading
56006         "lt-" prefix outside a .libs directory.
56007         Suggested by Paul Eggert.
56008
56009 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
56010             Bruno Haible  <bruno@clisp.org>
56011
56012         Improve memory cleanup in 'relocatable' module.
56013         * lib/relocatable.h (compute_curr_prefix): Change return type to
56014         'char *'.
56015         * lib/relocatable.c (compute_curr_prefix): Change return type to
56016         'char *'. Free curr_installdir after use.
56017         (relocate): Free curr_prefix_better after use.
56018         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
56019
56020 2008-01-01  Bruno Haible  <bruno@clisp.org>
56021
56022         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
56023         failure on older glibc systems.
56024         Reported by Peter Fales <psfales@alcatel-lucent.com>.
56025
56026 2008-01-05  Eric Blake  <ebb9@byu.net>
56027
56028         Avoid quadratic system memmem.
56029         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
56030         Reported by Ralf Wildenhues.
56031
56032         Fix memmem test for mingw.
56033         * modules/memmem-tests (configure.ac): Check for alarm.
56034         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
56035         it.
56036         * doc/functions/memmem.texi: New file.
56037         * doc/gnulib.texi (Function Substitutes): Add memmem.
56038         Reported by Bruno Haible.
56039
56040 2008-01-04  Bruno Haible  <bruno@clisp.org>
56041
56042         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
56043         Require gl_HEADER_STRINGS_H_DEFAULTS, not
56044         gl_HEADER_STRING_H_DEFAULTS.
56045
56046 2008-01-04  Eric Blake  <ebb9@byu.net>
56047
56048         Shorten duration of memmem test.
56049         * tests/test-memmem.c (main): Use alarm to declare failure if test
56050         is taking too long.
56051         Reported by Ralf Wildenhues.
56052
56053 2007-12-21  Simon Josefsson  <simon@josefsson.org>
56054
56055         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
56056         string, needed by strerror.
56057
56058 2008-01-03  Colin Watson  <cjwatson@debian.org>
56059             Bruno Haible  <bruno@clisp.org>
56060
56061         * doc/gnulib-tool.texi (Localization): New section.
56062
56063 2008-01-02  Bruno Haible  <bruno@clisp.org>
56064
56065         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
56066         variables to 'unsigned char *' type.
56067         Reported by Paul Eggert.
56068
56069 2008-01-02  Jim Meyering  <jim@meyering.net>
56070
56071         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
56072
56073 2007-12-31  Jim Meyering  <jim@meyering.net>
56074
56075         Avoid use of private FTS type name.
56076         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
56077
56078 2007-12-30  Karl Berry  <karl@gnu.org>
56079
56080         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
56081         work around defect in Texinfo and/or the standalone Info browser.
56082
56083 2007-12-30  Bruno Haible  <bruno@clisp.org>
56084
56085         Unify 5 copies of the KMP code.
56086         * lib/str-kmp.h: New file.
56087         * lib/c-strcasestr.c: Include str-kmp.h.
56088         (knuth_morris_pratt): Remove function.
56089         (c_strcasestr): Update.
56090         * lib/c-strstr.c: Include str-kmp.h.
56091         (knuth_morris_pratt): Remove function.
56092         (c_strcasestr): Update.
56093         * lib/mbscasestr.c: Include str-kmp.h.
56094         (knuth_morris_pratt_unibyte): Remove function.
56095         * lib/mbsstr.c: Include str-kmp.h.
56096         (knuth_morris_pratt_unibyte): Remove function.
56097         * lib/strcasestr.c: Include str-kmp.h.
56098         (knuth_morris_pratt): Remove function.
56099         (strcasestr): Update.
56100         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
56101         * modules/c-strstr (Files): Likewise.
56102         * modules/mbscasestr (Files): Likewise.
56103         * modules/mbsstr (Files): Likewise.
56104         * modules/strcasestr (Files): Likewise.
56105         Suggested by Paul Eggert.
56106
56107 2007-12-30  Bruno Haible  <bruno@clisp.org>
56108
56109         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
56110         defined.
56111
56112 2007-12-30  Bruno Haible  <bruno@clisp.org>
56113
56114         * lib/xmalloca.h: Include xalloc.h.
56115         (xnmalloca): New macro.
56116
56117 2007-12-30  Bruno Haible  <bruno@clisp.org>
56118
56119         * lib/malloca.h (nmalloca): New macro.
56120         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
56121         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
56122         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
56123         knuth_morris_pratt_multibyte): Likewise.
56124         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
56125         knuth_morris_pratt_multibyte): Likewise.
56126         * lib/memmem.c (knuth_morris_pratt): Likewise.
56127         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
56128
56129 2007-12-25  Bruno Haible  <bruno@clisp.org>
56130
56131         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
56132         * lib/glob.c: Don't include openat.h.
56133         (link_exists2_p): Add back the code that deals with the
56134         !GLOB_ALTDIRFUNC case.
56135         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
56136         let it do the filename concatenation.
56137         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
56138         * modules/glob (Depends-on): Remove openat.
56139
56140 2007-12-31  Bruno Haible  <bruno@clisp.org>
56141
56142         * modules/dirfd (License): Change to LGPLv2+.
56143         Approved by Jim Meyering.
56144
56145 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
56146
56147         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
56148         when multiplying M by sizeof (size_t).
56149
56150 2007-12-10  Martin Lambers  <marlam@marlam.de>
56151
56152         Override getpagesize on mingw.
56153         * lib/getpagesize.c: New file.
56154         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
56155         * modules/getpagesize (Files): Add lib/getpagesize.c.
56156         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
56157         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
56158         REPLACE_GETPAGESIZE.
56159         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
56160
56161 2007-12-25  Bruno Haible  <bruno@clisp.org>
56162
56163         * modules/localcharset (Notice): New field.
56164         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
56165         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
56166
56167 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
56168             Bruno Haible  <bruno@clisp.org>
56169
56170         Avoid using the syntax symbol() in formatted documentation.
56171         * MODULES.html.sh (func_module): When replacing symbol() with a
56172         hyperlink, remove the parentheses. Show an error if some remain.
56173         Recognize and render the '...' syntax.
56174         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
56175         Rework. Add paragraph about GCC's inlining.
56176         * doc/alloca.texi: Likewise.
56177         * doc/error.texi: Remove parentheses from symbol reference.
56178         * doc/gnulib-intro.texi: Likewise.
56179         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
56180         * modules/fnmatch (Description): Reword to say "the ... function".
56181         * modules/full-read (Description): Likewise.
56182         * modules/full-write (Description): Likewise.
56183         * modules/safe-read (Description): Likewise.
56184         * modules/safe-write (Description): Likewise.
56185         * modules/strchrnul (Description): Likewise.
56186         * modules/trim (Description): Likewise.
56187         * modules/error (Description): Remove parentheses from symbol
56188         references.
56189         * modules/verror (Description): Likewise.
56190         Reported by Karl Berry.
56191
56192 2007-12-25  Bruno Haible  <bruno@clisp.org>
56193
56194         Fixup after 2007-10-16 commit.
56195         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
56196
56197 2007-12-24  Bruno Haible  <bruno@clisp.org>
56198
56199         Make --enable-relocatable work with DESTDIR.
56200         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
56201         to compute installdir from destprog.
56202         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
56203         also set the RELOC_DESTDIR variable.
56204         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
56205
56206 2007-12-24  Bruno Haible  <bruno@clisp.org>
56207
56208         Fix link error due to xalloc_die().
56209         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
56210         of xreadlink.
56211         * lib/relocwrapper.c: Update comments.
56212         * build-aux/install-reloc: Remove xreadlink.c from file list.
56213         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
56214         xreadlink.c.
56215         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
56216
56217 2007-12-24  Bruno Haible  <bruno@clisp.org>
56218
56219         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
56220         * lib/setenv.h: Remove file.
56221         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
56222         lib/setenv.h.
56223         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
56224         (Depends-on): Add stdlib.
56225         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
56226         gl_FUNC_UNSETENV.
56227         (Include): Replace setenv.h with <stdlib.h>.
56228         * modules/unsetenv: New file.
56229         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
56230         * lib/unsetenv.c: Include <stdlib.h> first.
56231         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
56232         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
56233         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
56234         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
56235         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
56236         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
56237         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
56238         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
56239         * doc/functions/unsetenv.texi: Update.
56240         * modules/xsetenv (Depends-on): Add unsetenv.
56241         * modules/getdate (Depends-on): Likewise.
56242         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
56243         * lib/xsetenv.c: Don't include setenv.h.
56244         * lib/getdate.y: Likewise.
56245         * lib/relocwrapper.c: Likewise.
56246         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
56247         (Depends-on): Add stdlib.
56248         * NEWS: Mention the changes.
56249         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
56250
56251 2007-12-23  Bruno Haible  <bruno@clisp.org>
56252
56253         * lib/memmem.c (memmem): Use lowercase variable names. Tab
56254         indentation.
56255
56256 2007-12-23  Bruno Haible  <bruno@clisp.org>
56257
56258         * lib/c-strcasestr.c: Add more comments.
56259         * lib/c-strstr.c: Likewise.
56260         * lib/mbscasestr.c: Likewise.
56261         * lib/mbsstr.c: Likewise.
56262         * lib/strcasestr.c: Likewise.
56263         * lib/memmem.c: Likewise.
56264
56265 2007-12-23  Bruno Haible  <bruno@clisp.org>
56266
56267         * tests/test-memmem.c: Include <string.h> first.
56268
56269 2007-12-22  Bruno Haible  <bruno@clisp.org>
56270
56271         * gnulib-tool (func_create_testdir): Change $auxdir while generating
56272         the contents of $testsbase.
56273         Reported by Ralf Wildenhues.
56274
56275 2007-12-22  Bruno Haible  <bruno@clisp.org>
56276
56277         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
56278         two variables local_ldadd_before, local_ldadd_last.
56279
56280 2007-12-20  Eric Blake  <ebb9@byu.net>
56281
56282         Work around circular library issue when cross-compiling.
56283         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
56284         that progname.o does not need to pull in rpl_memcmp.
56285
56286 2007-12-19  Eric Blake  <ebb9@byu.net>
56287
56288         Fix memmem to avoid O(n^2) worst-case complexity.
56289         * lib/memmem.c (knuth_morris_pratt): New function.
56290         (memmem): Use it if first few naive iterations fail.
56291         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
56292         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
56293         * modules/memchr (License): Likewise.
56294         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
56295         malloca.
56296         * tests/test-memmem.c: Rewrite, borrowing ideas from
56297         test-mbsstr1.c; the old version wouldn't even compile!
56298         * modules/memmem-tests: New file.
56299         * lib/string.in.h (rpl_memmem): Add declaration.
56300         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
56301         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
56302         REPLACE_MEMMEM.
56303
56304 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
56305
56306         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
56307         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
56308         before any system include files, and undef after them all.  This
56309         should fix a problem on VMS reported by John E. Malmberg in
56310         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
56311
56312 2007-12-17  Eric Blake  <ebb9@byu.net>
56313
56314         Revert addition of verify, for BSD/OS.
56315         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
56316         can't handle large files, for the sake of obsolete platforms.
56317         * modules/fseeko (Depends-on): Remove verify.
56318         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
56319         * doc/functions/ftello.texi (ftello): Likewise.
56320         * doc/functions/fgetpos.texi (fgetpos): Likewise.
56321         Reported by Larry Jones.
56322
56323 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
56324
56325         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
56326         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
56327
56328 2007-12-17  Jim Meyering  <meyering@redhat.com>
56329
56330         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
56331         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
56332         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
56333         * modules/getcwd (Depends-on): Add openat.
56334         Reported by Petr Salinger.
56335
56336 2007-12-17  Bruno Haible  <bruno@clisp.org>
56337
56338         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
56339         avoid a segmentation fault of the configure test on x86_64 systems.
56340
56341 2007-12-15  Jim Meyering  <meyering@redhat.com>
56342
56343         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
56344
56345 2007-12-13  Eric Blake  <ebb9@byu.net>
56346
56347         Another fseek test.
56348         * tests/test-fseek.c (main): Also test ungetc handling.
56349         * tests/test-fseeko.c (main): Likewise.
56350         * modules/fseeko (Depends-on): Add verify.
56351         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
56352         large.
56353         Reported by Larry Jones.
56354
56355         Fix fseeko on mingw.
56356         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
56357         seek.
56358
56359         Beef up fseek tests.
56360         * tests/test-fseek.c (main): Also test eof handling.
56361         * tests/test-fseeko.c (main): Likewise.
56362         Reported by Larry Jones.
56363
56364 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
56365
56366         Fix fseeko on BSD-based platforms.
56367         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
56368         successful seek.
56369
56370 2007-12-12  Eric Blake  <ebb9@byu.net>
56371
56372         Allow circular dependency of separate libtests.a
56373         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
56374         when use_libtests.
56375
56376 2007-12-11  Eric Blake  <ebb9@byu.net>
56377
56378         Fix bug with -0.0L in previous patch.
56379         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
56380         * tests/test-isnan.c (main): Also test on zeroes.
56381         * tests/test-isnanf.c (main): Likewise.
56382         * tests/test-isnanl.h (main): Likewise.
56383
56384         Detect pseudo-denormals on x86 even when cross-compiling.
56385         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
56386         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
56387         invalid bit patterns that happen to satisfy ==.
56388
56389         Avoid link failures with separate libtests.a.
56390         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
56391         last, to satisfy circular dependencies.
56392
56393 2007-12-11  Eric Blake  <ebb9@byu.net>
56394         and Bruno Haible  <bruno@clisp.org>
56395
56396         Fix OpenBSD 4.0 <float.h> handling of long double.
56397         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
56398         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
56399         * doc/headers/float.texi (float.h): Document OpenBSD bug.
56400
56401 2007-12-11  Jim Meyering  <meyering@redhat.com>
56402
56403         * users.txt: Add libvirt.
56404
56405         Support versions of autoconf prior to 2.59c.
56406         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
56407         if it is not already defined.
56408
56409 2007-12-09  Bruno Haible  <bruno@clisp.org>
56410
56411         Let 'gnulib-tool --import' collect sources needed for the tests in
56412         tests/ rather than in lib/.
56413         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
56414         argument. If true, add rules to generate libtests.a, and put libtests.a
56415         into $(LDADD). Consider source files in subdirectories and set
56416         uses_subdirs.
56417         (func_emit_initmacro_start, func_emit_initmacro_end,
56418         func_emit_initmacro_done): Pass all arguments explicitly.
56419         (func_import): Determine two module lists main_modules,
56420         testsrelated_modules. Determine use_libtests. Determine two variables
56421         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
56422         instead of just sed_transform_lib_file. Determine two variables
56423         main_files and testsrelated_files. Compute 'files' as the union of
56424         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
56425         func_add_or_update. In the generated gnulib-comp.m4, collect the
56426         object files for tests/ in different variables than those for lib/.
56427         Substitute LIBTESTS_LIBDEPS.
56428         (func_create_testdir): Combine the uses_subdirs results from
56429         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
56430
56431 2007-12-09  Bruno Haible  <bruno@clisp.org>
56432
56433         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
56434         the build-aux directory.
56435
56436 2007-12-09  Bruno Haible  <bruno@clisp.org>
56437
56438         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
56439         introduced on 2006-09-09.
56440
56441 2007-12-07  Jim Meyering  <meyering@redhat.com>
56442
56443         Let these macros work also with autoconf-2.59.
56444         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
56445         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
56446         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
56447
56448 2007-12-06  Jim Meyering  <meyering@redhat.com>
56449
56450         Avoid a configure-time syntax error in gl_FUNC_ACL.
56451         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
56452         function in each branch, before testing the cache variable.
56453
56454 2007-12-04  Eric Blake  <ebb9@byu.net>
56455
56456         Make scripts executable.
56457         * build-aux/config.guess: Add execute permissions.
56458         * build-aux/config.sub: Likewise.
56459         * build-aux/gendocs.sh: Likewise.
56460
56461         Fix frexp on mingw.
56462         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
56463         cross-compiling.
56464         * doc/functions/frexp.texi (frexp): Document the bug.
56465
56466         Make cygwin fseeko check more reliable.
56467         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
56468         version numbers, rather than unrelated feature check.
56469         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
56470         * doc/functions/ftello.texi (ftello): Likewise.
56471         Reported by Bruno Haible.
56472
56473         * m4/strerror.m4: Bump version number.
56474
56475 2007-12-03  Bruno Haible  <bruno@clisp.org>
56476
56477         * doc/functions/mprotect.texi: Mention the mingw problem.
56478
56479 2007-12-03  Eric Blake  <ebb9@byu.net>
56480
56481         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
56482         REPLACE_STRERROR is initialized before this macro.
56483
56484 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
56485
56486         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
56487         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
56488         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
56489         put -lsec in even for programs other than 'ls'.  This fixes a problem
56490         for gettext reported by Bruno Haible in
56491         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
56492         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
56493         Add support for Solaris 10.  This isn't efficient, but should get the
56494         job done for now.
56495
56496 2007-12-03  James Youngman  <jay@gnu.org>
56497
56498         * doc/regexprops-generic.texi: change "an close-group" to "a
56499         close-group" and "illegal" to "not allowed".
56500
56501 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56502
56503         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
56504         pr_byname.h. Needed for the rare case when the maintainer has done
56505         "make maintainer-clean" in the source directory and then attempts a
56506         build outside the source directory.
56507         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
56508         scripts_byname.h.
56509
56510 2007-12-02  Martin Lambers <marlam@marlam.de>
56511             Bruno Haible  <bruno@clisp.org>
56512
56513         * lib/getpagesize.h: Remove file.
56514         * lib/unistd.in.h: Include declaration of getpagesize here.
56515         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
56516         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
56517         HAVE_SYS_PARAM_H.
56518         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
56519         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
56520         * modules/getpagesize (Files): Remove lib/getpagesize.h.
56521         (Depends-on): Add unistd.
56522         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
56523         (Include): Use <unistd.h> instead of getpagesize.h.
56524         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
56525         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
56526         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
56527         gl_GETPAGESIZE invocation, already handled by module dependency.
56528         * lib/pagealign_alloc.c: Don't include getpagesize.h.
56529
56530 2007-12-02  Bruno Haible  <bruno@clisp.org>
56531
56532         * modules/strings-tests: New file.
56533         * tests/test-strings.c: New file.
56534
56535         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
56536         * lib/strings.in.h: New file.
56537         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
56538         * m4/strings_h.m4: New file.
56539         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
56540         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
56541         * modules/strings: New file.
56542         * modules/string (Makefile.am): Update.
56543         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
56544         Reported by Karl Berry.
56545
56546 2007-12-01  Eric Blake  <ebb9@byu.net>
56547
56548         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
56549         accomodate fix in cygwin 1.5.25.
56550
56551 2007-12-01  Jim Meyering  <meyering@redhat.com>
56552
56553         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
56554         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
56555         that would inhibit utf8-optimization of a regexp containing line-
56556         or buffer-anchors, e.g., `^', `$'.
56557
56558 2007-11-30  Bruno Haible  <bruno@clisp.org>
56559
56560         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
56561         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
56562         glthread_recursive_lock_init.
56563         * lib/lock.c (glthread_recursive_lock_init)
56564         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
56565         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
56566
56567 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
56568
56569         New function qset_acl, like set_acl but with syscall semantics.
56570         * lib/acl.h (qset_acl): New decl.
56571         * lib/acl.c (qset_acl): New function.
56572         (set_acl): Use new function.  Use more-consistent diagnostics.
56573
56574 2007-11-28  Jim Meyering  <meyering@redhat.com>
56575
56576         * modules/physmem (License): Change from GPL to LGPLv2+.
56577
56578 2007-11-26  Bruno Haible  <bruno@clisp.org>
56579
56580         * lib/vasnprintf.c (decode_long_double): Don't abort if the
56581         'long double' type has excess precision.
56582         Reported by Jim Meyering in
56583         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
56584
56585 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56586
56587         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
56588         Sync from <http://gnu.org/licenses>.
56589         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
56590         with license text from same location.
56591         * doc/maintain.texi, doc/standards.texi:  Sync from
56592         <http://savannah.gnu.org/projects/gnustandards>.
56593
56594 2007-11-22  OndÅ™ej Vašík  <ovasik@redhat.com>
56595         and Jim Meyering  <meyering@redhat.com>
56596
56597         Adjust getdate' grammar to accept a slightly more regular language.
56598         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
56599         Before, the former was rejected.
56600         * lib/getdate.y (digits_to_date_time): New function, factored
56601         out of ...
56602         (number): ...here.  Just call digits_to_date_time.
56603         (hybrid): New non-terminal to handle an <unsigned number,
56604         signed relative offset> sequence consistently.
56605
56606 2007-11-18  Jim Meyering  <meyering@redhat.com>
56607
56608         Pull my changes from coreutils:
56609         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
56610         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
56611         use of $gnulib_tool_option_extras, so that it's separated from the
56612         preceding argument.
56613
56614         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
56615         * build-aux/bootstrap (cp_mark_as_generated): Create any required
56616         parent destination directories before copying a file into place.
56617
56618 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
56619
56620         bootstrap: work also with 4-argument variant of AC_INIT
56621         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
56622
56623 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
56624
56625         Port test-getaddrinfo to Solaris.
56626         Problem reported by Bruno Haible in
56627         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
56628         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
56629         explanation of setting 'hints'.
56630         Don't reject an implementation merely because it returns EAI_SERVICE.
56631         (EAI_SERVICE): Define to 0 if not defined.
56632
56633 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
56634
56635         The license of gnu-make and posix-shell is now "GPLed build tool".
56636         * modules/gnu-make (License): Likewise.
56637         * modules/posix-shell (License): Likewise.
56638
56639         New module posix-shell, for determining a POSIX shell
56640         or perhaps something that is close enough to a POSIX shell.
56641         * m4/posix-shell.m4: New file.
56642         * modules/posix-shell: New file.
56643
56644         * MODULES.html.sh: Mention new module.
56645
56646         New module gnu-make, for determining whether we're using GNU Make.
56647         * m4/gnu-make.m4: New file.
56648         * modules/gnu-make: New file.
56649         * MODULES.html.sh: Mention new module.
56650
56651 2007-11-14  Jim Meyering  <meyering@redhat.com>
56652
56653         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
56654         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
56655         use this macro to create a function _definition_.
56656         Remove useless "#undef ARGMATCH_DIE".
56657
56658 2007-11-14  Bruno Haible  <bruno@clisp.org>
56659
56660         * lib/config.charset: Update for OpenBSD 4.1.
56661         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
56662
56663 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
56664
56665         Document 64-bit #if problems in stdint.texi.
56666         * doc/headers/stdint.texi (stdint.h): Mention problems with
56667         64-bit-#if, and how to work around them.
56668
56669         Don't insist on 'long long int' support in the preprocessor.  It
56670         breaks too many things.  For example, PRIdMAX still uses a 'long
56671         long int' format with the latest Sun compiler, even though
56672         HAVE_LONG_LONG_INT isn't defined due to that compiler's
56673         preprocessor problem.  This causes the latest coreutils to dump
56674         core on Solaris 10 sparc with the Sun C compiler.
56675         Instead, fix the 2007-10-16 problem in a different way, by evaluating
56676         the troublesome expressions at configure-time, not at #if-time.
56677         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
56678         preprocessor.
56679         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
56680         compile-time C checks, done at 'configure'-time.
56681         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
56682         * modules/inttypes (Makefile): Substitute the new symbols that
56683         gl_INTTYPES_H now generates.
56684         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
56685
56686 2007-11-12  Bruno Haible  <bruno@clisp.org>
56687
56688         Tests for Unicode character classification functions.
56689
56690         * modules/unictype/bidicategory-byname-tests: New file.
56691         * modules/unictype/bidicategory-name-tests: New file.
56692         * modules/unictype/bidicategory-of-tests: New file.
56693         * modules/unictype/bidicategory-test-tests: New file.
56694         * modules/unictype/block-list-tests: New file.
56695         * modules/unictype/block-of-tests: New file.
56696         * modules/unictype/block-test-tests: New file.
56697         * modules/unictype/category-C-tests: New file.
56698         * modules/unictype/category-Cc-tests: New file.
56699         * modules/unictype/category-Cf-tests: New file.
56700         * modules/unictype/category-Cn-tests: New file.
56701         * modules/unictype/category-Co-tests: New file.
56702         * modules/unictype/category-Cs-tests: New file.
56703         * modules/unictype/category-L-tests: New file.
56704         * modules/unictype/category-Ll-tests: New file.
56705         * modules/unictype/category-Lm-tests: New file.
56706         * modules/unictype/category-Lo-tests: New file.
56707         * modules/unictype/category-Lt-tests: New file.
56708         * modules/unictype/category-Lu-tests: New file.
56709         * modules/unictype/category-M-tests: New file.
56710         * modules/unictype/category-Mc-tests: New file.
56711         * modules/unictype/category-Me-tests: New file.
56712         * modules/unictype/category-Mn-tests: New file.
56713         * modules/unictype/category-N-tests: New file.
56714         * modules/unictype/category-Nd-tests: New file.
56715         * modules/unictype/category-Nl-tests: New file.
56716         * modules/unictype/category-No-tests: New file.
56717         * modules/unictype/category-P-tests: New file.
56718         * modules/unictype/category-Pc-tests: New file.
56719         * modules/unictype/category-Pd-tests: New file.
56720         * modules/unictype/category-Pe-tests: New file.
56721         * modules/unictype/category-Pf-tests: New file.
56722         * modules/unictype/category-Pi-tests: New file.
56723         * modules/unictype/category-Po-tests: New file.
56724         * modules/unictype/category-Ps-tests: New file.
56725         * modules/unictype/category-S-tests: New file.
56726         * modules/unictype/category-Sc-tests: New file.
56727         * modules/unictype/category-Sk-tests: New file.
56728         * modules/unictype/category-Sm-tests: New file.
56729         * modules/unictype/category-So-tests: New file.
56730         * modules/unictype/category-Z-tests: New file.
56731         * modules/unictype/category-Zl-tests: New file.
56732         * modules/unictype/category-Zp-tests: New file.
56733         * modules/unictype/category-Zs-tests: New file.
56734         * modules/unictype/category-and-not-tests: New file.
56735         * modules/unictype/category-and-tests: New file.
56736         * modules/unictype/category-byname-tests: New file.
56737         * modules/unictype/category-name-tests: New file.
56738         * modules/unictype/category-none-tests: New file.
56739         * modules/unictype/category-of-tests: New file.
56740         * modules/unictype/category-or-tests: New file.
56741         * modules/unictype/category-test-withtable-tests: New file.
56742         * modules/unictype/combining-class-tests: New file.
56743         * modules/unictype/ctype-alnum-tests: New file.
56744         * modules/unictype/ctype-alpha-tests: New file.
56745         * modules/unictype/ctype-blank-tests: New file.
56746         * modules/unictype/ctype-cntrl-tests: New file.
56747         * modules/unictype/ctype-digit-tests: New file.
56748         * modules/unictype/ctype-graph-tests: New file.
56749         * modules/unictype/ctype-lower-tests: New file.
56750         * modules/unictype/ctype-print-tests: New file.
56751         * modules/unictype/ctype-punct-tests: New file.
56752         * modules/unictype/ctype-space-tests: New file.
56753         * modules/unictype/ctype-upper-tests: New file.
56754         * modules/unictype/ctype-xdigit-tests: New file.
56755         * modules/unictype/decimal-digit-tests: New file.
56756         * modules/unictype/digit-tests: New file.
56757         * modules/unictype/mirror-tests: New file.
56758         * modules/unictype/numeric-tests: New file.
56759         * modules/unictype/property-alphabetic-tests: New file.
56760         * modules/unictype/property-ascii-hex-digit-tests: New file.
56761         * modules/unictype/property-bidi-arabic-digit-tests: New file.
56762         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
56763         * modules/unictype/property-bidi-block-separator-tests: New file.
56764         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
56765         * modules/unictype/property-bidi-common-separator-tests: New file.
56766         * modules/unictype/property-bidi-control-tests: New file.
56767         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
56768         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
56769         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
56770         * modules/unictype/property-bidi-european-digit-tests: New file.
56771         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
56772         * modules/unictype/property-bidi-left-to-right-tests: New file.
56773         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
56774         * modules/unictype/property-bidi-other-neutral-tests: New file.
56775         * modules/unictype/property-bidi-pdf-tests: New file.
56776         * modules/unictype/property-bidi-segment-separator-tests: New file.
56777         * modules/unictype/property-bidi-whitespace-tests: New file.
56778         * modules/unictype/property-byname-tests: New file.
56779         * modules/unictype/property-combining-tests: New file.
56780         * modules/unictype/property-composite-tests: New file.
56781         * modules/unictype/property-currency-symbol-tests: New file.
56782         * modules/unictype/property-dash-tests: New file.
56783         * modules/unictype/property-decimal-digit-tests: New file.
56784         * modules/unictype/property-default-ignorable-code-point-tests: New file.
56785         * modules/unictype/property-deprecated-tests: New file.
56786         * modules/unictype/property-diacritic-tests: New file.
56787         * modules/unictype/property-extender-tests: New file.
56788         * modules/unictype/property-format-control-tests: New file.
56789         * modules/unictype/property-grapheme-base-tests: New file.
56790         * modules/unictype/property-grapheme-extend-tests: New file.
56791         * modules/unictype/property-grapheme-link-tests: New file.
56792         * modules/unictype/property-hex-digit-tests: New file.
56793         * modules/unictype/property-hyphen-tests: New file.
56794         * modules/unictype/property-id-continue-tests: New file.
56795         * modules/unictype/property-id-start-tests: New file.
56796         * modules/unictype/property-ideographic-tests: New file.
56797         * modules/unictype/property-ids-binary-operator-tests: New file.
56798         * modules/unictype/property-ids-trinary-operator-tests: New file.
56799         * modules/unictype/property-ignorable-control-tests: New file.
56800         * modules/unictype/property-iso-control-tests: New file.
56801         * modules/unictype/property-join-control-tests: New file.
56802         * modules/unictype/property-left-of-pair-tests: New file.
56803         * modules/unictype/property-line-separator-tests: New file.
56804         * modules/unictype/property-logical-order-exception-tests: New file.
56805         * modules/unictype/property-lowercase-tests: New file.
56806         * modules/unictype/property-math-tests: New file.
56807         * modules/unictype/property-non-break-tests: New file.
56808         * modules/unictype/property-not-a-character-tests: New file.
56809         * modules/unictype/property-numeric-tests: New file.
56810         * modules/unictype/property-other-alphabetic-tests: New file.
56811         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
56812         * modules/unictype/property-other-grapheme-extend-tests: New file.
56813         * modules/unictype/property-other-id-continue-tests: New file.
56814         * modules/unictype/property-other-id-start-tests: New file.
56815         * modules/unictype/property-other-lowercase-tests: New file.
56816         * modules/unictype/property-other-math-tests: New file.
56817         * modules/unictype/property-other-uppercase-tests: New file.
56818         * modules/unictype/property-paired-punctuation-tests: New file.
56819         * modules/unictype/property-paragraph-separator-tests: New file.
56820         * modules/unictype/property-pattern-syntax-tests: New file.
56821         * modules/unictype/property-pattern-white-space-tests: New file.
56822         * modules/unictype/property-private-use-tests: New file.
56823         * modules/unictype/property-punctuation-tests: New file.
56824         * modules/unictype/property-quotation-mark-tests: New file.
56825         * modules/unictype/property-radical-tests: New file.
56826         * modules/unictype/property-sentence-terminal-tests: New file.
56827         * modules/unictype/property-soft-dotted-tests: New file.
56828         * modules/unictype/property-space-tests: New file.
56829         * modules/unictype/property-terminal-punctuation-tests: New file.
56830         * modules/unictype/property-test-tests: New file.
56831         * modules/unictype/property-titlecase-tests: New file.
56832         * modules/unictype/property-unassigned-code-value-tests: New file.
56833         * modules/unictype/property-unified-ideograph-tests: New file.
56834         * modules/unictype/property-uppercase-tests: New file.
56835         * modules/unictype/property-variation-selector-tests: New file.
56836         * modules/unictype/property-white-space-tests: New file.
56837         * modules/unictype/property-xid-continue-tests: New file.
56838         * modules/unictype/property-xid-start-tests: New file.
56839         * modules/unictype/property-zero-width-tests: New file.
56840         * modules/unictype/scripts-tests: New file.
56841         * modules/unictype/syntax-c-ident-tests: New file.
56842         * modules/unictype/syntax-c-whitespace-tests: New file.
56843         * modules/unictype/syntax-java-ident-tests: New file.
56844         * modules/unictype/syntax-java-whitespace-tests: New file.
56845         * tests/unictype/test-bidi_byname.c: New file.
56846         * tests/unictype/test-bidi_name.c: New file.
56847         * tests/unictype/test-bidi_of.c: New file.
56848         * tests/unictype/test-bidi_test.c: New file.
56849         * tests/unictype/test-block_list.c: New file.
56850         * tests/unictype/test-block_of.c: New file.
56851         * tests/unictype/test-block_test.c: New file.
56852         * tests/unictype/test-categ_and.c: New file.
56853         * tests/unictype/test-categ_and_not.c: New file.
56854         * tests/unictype/test-categ_byname.c: New file.
56855         * tests/unictype/test-categ_name.c: New file.
56856         * tests/unictype/test-categ_none.c: New file.
56857         * tests/unictype/test-categ_of.c: New file.
56858         * tests/unictype/test-categ_or.c: New file.
56859         * tests/unictype/test-categ_test_withtable.c: New file.
56860         * tests/unictype/test-combining.c: New file.
56861         * tests/unictype/test-decdigit.c: New file.
56862         * tests/unictype/test-digit.c: New file.
56863         * tests/unictype/test-mirror.c: New file.
56864         * tests/unictype/test-numeric.c: New file.
56865         * tests/unictype/test-pr_byname.c: New file.
56866         * tests/unictype/test-pr_test.c: New file.
56867         * tests/unictype/test-predicate-part1.h: New file.
56868         * tests/unictype/test-predicate-part2.h: New file.
56869         * tests/unictype/test-scripts.c: New file.
56870         * tests/unictype/test-sy_c_ident.c: New file.
56871         * tests/unictype/test-sy_java_ident.c: New file.
56872
56873         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
56874         for Unicode 5.0.0.
56875         * tests/unictype/test-categ_Cc.c: Likewise.
56876         * tests/unictype/test-categ_Cf.c: Likewise.
56877         * tests/unictype/test-categ_Cn.c: Likewise.
56878         * tests/unictype/test-categ_Co.c: Likewise.
56879         * tests/unictype/test-categ_Cs.c: Likewise.
56880         * tests/unictype/test-categ_L.c: Likewise.
56881         * tests/unictype/test-categ_Ll.c: Likewise.
56882         * tests/unictype/test-categ_Lm.c: Likewise.
56883         * tests/unictype/test-categ_Lo.c: Likewise.
56884         * tests/unictype/test-categ_Lt.c: Likewise.
56885         * tests/unictype/test-categ_Lu.c: Likewise.
56886         * tests/unictype/test-categ_M.c: Likewise.
56887         * tests/unictype/test-categ_Mc.c: Likewise.
56888         * tests/unictype/test-categ_Me.c: Likewise.
56889         * tests/unictype/test-categ_Mn.c: Likewise.
56890         * tests/unictype/test-categ_N.c: Likewise.
56891         * tests/unictype/test-categ_Nd.c: Likewise.
56892         * tests/unictype/test-categ_Nl.c: Likewise.
56893         * tests/unictype/test-categ_No.c: Likewise.
56894         * tests/unictype/test-categ_P.c: Likewise.
56895         * tests/unictype/test-categ_Pc.c: Likewise.
56896         * tests/unictype/test-categ_Pd.c: Likewise.
56897         * tests/unictype/test-categ_Pe.c: Likewise.
56898         * tests/unictype/test-categ_Pf.c: Likewise.
56899         * tests/unictype/test-categ_Pi.c: Likewise.
56900         * tests/unictype/test-categ_Po.c: Likewise.
56901         * tests/unictype/test-categ_Ps.c: Likewise.
56902         * tests/unictype/test-categ_S.c: Likewise.
56903         * tests/unictype/test-categ_Sc.c: Likewise.
56904         * tests/unictype/test-categ_Sk.c: Likewise.
56905         * tests/unictype/test-categ_Sm.c: Likewise.
56906         * tests/unictype/test-categ_So.c: Likewise.
56907         * tests/unictype/test-categ_Z.c: Likewise.
56908         * tests/unictype/test-categ_Zl.c: Likewise.
56909         * tests/unictype/test-categ_Zp.c: Likewise.
56910         * tests/unictype/test-categ_Zs.c: Likewise.
56911         * tests/unictype/test-ctype_alnum.c: Likewise.
56912         * tests/unictype/test-ctype_alpha.c: Likewise.
56913         * tests/unictype/test-ctype_blank.c: Likewise.
56914         * tests/unictype/test-ctype_cntrl.c: Likewise.
56915         * tests/unictype/test-ctype_digit.c: Likewise.
56916         * tests/unictype/test-ctype_graph.c: Likewise.
56917         * tests/unictype/test-ctype_lower.c: Likewise.
56918         * tests/unictype/test-ctype_print.c: Likewise.
56919         * tests/unictype/test-ctype_punct.c: Likewise.
56920         * tests/unictype/test-ctype_space.c: Likewise.
56921         * tests/unictype/test-ctype_upper.c: Likewise.
56922         * tests/unictype/test-ctype_xdigit.c: Likewise.
56923         * tests/unictype/test-decdigit.h: Likewise.
56924         * tests/unictype/test-digit.h: Likewise.
56925         * tests/unictype/test-numeric.h: Likewise.
56926         * tests/unictype/test-pr_alphabetic.c: Likewise.
56927         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
56928         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
56929         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
56930         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
56931         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
56932         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
56933         * tests/unictype/test-pr_bidi_control.c: Likewise.
56934         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
56935         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
56936         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
56937         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
56938         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
56939         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
56940         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
56941         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
56942         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
56943         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
56944         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
56945         * tests/unictype/test-pr_combining.c: Likewise.
56946         * tests/unictype/test-pr_composite.c: Likewise.
56947         * tests/unictype/test-pr_currency_symbol.c: Likewise.
56948         * tests/unictype/test-pr_dash.c: Likewise.
56949         * tests/unictype/test-pr_decimal_digit.c: Likewise.
56950         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
56951         * tests/unictype/test-pr_deprecated.c: Likewise.
56952         * tests/unictype/test-pr_diacritic.c: Likewise.
56953         * tests/unictype/test-pr_extender.c: Likewise.
56954         * tests/unictype/test-pr_format_control.c: Likewise.
56955         * tests/unictype/test-pr_grapheme_base.c: Likewise.
56956         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
56957         * tests/unictype/test-pr_grapheme_link.c: Likewise.
56958         * tests/unictype/test-pr_hex_digit.c: Likewise.
56959         * tests/unictype/test-pr_hyphen.c: Likewise.
56960         * tests/unictype/test-pr_id_continue.c: Likewise.
56961         * tests/unictype/test-pr_id_start.c: Likewise.
56962         * tests/unictype/test-pr_ideographic.c: Likewise.
56963         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
56964         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
56965         * tests/unictype/test-pr_ignorable_control.c: Likewise.
56966         * tests/unictype/test-pr_iso_control.c: Likewise.
56967         * tests/unictype/test-pr_join_control.c: Likewise.
56968         * tests/unictype/test-pr_left_of_pair.c: Likewise.
56969         * tests/unictype/test-pr_line_separator.c: Likewise.
56970         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
56971         * tests/unictype/test-pr_lowercase.c: Likewise.
56972         * tests/unictype/test-pr_math.c: Likewise.
56973         * tests/unictype/test-pr_non_break.c: Likewise.
56974         * tests/unictype/test-pr_not_a_character.c: Likewise.
56975         * tests/unictype/test-pr_numeric.c: Likewise.
56976         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
56977         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
56978         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
56979         * tests/unictype/test-pr_other_id_continue.c: Likewise.
56980         * tests/unictype/test-pr_other_id_start.c: Likewise.
56981         * tests/unictype/test-pr_other_lowercase.c: Likewise.
56982         * tests/unictype/test-pr_other_math.c: Likewise.
56983         * tests/unictype/test-pr_other_uppercase.c: Likewise.
56984         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
56985         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
56986         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
56987         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
56988         * tests/unictype/test-pr_private_use.c: Likewise.
56989         * tests/unictype/test-pr_punctuation.c: Likewise.
56990         * tests/unictype/test-pr_quotation_mark.c: Likewise.
56991         * tests/unictype/test-pr_radical.c: Likewise.
56992         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
56993         * tests/unictype/test-pr_soft_dotted.c: Likewise.
56994         * tests/unictype/test-pr_space.c: Likewise.
56995         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
56996         * tests/unictype/test-pr_titlecase.c: Likewise.
56997         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
56998         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
56999         * tests/unictype/test-pr_uppercase.c: Likewise.
57000         * tests/unictype/test-pr_variation_selector.c: Likewise.
57001         * tests/unictype/test-pr_white_space.c: Likewise.
57002         * tests/unictype/test-pr_xid_continue.c: Likewise.
57003         * tests/unictype/test-pr_xid_start.c: Likewise.
57004         * tests/unictype/test-pr_zero_width.c: Likewise.
57005         * tests/unictype/test-sy_c_whitespace.c: Likewise.
57006         * tests/unictype/test-sy_java_whitespace.c: Likewise.
57007
57008 2007-11-12  Bruno Haible  <bruno@clisp.org>
57009
57010         Unicode character classification functions.
57011         * lib/unictype.h: New file.
57012         * modules/unictype/base: New file.
57013         * modules/unictype/category-L: New file.
57014         * modules/unictype/category-Lu: New file.
57015         * modules/unictype/category-Ll: New file.
57016         * modules/unictype/category-Lt: New file.
57017         * modules/unictype/category-Lm: New file.
57018         * modules/unictype/category-Lo: New file.
57019         * modules/unictype/category-M: New file.
57020         * modules/unictype/category-Mn: New file.
57021         * modules/unictype/category-Mc: New file.
57022         * modules/unictype/category-Me: New file.
57023         * modules/unictype/category-N: New file.
57024         * modules/unictype/category-Nd: New file.
57025         * modules/unictype/category-Nl: New file.
57026         * modules/unictype/category-No: New file.
57027         * modules/unictype/category-P: New file.
57028         * modules/unictype/category-Pc: New file.
57029         * modules/unictype/category-Pd: New file.
57030         * modules/unictype/category-Ps: New file.
57031         * modules/unictype/category-Pe: New file.
57032         * modules/unictype/category-Pi: New file.
57033         * modules/unictype/category-Pf: New file.
57034         * modules/unictype/category-Po: New file.
57035         * modules/unictype/category-S: New file.
57036         * modules/unictype/category-Sm: New file.
57037         * modules/unictype/category-Sc: New file.
57038         * modules/unictype/category-Sk: New file.
57039         * modules/unictype/category-So: New file.
57040         * modules/unictype/category-Z: New file.
57041         * modules/unictype/category-Zs: New file.
57042         * modules/unictype/category-Zl: New file.
57043         * modules/unictype/category-Zp: New file.
57044         * modules/unictype/category-C: New file.
57045         * modules/unictype/category-Cc: New file.
57046         * modules/unictype/category-Cf: New file.
57047         * modules/unictype/category-Cs: New file.
57048         * modules/unictype/category-Co: New file.
57049         * modules/unictype/category-Cn: New file.
57050         * modules/unictype/category-or: New file.
57051         * modules/unictype/category-of: New file.
57052         * modules/unictype/category-test: New file.
57053         * modules/unictype/category-test-withtable: New file.
57054         * modules/unictype/category-byname: New file.
57055         * modules/unictype/category-none: New file.
57056         * modules/unictype/category-and: New file.
57057         * modules/unictype/category-and-not: New file.
57058         * modules/unictype/category-name: New file.
57059         * modules/unictype/combining-class: New file.
57060         * modules/unictype/category-all: New file.
57061         * modules/unictype/bidicategory-all: New file.
57062         * modules/unictype/bidicategory-byname: New file.
57063         * modules/unictype/bidicategory-name: New file.
57064         * modules/unictype/bidicategory-of: New file.
57065         * modules/unictype/bidicategory-test: New file.
57066         * modules/unictype/decimal-digit: New file.
57067         * modules/unictype/digit: New file.
57068         * modules/unictype/numeric: New file.
57069         * modules/unictype/mirror: New file.
57070         * modules/unictype/property-white-space: New file.
57071         * modules/unictype/property-alphabetic: New file.
57072         * modules/unictype/property-other-alphabetic: New file.
57073         * modules/unictype/property-not-a-character: New file.
57074         * modules/unictype/property-default-ignorable-code-point: New file.
57075         * modules/unictype/property-other-default-ignorable-code-point: New
57076         file.
57077         * modules/unictype/property-deprecated: New file.
57078         * modules/unictype/property-logical-order-exception: New file.
57079         * modules/unictype/property-variation-selector: New file.
57080         * modules/unictype/property-private-use: New file.
57081         * modules/unictype/property-unassigned-code-value: New file.
57082         * modules/unictype/property-uppercase: New file.
57083         * modules/unictype/property-other-uppercase: New file.
57084         * modules/unictype/property-lowercase: New file.
57085         * modules/unictype/property-other-lowercase: New file.
57086         * modules/unictype/property-titlecase: New file.
57087         * modules/unictype/property-soft-dotted: New file.
57088         * modules/unictype/property-id-start: New file.
57089         * modules/unictype/property-other-id-start: New file.
57090         * modules/unictype/property-id-continue: New file.
57091         * modules/unictype/property-other-id-continue: New file.
57092         * modules/unictype/property-xid-start: New file.
57093         * modules/unictype/property-xid-continue: New file.
57094         * modules/unictype/property-pattern-white-space: New file.
57095         * modules/unictype/property-pattern-syntax: New file.
57096         * modules/unictype/property-join-control: New file.
57097         * modules/unictype/property-grapheme-base: New file.
57098         * modules/unictype/property-grapheme-extend: New file.
57099         * modules/unictype/property-other-grapheme-extend: New file.
57100         * modules/unictype/property-grapheme-link: New file.
57101         * modules/unictype/property-bidi-control: New file.
57102         * modules/unictype/property-bidi-left-to-right: New file.
57103         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
57104         * modules/unictype/property-bidi-arabic-right-to-left: New file.
57105         * modules/unictype/property-bidi-european-digit: New file.
57106         * modules/unictype/property-bidi-eur-num-separator: New file.
57107         * modules/unictype/property-bidi-eur-num-terminator: New file.
57108         * modules/unictype/property-bidi-arabic-digit: New file.
57109         * modules/unictype/property-bidi-common-separator: New file.
57110         * modules/unictype/property-bidi-block-separator: New file.
57111         * modules/unictype/property-bidi-segment-separator: New file.
57112         * modules/unictype/property-bidi-whitespace: New file.
57113         * modules/unictype/property-bidi-non-spacing-mark: New file.
57114         * modules/unictype/property-bidi-boundary-neutral: New file.
57115         * modules/unictype/property-bidi-pdf: New file.
57116         * modules/unictype/property-bidi-embedding-or-override: New file.
57117         * modules/unictype/property-bidi-other-neutral: New file.
57118         * modules/unictype/property-hex-digit: New file.
57119         * modules/unictype/property-ascii-hex-digit: New file.
57120         * modules/unictype/property-ideographic: New file.
57121         * modules/unictype/property-unified-ideograph: New file.
57122         * modules/unictype/property-radical: New file.
57123         * modules/unictype/property-ids-binary-operator: New file.
57124         * modules/unictype/property-ids-trinary-operator: New file.
57125         * modules/unictype/property-zero-width: New file.
57126         * modules/unictype/property-space: New file.
57127         * modules/unictype/property-non-break: New file.
57128         * modules/unictype/property-iso-control: New file.
57129         * modules/unictype/property-format-control: New file.
57130         * modules/unictype/property-dash: New file.
57131         * modules/unictype/property-hyphen: New file.
57132         * modules/unictype/property-punctuation: New file.
57133         * modules/unictype/property-line-separator: New file.
57134         * modules/unictype/property-paragraph-separator: New file.
57135         * modules/unictype/property-quotation-mark: New file.
57136         * modules/unictype/property-sentence-terminal: New file.
57137         * modules/unictype/property-terminal-punctuation: New file.
57138         * modules/unictype/property-currency-symbol: New file.
57139         * modules/unictype/property-math: New file.
57140         * modules/unictype/property-other-math: New file.
57141         * modules/unictype/property-paired-punctuation: New file.
57142         * modules/unictype/property-left-of-pair: New file.
57143         * modules/unictype/property-combining: New file.
57144         * modules/unictype/property-composite: New file.
57145         * modules/unictype/property-decimal-digit: New file.
57146         * modules/unictype/property-numeric: New file.
57147         * modules/unictype/property-diacritic: New file.
57148         * modules/unictype/property-extender: New file.
57149         * modules/unictype/property-ignorable-control: New file.
57150         * modules/unictype/property-test: New file.
57151         * modules/unictype/property-byname: New file.
57152         * modules/unictype/property-all: New file.
57153         * modules/unictype/scripts: New file.
57154         * modules/unictype/scripts-all: New file.
57155         * modules/unictype/block-of: New file.
57156         * modules/unictype/block-test: New file.
57157         * modules/unictype/block-list: New file.
57158         * modules/unictype/block-all: New file.
57159         * modules/unictype/syntax-c-whitespace: New file.
57160         * modules/unictype/syntax-java-whitespace: New file.
57161         * modules/unictype/syntax-c-ident: New file.
57162         * modules/unictype/syntax-java-ident: New file.
57163         * modules/unictype/ctype-alnum: New file.
57164         * modules/unictype/ctype-alpha: New file.
57165         * modules/unictype/ctype-cntrl: New file.
57166         * modules/unictype/ctype-digit: New file.
57167         * modules/unictype/ctype-graph: New file.
57168         * modules/unictype/ctype-lower: New file.
57169         * modules/unictype/ctype-print: New file.
57170         * modules/unictype/ctype-punct: New file.
57171         * modules/unictype/ctype-space: New file.
57172         * modules/unictype/ctype-upper: New file.
57173         * modules/unictype/ctype-xdigit: New file.
57174         * modules/unictype/ctype-blank: New file.
57175         * lib/unictype/bidi_byname.c: New file.
57176         * lib/unictype/bidi_name.c: New file.
57177         * lib/unictype/bidi_of.c: New file.
57178         * lib/unictype/bidi_test.c: New file.
57179         * lib/unictype/bitmap.h: New file.
57180         * lib/unictype/block_test.c: New file.
57181         * lib/unictype/blocks.c: New file.
57182         * lib/unictype/categ_C.c: New file.
57183         * lib/unictype/categ_Cc.c: New file.
57184         * lib/unictype/categ_Cf.c: New file.
57185         * lib/unictype/categ_Cn.c: New file.
57186         * lib/unictype/categ_Co.c: New file.
57187         * lib/unictype/categ_Cs.c: New file.
57188         * lib/unictype/categ_L.c: New file.
57189         * lib/unictype/categ_Ll.c: New file.
57190         * lib/unictype/categ_Lm.c: New file.
57191         * lib/unictype/categ_Lo.c: New file.
57192         * lib/unictype/categ_Lt.c: New file.
57193         * lib/unictype/categ_Lu.c: New file.
57194         * lib/unictype/categ_M.c: New file.
57195         * lib/unictype/categ_Mc.c: New file.
57196         * lib/unictype/categ_Me.c: New file.
57197         * lib/unictype/categ_Mn.c: New file.
57198         * lib/unictype/categ_N.c: New file.
57199         * lib/unictype/categ_Nd.c: New file.
57200         * lib/unictype/categ_Nl.c: New file.
57201         * lib/unictype/categ_No.c: New file.
57202         * lib/unictype/categ_P.c: New file.
57203         * lib/unictype/categ_Pc.c: New file.
57204         * lib/unictype/categ_Pd.c: New file.
57205         * lib/unictype/categ_Pe.c: New file.
57206         * lib/unictype/categ_Pf.c: New file.
57207         * lib/unictype/categ_Pi.c: New file.
57208         * lib/unictype/categ_Po.c: New file.
57209         * lib/unictype/categ_Ps.c: New file.
57210         * lib/unictype/categ_S.c: New file.
57211         * lib/unictype/categ_Sc.c: New file.
57212         * lib/unictype/categ_Sk.c: New file.
57213         * lib/unictype/categ_Sm.c: New file.
57214         * lib/unictype/categ_So.c: New file.
57215         * lib/unictype/categ_Z.c: New file.
57216         * lib/unictype/categ_Zl.c: New file.
57217         * lib/unictype/categ_Zp.c: New file.
57218         * lib/unictype/categ_Zs.c: New file.
57219         * lib/unictype/categ_and.c: New file.
57220         * lib/unictype/categ_and_not.c: New file.
57221         * lib/unictype/categ_byname.c: New file.
57222         * lib/unictype/categ_name.c: New file.
57223         * lib/unictype/categ_none.c: New file.
57224         * lib/unictype/categ_of.c: New file.
57225         * lib/unictype/categ_or.c: New file.
57226         * lib/unictype/categ_test.c: New file.
57227         * lib/unictype/combining.c: New file.
57228         * lib/unictype/ctype_alnum.c: New file.
57229         * lib/unictype/ctype_alpha.c: New file.
57230         * lib/unictype/ctype_blank.c: New file.
57231         * lib/unictype/ctype_cntrl.c: New file.
57232         * lib/unictype/ctype_digit.c: New file.
57233         * lib/unictype/ctype_graph.c: New file.
57234         * lib/unictype/ctype_lower.c: New file.
57235         * lib/unictype/ctype_print.c: New file.
57236         * lib/unictype/ctype_punct.c: New file.
57237         * lib/unictype/ctype_space.c: New file.
57238         * lib/unictype/ctype_upper.c: New file.
57239         * lib/unictype/ctype_xdigit.c: New file.
57240         * lib/unictype/decdigit.c: New file.
57241         * lib/unictype/digit.c: New file.
57242         * lib/unictype/identsyntaxmap.h: New file.
57243         * lib/unictype/mirror.c: New file.
57244         * lib/unictype/numeric.c: New file.
57245         * lib/unictype/pr_alphabetic.c: New file.
57246         * lib/unictype/pr_ascii_hex_digit.c: New file.
57247         * lib/unictype/pr_bidi_arabic_digit.c: New file.
57248         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
57249         * lib/unictype/pr_bidi_block_separator.c: New file.
57250         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
57251         * lib/unictype/pr_bidi_common_separator.c: New file.
57252         * lib/unictype/pr_bidi_control.c: New file.
57253         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
57254         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
57255         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
57256         * lib/unictype/pr_bidi_european_digit.c: New file.
57257         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
57258         * lib/unictype/pr_bidi_left_to_right.c: New file.
57259         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
57260         * lib/unictype/pr_bidi_other_neutral.c: New file.
57261         * lib/unictype/pr_bidi_pdf.c: New file.
57262         * lib/unictype/pr_bidi_segment_separator.c: New file.
57263         * lib/unictype/pr_bidi_whitespace.c: New file.
57264         * lib/unictype/pr_byname.c: New file.
57265         * lib/unictype/pr_byname.gperf: New file.
57266         * lib/unictype/pr_combining.c: New file.
57267         * lib/unictype/pr_composite.c: New file.
57268         * lib/unictype/pr_currency_symbol.c: New file.
57269         * lib/unictype/pr_dash.c: New file.
57270         * lib/unictype/pr_decimal_digit.c: New file.
57271         * lib/unictype/pr_default_ignorable_code_point.c: New file.
57272         * lib/unictype/pr_deprecated.c: New file.
57273         * lib/unictype/pr_diacritic.c: New file.
57274         * lib/unictype/pr_extender.c: New file.
57275         * lib/unictype/pr_format_control.c: New file.
57276         * lib/unictype/pr_grapheme_base.c: New file.
57277         * lib/unictype/pr_grapheme_extend.c: New file.
57278         * lib/unictype/pr_grapheme_link.c: New file.
57279         * lib/unictype/pr_hex_digit.c: New file.
57280         * lib/unictype/pr_hyphen.c: New file.
57281         * lib/unictype/pr_id_continue.c: New file.
57282         * lib/unictype/pr_id_start.c: New file.
57283         * lib/unictype/pr_ideographic.c: New file.
57284         * lib/unictype/pr_ids_binary_operator.c: New file.
57285         * lib/unictype/pr_ids_trinary_operator.c: New file.
57286         * lib/unictype/pr_ignorable_control.c: New file.
57287         * lib/unictype/pr_iso_control.c: New file.
57288         * lib/unictype/pr_join_control.c: New file.
57289         * lib/unictype/pr_left_of_pair.c: New file.
57290         * lib/unictype/pr_line_separator.c: New file.
57291         * lib/unictype/pr_logical_order_exception.c: New file.
57292         * lib/unictype/pr_lowercase.c: New file.
57293         * lib/unictype/pr_math.c: New file.
57294         * lib/unictype/pr_non_break.c: New file.
57295         * lib/unictype/pr_not_a_character.c: New file.
57296         * lib/unictype/pr_numeric.c: New file.
57297         * lib/unictype/pr_other_alphabetic.c: New file.
57298         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
57299         * lib/unictype/pr_other_grapheme_extend.c: New file.
57300         * lib/unictype/pr_other_id_continue.c: New file.
57301         * lib/unictype/pr_other_id_start.c: New file.
57302         * lib/unictype/pr_other_lowercase.c: New file.
57303         * lib/unictype/pr_other_math.c: New file.
57304         * lib/unictype/pr_other_uppercase.c: New file.
57305         * lib/unictype/pr_paired_punctuation.c: New file.
57306         * lib/unictype/pr_paragraph_separator.c: New file.
57307         * lib/unictype/pr_pattern_syntax.c: New file.
57308         * lib/unictype/pr_pattern_white_space.c: New file.
57309         * lib/unictype/pr_private_use.c: New file.
57310         * lib/unictype/pr_punctuation.c: New file.
57311         * lib/unictype/pr_quotation_mark.c: New file.
57312         * lib/unictype/pr_radical.c: New file.
57313         * lib/unictype/pr_sentence_terminal.c: New file.
57314         * lib/unictype/pr_soft_dotted.c: New file.
57315         * lib/unictype/pr_space.c: New file.
57316         * lib/unictype/pr_terminal_punctuation.c: New file.
57317         * lib/unictype/pr_test.c: New file.
57318         * lib/unictype/pr_titlecase.c: New file.
57319         * lib/unictype/pr_unassigned_code_value.c: New file.
57320         * lib/unictype/pr_unified_ideograph.c: New file.
57321         * lib/unictype/pr_uppercase.c: New file.
57322         * lib/unictype/pr_variation_selector.c: New file.
57323         * lib/unictype/pr_white_space.c: New file.
57324         * lib/unictype/pr_xid_continue.c: New file.
57325         * lib/unictype/pr_xid_start.c: New file.
57326         * lib/unictype/pr_zero_width.c: New file.
57327         * lib/unictype/scripts.c: New file.
57328         * lib/unictype/sy_c_ident.c: New file.
57329         * lib/unictype/sy_c_whitespace.c: New file.
57330         * lib/unictype/sy_java_ident.c: New file.
57331         * lib/unictype/sy_java_whitespace.c: New file.
57332
57333         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
57334         Unicode 5.0.0.
57335         * lib/unictype/blocks.h: Likewise.
57336         * lib/unictype/categ_C.h: Likewise.
57337         * lib/unictype/categ_Cc.h: Likewise.
57338         * lib/unictype/categ_Cf.h: Likewise.
57339         * lib/unictype/categ_Cn.h: Likewise.
57340         * lib/unictype/categ_Co.h: Likewise.
57341         * lib/unictype/categ_Cs.h: Likewise.
57342         * lib/unictype/categ_L.h: Likewise.
57343         * lib/unictype/categ_Ll.h: Likewise.
57344         * lib/unictype/categ_Lm.h: Likewise.
57345         * lib/unictype/categ_Lo.h: Likewise.
57346         * lib/unictype/categ_Lt.h: Likewise.
57347         * lib/unictype/categ_Lu.h: Likewise.
57348         * lib/unictype/categ_M.h: Likewise.
57349         * lib/unictype/categ_Mc.h: Likewise.
57350         * lib/unictype/categ_Me.h: Likewise.
57351         * lib/unictype/categ_Mn.h: Likewise.
57352         * lib/unictype/categ_N.h: Likewise.
57353         * lib/unictype/categ_Nd.h: Likewise.
57354         * lib/unictype/categ_Nl.h: Likewise.
57355         * lib/unictype/categ_No.h: Likewise.
57356         * lib/unictype/categ_P.h: Likewise.
57357         * lib/unictype/categ_Pc.h: Likewise.
57358         * lib/unictype/categ_Pd.h: Likewise.
57359         * lib/unictype/categ_Pe.h: Likewise.
57360         * lib/unictype/categ_Pf.h: Likewise.
57361         * lib/unictype/categ_Pi.h: Likewise.
57362         * lib/unictype/categ_Po.h: Likewise.
57363         * lib/unictype/categ_Ps.h: Likewise.
57364         * lib/unictype/categ_S.h: Likewise.
57365         * lib/unictype/categ_Sc.h: Likewise.
57366         * lib/unictype/categ_Sk.h: Likewise.
57367         * lib/unictype/categ_Sm.h: Likewise.
57368         * lib/unictype/categ_So.h: Likewise.
57369         * lib/unictype/categ_Z.h: Likewise.
57370         * lib/unictype/categ_Zl.h: Likewise.
57371         * lib/unictype/categ_Zp.h: Likewise.
57372         * lib/unictype/categ_Zs.h: Likewise.
57373         * lib/unictype/categ_of.h: Likewise.
57374         * lib/unictype/combining.h: Likewise.
57375         * lib/unictype/ctype_alnum.h: Likewise.
57376         * lib/unictype/ctype_alpha.h: Likewise.
57377         * lib/unictype/ctype_blank.h: Likewise.
57378         * lib/unictype/ctype_cntrl.h: Likewise.
57379         * lib/unictype/ctype_digit.h: Likewise.
57380         * lib/unictype/ctype_graph.h: Likewise.
57381         * lib/unictype/ctype_lower.h: Likewise.
57382         * lib/unictype/ctype_print.h: Likewise.
57383         * lib/unictype/ctype_punct.h: Likewise.
57384         * lib/unictype/ctype_space.h: Likewise.
57385         * lib/unictype/ctype_upper.h: Likewise.
57386         * lib/unictype/ctype_xdigit.h: Likewise.
57387         * lib/unictype/decdigit.h: Likewise.
57388         * lib/unictype/digit.h: Likewise.
57389         * lib/unictype/mirror.h: Likewise.
57390         * lib/unictype/numeric.h: Likewise.
57391         * lib/unictype/pr_alphabetic.h: Likewise.
57392         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
57393         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
57394         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
57395         * lib/unictype/pr_bidi_block_separator.h: Likewise.
57396         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
57397         * lib/unictype/pr_bidi_common_separator.h: Likewise.
57398         * lib/unictype/pr_bidi_control.h: Likewise.
57399         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
57400         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
57401         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
57402         * lib/unictype/pr_bidi_european_digit.h: Likewise.
57403         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
57404         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
57405         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
57406         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
57407         * lib/unictype/pr_bidi_pdf.h: Likewise.
57408         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
57409         * lib/unictype/pr_bidi_whitespace.h: Likewise.
57410         * lib/unictype/pr_combining.h: Likewise.
57411         * lib/unictype/pr_composite.h: Likewise.
57412         * lib/unictype/pr_currency_symbol.h: Likewise.
57413         * lib/unictype/pr_dash.h: Likewise.
57414         * lib/unictype/pr_decimal_digit.h: Likewise.
57415         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
57416         * lib/unictype/pr_deprecated.h: Likewise.
57417         * lib/unictype/pr_diacritic.h: Likewise.
57418         * lib/unictype/pr_extender.h: Likewise.
57419         * lib/unictype/pr_format_control.h: Likewise.
57420         * lib/unictype/pr_grapheme_base.h: Likewise.
57421         * lib/unictype/pr_grapheme_extend.h: Likewise.
57422         * lib/unictype/pr_grapheme_link.h: Likewise.
57423         * lib/unictype/pr_hex_digit.h: Likewise.
57424         * lib/unictype/pr_hyphen.h: Likewise.
57425         * lib/unictype/pr_id_continue.h: Likewise.
57426         * lib/unictype/pr_id_start.h: Likewise.
57427         * lib/unictype/pr_ideographic.h: Likewise.
57428         * lib/unictype/pr_ids_binary_operator.h: Likewise.
57429         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
57430         * lib/unictype/pr_ignorable_control.h: Likewise.
57431         * lib/unictype/pr_iso_control.h: Likewise.
57432         * lib/unictype/pr_join_control.h: Likewise.
57433         * lib/unictype/pr_left_of_pair.h: Likewise.
57434         * lib/unictype/pr_line_separator.h: Likewise.
57435         * lib/unictype/pr_logical_order_exception.h: Likewise.
57436         * lib/unictype/pr_lowercase.h: Likewise.
57437         * lib/unictype/pr_math.h: Likewise.
57438         * lib/unictype/pr_non_break.h: Likewise.
57439         * lib/unictype/pr_not_a_character.h: Likewise.
57440         * lib/unictype/pr_numeric.h: Likewise.
57441         * lib/unictype/pr_other_alphabetic.h: Likewise.
57442         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
57443         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
57444         * lib/unictype/pr_other_id_continue.h: Likewise.
57445         * lib/unictype/pr_other_id_start.h: Likewise.
57446         * lib/unictype/pr_other_lowercase.h: Likewise.
57447         * lib/unictype/pr_other_math.h: Likewise.
57448         * lib/unictype/pr_other_uppercase.h: Likewise.
57449         * lib/unictype/pr_paired_punctuation.h: Likewise.
57450         * lib/unictype/pr_paragraph_separator.h: Likewise.
57451         * lib/unictype/pr_pattern_syntax.h: Likewise.
57452         * lib/unictype/pr_pattern_white_space.h: Likewise.
57453         * lib/unictype/pr_private_use.h: Likewise.
57454         * lib/unictype/pr_punctuation.h: Likewise.
57455         * lib/unictype/pr_quotation_mark.h: Likewise.
57456         * lib/unictype/pr_radical.h: Likewise.
57457         * lib/unictype/pr_sentence_terminal.h: Likewise.
57458         * lib/unictype/pr_soft_dotted.h: Likewise.
57459         * lib/unictype/pr_space.h: Likewise.
57460         * lib/unictype/pr_terminal_punctuation.h: Likewise.
57461         * lib/unictype/pr_titlecase.h: Likewise.
57462         * lib/unictype/pr_unassigned_code_value.h: Likewise.
57463         * lib/unictype/pr_unified_ideograph.h: Likewise.
57464         * lib/unictype/pr_uppercase.h: Likewise.
57465         * lib/unictype/pr_variation_selector.h: Likewise.
57466         * lib/unictype/pr_white_space.h: Likewise.
57467         * lib/unictype/pr_xid_continue.h: Likewise.
57468         * lib/unictype/pr_xid_start.h: Likewise.
57469         * lib/unictype/pr_zero_width.h: Likewise.
57470         * lib/unictype/scripts.h: Likewise.
57471         * lib/unictype/scripts_byname.gperf: Likewise.
57472         * lib/unictype/sy_c_ident.h: Likewise.
57473         * lib/unictype/sy_c_whitespace.h: Likewise.
57474         * lib/unictype/sy_java_ident.h: Likewise.
57475         * lib/unictype/sy_java_whitespace.h: Likewise.
57476
57477         * lib/unictype/Makefile: New file.
57478         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
57479         glibc.
57480         * lib/unictype/3level.h: New file, copied from glibc.
57481         * lib/unictype/3levelbit.h: New file.
57482
57483 2007-11-11  Bruno Haible  <bruno@clisp.org>
57484
57485         * modules/gperf: New file.
57486         * modules/iconv_open (Depends-on): Add it.
57487         (Makefile.am): Remove the GPERF definition.
57488
57489 2007-11-11  Bruno Haible  <bruno@clisp.org>
57490
57491         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
57492         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
57493
57494 2007-11-11  Bruno Haible  <bruno@clisp.org>
57495
57496         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
57497         (usage): Remove function.
57498
57499 2007-11-11  Bruno Haible  <bruno@clisp.org>
57500
57501         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
57502         gl_FUNC_CEILF_LIBS.
57503         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
57504         gl_FUNC_CEIL_LIBS.
57505         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
57506         gl_FUNC_CEILL_LIBS.
57507         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
57508         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
57509         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
57510
57511 2007-11-11  Bruno Haible  <bruno@clisp.org>
57512
57513         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
57514         roundf were declared but do not exist on functions.
57515         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
57516         roundl were declared but do not exist on functions.
57517         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
57518         HAVE_FLOORL_AND_CEILL, respectively.
57519         Needed for Sun C on Solaris 10.
57520
57521 2007-11-11  Bruno Haible  <bruno@clisp.org>
57522
57523         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
57524         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
57525         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
57526         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
57527         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
57528         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
57529         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
57530         HAVE_DECL_ROUNDF.
57531         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
57532         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
57533         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
57534         of HAVE_DECL_ROUND*.
57535         * modules/math (Makefile.am): Update.
57536
57537 2007-11-10  Bruno Haible  <bruno@clisp.org>
57538
57539         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
57540         ptrdiff_t as m4/intl.m4.
57541
57542 2007-11-10  Jim Meyering  <meyering@redhat.com>
57543
57544         Avoid link failure for the argmatch test.
57545         * tests/test-argmatch.c (usage): Define function to avoid a link
57546         failure: argmatch_die requires a usage function.
57547
57548 2007-11-09  Bruno Haible  <bruno@clisp.org>
57549
57550         * doc/functions/snprintf.texi: Mention BeOS deficiency.
57551         * doc/functions/vsnprintf.texi: Likewise.
57552         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
57553         with a size argument < 2.
57554
57555 2007-11-09  Bruno Haible  <bruno@clisp.org>
57556
57557         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
57558         buffer. Fixes an inefficiency introduced on 2007-11-03.
57559
57560 2007-11-09  Bruno Haible  <bruno@clisp.org>
57561
57562         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
57563         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
57564
57565 2007-11-08  Jim Meyering  <meyering@redhat.com>
57566
57567         Change cache variable name prefix "jm_" to "gl_" everywhere.
57568         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
57569         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
57570         * m4/uptime.m4: s/gl_/jm_/
57571
57572 2007-11-07  Bruno Haible  <bruno@clisp.org>
57573
57574         Update to GNU gettext 0.17.
57575         * m4/intl.m4: Update to GNU gettext 0.17.
57576         * m4/po.m4: Likewise.
57577         * modules/gettext (Files): Remove m4/ulonglong.m4.
57578         (configure.ac): Require gettext infrastructure from version 0.17.
57579
57580 2007-11-06  Bruno Haible  <bruno@clisp.org>
57581
57582         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
57583         symbolic values are not defined in a public header.
57584         * lib/freadable.c (freadable) [QNX]: Likewise.
57585         * lib/freadahead.c (freadahead) [QNX]: Likewise.
57586         * lib/freading.c (freading) [QNX]: Likewise.
57587         * lib/fseterr.c (fseterr) [QNX]: Likewise.
57588         * lib/fwritable.c (fwritable) [QNX]: Likewise.
57589         * lib/fwriting.c (fwriting) [QNX]: Likewise.
57590         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
57591         Reported by Alain Magloire.
57592
57593         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
57594
57595 2007-11-05  Bruno Haible  <bruno@clisp.org>
57596
57597         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
57598         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
57599         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
57600         Reported by Eric Blake.
57601
57602 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57603             Bruno Haible  <bruno@clisp.org>
57604
57605         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
57606         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
57607         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
57608         (malloc): Undefine also before including <stdlib.h>.
57609         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
57610         Needed on OSF/1 4.0.
57611
57612 2007-11-05  Jim Meyering  <meyering@redhat.com>
57613
57614         git-version-gen: sync from coreutils.
57615         * build-aux/git-version-gen: Add comments.
57616         Change the first '-' to '.' in the snapshot version string,
57617         e.g., 6.9-377-08144 -> 6.9.377-08144
57618         Remove first parameter.
57619         Don't declare a version "-dirty" merely because a time
57620         stamp has changed.
57621
57622 2007-11-04  Bruno Haible  <bruno@clisp.org>
57623
57624         * lib/lock.h: Protect all macro definitions containing an 'if'
57625         statement through a "do { ... } while (0)".
57626         * lib/tls.h: Likewise.
57627
57628 2007-11-04  Bruno Haible  <bruno@clisp.org>
57629
57630         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
57631
57632 2007-11-04  Bruno Haible  <bruno@clisp.org>
57633
57634         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
57635         * modules/fprintf-posix (Depends-on): Add nocrash.
57636         * modules/snprintf-posix (Depends-on): Likewise.
57637         * modules/sprintf-posix (Depends-on): Likewise.
57638         * modules/vasnprintf-posix (Depends-on): Likewise.
57639         * modules/vasprintf-posix (Depends-on): Likewise.
57640         * modules/vfprintf-posix (Depends-on): Likewise.
57641         * modules/vsnprintf-posix (Depends-on): Likewise.
57642         * modules/vsprintf-posix (Depends-on): Likewise.
57643         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
57644         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
57645         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
57646         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
57647         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
57648         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
57649         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
57650
57651 2007-11-04  Bruno Haible  <bruno@clisp.org>
57652
57653         * modules/nocrash: New file.
57654         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
57655         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
57656
57657 2007-11-04  Bruno Haible  <bruno@clisp.org>
57658
57659         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
57660         precision handling.
57661         * tests/test-vasprintf-posix.c (test_function): Likewise.
57662         * tests/test-snprintf-posix.h (test_function): Likewise.
57663         * tests/test-sprintf-posix.h (test_function): Likewise.
57664
57665         Fix *printf behaviour for large precisions on mingw and BeOS.
57666         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
57667         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
57668         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
57669         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
57670         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
57671         gl_PRINTF_PRECISION and test its result. Invoke
57672         gl_PREREQ_VASNPRINTF_PRECISION.
57673         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
57674         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
57675         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
57676         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
57677         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
57678         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
57679         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
57680         * doc/functions/fprintf.texi: Update.
57681         * doc/functions/printf.texi: Update.
57682         * doc/functions/snprintf.texi: Update.
57683         * doc/functions/sprintf.texi: Update.
57684         * doc/functions/vfprintf.texi: Update.
57685         * doc/functions/vprintf.texi: Update.
57686         * doc/functions/vsnprintf.texi: Update.
57687         * doc/functions/vsprintf.texi: Update.
57688
57689 2007-11-04  Bruno Haible  <bruno@clisp.org>
57690
57691         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
57692
57693 2007-11-04  Bruno Haible  <bruno@clisp.org>
57694
57695         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
57696         Reported by Sylvain Beucler <beuc@gnu.org>.
57697
57698 2007-11-03  Bruno Haible  <bruno@clisp.org>
57699
57700         * tests/test-fprintf-posix2.sh: New file.
57701         * tests/test-fprintf-posix2.c: New file.
57702         * modules/fprintf-posix-tests (Files): Add them.
57703         (TESTS): Add test-fprintf-posix2.sh.
57704         (configure.ac): Check for getrlimit and setrlimit.
57705         (check_PROGRAMS): Add test-fprintf-posix2.
57706
57707         * tests/test-printf-posix2.sh: New file.
57708         * tests/test-printf-posix2.c: New file.
57709         * modules/printf-posix-tests (Files): Add them.
57710         (TESTS): Add test-printf-posix2.sh.
57711         (configure.ac): Check for getrlimit and setrlimit.
57712         (check_PROGRAMS): Add test-printf-posix2.
57713
57714         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
57715         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
57716         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
57717         (decode_double): New function, copied from decode_long_double.
57718         (scale10_round_decimal_decoded): New function, extracted from
57719         scale10_round_decimal_long_double.
57720         (scale10_round_decimal_long_double): Use it.
57721         (scale10_round_decimal_double): New function.
57722         (floorlog10): New function.
57723         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
57724         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
57725         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
57726         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
57727         gl_PRINTF_ENOMEM and test its result. Invoke
57728         gl_PREREQ_VASNPRINTF_ENOMEM.
57729         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
57730         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
57731         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
57732         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
57733         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
57734         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
57735         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
57736         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
57737         * modules/snprintf-posix (Depends-on): Likewise.
57738         * modules/sprintf-posix (Depends-on): Likewise.
57739         * modules/vasnprintf-posix (Depends-on): Likewise.
57740         * modules/vasprintf-posix (Depends-on): Likewise.
57741         * modules/vfprintf-posix (Depends-on): Likewise.
57742         * modules/vsnprintf-posix (Depends-on): Likewise.
57743         * modules/vsprintf-posix (Depends-on): Likewise.
57744         * doc/functions/fprintf.texi: Update.
57745         * doc/functions/printf.texi: Update.
57746         * doc/functions/snprintf.texi: Update.
57747         * doc/functions/sprintf.texi: Update.
57748         * doc/functions/vfprintf.texi: Update.
57749         * doc/functions/vprintf.texi: Update.
57750         * doc/functions/vsnprintf.texi: Update.
57751         * doc/functions/vsprintf.texi: Update.
57752
57753 2007-11-03  Bruno Haible  <bruno@clisp.org>
57754
57755         * modules/frexp-nolibm-tests: New file.
57756
57757         * modules/frexp-nolibm: New file.
57758         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
57759
57760 2007-11-03  Bruno Haible  <bruno@clisp.org>
57761
57762         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
57763         value is C99 compliant.
57764         Needed for OSF/1 5.1.
57765
57766 2007-11-03  Bruno Haible  <bruno@clisp.org>
57767
57768         Fix out-of-memory handling of vasnprintf.
57769         * lib/printf-parse.c: Include <errno.h>.
57770         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
57771         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
57772         is already set.
57773
57774 2007-11-02  Eric Blake  <ebb9@byu.net>
57775
57776         Fix tests on cygwin.
57777         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
57778
57779 2007-11-01  Bruno Haible  <bruno@clisp.org>
57780
57781         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
57782         warning.
57783         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
57784         needed for POSIX compatibility.
57785
57786 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
57787
57788         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
57789         for compatibility with GNU.
57790
57791 2007-11-01  Bruno Haible  <bruno@clisp.org>
57792
57793         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
57794         (putenv): Renamed from rpl_putenv. Change argument type from
57795         'const char *' to 'char *'.
57796         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
57797         of defining putenv in config.h, just set REPLACE_PUTENV.
57798         * modules/putenv (Depends-on): Add stdlib.
57799         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
57800         (Include): Use <stdlib.h>.
57801         * lib/stdlib.in.h (putenv): New declaration.
57802         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
57803         REPLACE_PUTENV.
57804         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
57805         REPLACE_PUTENV.
57806         Needed for MacOS X 10.5.0.
57807         Reported by Peter O'Gorman <peter@pogma.com>.
57808
57809 2007-11-01  Jim Meyering  <meyering@redhat.com>
57810
57811         Treat an empty date string exactly like "0".
57812         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
57813         if the remaining date string (to be parsed) is empty, use "0".
57814         Reported by Mischa Molhoek and discussed in this thread:
57815         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
57816
57817 2007-10-31  Bruno Haible  <bruno@clisp.org>
57818
57819         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
57820         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
57821         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
57822         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
57823         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
57824         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
57825
57826 2007-10-31  Bruno Haible  <bruno@clisp.org>
57827
57828         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
57829         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
57830         (AC_TYPE_LONG_LONG_INT): Use it.
57831         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
57832         it as well.
57833         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
57834         to m4/longlong.m4.
57835         * modules/stdint (Files): Remove m4/ulonglong.m4.
57836         * modules/strtoull (Files): Use m4/longlong.m4 instead of
57837         m4/ulonglong.m4.
57838         * modules/strtoumax (Files): Likewise.
57839
57840 2007-10-30  Bruno Haible  <bruno@clisp.org>
57841
57842         * modules/xvasprintf-posix: New file.
57843         Suggested by Eric Blake.
57844
57845 2007-10-30  Bruno Haible  <bruno@clisp.org>
57846
57847         * modules/xprintf-posix-tests: New file.
57848         * tests/test-xprintf-posix.sh: New file.
57849         * tests/test-xprintf-posix.c: New file.
57850         * tests/test-xfprintf-posix.c: New file.
57851
57852         * modules/xprintf-posix: New file.
57853
57854 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57855
57856         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
57857         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
57858         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
57859
57860 2007-10-29  Bruno Haible  <bruno@clisp.org>
57861
57862         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
57863         contain the special marker '_cv_'.
57864         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
57865         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
57866         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
57867         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
57868         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
57869         Reported by Ralf Wildenhues.
57870
57871 2007-10-29  Bruno Haible  <bruno@clisp.org>
57872
57873         * gnulib-tool (func_import): When --lgpl is not specified, set
57874         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
57875         GPLv3.
57876         Reported by Simon Josefsson.
57877
57878 2007-10-28  Bruno Haible  <bruno@clisp.org>
57879
57880         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
57881         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
57882         HAVE_DECL_ISFINITE.
57883         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
57884         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
57885         HAVE_DECL_ISFINITE.
57886
57887 2007-10-28  Bruno Haible  <bruno@clisp.org>
57888
57889         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
57890         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
57891
57892 2007-10-28  Bruno Haible  <bruno@clisp.org>
57893
57894         Fix link errors with Sun C 5.0 on Solaris 10.
57895         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
57896         function is declared but not present in the compiler's libm.
57897         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
57898         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
57899         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
57900         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
57901         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
57902         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
57903         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
57904         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
57905         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
57906         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
57907         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
57908         HAVE_DECL_FLOORL.
57909
57910 2007-10-28  Bruno Haible  <bruno@clisp.org>
57911
57912         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
57913         gl_FUNC_FLOORL. Cache the result.
57914         (gl_FUNC_FLOORL): Use it.
57915         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
57916         gl_FUNC_CEILL. Cache the result.
57917         (gl_FUNC_CEILL): Use it.
57918
57919         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
57920         gl_FUNC_FLOOR. Cache the result.
57921         (gl_FUNC_FLOOR): Use it.
57922         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
57923         gl_FUNC_CEIL. Cache the result.
57924         (gl_FUNC_CEIL): Use it.
57925
57926         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
57927         gl_FUNC_FLOORF. Cache the result.
57928         (gl_FUNC_FLOORF): Use it.
57929         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
57930         gl_FUNC_CEILF. Cache the result.
57931         (gl_FUNC_CEILF): Use it.
57932
57933 2007-10-28  Bruno Haible  <bruno@clisp.org>
57934
57935         * gnulib-tool: Allow specifying the LGPL version number through
57936         --lgpl=2 or --lgpl=3.
57937         (func_usage): Document --lgpl with argument.
57938         Handle --lgpl=... arguments.
57939         (func_import): Recognize also gl_LGPL calls with an argument. When
57940         --lgpl=2 is used and the module's license is just LGPL, report an
57941         error. Set sed_transform_lib_file according to the lgpl variable. In
57942         the generated files, use --lgpl or gl_LGPL invocations with argument,
57943         if necessary.
57944         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
57945         an LGPv2+ license.
57946         * doc/gnulib-tool.texi (Modified imports): Update explanation of
57947         gl_LGPL macro.
57948
57949 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57950             Bruno Haible  <bruno@clisp.org>
57951
57952         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
57953         (u16_uctomb_aux): Likewise.
57954         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
57955         !HAVE_INLINE.
57956         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
57957
57958 2007-10-28  Bruno Haible  <bruno@clisp.org>
57959
57960         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
57961         Invoke AM_GETTEXT_OPTION if it exists.
57962         * modules/vasprintf: Likewise.
57963         * modules/verror: Likewise.
57964         * modules/xprintf: Likewise.
57965         * modules/xvasprintf: Likewise.
57966
57967 2007-10-27  Ben Pfaff  <blp@gnu.org>
57968
57969         * lib/math.in.h: Define isfinite macro and prototypes for
57970         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
57971         implementations.
57972         * m4/math_h.m4: New substitutions for isfinite module.
57973         * lib/isfinite.c: New file.
57974         * m4/isfinite.m4: New file.
57975         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
57976         * modules/isfinite: New file.
57977         * modules/isfinite-tests: New file.
57978         * tests/tests-isfinite.c: New file.
57979         * doc/functions/isfinite.texi: Mention isfinite module.
57980         * MODULES.html.sh: Mention new module.
57981
57982 2007-10-27  Ben Pfaff  <blp@gnu.org>
57983
57984         Ralf Wildenhues reported that Tru64 4.0D declares the round
57985         functions but does not have definitions.
57986         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
57987         cannot be found in any library, set the output variable to
57988         "missing" instead of "".
57989         * m4/round.m4: Also use our substitute if we cannot find round in
57990         any library, even if it is declared.
57991         * m4/roundf.m4: Likewise for roundf.
57992         * m4/roundl.m4: Likewise for roundl.
57993         * lib/math.in.h: Undefine roundf, round, roundl before defining
57994         their replacements, to allow for hypothetical systems where these
57995         may be defined as macros but not available in libraries.
57996
57997 2007-10-27  Bruno Haible  <bruno@clisp.org>
57998
57999         * doc/gnulib.texi: Invoke @firstparagraphindent.
58000         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
58001         changes in gnulib.
58002         (Source changes): New section.
58003
58004 2007-10-26  Bruno Haible  <bruno@clisp.org>
58005
58006         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
58007         borrowed from autoconf.
58008
58009 2007-10-26  Bruno Haible  <bruno@clisp.org>
58010
58011         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
58012         strerror returned the empty string. Needed on HP-UX 11.00.
58013
58014 2007-10-24  Micah Cowan  <micah@cowan.name>
58015
58016         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
58017         * build-aux/bootstrap: Remove support for now-unnecessary option,
58018         --cvs-user, and envvars CVS_USER, CVS_RSH.
58019
58020 2007-10-24  Jim Meyering  <meyering@redhat.com>
58021
58022         Avoid diagnostics from sha1sum when there is no cached checksum.
58023         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
58024         if the po.s1 file hasn't been created yet.
58025
58026         * build-aux/bootstrap: Sync from coreutils:
58027         2007-10-24  Jim Meyering  <meyering@redhat.com>
58028         Get gnulib from the git repository, not from an obsolete cvs one.
58029         * build-aux/bootstrap: Suggestion from Micah Cowan.
58030         2007-10-04  Jim Meyering  <jim@meyering.net>
58031         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
58032         (update_po_files): Work also when there are no .po files in po/.
58033
58034 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
58035
58036         * README: Append ".git" to git and cg examples.
58037         Problem reported by Benoit Sigoure.
58038
58039 2007-10-23  Micah Cowan  <micah@cowan.name>
58040
58041         * users.txt: Add wget.
58042
58043 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58044
58045         Fix linking of some unistdio tests on FreeBSD.
58046         * modules/unistdio/u16-vsnprintf-tests
58047         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
58048         * modules/unistdio/u16-vsprintf-tests
58049         (test_u16_vsnprintf1_LDADD): Likewise.
58050         * modules/unistdio/u32-vsnprintf-tests
58051         (test_u32_vsnprintf1_LDADD): Likewise.
58052         * modules/unistdio/u32-vsprintf-tests
58053         (test_u32_vsprintf1_LDADD): Likewise.
58054         * modules/unistdio/u8-vsnprintf-tests
58055         (test_u8_vsnprintf1_LDADD): Likewise.
58056         * modules/unistdio/u8-vsprintf-tests
58057         (test_u8_vsprintf1_LDADD): Likewise.
58058         * modules/unistdio/ulc-vsnprintf-tests
58059         (test_ulc_vsnprintf1_LDADD): Likewise.
58060         * modules/unistdio/ulc-vsprintf-tests
58061         (test_ulc_vsprintf1_LDADD): Likewise.
58062
58063         Fix linking of some uniconv tests on FreeBSD.
58064         * modules/uniconv/u16-conv-from-enc-tests
58065         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
58066         * modules/uniconv/u16-conv-to-enc-tests
58067         (test_u16_conv_to_enc_LDADD): Likewise.
58068         * modules/uniconv/u16-strconv-from-enc-tests
58069         (test_u16_strconv_from_enc_LDADD): Likewise.
58070         * modules/uniconv/u16-strconv-to-enc-tests
58071         (test_u16_strconv_to_enc_LDADD): Likewise.
58072         * modules/uniconv/u32-conv-from-enc-tests
58073         (test_u32_conv_from_enc_LDADD): Likewise.
58074         * modules/uniconv/u32-conv-to-enc-tests
58075         (test_u32_conv_to_enc_LDADD): Likewise.
58076         * modules/uniconv/u32-strconv-from-enc-tests
58077         (test_u32_strconv_from_enc_LDADD): Likewise.
58078         * modules/uniconv/u32-strconv-to-enc-tests
58079         (test_u32_strconv_to_enc_LDADD): Likewise.
58080         * modules/uniconv/u8-conv-from-enc-tests
58081         (test_u8_conv_from_enc_LDADD): Likewise.
58082         * modules/uniconv/u8-conv-to-enc-tests
58083         (test_u8_conv_to_enc_LDADD): Likewise.
58084         * modules/uniconv/u8-strconv-from-enc-tests
58085         (test_u8_strconv_from_enc_LDADD): Likewise.
58086         * modules/uniconv/u8-strconv-to-enc-tests
58087         (test_u8_strconv_to_enc_LDADD): Likewise.
58088
58089 2007-10-22  Bruno Haible  <bruno@clisp.org>
58090
58091         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
58092         size.
58093
58094 2007-10-22  Eric Blake  <ebb9@byu.net>
58095
58096         Tweak x*printf documentation.
58097         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
58098         variable name and comments.
58099         Suggested by Bruno Haible.
58100
58101 2007-10-22  Bruno Haible  <bruno@clisp.org>
58102
58103         * lib/acl.c (copy_acl): Fix file name in comment.
58104
58105 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
58106
58107         Fix Tru64 problem with stdbool.h.
58108         * lib/stdbool.in.h (false, true):
58109         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
58110         Don't declare as an enum in this situation; it runs afoul of Tru64.
58111         Problem reported by Steven M. Schweda in
58112         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
58113
58114 2007-10-22  Eric Blake  <ebb9@byu.net>
58115
58116         Also wrap vf?printf.
58117         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
58118         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
58119         (xvprintf, xvfprintf): New functions.
58120
58121 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58122
58123         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
58124         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
58125
58126         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
58127         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
58128
58129 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
58130
58131         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
58132         by Bruno Haible.
58133
58134 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58135
58136         * lib/getloadavg.c
58137         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
58138         Undef `sys' after including sys/table.h, for Tru64 4.0D.
58139
58140         * tests/test-i-ring.c: Work for C89.
58141
58142 2007-10-22  Bruno Haible  <bruno@clisp.org>
58143
58144         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
58145         -1u, in preprocessor expression, so that we don't test for the bug
58146         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
58147         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
58148
58149 2007-10-22  Eric Blake  <ebb9@byu.net>
58150
58151         * tests/test-yesno.sh: Silence stderr during test.
58152
58153 2007-10-22  Simon Josefsson  <simon@josefsson.org>
58154
58155         * modules/crypto/gc-camellia: New file.
58156
58157         * m4/gc-camellia.m4: New file.
58158
58159         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
58160
58161         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
58162
58163 2007-10-22  Simon Josefsson  <simon@josefsson.org>
58164
58165         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
58166         --help to stdout.  Reported by sms@antinode.org (Steven
58167         M. Schweda).
58168
58169 2007-10-22  Simon Josefsson  <simon@josefsson.org>
58170
58171         * users.txt: Fix link to libksba.
58172
58173 2007-10-21  Ben Pfaff  <blp@gnu.org>
58174
58175         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
58176         round.c roundf implementation that depends on floorf and ceilf to
58177         be tested unconditionally.
58178
58179 2007-10-21  Ben Pfaff  <blp@gnu.org>
58180
58181         * m4/check-libm-func.m4: Removed.
58182         * m4/check-math-lib.m4: New file.
58183         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
58184         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
58185         definition and lack of AC_LIBOBJ([roundf]).
58186         * m4/roundl.m4: Ditto, and similarly for roundl.
58187         * modules/round: Reference new m4 file.
58188         * modules/roundf: Ditto.
58189         * modules/roundl: Ditto.
58190         * tests/test-round2.c (main): Use ROUND instead of round.
58191         Bug report from Bruno Haible.
58192
58193 2007-10-21  Bruno Haible  <bruno@clisp.org>
58194
58195         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
58196         context.
58197
58198 2007-10-21  Bruno Haible  <bruno@clisp.org>
58199
58200         * tests/test-wcwidth.c (main): Allow negative result for some control
58201         characters.
58202
58203         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
58204         Needed on OSF/1 5.1.
58205
58206 2007-10-21  Bruno Haible  <bruno@clisp.org>
58207
58208         * tests/test-floorf1.c: Include isnanf.h.
58209         (main): Use isnanf() instead of isnan().
58210         * tests/test-ceilf1.c: Include isnanf.h.
58211         (main): Use isnanf() instead of isnan().
58212         * tests/test-truncf1.c: Include isnanf.h.
58213         (main): Use isnanf() instead of isnan().
58214         * tests/test-roundf1.c: Include isnanf.h.
58215         (main): Use isnanf() instead of isnan().
58216
58217 2007-10-21  Eric Blake  <ebb9@byu.net>
58218
58219         * users.txt: Update URL for m4.
58220
58221 2007-10-21  Bruno Haible  <bruno@clisp.org>
58222
58223         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
58224
58225 2007-10-21  Bruno Haible  <bruno@clisp.org>
58226
58227         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
58228         Git's management files if the CVS files are not present.
58229
58230 2007-10-20  Bruno Haible  <bruno@clisp.org>
58231
58232         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
58233         gcc-3.4.x.
58234
58235 2007-10-20  Ben Pfaff  <blp@gnu.org>
58236
58237         * lib/math.in.h: Declare round, roundf, roundl if we are providing
58238         implementations.
58239         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
58240         * lib/round.c: New file.
58241         * lib/roundf.c: New file.
58242         * lib/roundl.c: New file.
58243         * m4/round.m4: New file.
58244         * m4/roundf.m4: New file.
58245         * m4/roundl.m4: New file.
58246         * m4/check-libm-func-m4: New file.
58247         * modules/math: Replace round, roundf, roundl related @VARS@ in
58248         math.in.h.
58249         * modules/round: New file.
58250         * modules/round-tests: New file.
58251         * modules/roundf: New file.
58252         * modules/roundf-tests: New file.
58253         * modules/roundl: New file.
58254         * modules/roundl-tests: New file.
58255         * tests/test-round1.c: New file.
58256         * tests/test-round2.c: New file.
58257         * tests/test-roundf1.c: New file.
58258         * tests/test-roundf2.c: New file.
58259         * tests/test-roundl.c: New file.
58260         * doc/functions/round.texi: Mention round module.
58261         * doc/functions/roundf.texi: Mention roundf module.
58262         * doc/functions/roundl.texi: Mention roundl module.
58263         * MODULES.html.sh: Mention new modules.
58264         Thanks to Bruno Haible for suggestions.
58265
58266 2007-10-20  Jim Meyering  <meyering@redhat.com>
58267
58268         * lib/xprintf.c: Include <config.h> unconditionally.
58269
58270         Change xprintf's license to GPL.
58271         * modules/xprintf (License): s/LGPL/GPL/, since this module
58272         depends on modules (exit and exitfail) which are GPL.
58273         Suggestion from Bruno Haible.
58274
58275         xprintf fixes.
58276         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
58277         Use a clearer diagnostic.
58278         Patch from Bruno Haible.
58279
58280 2007-10-20  Bruno Haible  <bruno@clisp.org>
58281
58282         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
58283         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
58284         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
58285
58286 2007-10-20  Bruno Haible  <bruno@clisp.org>
58287
58288         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
58289         precision in the comparison result > x - 1 or similar.
58290         * tests/test-ceilf2.c (correct_result_p): Likewise.
58291         * tests/test-truncf2.c (correct_result_p): Likewise.
58292         * tests/test-trunc2.c (correct_result_p): Likewise.
58293         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
58294
58295 2007-10-20  Bruno Haible  <bruno@clisp.org>
58296
58297         * modules/ceil: New file.
58298         * m4/ceil.m4: New file.
58299         * doc/functions/ceil.texi: Mention the 'ceil' module.
58300
58301 2007-10-20  Bruno Haible  <bruno@clisp.org>
58302
58303         * modules/floor: New file.
58304         * m4/floor.m4: New file.
58305         * doc/functions/floor.texi: Mention the 'floor' module.
58306
58307 2007-10-20  Bruno Haible  <bruno@clisp.org>
58308
58309         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
58310         of %a.
58311         * modules/floorf-tests (Depends-on): Likewise.
58312         * modules/truncf-tests (Depends-on): Likewise.
58313         * modules/trunc-tests (Depends-on): Likewise.
58314         Reported by Ben Pfaff.
58315
58316 2007-10-19  Jim Meyering  <meyering@redhat.com>
58317
58318         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
58319         Don't bother testing specific errno values.  Just test ferror.
58320
58321         New module: xprintf
58322         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
58323
58324 2007-10-19  Bruno Haible  <bruno@clisp.org>
58325
58326         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
58327         syntax.
58328         * modules/javaexec (Makefile.am): Likewise.
58329         * modules/relocatable-prog (Makefile.am): Likewise.
58330         Suggested by Jim Meyering.
58331
58332 2007-10-18  Bruno Haible  <bruno@clisp.org>
58333
58334         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
58335         Reported by Jim Meyering.
58336
58337 2007-10-18  Eric Blake  <ebb9@byu.net>
58338
58339         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
58340
58341 2007-10-18  Bruno Haible  <bruno@clisp.org>
58342
58343         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
58344         the format string into writable memory. Needed in Fortify conditions.
58345
58346 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
58347             Bruno Haible  <bruno@clisp.org>
58348
58349         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
58350         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
58351         * modules/trim (Depends-on): Add mbchar.
58352         (configure.ac): Add gl_FUNC_MBRTOWC.
58353         (Makefile.am): Augment lib_SOURCES.
58354
58355 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
58356
58357         Modify glob.c to use fstatat and dirfd, to simplify it.
58358         Suggested by Eric Blake.
58359         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
58360         Don't include <stdbool.h>; not used.
58361         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
58362         (link_exists_p): Simplify implementation, since we can now assume
58363         dirfd and fstatat.
58364         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
58365
58366 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58367
58368         * gnulib-tool (func_get_dependencies): Fix sed script to
58369         match only tests.
58370
58371 2007-10-17  Bruno Haible  <bruno@clisp.org>
58372
58373         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
58374         allow locale names without encoding suffix.
58375         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
58376         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
58377
58378 2007-10-16  Bruno Haible  <bruno@clisp.org>
58379
58380         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
58381         * lib/getgroups.c (getgroups): Likewise.
58382         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
58383
58384 2007-10-16  Bruno Haible  <bruno@clisp.org>
58385
58386         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
58387         * modules/malloc-posix (License): Likewise.
58388         * modules/realloc-posix (License): Likewise.
58389         * modules/calloc-posix (License): Likewise.
58390         * modules/intprops (License): Change from GPL to LGPL, with
58391         Paul Eggert's approval.
58392
58393 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
58394
58395         Merge glibc changes into lib/glob.c.
58396
58397         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
58398         2007-10-15 04:59:03 UTC.  Here are the changes:
58399
58400         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
58401
58402         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
58403
58404         * lib/glob.c: Add some branch prediction throughout.
58405
58406         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
58407
58408         [BZ #5103]
58409         * lib/glob.c (glob): Recognize patterns starting \/.
58410
58411         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
58412
58413         [BZ #3996]
58414         * lib/glob.c (attribute_hidden): Define if not defined.
58415         (glob): Unescape dirname, filename or username when needed and not
58416         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
58417         is NULL.  Handle unescaped [ in pattern without closing ].
58418         Don't pass GLOB_CHECK down to recursive glob for directories.
58419         (__glob_pattern_type): New function.
58420         (__glob_pattern_p): Implement using __glob_pattern_type.
58421         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
58422         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
58423         Remove unreachable code.
58424
58425         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
58426
58427         * lib/glob.c (glob_in_dir): Add some comments and asserts to
58428         explain why there are no leaks.
58429
58430         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
58431
58432         [BZ #3253]
58433         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
58434         time, rather allocate increasingly bigger arrays of pointers, if
58435         possible with alloca, if too large with malloc.
58436
58437 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
58438
58439         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
58440         Problem reported by H.Merijn Brand in
58441         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
58442         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
58443         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
58444
58445 2007-10-15  Bruno Haible  <bruno@clisp.org>
58446
58447         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
58448         with explicit rpl_ prefix.
58449         * lib/fopen.c (fopen): Likewise.
58450         * lib/freopen.c (freopen): Likewise.
58451         * lib/iconv.c (iconv): Likewise.
58452         * lib/iconv_close.c (iconv_close): Likewise.
58453
58454 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58455
58456         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
58457
58458 2007-10-15  Bruno Haible  <bruno@clisp.org>
58459
58460         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
58461         <stddef.h> instead of <stdlib.h> since we only need NULL.
58462         Reported by Ben Pfaff <blp@cs.stanford.edu>.
58463
58464 2007-10-15  Bruno Haible  <bruno@clisp.org>
58465
58466         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
58467         Replace paragraph talking about LIBOBJS.
58468         Reported by Colin Watson <cjwatson@debian.org>.
58469
58470 2007-10-15  Bruno Haible  <bruno@clisp.org>
58471
58472         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
58473         <stdlib.h> before using NULL.
58474
58475 2007-10-15  Simon Josefsson  <simon@josefsson.org>
58476
58477         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
58478         Reported by Albert Chin <china@thewrittenword.com>.
58479
58480 2007-10-14  Bruno Haible  <bruno@clisp.org>
58481
58482         * modules/iconv_open-utf-tests: New file.
58483         * tests/test-iconv-utf.c: New file.
58484
58485         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
58486         * modules/iconv_open-utf: New file.
58487         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
58488         (iconv, iconv_close): New declarations.
58489         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
58490         be defined.
58491         (iconv_open): Add special handling of conversion between UTF-8 and
58492         UTF-{16,32}{BE,LE}.
58493         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
58494         * lib/iconv_close.c: New file.
58495         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
58496         gl_FUNC_ICONV_OPEN.
58497         (gl_FUNC_ICONV_OPEN): Use it.
58498         (gl_FUNC_ICONV_OPEN_UTF): New macro.
58499         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
58500         and REPLACE_ICONV_UTF.
58501         * modules/iconv_open (Depends-on): Add c-strcase.
58502         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
58503         ICONV_CONST.
58504         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
58505
58506 2007-10-13  Albert Chin  <china@thewrittenword.com>
58507             Bruno Haible  <bruno@clisp.org>
58508
58509         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
58510         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
58511
58512 2007-10-13  Bruno Haible  <bruno@clisp.org>
58513
58514         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
58515         defined, use the ISO C99 inline semantics.
58516         * lib/argp.h (ARGP_EI): Likewise.
58517
58518 2007-10-13  Bruno Haible  <bruno@clisp.org>
58519
58520         Handle 'inline' change in gcc 4.3.0.
58521         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
58522         argp_fmtstream_write, argp_fmtstream_set_lmargin,
58523         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
58524         argp_fmtstream_point): Disable 'extern' declaration if the function
58525         definition is going to be provided inline.
58526         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
58527         semantics, not the ISO C99 inline semantics.
58528         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
58529         'extern' declaration if the function definition is going to be provided
58530         inline.
58531         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
58532         the GNU C inline semantics, not the ISO C99 inline semantics. With
58533         GCC 4.2, avoid a warning.
58534
58535 2007-10-13  Bruno Haible  <bruno@clisp.org>
58536
58537         * lib/freading.h (freading): Enable the use of __freading for
58538         glibc >= 2.7.
58539         * lib/freading.c (freading): Likewise.
58540
58541 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
58542
58543         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
58544         "warning: C99 inline functions are not supported; using GNU89".
58545
58546 2007-10-12  Bruno Haible  <bruno@clisp.org>
58547
58548         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
58549         of 2.
58550         * tests/test-ceilf2.c: New file.
58551         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
58552
58553         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
58554         * modules/ceilf-tests: Update.
58555
58556 2007-10-12  Bruno Haible  <bruno@clisp.org>
58557
58558         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
58559         of 2.
58560         * tests/test-floorf2.c: New file.
58561         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
58562
58563         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
58564         * modules/floorf-tests: Update.
58565
58566 2007-10-12  Bruno Haible  <bruno@clisp.org>
58567
58568         * tests/test-trunc2.c: New file.
58569         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
58570
58571         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
58572         * modules/trunc-tests: Update.
58573
58574 2007-10-12  Bruno Haible  <bruno@clisp.org>
58575
58576         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
58577         of 2.
58578         * tests/test-truncf2.c: New file.
58579         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
58580
58581         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
58582         * modules/truncf-tests: Update.
58583
58584 2007-10-11  Eric Blake  <ebb9@byu.net>
58585
58586         Don't claim strerror is broken on Interix.
58587         * doc/functions/strerror.texi (strerror): Known broken systems are
58588         now Solaris 8, and not Interix.
58589         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
58590         Interix on cross-compile.
58591         Reported by Martin Koeppe in
58592         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
58593
58594 2007-10-11  Bruno Haible  <bruno@clisp.org>
58595
58596         * modules/i-ring-tests: New file.
58597         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
58598         instead of assert.
58599
58600 2007-10-11  Bruno Haible  <bruno@clisp.org>
58601
58602         * modules/filenamecat-tests: New file.
58603         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
58604         * lib/filenamecat.c: Remove test code.
58605
58606 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
58607
58608         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
58609
58610         * lib/strerror.c: Include <string.h> always, to test interface,
58611         and to remove the need for the dummy.
58612         Include intprops.h to compute width instead of doing it ourselves
58613         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
58614         (strerror): Define it to return NULL if there's no system strerror.
58615         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
58616         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
58617         ancient pre-strerror Unix systems well any more.  Saying "unknown
58618         system error" is enough.
58619         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
58620         simpler strerror.c implementation.
58621         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
58622         Simplify the tests to reflect the simpler strerror implementation.
58623         * modules/strerror (Depends-on): Add intprops.
58624
58625 2007-10-09  Eric Blake  <ebb9@byu.net>
58626
58627         Silence test-fpending.
58628         * modules/fpending-tests (Files): Add wrapper script.
58629         * tests/test-fpending.sh: New file.
58630
58631 2007-10-09  Bruno Haible  <bruno@clisp.org>
58632
58633         * MODULES.html.sh (func_module): Don't create a hyperlink for
58634         function names like 'printf_frexp'.
58635         (Misc): Add crc, memxor.
58636         (Characteristics of floating types): New section.
58637         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
58638         isnanf-nolibm, signbit, trunc, truncf, truncl.
58639         (Enhancements for ISO C 99 functions): New subsection Input/output.
58640         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
58641         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
58642         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
58643         (Compatibility checks for POSIX:2001 functions): Add clock-time.
58644         (Enhancements for POSIX:2001 functions): Add chdir-long.
58645         (File system functions): Add areadlink, chdir-safer, read-file.
58646         Remove cycle-check.
58647         (File system as inode set): New section.
58648         (Date and time): Add gethrxtime.
58649         (Multithreading): Add openmp.
58650         (Internationalization functions): Add localename.
58651         (Unicode string functions): Add unistr/u*-mbsnlen.
58652         (Support for maintaining and releasing projects): Add git-version-gen.
58653         (Lone files): Remove directories.
58654
58655 2007-10-08  Ben Pfaff  <blp@gnu.org>
58656
58657         * lib/xmalloca.h: Fix typo in comment.
58658
58659 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
58660
58661         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
58662         when avoiding problems with integer overflow.  Use a portable test
58663         instead.
58664
58665 2007-10-08  Simon Josefsson  <simon@josefsson.org>
58666
58667         * modules/dummy (License): Change to LGPLv2+.
58668         * modules/float (License): Likewise
58669         * modules/realloc (License): Likewise
58670         * modules/stdlib (License): Likewise
58671
58672 2007-10-07  Bruno Haible  <bruno@clisp.org>
58673
58674         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
58675         * floor.c (TWO_MANT_DIG): Likewise.
58676         * ceil.c (TWO_MANT_DIG): Likewise.
58677         Reported by Ben Pfaff.
58678
58679 2007-10-07  Bruno Haible  <bruno@clisp.org>
58680
58681         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
58682         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
58683         * lib/frexp.c (FUNC): Likewise.
58684         * lib/printf-frexp.h (printf_frexp): Likewise.
58685         * lib/printf-frexpl.h (printf_frexpl): Likewise.
58686         * lib/printf-frexp.c (FUNC): Likewise.
58687         Suggested by Jim Meyering.
58688
58689 2007-10-07  Jim Meyering  <meyering@redhat.com>
58690
58691         Make xnanosleep's integer overflow test more robust.
58692         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
58693         so that gcc-4.3.0 doesn't optimize away this test for overflow.
58694
58695 2007-10-07  Bruno Haible  <bruno@clisp.org>
58696
58697         * NEWS: Mention the license change.
58698
58699         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
58700         abbreviations in the modules files.
58701
58702         Change copyright notice from GPLv2+ to GPLv3+.
58703         * README: Change copyright notice.
58704         * MODULES.html.sh: Likewise.
58705         * build-aux/bootstrap.conf: Likewise.
58706         * build-aux/config.libpath: Likewise.
58707         * build-aux/csharpcomp.sh.in: Likewise.
58708         * build-aux/csharpexec.sh.in: Likewise.
58709         * build-aux/install-reloc: Likewise.
58710         * build-aux/javacomp.sh.in: Likewise.
58711         * build-aux/javaexec.sh.in: Likewise.
58712         * build-aux/ldd.sh.in: Likewise.
58713         * build-aux/reloc-ldflags: Likewise.
58714         * build-aux/relocatable.sh.in: Likewise.
58715         * build-aux/x-to-1.in: Likewise.
58716         * check-module: Likewise.
58717         * config/srclistvars.sh: Likewise.
58718         * gnulib-tool: Likewise.
58719         * lib/acl-internal.h: Likewise.
58720         * lib/acl.c: Likewise.
58721         * lib/acl.h: Likewise.
58722         * lib/acl_entries.c: Likewise.
58723         * lib/areadlink-with-size.c: Likewise.
58724         * lib/areadlink.c: Likewise.
58725         * lib/areadlink.h: Likewise.
58726         * lib/argmatch.c: Likewise.
58727         * lib/argmatch.h: Likewise.
58728         * lib/argp-ba.c: Likewise.
58729         * lib/argp-eexst.c: Likewise.
58730         * lib/argp-fmtstream.c: Likewise.
58731         * lib/argp-fmtstream.h: Likewise.
58732         * lib/argp-fs-xinl.c: Likewise.
58733         * lib/argp-help.c: Likewise.
58734         * lib/argp-namefrob.h: Likewise.
58735         * lib/argp-parse.c: Likewise.
58736         * lib/argp-pin.c: Likewise.
58737         * lib/argp-pv.c: Likewise.
58738         * lib/argp-pvh.c: Likewise.
58739         * lib/argp-xinl.c: Likewise.
58740         * lib/argp.h: Likewise.
58741         * lib/at-func.c: Likewise.
58742         * lib/atanl.c: Likewise.
58743         * lib/backupfile.c: Likewise.
58744         * lib/backupfile.h: Likewise.
58745         * lib/basename.c: Likewise.
58746         * lib/binary-io.h: Likewise.
58747         * lib/byteswap.in.h: Likewise.
58748         * lib/c-stack.c: Likewise.
58749         * lib/c-stack.h: Likewise.
58750         * lib/c-strcasestr.c: Likewise.
58751         * lib/c-strcasestr.h: Likewise.
58752         * lib/c-strstr.c: Likewise.
58753         * lib/c-strstr.h: Likewise.
58754         * lib/c-strtod.c: Likewise.
58755         * lib/calloc.c: Likewise.
58756         * lib/canon-host.c: Likewise.
58757         * lib/canon-host.h: Likewise.
58758         * lib/canonicalize-lgpl.c: Likewise.
58759         * lib/canonicalize.c: Likewise.
58760         * lib/canonicalize.h: Likewise.
58761         * lib/ceil.c: Likewise.
58762         * lib/ceilf.c: Likewise.
58763         * lib/ceill.c: Likewise.
58764         * lib/chdir-long.c: Likewise.
58765         * lib/chdir-long.h: Likewise.
58766         * lib/chdir-safer.c: Likewise.
58767         * lib/chdir-safer.h: Likewise.
58768         * lib/chown.c: Likewise.
58769         * lib/classpath.c: Likewise.
58770         * lib/classpath.h: Likewise.
58771         * lib/clean-temp.c: Likewise.
58772         * lib/clean-temp.h: Likewise.
58773         * lib/cloexec.c: Likewise.
58774         * lib/close-stream.c: Likewise.
58775         * lib/closein.c: Likewise.
58776         * lib/closein.h: Likewise.
58777         * lib/closeout.c: Likewise.
58778         * lib/closeout.h: Likewise.
58779         * lib/concat-filename.c: Likewise.
58780         * lib/copy-file.c: Likewise.
58781         * lib/copy-file.h: Likewise.
58782         * lib/count-one-bits.h: Likewise.
58783         * lib/crc.c: Likewise.
58784         * lib/crc.h: Likewise.
58785         * lib/creat-safer.c: Likewise.
58786         * lib/csharpcomp.c: Likewise.
58787         * lib/csharpcomp.h: Likewise.
58788         * lib/csharpexec.c: Likewise.
58789         * lib/csharpexec.h: Likewise.
58790         * lib/cycle-check.c: Likewise.
58791         * lib/cycle-check.h: Likewise.
58792         * lib/diacrit.c: Likewise.
58793         * lib/diacrit.h: Likewise.
58794         * lib/diffseq.h: Likewise.
58795         * lib/dirchownmod.c: Likewise.
58796         * lib/dirent.in.h: Likewise.
58797         * lib/dirfd.c: Likewise.
58798         * lib/dirfd.h: Likewise.
58799         * lib/dirname.c: Likewise.
58800         * lib/dirname.h: Likewise.
58801         * lib/dummy.c: Likewise.
58802         * lib/dup-safer.c: Likewise.
58803         * lib/dup2.c: Likewise.
58804         * lib/eealloc.h: Likewise.
58805         * lib/error.c: Likewise.
58806         * lib/error.h: Likewise.
58807         * lib/euidaccess.c: Likewise.
58808         * lib/exclude.c: Likewise.
58809         * lib/exclude.h: Likewise.
58810         * lib/execute.c: Likewise.
58811         * lib/execute.h: Likewise.
58812         * lib/exitfail.c: Likewise.
58813         * lib/exitfail.h: Likewise.
58814         * lib/expl.c: Likewise.
58815         * lib/fatal-signal.c: Likewise.
58816         * lib/fatal-signal.h: Likewise.
58817         * lib/fbufmode.c: Likewise.
58818         * lib/fbufmode.h: Likewise.
58819         * lib/fchdir.c: Likewise.
58820         * lib/fchmodat.c: Likewise.
58821         * lib/fchownat.c: Likewise.
58822         * lib/fcntl--.h: Likewise.
58823         * lib/fcntl-safer.h: Likewise.
58824         * lib/fcntl.in.h: Likewise.
58825         * lib/fd-safer.c: Likewise.
58826         * lib/fflush.c: Likewise.
58827         * lib/file-has-acl.c: Likewise.
58828         * lib/file-set.c: Likewise.
58829         * lib/file-type.c: Likewise.
58830         * lib/file-type.h: Likewise.
58831         * lib/fileblocks.c: Likewise.
58832         * lib/filemode.c: Likewise.
58833         * lib/filemode.h: Likewise.
58834         * lib/filename.h: Likewise.
58835         * lib/filenamecat.c: Likewise.
58836         * lib/filenamecat.h: Likewise.
58837         * lib/findprog.c: Likewise.
58838         * lib/findprog.h: Likewise.
58839         * lib/float.in.h: Likewise.
58840         * lib/floor.c: Likewise.
58841         * lib/floorf.c: Likewise.
58842         * lib/floorl.c: Likewise.
58843         * lib/fopen-safer.c: Likewise.
58844         * lib/fopen.c: Likewise.
58845         * lib/fpending.c: Likewise.
58846         * lib/fpending.h: Likewise.
58847         * lib/fprintf.c: Likewise.
58848         * lib/fprintftime.h: Likewise.
58849         * lib/fpucw.h: Likewise.
58850         * lib/fpurge.c: Likewise.
58851         * lib/fpurge.h: Likewise.
58852         * lib/freadable.c: Likewise.
58853         * lib/freadable.h: Likewise.
58854         * lib/freadahead.c: Likewise.
58855         * lib/freadahead.h: Likewise.
58856         * lib/freading.c: Likewise.
58857         * lib/freading.h: Likewise.
58858         * lib/free.c: Likewise.
58859         * lib/freopen.c: Likewise.
58860         * lib/frexp.c: Likewise.
58861         * lib/frexpl.c: Likewise.
58862         * lib/fseek.c: Likewise.
58863         * lib/fseterr.c: Likewise.
58864         * lib/fseterr.h: Likewise.
58865         * lib/fstatat.c: Likewise.
58866         * lib/fstrcmp.c: Likewise.
58867         * lib/fstrcmp.h: Likewise.
58868         * lib/fsusage.c: Likewise.
58869         * lib/fsusage.h: Likewise.
58870         * lib/ftell.c: Likewise.
58871         * lib/ftello.c: Likewise.
58872         * lib/fts-cycle.c: Likewise.
58873         * lib/fts.c: Likewise.
58874         * lib/fts_.h: Likewise.
58875         * lib/full-read.c: Likewise.
58876         * lib/full-read.h: Likewise.
58877         * lib/full-write.c: Likewise.
58878         * lib/full-write.h: Likewise.
58879         * lib/fwritable.c: Likewise.
58880         * lib/fwritable.h: Likewise.
58881         * lib/fwriteerror.c: Likewise.
58882         * lib/fwriteerror.h: Likewise.
58883         * lib/fwriting.c: Likewise.
58884         * lib/fwriting.h: Likewise.
58885         * lib/gcd.c: Likewise.
58886         * lib/gcd.h: Likewise.
58887         * lib/getcwd.c: Likewise.
58888         * lib/getdate.h: Likewise.
58889         * lib/getdate.y: Likewise.
58890         * lib/getdomainname.c: Likewise.
58891         * lib/getdomainname.h: Likewise.
58892         * lib/getgroups.c: Likewise.
58893         * lib/gethostname.c: Likewise.
58894         * lib/gethrxtime.c: Likewise.
58895         * lib/gethrxtime.h: Likewise.
58896         * lib/getloadavg.c: Likewise.
58897         * lib/getndelim2.c: Likewise.
58898         * lib/getndelim2.h: Likewise.
58899         * lib/getnline.c: Likewise.
58900         * lib/getnline.h: Likewise.
58901         * lib/getopt.c: Likewise.
58902         * lib/getopt.in.h: Likewise.
58903         * lib/getopt1.c: Likewise.
58904         * lib/getopt_int.h: Likewise.
58905         * lib/getpagesize.h: Likewise.
58906         * lib/getsubopt.c: Likewise.
58907         * lib/gettime.c: Likewise.
58908         * lib/getugroups.c: Likewise.
58909         * lib/getugroups.h: Likewise.
58910         * lib/getusershell.c: Likewise.
58911         * lib/gl_anyavltree_list1.h: Likewise.
58912         * lib/gl_anyavltree_list2.h: Likewise.
58913         * lib/gl_anyhash_list1.h: Likewise.
58914         * lib/gl_anyhash_list2.h: Likewise.
58915         * lib/gl_anylinked_list1.h: Likewise.
58916         * lib/gl_anylinked_list2.h: Likewise.
58917         * lib/gl_anyrbtree_list1.h: Likewise.
58918         * lib/gl_anyrbtree_list2.h: Likewise.
58919         * lib/gl_anytree_list1.h: Likewise.
58920         * lib/gl_anytree_list2.h: Likewise.
58921         * lib/gl_anytree_oset.h: Likewise.
58922         * lib/gl_anytreehash_list1.h: Likewise.
58923         * lib/gl_anytreehash_list2.h: Likewise.
58924         * lib/gl_array_list.c: Likewise.
58925         * lib/gl_array_list.h: Likewise.
58926         * lib/gl_array_oset.c: Likewise.
58927         * lib/gl_array_oset.h: Likewise.
58928         * lib/gl_avltree_list.c: Likewise.
58929         * lib/gl_avltree_list.h: Likewise.
58930         * lib/gl_avltree_oset.c: Likewise.
58931         * lib/gl_avltree_oset.h: Likewise.
58932         * lib/gl_avltreehash_list.c: Likewise.
58933         * lib/gl_avltreehash_list.h: Likewise.
58934         * lib/gl_carray_list.c: Likewise.
58935         * lib/gl_carray_list.h: Likewise.
58936         * lib/gl_linked_list.c: Likewise.
58937         * lib/gl_linked_list.h: Likewise.
58938         * lib/gl_linkedhash_list.c: Likewise.
58939         * lib/gl_linkedhash_list.h: Likewise.
58940         * lib/gl_list.c: Likewise.
58941         * lib/gl_list.h: Likewise.
58942         * lib/gl_oset.c: Likewise.
58943         * lib/gl_oset.h: Likewise.
58944         * lib/gl_rbtree_list.c: Likewise.
58945         * lib/gl_rbtree_list.h: Likewise.
58946         * lib/gl_rbtree_oset.c: Likewise.
58947         * lib/gl_rbtree_oset.h: Likewise.
58948         * lib/gl_rbtreehash_list.c: Likewise.
58949         * lib/gl_rbtreehash_list.h: Likewise.
58950         * lib/gl_sublist.c: Likewise.
58951         * lib/gl_sublist.h: Likewise.
58952         * lib/group-member.c: Likewise.
58953         * lib/group-member.h: Likewise.
58954         * lib/hard-locale.c: Likewise.
58955         * lib/hard-locale.h: Likewise.
58956         * lib/hash-pjw.c: Likewise.
58957         * lib/hash-pjw.h: Likewise.
58958         * lib/hash-triple.c: Likewise.
58959         * lib/hash.c: Likewise.
58960         * lib/hash.h: Likewise.
58961         * lib/human.c: Likewise.
58962         * lib/human.h: Likewise.
58963         * lib/i-ring.c: Likewise.
58964         * lib/i-ring.h: Likewise.
58965         * lib/idcache.c: Likewise.
58966         * lib/imaxabs.c: Likewise.
58967         * lib/imaxdiv.c: Likewise.
58968         * lib/inet_pton.c: Likewise.
58969         * lib/inet_pton.h: Likewise.
58970         * lib/intprops.h: Likewise.
58971         * lib/inttostr.c: Likewise.
58972         * lib/inttostr.h: Likewise.
58973         * lib/inttypes.in.h: Likewise.
58974         * lib/isapipe.c: Likewise.
58975         * lib/isdir.c: Likewise.
58976         * lib/isnan.c: Likewise.
58977         * lib/isnan.h: Likewise.
58978         * lib/isnanf.c: Likewise.
58979         * lib/isnanf.h: Likewise.
58980         * lib/isnanl-nolibm.h: Likewise.
58981         * lib/isnanl.c: Likewise.
58982         * lib/isnanl.h: Likewise.
58983         * lib/javacomp.c: Likewise.
58984         * lib/javacomp.h: Likewise.
58985         * lib/javaexec.c: Likewise.
58986         * lib/javaexec.h: Likewise.
58987         * lib/javaversion.c: Likewise.
58988         * lib/javaversion.h: Likewise.
58989         * lib/javaversion.java: Likewise.
58990         * lib/lbrkprop.h: Likewise.
58991         * lib/lchmod.h: Likewise.
58992         * lib/lchown.c: Likewise.
58993         * lib/ldexpl.c: Likewise.
58994         * lib/linebreak.c: Likewise.
58995         * lib/linebreak.h: Likewise.
58996         * lib/linebuffer.c: Likewise.
58997         * lib/linebuffer.h: Likewise.
58998         * lib/locale.in.h: Likewise.
58999         * lib/logl.c: Likewise.
59000         * lib/long-options.c: Likewise.
59001         * lib/long-options.h: Likewise.
59002         * lib/lstat.c: Likewise.
59003         * lib/lstat.h: Likewise.
59004         * lib/math.in.h: Likewise.
59005         * lib/mbchar.c: Likewise.
59006         * lib/mbchar.h: Likewise.
59007         * lib/mbfile.h: Likewise.
59008         * lib/mbiter.h: Likewise.
59009         * lib/mbscasecmp.c: Likewise.
59010         * lib/mbscasestr.c: Likewise.
59011         * lib/mbschr.c: Likewise.
59012         * lib/mbscspn.c: Likewise.
59013         * lib/mbslen.c: Likewise.
59014         * lib/mbsncasecmp.c: Likewise.
59015         * lib/mbsnlen.c: Likewise.
59016         * lib/mbspbrk.c: Likewise.
59017         * lib/mbspcasecmp.c: Likewise.
59018         * lib/mbsrchr.c: Likewise.
59019         * lib/mbssep.c: Likewise.
59020         * lib/mbsspn.c: Likewise.
59021         * lib/mbsstr.c: Likewise.
59022         * lib/mbstok_r.c: Likewise.
59023         * lib/mbswidth.c: Likewise.
59024         * lib/mbswidth.h: Likewise.
59025         * lib/mbuiter.h: Likewise.
59026         * lib/memcasecmp.c: Likewise.
59027         * lib/memcasecmp.h: Likewise.
59028         * lib/memchr.c: Likewise.
59029         * lib/memcmp.c: Likewise.
59030         * lib/memcoll.c: Likewise.
59031         * lib/memcoll.h: Likewise.
59032         * lib/memcpy.c: Likewise.
59033         * lib/memrchr.c: Likewise.
59034         * lib/mkancesdirs.c: Likewise.
59035         * lib/mkdir-p.c: Likewise.
59036         * lib/mkdir-p.h: Likewise.
59037         * lib/mkdir.c: Likewise.
59038         * lib/mkdirat.c: Likewise.
59039         * lib/mkdtemp.c: Likewise.
59040         * lib/mkstemp-safer.c: Likewise.
59041         * lib/mkstemp.c: Likewise.
59042         * lib/modechange.c: Likewise.
59043         * lib/modechange.h: Likewise.
59044         * lib/mountlist.c: Likewise.
59045         * lib/mountlist.h: Likewise.
59046         * lib/mpsort.c: Likewise.
59047         * lib/nanosleep.c: Likewise.
59048         * lib/obstack.c: Likewise.
59049         * lib/obstack.h: Likewise.
59050         * lib/open-safer.c: Likewise.
59051         * lib/open.c: Likewise.
59052         * lib/openat-die.c: Likewise.
59053         * lib/openat-priv.h: Likewise.
59054         * lib/openat-proc.c: Likewise.
59055         * lib/openat.c: Likewise.
59056         * lib/openat.h: Likewise.
59057         * lib/pagealign_alloc.c: Likewise.
59058         * lib/pagealign_alloc.h: Likewise.
59059         * lib/physmem.c: Likewise.
59060         * lib/physmem.h: Likewise.
59061         * lib/pipe-safer.c: Likewise.
59062         * lib/pipe.c: Likewise.
59063         * lib/pipe.h: Likewise.
59064         * lib/posixtm.c: Likewise.
59065         * lib/posixtm.h: Likewise.
59066         * lib/posixver.c: Likewise.
59067         * lib/printf-frexp.c: Likewise.
59068         * lib/printf-frexp.h: Likewise.
59069         * lib/printf-frexpl.c: Likewise.
59070         * lib/printf-frexpl.h: Likewise.
59071         * lib/printf.c: Likewise.
59072         * lib/progname.c: Likewise.
59073         * lib/progname.h: Likewise.
59074         * lib/progreloc.c: Likewise.
59075         * lib/putenv.c: Likewise.
59076         * lib/quote.c: Likewise.
59077         * lib/quote.h: Likewise.
59078         * lib/quotearg.c: Likewise.
59079         * lib/quotearg.h: Likewise.
59080         * lib/raise.c: Likewise.
59081         * lib/readline.c: Likewise.
59082         * lib/readline.h: Likewise.
59083         * lib/readlink.c: Likewise.
59084         * lib/readtokens.c: Likewise.
59085         * lib/readtokens.h: Likewise.
59086         * lib/readtokens0.c: Likewise.
59087         * lib/readtokens0.h: Likewise.
59088         * lib/readutmp.c: Likewise.
59089         * lib/readutmp.h: Likewise.
59090         * lib/realloc.c: Likewise.
59091         * lib/relocwrapper.c: Likewise.
59092         * lib/rename-dest-slash.c: Likewise.
59093         * lib/rename.c: Likewise.
59094         * lib/rmdir.c: Likewise.
59095         * lib/rpmatch.c: Likewise.
59096         * lib/safe-read.c: Likewise.
59097         * lib/safe-read.h: Likewise.
59098         * lib/safe-write.c: Likewise.
59099         * lib/safe-write.h: Likewise.
59100         * lib/same-inode.h: Likewise.
59101         * lib/same.c: Likewise.
59102         * lib/same.h: Likewise.
59103         * lib/save-cwd.c: Likewise.
59104         * lib/save-cwd.h: Likewise.
59105         * lib/savedir.c: Likewise.
59106         * lib/savedir.h: Likewise.
59107         * lib/savewd.c: Likewise.
59108         * lib/savewd.h: Likewise.
59109         * lib/search.in.h: Likewise.
59110         * lib/setenv.c: Likewise.
59111         * lib/setenv.h: Likewise.
59112         * lib/settime.c: Likewise.
59113         * lib/sh-quote.c: Likewise.
59114         * lib/sh-quote.h: Likewise.
59115         * lib/sig2str.c: Likewise.
59116         * lib/sig2str.h: Likewise.
59117         * lib/signal.in.h: Likewise.
59118         * lib/signbitd.c: Likewise.
59119         * lib/signbitf.c: Likewise.
59120         * lib/signbitl.c: Likewise.
59121         * lib/sigprocmask.c: Likewise.
59122         * lib/sincosl.c: Likewise.
59123         * lib/sleep.c: Likewise.
59124         * lib/sprintf.c: Likewise.
59125         * lib/sqrtl.c: Likewise.
59126         * lib/stat-time.h: Likewise.
59127         * lib/stdio--.h: Likewise.
59128         * lib/stdio-safer.h: Likewise.
59129         * lib/stdlib--.h: Likewise.
59130         * lib/stdlib-safer.h: Likewise.
59131         * lib/stdlib.in.h: Likewise.
59132         * lib/stpcpy.c: Likewise.
59133         * lib/stpncpy.c: Likewise.
59134         * lib/strchrnul.c: Likewise.
59135         * lib/strcspn.c: Likewise.
59136         * lib/strerror.c: Likewise.
59137         * lib/strftime.c: Likewise.
59138         * lib/strftime.h: Likewise.
59139         * lib/striconveh.c: Likewise.
59140         * lib/striconveh.h: Likewise.
59141         * lib/striconveha.c: Likewise.
59142         * lib/striconveha.h: Likewise.
59143         * lib/stripslash.c: Likewise.
59144         * lib/strnlen1.c: Likewise.
59145         * lib/strnlen1.h: Likewise.
59146         * lib/strtod.c: Likewise.
59147         * lib/strtoimax.c: Likewise.
59148         * lib/strtok_r.c: Likewise.
59149         * lib/strtol.c: Likewise.
59150         * lib/strtoll.c: Likewise.
59151         * lib/strtoul.c: Likewise.
59152         * lib/strtoull.c: Likewise.
59153         * lib/sysexits.in.h: Likewise.
59154         * lib/tempname.c: Likewise.
59155         * lib/tempname.h: Likewise.
59156         * lib/timespec.h: Likewise.
59157         * lib/tls.c: Likewise.
59158         * lib/tls.h: Likewise.
59159         * lib/tmpdir.c: Likewise.
59160         * lib/tmpdir.h: Likewise.
59161         * lib/tmpfile-safer.c: Likewise.
59162         * lib/tmpfile.c: Likewise.
59163         * lib/trigl.c: Likewise.
59164         * lib/trigl.h: Likewise.
59165         * lib/trim.c: Likewise.
59166         * lib/trim.h: Likewise.
59167         * lib/trunc.c: Likewise.
59168         * lib/truncf.c: Likewise.
59169         * lib/truncl.c: Likewise.
59170         * lib/tsearch.c: Likewise.
59171         * lib/unicodeio.c: Likewise.
59172         * lib/unicodeio.h: Likewise.
59173         * lib/unistd--.h: Likewise.
59174         * lib/unistd-safer.h: Likewise.
59175         * lib/unistdio/ulc-fprintf.c: Likewise.
59176         * lib/unistdio/ulc-vfprintf.c: Likewise.
59177         * lib/unlinkdir.c: Likewise.
59178         * lib/unlinkdir.h: Likewise.
59179         * lib/unlocked-io.h: Likewise.
59180         * lib/unsetenv.c: Likewise.
59181         * lib/userspec.c: Likewise.
59182         * lib/utime.c: Likewise.
59183         * lib/utimecmp.c: Likewise.
59184         * lib/utimecmp.h: Likewise.
59185         * lib/utimens.c: Likewise.
59186         * lib/verify.h: Likewise.
59187         * lib/verror.c: Likewise.
59188         * lib/verror.h: Likewise.
59189         * lib/version-etc-fsf.c: Likewise.
59190         * lib/version-etc.c: Likewise.
59191         * lib/version-etc.h: Likewise.
59192         * lib/vfprintf.c: Likewise.
59193         * lib/vprintf.c: Likewise.
59194         * lib/vsprintf.c: Likewise.
59195         * lib/w32spawn.h: Likewise.
59196         * lib/wait-process.c: Likewise.
59197         * lib/wait-process.h: Likewise.
59198         * lib/wcwidth.c: Likewise.
59199         * lib/write-any-file.c: Likewise.
59200         * lib/xalloc-die.c: Likewise.
59201         * lib/xalloc.h: Likewise.
59202         * lib/xasprintf.c: Likewise.
59203         * lib/xgetcwd.c: Likewise.
59204         * lib/xgetcwd.h: Likewise.
59205         * lib/xgetdomainname.c: Likewise.
59206         * lib/xgetdomainname.h: Likewise.
59207         * lib/xgethostname.c: Likewise.
59208         * lib/xmalloc.c: Likewise.
59209         * lib/xmalloca.c: Likewise.
59210         * lib/xmalloca.h: Likewise.
59211         * lib/xmemcoll.c: Likewise.
59212         * lib/xnanosleep.c: Likewise.
59213         * lib/xreadlink.c: Likewise.
59214         * lib/xreadlink.h: Likewise.
59215         * lib/xsetenv.c: Likewise.
59216         * lib/xsetenv.h: Likewise.
59217         * lib/xstriconv.c: Likewise.
59218         * lib/xstriconv.h: Likewise.
59219         * lib/xstrndup.c: Likewise.
59220         * lib/xstrndup.h: Likewise.
59221         * lib/xstrtod.c: Likewise.
59222         * lib/xstrtod.h: Likewise.
59223         * lib/xstrtol-error.c: Likewise.
59224         * lib/xstrtol.c: Likewise.
59225         * lib/xstrtol.h: Likewise.
59226         * lib/xtime.h: Likewise.
59227         * lib/xvasprintf.c: Likewise.
59228         * lib/xvasprintf.h: Likewise.
59229         * lib/yesno.c: Likewise.
59230         * lib/yesno.h: Likewise.
59231         * posix-modules: Likewise.
59232         * tests/test-alloca-opt.c: Likewise.
59233         * tests/test-arcfour.c: Likewise.
59234         * tests/test-arctwo.c: Likewise.
59235         * tests/test-argmatch.c: Likewise.
59236         * tests/test-argp-2.sh: Likewise.
59237         * tests/test-argp.c: Likewise.
59238         * tests/test-arpa_inet.c: Likewise.
59239         * tests/test-array_list.c: Likewise.
59240         * tests/test-array_oset.c: Likewise.
59241         * tests/test-atexit.c: Likewise.
59242         * tests/test-avltree_list.c: Likewise.
59243         * tests/test-avltree_oset.c: Likewise.
59244         * tests/test-avltreehash_list.c: Likewise.
59245         * tests/test-base64.c: Likewise.
59246         * tests/test-binary-io.c: Likewise.
59247         * tests/test-byteswap.c: Likewise.
59248         * tests/test-c-ctype.c: Likewise.
59249         * tests/test-c-strcasecmp.c: Likewise.
59250         * tests/test-c-strcasestr.c: Likewise.
59251         * tests/test-c-strncasecmp.c: Likewise.
59252         * tests/test-c-strstr.c: Likewise.
59253         * tests/test-canonicalize-lgpl.c: Likewise.
59254         * tests/test-canonicalize.c: Likewise.
59255         * tests/test-carray_list.c: Likewise.
59256         * tests/test-ceilf.c: Likewise.
59257         * tests/test-ceill.c: Likewise.
59258         * tests/test-count-one-bits.c: Likewise.
59259         * tests/test-crc.c: Likewise.
59260         * tests/test-dirname.c: Likewise.
59261         * tests/test-fbufmode.c: Likewise.
59262         * tests/test-fcntl.c: Likewise.
59263         * tests/test-fflush.c: Likewise.
59264         * tests/test-floorf.c: Likewise.
59265         * tests/test-floorl.c: Likewise.
59266         * tests/test-fopen.c: Likewise.
59267         * tests/test-fprintf-posix.c: Likewise.
59268         * tests/test-fprintf-posix.h: Likewise.
59269         * tests/test-fpurge.c: Likewise.
59270         * tests/test-freadable.c: Likewise.
59271         * tests/test-freadahead.c: Likewise.
59272         * tests/test-freading.c: Likewise.
59273         * tests/test-freopen.c: Likewise.
59274         * tests/test-frexp.c: Likewise.
59275         * tests/test-frexpl.c: Likewise.
59276         * tests/test-fseek.c: Likewise.
59277         * tests/test-fseeko.c: Likewise.
59278         * tests/test-fseterr.c: Likewise.
59279         * tests/test-fstrcmp.c: Likewise.
59280         * tests/test-ftell.c: Likewise.
59281         * tests/test-ftello.c: Likewise.
59282         * tests/test-fwritable.c: Likewise.
59283         * tests/test-fwriting.c: Likewise.
59284         * tests/test-getaddrinfo.c: Likewise.
59285         * tests/test-getpass.c: Likewise.
59286         * tests/test-gettimeofday.c: Likewise.
59287         * tests/test-hmac-md5.c: Likewise.
59288         * tests/test-hmac-sha1.c: Likewise.
59289         * tests/test-iconv.c: Likewise.
59290         * tests/test-iconvme.c: Likewise.
59291         * tests/test-inttypes.c: Likewise.
59292         * tests/test-isnan.c: Likewise.
59293         * tests/test-isnanf.c: Likewise.
59294         * tests/test-isnanl-nolibm.c: Likewise.
59295         * tests/test-isnanl.c: Likewise.
59296         * tests/test-isnanl.h: Likewise.
59297         * tests/test-ldexpl.c: Likewise.
59298         * tests/test-linked_list.c: Likewise.
59299         * tests/test-linkedhash_list.c: Likewise.
59300         * tests/test-locale.c: Likewise.
59301         * tests/test-localename.c: Likewise.
59302         * tests/test-lock.c: Likewise.
59303         * tests/test-lseek.c: Likewise.
59304         * tests/test-malloca.c: Likewise.
59305         * tests/test-math.c: Likewise.
59306         * tests/test-mbscasecmp.c: Likewise.
59307         * tests/test-mbscasestr1.c: Likewise.
59308         * tests/test-mbscasestr2.c: Likewise.
59309         * tests/test-mbscasestr3.c: Likewise.
59310         * tests/test-mbscasestr4.c: Likewise.
59311         * tests/test-mbschr.c: Likewise.
59312         * tests/test-mbscspn.c: Likewise.
59313         * tests/test-mbsncasecmp.c: Likewise.
59314         * tests/test-mbspbrk.c: Likewise.
59315         * tests/test-mbspcasecmp.c: Likewise.
59316         * tests/test-mbsrchr.c: Likewise.
59317         * tests/test-mbsspn.c: Likewise.
59318         * tests/test-mbsstr1.c: Likewise.
59319         * tests/test-mbsstr2.c: Likewise.
59320         * tests/test-mbsstr3.c: Likewise.
59321         * tests/test-md5.c: Likewise.
59322         * tests/test-memmem.c: Likewise.
59323         * tests/test-netinet_in.c: Likewise.
59324         * tests/test-open.c: Likewise.
59325         * tests/test-printf-frexp.c: Likewise.
59326         * tests/test-printf-frexpl.c: Likewise.
59327         * tests/test-printf-posix.c: Likewise.
59328         * tests/test-printf-posix.h: Likewise.
59329         * tests/test-rbtree_list.c: Likewise.
59330         * tests/test-rbtree_oset.c: Likewise.
59331         * tests/test-rbtreehash_list.c: Likewise.
59332         * tests/test-read-file.c: Likewise.
59333         * tests/test-rijndael.c: Likewise.
59334         * tests/test-search.c: Likewise.
59335         * tests/test-signbit.c: Likewise.
59336         * tests/test-sleep.c: Likewise.
59337         * tests/test-snprintf-posix.c: Likewise.
59338         * tests/test-snprintf-posix.h: Likewise.
59339         * tests/test-snprintf.c: Likewise.
59340         * tests/test-sprintf-posix.c: Likewise.
59341         * tests/test-sprintf-posix.h: Likewise.
59342         * tests/test-stat-time.c: Likewise.
59343         * tests/test-stdbool.c: Likewise.
59344         * tests/test-stdint.c: Likewise.
59345         * tests/test-stdio.c: Likewise.
59346         * tests/test-stdlib.c: Likewise.
59347         * tests/test-stpncpy.c: Likewise.
59348         * tests/test-strcasestr.c: Likewise.
59349         * tests/test-striconv.c: Likewise.
59350         * tests/test-striconveh.c: Likewise.
59351         * tests/test-striconveha.c: Likewise.
59352         * tests/test-string.c: Likewise.
59353         * tests/test-sys_select.c: Likewise.
59354         * tests/test-sys_socket.c: Likewise.
59355         * tests/test-sys_stat.c: Likewise.
59356         * tests/test-sys_time.c: Likewise.
59357         * tests/test-sysexits.c: Likewise.
59358         * tests/test-time.c: Likewise.
59359         * tests/test-tls.c: Likewise.
59360         * tests/test-trunc.c: Likewise.
59361         * tests/test-truncf.c: Likewise.
59362         * tests/test-truncl.c: Likewise.
59363         * tests/test-unistd.c: Likewise.
59364         * tests/test-vasnprintf-posix.c: Likewise.
59365         * tests/test-vasnprintf-posix2.c: Likewise.
59366         * tests/test-vasnprintf.c: Likewise.
59367         * tests/test-vasprintf-posix.c: Likewise.
59368         * tests/test-vasprintf.c: Likewise.
59369         * tests/test-verify.c: Likewise.
59370         * tests/test-vfprintf-posix.c: Likewise.
59371         * tests/test-vprintf-posix.c: Likewise.
59372         * tests/test-vsnprintf-posix.c: Likewise.
59373         * tests/test-vsnprintf.c: Likewise.
59374         * tests/test-vsprintf-posix.c: Likewise.
59375         * tests/test-wchar.c: Likewise.
59376         * tests/test-wctype.c: Likewise.
59377         * tests/test-wcwidth.c: Likewise.
59378         * tests/test-xstrtol.c: Likewise.
59379         * tests/test-xvasprintf.c: Likewise.
59380         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
59381         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
59382         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
59383         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
59384         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
59385         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
59386         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
59387         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
59388         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
59389         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
59390         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
59391         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
59392         * tests/uniname/test-uninames.c: Likewise.
59393         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
59394         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
59395         * tests/unistdio/test-u16-printf1.h: Likewise.
59396         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
59397         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
59398         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
59399         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
59400         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
59401         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
59402         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
59403         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
59404         * tests/unistdio/test-u32-printf1.h: Likewise.
59405         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
59406         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
59407         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
59408         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
59409         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
59410         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
59411         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
59412         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
59413         * tests/unistdio/test-u8-printf1.h: Likewise.
59414         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
59415         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
59416         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
59417         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
59418         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
59419         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
59420         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
59421         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
59422         * tests/unistdio/test-ulc-printf1.h: Likewise.
59423         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
59424         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
59425         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
59426         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
59427         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
59428         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
59429         * tests/uniwidth/test-u16-strwidth.c: Likewise.
59430         * tests/uniwidth/test-u16-width.c: Likewise.
59431         * tests/uniwidth/test-u32-strwidth.c: Likewise.
59432         * tests/uniwidth/test-u32-width.c: Likewise.
59433         * tests/uniwidth/test-u8-strwidth.c: Likewise.
59434         * tests/uniwidth/test-u8-width.c: Likewise.
59435         * tests/uniwidth/test-uc_width.c: Likewise.
59436         * config/srclist-update: Likewise.
59437         (fixlicense): Update to GPLv3+.
59438
59439         Change copyright notice from LGPLv2.1+ to LGPLv3+.
59440         * tests/test-tsearch.c: Change copyright notice.
59441
59442         Change copyright notice from LGPLv2.0+ to LGPLv3+.
59443         * lib/c-strcaseeq.h: Change copyright notice.
59444         * lib/streq.h: Likewise.
59445         * lib/uniconv.h: Likewise.
59446         * lib/uniconv/u-conv-from-enc.h: Likewise.
59447         * lib/uniconv/u-conv-to-enc.h: Likewise.
59448         * lib/uniconv/u-strconv-from-enc.h: Likewise.
59449         * lib/uniconv/u-strconv-to-enc.h: Likewise.
59450         * lib/uniconv/u16-conv-from-enc.c: Likewise.
59451         * lib/uniconv/u16-conv-to-enc.c: Likewise.
59452         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
59453         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
59454         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
59455         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
59456         * lib/uniconv/u32-conv-from-enc.c: Likewise.
59457         * lib/uniconv/u32-conv-to-enc.c: Likewise.
59458         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
59459         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
59460         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
59461         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
59462         * lib/uniconv/u8-conv-from-enc.c: Likewise.
59463         * lib/uniconv/u8-conv-to-enc.c: Likewise.
59464         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
59465         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
59466         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
59467         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
59468         * lib/uniname.h: Likewise.
59469         * lib/uniname/uniname.c: Likewise.
59470         * lib/unistdio.h: Likewise.
59471         * lib/unistdio/u-asnprintf.h: Likewise.
59472         * lib/unistdio/u-asprintf.h: Likewise.
59473         * lib/unistdio/u-printf-args.c: Likewise.
59474         * lib/unistdio/u-printf-args.h: Likewise.
59475         * lib/unistdio/u-printf-parse.h: Likewise.
59476         * lib/unistdio/u-snprintf.h: Likewise.
59477         * lib/unistdio/u-sprintf.h: Likewise.
59478         * lib/unistdio/u-vasprintf.h: Likewise.
59479         * lib/unistdio/u-vsnprintf.h: Likewise.
59480         * lib/unistdio/u-vsprintf.h: Likewise.
59481         * lib/unistdio/u16-asnprintf.c: Likewise.
59482         * lib/unistdio/u16-asprintf.c: Likewise.
59483         * lib/unistdio/u16-printf-parse.c: Likewise.
59484         * lib/unistdio/u16-snprintf.c: Likewise.
59485         * lib/unistdio/u16-sprintf.c: Likewise.
59486         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
59487         * lib/unistdio/u16-u16-asprintf.c: Likewise.
59488         * lib/unistdio/u16-u16-snprintf.c: Likewise.
59489         * lib/unistdio/u16-u16-sprintf.c: Likewise.
59490         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
59491         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
59492         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
59493         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
59494         * lib/unistdio/u16-vasnprintf.c: Likewise.
59495         * lib/unistdio/u16-vasprintf.c: Likewise.
59496         * lib/unistdio/u16-vsnprintf.c: Likewise.
59497         * lib/unistdio/u16-vsprintf.c: Likewise.
59498         * lib/unistdio/u32-asnprintf.c: Likewise.
59499         * lib/unistdio/u32-asprintf.c: Likewise.
59500         * lib/unistdio/u32-printf-parse.c: Likewise.
59501         * lib/unistdio/u32-snprintf.c: Likewise.
59502         * lib/unistdio/u32-sprintf.c: Likewise.
59503         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
59504         * lib/unistdio/u32-u32-asprintf.c: Likewise.
59505         * lib/unistdio/u32-u32-snprintf.c: Likewise.
59506         * lib/unistdio/u32-u32-sprintf.c: Likewise.
59507         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
59508         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
59509         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
59510         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
59511         * lib/unistdio/u32-vasnprintf.c: Likewise.
59512         * lib/unistdio/u32-vasprintf.c: Likewise.
59513         * lib/unistdio/u32-vsnprintf.c: Likewise.
59514         * lib/unistdio/u32-vsprintf.c: Likewise.
59515         * lib/unistdio/u8-asnprintf.c: Likewise.
59516         * lib/unistdio/u8-asprintf.c: Likewise.
59517         * lib/unistdio/u8-printf-parse.c: Likewise.
59518         * lib/unistdio/u8-snprintf.c: Likewise.
59519         * lib/unistdio/u8-sprintf.c: Likewise.
59520         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
59521         * lib/unistdio/u8-u8-asprintf.c: Likewise.
59522         * lib/unistdio/u8-u8-snprintf.c: Likewise.
59523         * lib/unistdio/u8-u8-sprintf.c: Likewise.
59524         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
59525         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
59526         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
59527         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
59528         * lib/unistdio/u8-vasnprintf.c: Likewise.
59529         * lib/unistdio/u8-vasprintf.c: Likewise.
59530         * lib/unistdio/u8-vsnprintf.c: Likewise.
59531         * lib/unistdio/u8-vsprintf.c: Likewise.
59532         * lib/unistdio/ulc-asnprintf.c: Likewise.
59533         * lib/unistdio/ulc-asprintf.c: Likewise.
59534         * lib/unistdio/ulc-printf-parse.c: Likewise.
59535         * lib/unistdio/ulc-snprintf.c: Likewise.
59536         * lib/unistdio/ulc-sprintf.c: Likewise.
59537         * lib/unistdio/ulc-vasnprintf.c: Likewise.
59538         * lib/unistdio/ulc-vasprintf.c: Likewise.
59539         * lib/unistdio/ulc-vsnprintf.c: Likewise.
59540         * lib/unistdio/ulc-vsprintf.c: Likewise.
59541         * lib/unistr.h: Likewise.
59542         * lib/unistr/u-cpy-alloc.h: Likewise.
59543         * lib/unistr/u-cpy.h: Likewise.
59544         * lib/unistr/u-endswith.h: Likewise.
59545         * lib/unistr/u-move.h: Likewise.
59546         * lib/unistr/u-set.h: Likewise.
59547         * lib/unistr/u-startswith.h: Likewise.
59548         * lib/unistr/u-stpcpy.h: Likewise.
59549         * lib/unistr/u-stpncpy.h: Likewise.
59550         * lib/unistr/u-strcat.h: Likewise.
59551         * lib/unistr/u-strcpy.h: Likewise.
59552         * lib/unistr/u-strcspn.h: Likewise.
59553         * lib/unistr/u-strdup.h: Likewise.
59554         * lib/unistr/u-strlen.h: Likewise.
59555         * lib/unistr/u-strncat.h: Likewise.
59556         * lib/unistr/u-strncpy.h: Likewise.
59557         * lib/unistr/u-strnlen.h: Likewise.
59558         * lib/unistr/u-strpbrk.h: Likewise.
59559         * lib/unistr/u-strspn.h: Likewise.
59560         * lib/unistr/u-strstr.h: Likewise.
59561         * lib/unistr/u-strtok.h: Likewise.
59562         * lib/unistr/u16-check.c: Likewise.
59563         * lib/unistr/u16-chr.c: Likewise.
59564         * lib/unistr/u16-cmp.c: Likewise.
59565         * lib/unistr/u16-cpy-alloc.c: Likewise.
59566         * lib/unistr/u16-cpy.c: Likewise.
59567         * lib/unistr/u16-endswith.c: Likewise.
59568         * lib/unistr/u16-mblen.c: Likewise.
59569         * lib/unistr/u16-mbsnlen.c: Likewise.
59570         * lib/unistr/u16-mbtouc-aux.c: Likewise.
59571         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
59572         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
59573         * lib/unistr/u16-mbtouc.c: Likewise.
59574         * lib/unistr/u16-mbtoucr.c: Likewise.
59575         * lib/unistr/u16-move.c: Likewise.
59576         * lib/unistr/u16-next.c: Likewise.
59577         * lib/unistr/u16-prev.c: Likewise.
59578         * lib/unistr/u16-set.c: Likewise.
59579         * lib/unistr/u16-startswith.c: Likewise.
59580         * lib/unistr/u16-stpcpy.c: Likewise.
59581         * lib/unistr/u16-stpncpy.c: Likewise.
59582         * lib/unistr/u16-strcat.c: Likewise.
59583         * lib/unistr/u16-strchr.c: Likewise.
59584         * lib/unistr/u16-strcmp.c: Likewise.
59585         * lib/unistr/u16-strcpy.c: Likewise.
59586         * lib/unistr/u16-strcspn.c: Likewise.
59587         * lib/unistr/u16-strdup.c: Likewise.
59588         * lib/unistr/u16-strlen.c: Likewise.
59589         * lib/unistr/u16-strmblen.c: Likewise.
59590         * lib/unistr/u16-strmbtouc.c: Likewise.
59591         * lib/unistr/u16-strncat.c: Likewise.
59592         * lib/unistr/u16-strncmp.c: Likewise.
59593         * lib/unistr/u16-strncpy.c: Likewise.
59594         * lib/unistr/u16-strnlen.c: Likewise.
59595         * lib/unistr/u16-strpbrk.c: Likewise.
59596         * lib/unistr/u16-strrchr.c: Likewise.
59597         * lib/unistr/u16-strspn.c: Likewise.
59598         * lib/unistr/u16-strstr.c: Likewise.
59599         * lib/unistr/u16-strtok.c: Likewise.
59600         * lib/unistr/u16-to-u32.c: Likewise.
59601         * lib/unistr/u16-to-u8.c: Likewise.
59602         * lib/unistr/u16-uctomb-aux.c: Likewise.
59603         * lib/unistr/u16-uctomb.c: Likewise.
59604         * lib/unistr/u32-check.c: Likewise.
59605         * lib/unistr/u32-chr.c: Likewise.
59606         * lib/unistr/u32-cmp.c: Likewise.
59607         * lib/unistr/u32-cpy-alloc.c: Likewise.
59608         * lib/unistr/u32-cpy.c: Likewise.
59609         * lib/unistr/u32-endswith.c: Likewise.
59610         * lib/unistr/u32-mblen.c: Likewise.
59611         * lib/unistr/u32-mbsnlen.c: Likewise.
59612         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
59613         * lib/unistr/u32-mbtouc.c: Likewise.
59614         * lib/unistr/u32-mbtoucr.c: Likewise.
59615         * lib/unistr/u32-move.c: Likewise.
59616         * lib/unistr/u32-next.c: Likewise.
59617         * lib/unistr/u32-prev.c: Likewise.
59618         * lib/unistr/u32-set.c: Likewise.
59619         * lib/unistr/u32-startswith.c: Likewise.
59620         * lib/unistr/u32-stpcpy.c: Likewise.
59621         * lib/unistr/u32-stpncpy.c: Likewise.
59622         * lib/unistr/u32-strcat.c: Likewise.
59623         * lib/unistr/u32-strchr.c: Likewise.
59624         * lib/unistr/u32-strcmp.c: Likewise.
59625         * lib/unistr/u32-strcpy.c: Likewise.
59626         * lib/unistr/u32-strcspn.c: Likewise.
59627         * lib/unistr/u32-strdup.c: Likewise.
59628         * lib/unistr/u32-strlen.c: Likewise.
59629         * lib/unistr/u32-strmblen.c: Likewise.
59630         * lib/unistr/u32-strmbtouc.c: Likewise.
59631         * lib/unistr/u32-strncat.c: Likewise.
59632         * lib/unistr/u32-strncmp.c: Likewise.
59633         * lib/unistr/u32-strncpy.c: Likewise.
59634         * lib/unistr/u32-strnlen.c: Likewise.
59635         * lib/unistr/u32-strpbrk.c: Likewise.
59636         * lib/unistr/u32-strrchr.c: Likewise.
59637         * lib/unistr/u32-strspn.c: Likewise.
59638         * lib/unistr/u32-strstr.c: Likewise.
59639         * lib/unistr/u32-strtok.c: Likewise.
59640         * lib/unistr/u32-to-u16.c: Likewise.
59641         * lib/unistr/u32-to-u8.c: Likewise.
59642         * lib/unistr/u32-uctomb.c: Likewise.
59643         * lib/unistr/u8-check.c: Likewise.
59644         * lib/unistr/u8-chr.c: Likewise.
59645         * lib/unistr/u8-cmp.c: Likewise.
59646         * lib/unistr/u8-cpy-alloc.c: Likewise.
59647         * lib/unistr/u8-cpy.c: Likewise.
59648         * lib/unistr/u8-endswith.c: Likewise.
59649         * lib/unistr/u8-mblen.c: Likewise.
59650         * lib/unistr/u8-mbsnlen.c: Likewise.
59651         * lib/unistr/u8-mbtouc-aux.c: Likewise.
59652         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
59653         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
59654         * lib/unistr/u8-mbtouc.c: Likewise.
59655         * lib/unistr/u8-mbtoucr.c: Likewise.
59656         * lib/unistr/u8-move.c: Likewise.
59657         * lib/unistr/u8-next.c: Likewise.
59658         * lib/unistr/u8-prev.c: Likewise.
59659         * lib/unistr/u8-set.c: Likewise.
59660         * lib/unistr/u8-startswith.c: Likewise.
59661         * lib/unistr/u8-stpcpy.c: Likewise.
59662         * lib/unistr/u8-stpncpy.c: Likewise.
59663         * lib/unistr/u8-strcat.c: Likewise.
59664         * lib/unistr/u8-strchr.c: Likewise.
59665         * lib/unistr/u8-strcmp.c: Likewise.
59666         * lib/unistr/u8-strcpy.c: Likewise.
59667         * lib/unistr/u8-strcspn.c: Likewise.
59668         * lib/unistr/u8-strdup.c: Likewise.
59669         * lib/unistr/u8-strlen.c: Likewise.
59670         * lib/unistr/u8-strmblen.c: Likewise.
59671         * lib/unistr/u8-strmbtouc.c: Likewise.
59672         * lib/unistr/u8-strncat.c: Likewise.
59673         * lib/unistr/u8-strncmp.c: Likewise.
59674         * lib/unistr/u8-strncpy.c: Likewise.
59675         * lib/unistr/u8-strnlen.c: Likewise.
59676         * lib/unistr/u8-strpbrk.c: Likewise.
59677         * lib/unistr/u8-strrchr.c: Likewise.
59678         * lib/unistr/u8-strspn.c: Likewise.
59679         * lib/unistr/u8-strstr.c: Likewise.
59680         * lib/unistr/u8-strtok.c: Likewise.
59681         * lib/unistr/u8-to-u16.c: Likewise.
59682         * lib/unistr/u8-to-u32.c: Likewise.
59683         * lib/unistr/u8-uctomb-aux.c: Likewise.
59684         * lib/unistr/u8-uctomb.c: Likewise.
59685         * lib/unitypes.h: Likewise.
59686         * lib/uniwidth.h: Likewise.
59687         * lib/uniwidth/cjk.h: Likewise.
59688         * lib/uniwidth/u16-strwidth.c: Likewise.
59689         * lib/uniwidth/u16-width.c: Likewise.
59690         * lib/uniwidth/u32-strwidth.c: Likewise.
59691         * lib/uniwidth/u32-width.c: Likewise.
59692         * lib/uniwidth/u8-strwidth.c: Likewise.
59693         * lib/uniwidth/u8-width.c: Likewise.
59694         * lib/uniwidth/width.c: Likewise.
59695
59696 2007-10-07  Bruno Haible  <bruno@clisp.org>
59697
59698         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
59699         The file is still under LGPL (see modules/inttypes).
59700
59701 2007-10-06  Bruno Haible  <bruno@clisp.org>
59702
59703         * modules/trunc (Dependencies): Add 'extensions'.
59704         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
59705         Reported by Ben Pfaff <blp@gnu.org>.
59706
59707 2007-10-06  Bruno Haible  <bruno@clisp.org>
59708
59709         * modules/freopen-tests: New file.
59710         * tests/test-freopen.c: New file.
59711
59712         * modules/fopen-tests: New file.
59713         * tests/test-fopen.c: New file.
59714
59715         * modules/fopen: New file.
59716         * lib/fopen.c: New file.
59717         * m4/fopen.m4: New file.
59718         * modules/freopen: New file.
59719         * lib/freopen.c: New file.
59720         * m4/freopen.m4: New file.
59721         * lib/stdio.in.h (fopen, freopen): New declarations.
59722         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
59723         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
59724         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
59725         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
59726         * doc/functions/fopen.texi: Mention the 'fopen' module.
59727         * doc/functions/freopen.texi: Mention the 'freopen' module.
59728
59729 2007-10-06  Bruno Haible  <bruno@clisp.org>
59730
59731         * modules/open-tests: New file.
59732         * tests/test-open.c: New file.
59733
59734         * modules/open: New file.
59735         * lib/open.c: New file.
59736         * m4/open.m4: New file.
59737         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
59738         lib/open.c does.
59739         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
59740         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
59741         macros.
59742         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
59743         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
59744         REPLACE_OPEN.
59745         * doc/functions/open.texi: Mention the 'open' module.
59746
59747 2007-10-04  Bruno Haible  <bruno@clisp.org>
59748
59749         * modules/ceill-tests: New file.
59750         * tests/test-ceill.c: New file.
59751
59752         * modules/ceill: New file.
59753         * lib/ceill.c: Replace entire file.
59754         * m4/ceill.m4: New file.
59755         * lib/math.in.h (ceill): Replace declaration.
59756         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
59757         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
59758         * doc/functions/ceill.texi: Mention the 'ceill' module.
59759         * modules/mathl (Files): Remove lib/ceill.c.
59760         (Depends-on): Add ceill.
59761
59762 2007-10-04  Bruno Haible  <bruno@clisp.org>
59763
59764         * modules/ceilf-tests: New file.
59765         * tests/test-ceilf.c: New file.
59766
59767         * modules/ceilf: New file.
59768         * lib/ceil.c: New file.
59769         * lib/ceilf.c: New file.
59770         * m4/ceilf.m4: New file.
59771         * lib/math.in.h (ceilf): New declaration.
59772         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
59773         HAVE_DECL_CEILF.
59774         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
59775         HAVE_DECL_CEILF.
59776         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
59777
59778 2007-10-04  Bruno Haible  <bruno@clisp.org>
59779
59780         * modules/floorl-tests: New file.
59781         * tests/test-floorl.c: New file.
59782
59783         * modules/floorl: New file.
59784         * lib/floorl.c: Replace entire file.
59785         * m4/floorl.m4: New file.
59786         * lib/math.in.h (floorl): Replace declaration.
59787         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
59788         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
59789         * doc/functions/floorl.texi: Mention the 'floorl' module.
59790         * modules/mathl (Files): Remove lib/floorl.c.
59791         (Depends-on): Add floorl.
59792
59793 2007-10-04  Bruno Haible  <bruno@clisp.org>
59794
59795         * modules/floorf-tests: New file.
59796         * tests/test-floorf.c: New file.
59797
59798         * modules/floorf: New file.
59799         * lib/floor.c: New file.
59800         * lib/floorf.c: New file.
59801         * m4/floorf.m4: New file.
59802         * lib/math.in.h (floorf): New declaration.
59803         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
59804         HAVE_DECL_FLOORF.
59805         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
59806         HAVE_DECL_FLOORF.
59807         * doc/functions/floorf.texi: Mention the 'floorf' module.
59808
59809 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
59810             Bruno Haible  <bruno@clisp.org>
59811
59812         Advertise for the Git server instead of the CVS server.
59813         * doc/gnulib-intro.texi (Steady Development): Mention the Git
59814         repository instead of the CVS one.
59815         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
59816         about all VCS systems generically.
59817         * doc/gnulib.texi (Introduction): Capitalize `Git'.
59818
59819 2007-10-04  Bruno Haible  <bruno@clisp.org>
59820
59821         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
59822         means.
59823         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
59824
59825 2007-10-04  Bruno Haible  <bruno@clisp.org>
59826
59827         * modules/truncl-tests: New file.
59828         * tests/test-truncl.c: New file.
59829
59830         * modules/truncl: New file.
59831         * lib/truncl.c: New file.
59832         * m4/truncl.m4: New file.
59833         * lib/math.in.h (truncl): New declaration.
59834         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
59835         HAVE_DECL_TRUNCL.
59836         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
59837         HAVE_DECL_TRUNCL.
59838         * doc/functions/truncl.texi: Mention the 'truncl' module.
59839
59840 2007-10-04  Bruno Haible  <bruno@clisp.org>
59841
59842         * modules/truncf-tests: New file.
59843         * tests/test-truncf.c: New file.
59844
59845         * modules/truncf: New file.
59846         * lib/trunc.c: Make paramerizable through USE_* macros.
59847         * lib/truncf.c: New file.
59848         * m4/truncf.m4: New file.
59849         * lib/math.in.h (truncf): New declaration.
59850         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
59851         HAVE_DECL_TRUNCF.
59852         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
59853         HAVE_DECL_TRUNCF.
59854         * doc/functions/truncf.texi: Mention the 'truncf' module.
59855
59856 2007-10-03  Bruno Haible  <bruno@clisp.org>
59857
59858         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
59859         augmentation also for tests modules.
59860         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
59861         * modules/atexit-tests (Makefile.am): Likewise.
59862         * modules/binary-io-tests (Makefile.am): Likewise.
59863         * modules/c-strcase-tests (Makefile.am): Likewise.
59864         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
59865         * modules/canonicalize-tests (Makefile.am): Likewise.
59866         * modules/closein-tests (Makefile.am): Likewise.
59867         * modules/fprintf-posix-tests (Makefile.am): Likewise.
59868         * modules/freadahead-tests (Makefile.am): Likewise.
59869         * modules/fseek-tests (Makefile.am): Likewise.
59870         * modules/fseeko-tests (Makefile.am): Likewise.
59871         * modules/ftell-tests (Makefile.am): Likewise.
59872         * modules/ftello-tests (Makefile.am): Likewise.
59873         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
59874         * modules/isnanl-tests (Makefile.am): Likewise.
59875         * modules/lseek-tests (Makefile.am): Likewise.
59876         * modules/mbscasecmp-tests (Makefile.am): Likewise.
59877         * modules/mbscasestr-tests (Makefile.am): Likewise.
59878         * modules/mbschr-tests (Makefile.am): Likewise.
59879         * modules/mbscspn-tests (Makefile.am): Likewise.
59880         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
59881         * modules/mbspbrk-tests (Makefile.am): Likewise.
59882         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
59883         * modules/mbsrchr-tests (Makefile.am): Likewise.
59884         * modules/mbsspn-tests (Makefile.am): Likewise.
59885         * modules/mbsstr-tests (Makefile.am): Likewise.
59886         * modules/printf-posix-tests (Makefile.am): Likewise.
59887         * modules/snprintf-posix-tests (Makefile.am): Likewise.
59888         * modules/sprintf-posix-tests (Makefile.am): Likewise.
59889         * modules/tsearch-tests (Makefile.am): Likewise.
59890         * modules/uniname/uniname-tests (Makefile.am): Likewise.
59891         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
59892         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
59893         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
59894         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
59895         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
59896         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
59897         * modules/vprintf-posix-tests (Makefile.am): Likewise.
59898         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
59899         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
59900         * modules/xstrtoimax-tests (Makefile.am): Likewise.
59901         * modules/xstrtol-tests (Makefile.am): Likewise.
59902         * modules/xstrtoumax-tests (Makefile.am): Likewise.
59903         * modules/yesno-tests (Makefile.am): Likewise.
59904
59905 2007-10-03  Bruno Haible  <bruno@clisp.org>
59906
59907         * modules/trunc-tests: New file.
59908         * tests/test-trunc.c: New file.
59909
59910         * modules/trunc: New file.
59911         * lib/trunc.c: New file.
59912         * m4/trunc.m4: New file.
59913         * lib/math.in.h (trunc): New declaration.
59914         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
59915         HAVE_DECL_TRUNC.
59916         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
59917         HAVE_DECL_TRUNC.
59918         * doc/functions/trunc.texi: Mention the 'trunc' module.
59919
59920 2007-10-03  Bruno Haible  <bruno@clisp.org>
59921
59922         * tests/test-fpending.c: New file, mostly copied
59923         from coreutils/lib/t-fpending.c.
59924         * modules/fpending-tests: New file.
59925
59926 2007-10-03  Bruno Haible  <bruno@clisp.org>
59927
59928         Port the stdio extensions to QNX (untested).
59929         * lib/fseterr.c (fseterr): Add support for QNX.
59930         * lib/fbufmode.c (fbufmode): Likewise.
59931         * lib/freadable.c (freadable): Likewise.
59932         * lib/fwritable.c (fwritable): Likewise.
59933         * lib/freading.c (freading): Likewise.
59934         * lib/fwriting.c (fwriting): Likewise.
59935         * lib/freadahead.c (freadahed): Likewise.
59936         * lib/fpurge.c (fpurge): Likewise.
59937         * lib/fseeko.c (rpl_fseeko): Likewise.
59938
59939 2007-10-03  Bruno Haible  <bruno@clisp.org>
59940             Jim Meyering  <jim@meyering.net>
59941             Eric Blake  <ebb9@byu.net>
59942
59943         * doc/relocatable.texi: Use @command instead of @program.
59944
59945 2007-10-02  Jim Meyering  <jim@meyering.net>
59946
59947         Perform one more "_.h" -> ".in.h" substitution.
59948         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
59949         instead of unistd_.h here, too.
59950
59951 2007-10-01  Bruno Haible  <bruno@clisp.org>
59952
59953         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
59954         Needed for the alloca-opt module.
59955
59956 2007-09-30  Bruno Haible  <bruno@clisp.org>
59957
59958         * lib/alloca.in.h: Renamed from lib/alloca_.h.
59959         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
59960         alloca_.h.
59961         * lib/argz.in.h: Renamed from lib/argz_.h.
59962         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
59963         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
59964         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
59965         byteswap_.h.
59966         * lib/dirent.in.h: Renamed from lib/dirent_.h.
59967         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
59968         dirent_.h.
59969         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
59970         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
59971         fcntl_.h.
59972         * lib/float.in.h: Renamed from lib/float_.h.
59973         * modules/float (Files, Makefile.am): Use float.in.h instead of
59974         float_.h.
59975         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
59976         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
59977         fnmatch_.h.
59978         * lib/getopt.in.h: Renamed from lib/getopt_.h.
59979         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
59980         getopt_.h.
59981         * lib/glob.in.h: Renamed from lib/glob_.h.
59982         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
59983         * lib/iconv.in.h: Renamed from lib/iconv_.h.
59984         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
59985         iconv_.h.
59986         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
59987         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
59988         inttypes_.h.
59989         * lib/locale.in.h: Renamed from lib/locale_.h.
59990         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
59991         locale_.h.
59992         * lib/math.in.h: Renamed from lib/math_.h.
59993         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
59994         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
59995         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
59996         of netinet_in_.h. Add dependency.
59997         * lib/poll.in.h: Renamed from lib/poll_.h.
59998         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
59999         * lib/search.in.h: Renamed from lib/search_.h.
60000         * modules/search (Files, Makefile.am): Use search.in.h instead of
60001         search_.h.
60002         * lib/signal.in.h: Renamed from lib/signal_.h.
60003         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
60004         _signal.h.
60005         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
60006         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
60007         stdbool_.h.
60008         * lib/stdint.in.h: Renamed from lib/stdint_.h.
60009         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
60010         stdint_.h.
60011         * lib/stdio.in.h: Renamed from lib/stdio_.h.
60012         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
60013         stdio_.h.
60014         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
60015         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
60016         stdlib_.h.
60017         * lib/string.in.h: Renamed from lib/string_.h.
60018         * modules/string (Files, Makefile.am): Use string.in.h instead of
60019         string_.h.
60020         * doc/gnulib-tool.texi (Initial import): Update.
60021         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
60022         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
60023         of sys_select_.h. Add dependency.
60024         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
60025         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
60026         of sys_socket_.h.
60027         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
60028         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
60029         sys_stat_.h.
60030         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
60031         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
60032         sys_time_.h.
60033         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
60034         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
60035         sysexits_.h.
60036         * lib/time.in.h: Renamed from lib/time_.h.
60037         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
60038         * lib/unistd.in.h: Renamed from lib/unistd_.h.
60039         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
60040         unistd_.h.
60041         * lib/wchar.in.h: Renamed from lib/wchar_.h.
60042         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
60043         wchar_.h.
60044         * lib/wctype.in.h: Renamed from lib/wctype_.h.
60045         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
60046         wctype_.h.
60047         * build-aux/bootstrap (slurp): Update.
60048         * lib/.cppi-disable: Update.
60049
60050 2007-09-30  Bruno Haible  <bruno@clisp.org>
60051
60052         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
60053         Needed on BeOS.
60054
60055 2007-09-30  Bruno Haible  <bruno@clisp.org>
60056
60057         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
60058
60059 2007-09-29  Bruno Haible  <bruno@clisp.org>
60060
60061         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
60062
60063 2007-09-29  Bruno Haible  <bruno@clisp.org>
60064
60065         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
60066         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
60067         * build-aux/install-reloc: Compile also areadlink.c.
60068         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
60069
60070 2007-09-29  Bruno Haible  <bruno@clisp.org>
60071
60072         * gnulib-tool (func_emit_initmacro_done): Indentation.
60073
60074 2007-09-29  Bruno Haible  <bruno@clisp.org>
60075
60076         * README: Add CVS checkout update instructions.
60077         Info from Bob Proulx <bob@proulx.com>.
60078
60079 2007-09-28  Eric Blake  <ebb9@byu.net>
60080
60081         Provide move-if-change.
60082         * build-aux/move-if-change: New file, based on best practice
60083         rather than any canonical upstream location.
60084
60085 2007-09-28  Jim Meyering  <jim@meyering.net>
60086
60087         Fix canonicalize loop-detection corner case.
60088         Do not attempt to stat the symlink values stored via seen_triple.
60089         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
60090         on linux-2.6.18, (but not 2.6.22).
60091         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
60092         triple_compare.  The former compares dev,ino,filename, while the latter
60093         would actually stat dirname(filename) when dev and ino were equal.
60094         * lib/hash-triple.c: Install <string.h>.
60095         (STREQ): Define.
60096         (triple_compare_ino_str): New function.
60097         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
60098
60099 2007-09-28  Eric Blake  <ebb9@byu.net>
60100
60101         Enforce that AC_REPLACE_FUNCS files exist.
60102         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
60103         override check for typos.
60104
60105         Fix test-closein on Solaris 10.
60106         * tests/test-closein.c (main): Don't assume stdin can be inherited
60107         closed on all systems.
60108         * tests/test-closein.sh: Likewise.
60109         Reported by Piotr Tarnowski.
60110
60111 2007-09-28  Jim Meyering  <jim@meyering.net>
60112
60113         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
60114
60115 2007-09-27  Jim Meyering  <jim@meyering.net>
60116
60117         canonicalize: Avoid a false-positive cycle failure.
60118         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
60119         Sort.  Remove cycle-check.
60120         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
60121         not cycle-check.h.
60122         (seen_triple): New function.
60123         (canonicalize_filename_mode): Use it instead of cycle-check.
60124         * tests/test-canonicalize.c: Add a test for this bug.
60125         * tests/test-canonicalize.sh: Set up and run the test.
60126
60127         New module, file-set, from coreutils.
60128         * modules/file-set: Define it.
60129         * lib/file-set.c, lib/file-set.h: Implement.
60130
60131         New module, hash-triple, from coreutils.
60132         * modules/hash-triple: Define it.
60133         * lib/hash-triple.c, lib/hash-triple.h: Implement.
60134
60135 2007-09-25  Eric Blake  <ebb9@byu.net>
60136
60137         Fix strerror on Interix.
60138         * lib/string_.h (strerror): Declare replacement.
60139         * doc/functions/strerror.texi (strerror): Document the Interix
60140         shortcoming.
60141         * modules/string (Makefile.am): Support new hooks.
60142         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
60143         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
60144         gl_FUNC_STRERROR_SEPARATE.
60145         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
60146         * lib/strerror.c (rpl_strerror): Provide replacement.
60147         * modules/strerror (Depends-on): Add string.
60148         (configure.ac): Detect use of module.
60149         * tests/test-strerror.c: New file.
60150         * modules/strerror-tests: New test module.
60151         * modules/argp (Depends-on): Add strerror.
60152         * modules/error (Depends-on): Likewise.
60153         Reported by Martin Koeppe.
60154
60155 2007-09-24  Bruno Haible  <bruno@clisp.org>
60156
60157         * README: Update git instructions.
60158
60159 2007-09-24  Eric Blake  <ebb9@byu.net>
60160
60161         Revert fpending breakage from 2007-09-08.
60162         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
60163         __fpending.c.
60164
60165 2007-09-24  Jim Meyering  <jim@meyering.net>
60166
60167         filenamecat.c: Add a test.
60168         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
60169         showing how the function works when DIR is the empty string.
60170
60171 2007-09-21  Simon Josefsson  <simon@josefsson.org>
60172
60173         * tests/test-canonicalize.sh: Turn on executable bit.
60174
60175 2007-09-19  Eric Blake  <ebb9@byu.net>
60176
60177         * README: Update CVS instructions.
60178
60179 2007-09-18  Bruno Haible  <bruno@clisp.org>
60180
60181         * modules/areadlink: New file.
60182         * lib/areadlink.h (areadlink): New declaration.
60183         * lib/areadlink.c: New file, based on lib/xreadlink.c.
60184
60185 2007-09-17  Jim Meyering  <jim@meyering.net>
60186
60187         * lib/savewd.c (ESTALE) [!defined]: Define.
60188         Reported to be required on Interix by Martin Koeppe.
60189
60190 2007-09-17  Bruno Haible  <bruno@clisp.org>
60191
60192         * gnulib-tool (func_version): Use $version.
60193
60194 2007-09-16  Bruno Haible  <bruno@clisp.org>
60195
60196         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
60197         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
60198         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
60199         Reported by Greg Schafer <gschafer@zip.com.au>.
60200
60201 2007-09-15  Bruno Haible  <bruno@clisp.org>
60202
60203         * gnulib-tool (sed): Try a little harder to make bash understand the
60204         alias.
60205         Reported by Bruce Korb <bruce.korb@gmail.com>.
60206
60207 2007-09-13  Eric Blake  <ebb9@byu.net>
60208
60209         * ChangeLog: Remove conflict markers.
60210
60211 2007-09-13  Simon Josefsson  <simon@josefsson.org>
60212
60213         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
60214         Reported by Bruno Haible <bruno@clisp.org>.
60215
60216 2007-09-12  Bruno Haible  <bruno@clisp.org>
60217
60218         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
60219         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
60220         is not defined.
60221
60222 2007-09-12  Eric Blake  <ebb9@byu.net>
60223
60224         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
60225         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
60226         Autoconf definition.
60227         * modules/euidaccess (Depends-on): Add extensions, for
60228         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
60229         * modules/fnmatch (Depends-on): Likewise.
60230         * modules/getaddrinfo (Depends-on): Likewise.
60231         * modules/getdelim (Depends-on): Likewise.
60232         * modules/getline (Depends-on): Likewise.
60233         * modules/getsubopt (Depends-on): Likewise.
60234         * modules/gettext (Depends-on): Likewise.
60235         * modules/group-member (Depends-on): Likewise.
60236         * modules/mbchar (Depends-on): Likewise.
60237         * modules/memmem (Depends-on): Likewise.
60238         * modules/mempcpy (Depends-on): Likewise.
60239         * modules/memrchr (Depends-on): Likewise.
60240         * modules/pagealign_alloc (Depends-on): Likewise.
60241         * modules/readutmp (Depends-on): Likewise.
60242         * modules/stpcpy (Depends-on): Likewise.
60243         * modules/stpncpy (Depends-on): Likewise.
60244         * modules/strchrnul (Depends-on): Likewise.
60245         * modules/strndup (Depends-on): Likewise.
60246         * modules/strsep (Depends-on): Likewise.
60247         * modules/strverscmp (Depends-on): Likewise.
60248         * modules/vasprintf (Depends-on): Likewise.
60249         * modules/wcwidth (Depends-on): Likewise.
60250         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
60251         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
60252         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
60253         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
60254         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
60255         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
60256         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
60257         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
60258         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
60259         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
60260         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
60261         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
60262         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
60263         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
60264         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
60265         * m4/readutmp.m4 (gl_READUTMP): Likewise.
60266         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
60267         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
60268         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
60269         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
60270         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
60271         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
60272         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
60273         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
60274         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
60275         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
60276         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
60277         so that lock.m4 can be used in gettext without extensions module.
60278
60279 2007-09-11  Bruno Haible  <bruno@clisp.org>
60280
60281         * m4/isc-posix.m4: Remove file.
60282         Suggested by Eric Blake.
60283
60284 2007-09-11  Eric Blake  <ebb9@byu.net>
60285
60286         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
60287
60288 2007-09-10  Bruno Haible  <bruno@clisp.org>
60289
60290         * posix-modules: Fix typo in error message.
60291         Reported by Matt <mkraai@beckman.com>.
60292
60293 2007-09-09  Bruno Haible  <bruno@clisp.org>
60294
60295         * doc/functions/getdelim.texi: Update list of platforms lacking the
60296         function.
60297         * doc/functions/getline.texi: Likewise.
60298
60299 2007-09-09  Jim Meyering  <jim@meyering.net>
60300
60301         * lib/hash.c (hash_initialize): Detect calloc failure.
60302         Reported by Bruno Haible.
60303
60304 2007-09-09  Bruno Haible  <bruno@clisp.org>
60305
60306         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
60307         malloc or realloc fails.
60308
60309 2007-09-09  Bruno Haible  <bruno@clisp.org>
60310
60311         * modules/getcwd (Depends-on): Add malloc-posix.
60312         * modules/glob (Depends-on): Likewise.
60313         * modules/putenv (Depends-on): Likewise.
60314         * modules/strdup (Depends-on): Likewise.
60315         * modules/getdelim (Depends-on): Add realloc-posix.
60316         * modules/read-file (Depends-on): Likewise.
60317
60318 2007-09-09  Bruno Haible  <bruno@clisp.org>
60319
60320         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
60321         (gl_FUNC_MALLOC_POSIX): Require it.
60322         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
60323         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
60324         * modules/realloc (Files): Add m4/malloc.m4.
60325         * modules/calloc (Files): Likewise.
60326
60327 2007-09-09  Bruno Haible  <bruno@clisp.org>
60328
60329         * modules/malloc-posix: New file.
60330         * modules/malloc (Depends-on): Add malloc-posix.
60331         * lib/malloc.c: Include errno.h.
60332         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
60333         and a POSIX-compatible malloc into a single function. Set ENOMEM
60334         when returning NULL.
60335         * m4/malloc.m4: New file.
60336         * doc/functions/malloc.texi: Mention the malloc-posix module.
60337         * lib/stdlib_.h (malloc): New declaration.
60338         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
60339         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
60340         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
60341         and HAVE_MALLOC_POSIX.
60342
60343 2007-09-09  Bruno Haible  <bruno@clisp.org>
60344
60345         * modules/realloc-posix: New file.
60346         * modules/realloc (Depends-on): Add realloc-posix.
60347         * lib/realloc.c: Include errno.h.
60348         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
60349         and a POSIX-compatible realloc into a single function. Set ENOMEM
60350         when returning NULL.
60351         * m4/realloc.m4: New file.
60352         * doc/functions/realloc.texi: Mention the realloc-posix module.
60353         * lib/stdlib_.h (realloc): New declaration.
60354         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
60355         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
60356         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
60357         and HAVE_REALLOC_POSIX.
60358
60359 2007-09-09  Bruno Haible  <bruno@clisp.org>
60360
60361         * modules/calloc-posix: New file.
60362         * modules/calloc (Depends-on): Add calloc-posix.
60363         * lib/calloc.c: Include errno.h.
60364         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
60365         and a POSIX-compatible calloc into a single function. Set ENOMEM
60366         when returning NULL.
60367         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
60368         * doc/functions/calloc.texi: Mention the calloc-posix module.
60369         * lib/stdlib_.h (calloc): New declaration.
60370         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
60371         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
60372         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
60373         and HAVE_CALLOC_POSIX.
60374
60375 2007-09-09  Bruno Haible  <bruno@clisp.org>
60376
60377         Allow for modules to show an arbitrary notice.
60378         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
60379         * gnulib-tool: New option --extract-notice.
60380         (func_usage): Document it.
60381         (sed_extract_prog): Update.
60382         (func_get_notice): New function.
60383         (func_modules_notice): New function.
60384         (func_import, func_create_testdir): Invoke it.
60385         Suggested by Jim Meyering.
60386
60387 2007-09-09  Bruno Haible  <bruno@clisp.org>
60388
60389         * gnulib-tool: New options --verbose, --quiet.
60390         (func_usage): Document them.
60391         (verbose): New variable.
60392         (func_execute_command): New function.
60393         (func_import): Don't show the module list and the file list if
60394         $verbose < 0.
60395         (func_create_testdir): Likewise. Use func_execute_command.
60396         (func_create_megatestdir): Use func_execute_command.
60397
60398 2007-09-08  Bruno Haible  <bruno@clisp.org>
60399
60400         * gnulib-tool (func_import): Prefer rsync over wget when available,
60401         for fetching the PO files.
60402
60403 2007-09-08  Bruno Haible  <bruno@clisp.org>
60404
60405         * posix-modules: New file. Portions copied from gnulib-tool.
60406         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
60407
60408 2007-09-08  Jim Meyering  <jim@meyering.net>
60409
60410         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
60411         * lib/fpending.h: Rename from __fpending.h.
60412         * lib/fpending.c: Rename from __fpending.c.
60413         Include "fpending.h", not "__fpending.h".
60414         * lib/__fpending.h, lib/__fpending.c: Remove files.
60415         * modules/fpending (Files): Reflect new file names.
60416         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
60417
60418 2007-09-08  Bruno Haible  <bruno@clisp.org>
60419
60420         * m4/inttypes-h.m4: Remove stub file.
60421
60422 2007-09-07  Simon Josefsson  <simon@josefsson.org>
60423
60424         * doc/headers/stdint.texi: Discuss #include_next issue.
60425
60426 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
60427
60428         * build-aux/bootstrap: Remove obsolete comment about wget --help.
60429
60430 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
60431
60432         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
60433         in variable name.
60434
60435 2007-09-03  Jim Meyering  <jim@meyering.net>
60436
60437         New module: git-version-gen.
60438         * modules/git-version-gen: New file.
60439
60440         Import changes from coreutils for bootstrap script.
60441
60442         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
60443
60444         bootstrap: uses rsync to download the .po files
60445         * build-aux/bootstrap (po_download_command_format): New global.
60446         (download_po_files): Use rsync.
60447         (update_po_files): Don't remove .po files after download,
60448         so future rsync runs can take advantage of the copies.
60449
60450         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
60451
60452         Solve the unnecessary-.po-file-regeneration problem once and for all.
60453         * build-aux/bootstrap (download_po_files): New function, renamed from
60454         get_translations.  Now, downloads, but doesn't update LINGUAS.
60455         (update_po_files): New function.
60456
60457         bootstrap: Ignore more.
60458         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
60459         uniwidth to e.g., lib/.gitignore.
60460         (slurp): Handle the sys_stat_.h -> sys mapping, too.
60461
60462         * build-aux/bootstrap: New setting: vc_ignore.
60463         (insert_sorted_if_absent): Create $file if absent.
60464         Adapt to new, possibly empty, list: $vc_ignore.
60465
60466         bootstrap: generate more ignorable names
60467         * build-aux/bootstrap (slurp): When generating ignorable names,
60468         also map .sin to .sed, .gperf to .c, and .y to .c.
60469
60470 2007-09-03  Jim Meyering  <jim@meyering.net>
60471
60472         * build-aux/git-version-gen: New file, from coreutils.  For details, see
60473         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
60474
60475 2007-09-02  Bruno Haible  <bruno@clisp.org>
60476
60477         Fix mis-recognition of 'mcs' on QNX 6.
60478         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
60479         output contains the string "Mono".
60480         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
60481         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
60482
60483 2007-09-01  Bruno Haible  <bruno@clisp.org>
60484
60485         Fix collision between uniwidth/* and linebreak modules.
60486         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
60487         u32_width): Remove declarations.
60488         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
60489         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
60490         streq3, streq2, streq1, streq0): Remove functions.
60491         (STREQ): Remove macro.
60492         (is_cjk_encoding): Remove function.
60493         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
60494         (uc_width, u8_width, u16_width, u32_width): Remove functions.
60495         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
60496         * NEWS: Document the change.
60497
60498 2007-09-01  Bruno Haible  <bruno@clisp.org>
60499
60500         * lib/streq.h: Add double-inclusion guard.
60501
60502 2007-09-01  Karl Berry  <karl@gnu.org>
60503
60504         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
60505
60506 2007-08-28  Jim Meyering  <jim@meyering.net>
60507
60508         Rename mreadlink_with_size to areadlink_with_size.
60509         * NEWS: Document the change.
60510         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
60511         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
60512         * lib/mreadlink.h: Rename this to...
60513         * lib/areadlink.h: ...this.
60514         * modules/mreadlink-with-size: Rename this to...
60515         * modules/areadlink-with-size: ...this.
60516         * lib/canonicalize.c: Reflect the renaming.
60517         * modules/canonicalize: Likewise.
60518
60519 2007-08-26  Bruno Haible  <bruno@clisp.org>
60520
60521         * gnulib-tool (func_import): When deciding which files to remove,
60522         consider also dangling symbolic links.
60523         Reported by Eric Blake.
60524
60525 2007-08-26  Bruno Haible  <bruno@clisp.org>
60526
60527         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
60528
60529 2007-08-23  Simon Josefsson  <simon@josefsson.org>
60530
60531         * lib/readline.c: Don't include getline.h, the prototype is now
60532         found in stdio.h.
60533
60534 2007-08-23  Jim Meyering  <jim@meyering.net>
60535
60536         Getdelim touchup.
60537         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
60538         around the funlockfile call, since funlockfile never sets errno.
60539         Don't set errno upon failed realloc.
60540
60541 2007-08-22  Eric Blake  <ebb9@byu.net>
60542
60543         Getline touchups.
60544         * lib/getdelim.c (getdelim): Revert regression that required *n to
60545         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
60546         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
60547         getdelim, rather than whether implementation is missing.
60548         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
60549         * lib/stdio_.h (getline): Also declare if replacement is
60550         required.
60551         * doc/functions/getdelim.texi: New file.
60552         * doc/functions/getline.texi: Likewise.
60553         * doc/gnulib.texi (Function Substitutes): Add new files.
60554         Reported by Bruno Haible.
60555
60556 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
60557
60558         * users.txt: Add Guile.
60559
60560 2007-08-22  Eric Blake  <ebb9@byu.net>
60561
60562         * tests/test-getdelim.c (main): Use remove, not unlink.
60563         * tests/test-getline.c (main): Likewise.
60564
60565         Move getline and getdelim into stdio.h, per POSIX 200x.
60566         * modules/getline (Files): Remove getline.h.
60567         (Depends-on): Add stdio.
60568         (configure.ac): Add module indicator.
60569         * modules/getdelim (Files): Remove getdelim.h.
60570         (Depends-on): Add stdio.
60571         (configure.ac): Add module indicator.
60572         * modules/stdio (Makefile.am): Work with new indicators.
60573         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
60574         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
60575         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
60576         * lib/getdelim.h: Delete.
60577         * lib/getline.h: Delete.
60578         * lib/stdio_.h (getdelim, getline): Declare.
60579         * modules/getdelim-tests: New module.
60580         * modules/getline-tests: Likewise.
60581         * tests/test-getdelim.c: New file.
60582         * tests/test-getline.c: Likewise.
60583         * NEWS: Document the change.
60584         * lib/getline.c: Update choice of header.
60585         * lib/csharpcomp.c: Likewise.
60586         * lib/getpass.c: Likewise.
60587         * lib/javacomp.c: Likewise.
60588         * lib/javaversion.c: Likewise.
60589         * lib/yesno.c: Likewise.
60590         * lib/getdelim.c: Likewise.
60591         (getdelim): Set errno on failure, and avoid memory leak.
60592
60593 2007-08-19  Bruno Haible  <bruno@clisp.org>
60594
60595         * modules/closein (Depends-on): Add freadahead.
60596         * lib/closein.c: Include freadahead.h.
60597         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
60598         is zero.
60599
60600 2007-08-19  Bruno Haible  <bruno@clisp.org>
60601
60602         * modules/freadahead-tests: New file.
60603         * tests/test-freadahead.sh: New file.
60604         * tests/test-freadahead.c: New file.
60605
60606         * modules/freadahead: New file.
60607         * lib/freadahead.h: New file.
60608         * lib/freadahead.c: New file.
60609         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
60610         fbufmode, fpurge, freadable, fwritable.
60611
60612 2007-08-19  Eric Blake  <ebb9@byu.net>
60613
60614         Test yesno in combination with closein.
60615         * lib/yesno.c (yesno): Document use of stdin.
60616         * modules/yesno-tests (Files): New module.
60617         * tests/test-yesno.c (main): New file.
60618         * tests/test-yesno.sh: Likewise.
60619
60620 2007-08-19  Bruno Haible  <bruno@clisp.org>
60621
60622         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
60623         * lib/fseeko.c (rpl_fseeko): Likewise.
60624         * lib/fseterr.c (fseterr): Likewise.
60625
60626 2007-08-19  Bruno Haible  <bruno@clisp.org>
60627
60628         * tests/test-lseek.c (main): Disable a test for BeOS.
60629         * doc/functions/lseek.texi: Document the BeOS bug.
60630
60631 2007-08-19  Bruno Haible  <bruno@clisp.org>
60632             Eric Blake  <ebb9@byu.net>
60633
60634         * lib/lseek.c: Include <sys/stat.h>.
60635         (rpl_lseek): Add workaround code also for Unix platforms.
60636         Needed for BeOS.
60637         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
60638         * doc/functions/lseek.texi: Document BeOS definiency.
60639
60640 2007-08-18  Bruno Haible  <bruno@clisp.org>
60641
60642         * modules/fstrcmp-tests: New file.
60643         * tests/test-fstrcmp.c: New file.
60644
60645 2007-08-18  Bruno Haible  <bruno@clisp.org>
60646
60647         * modules/fstrcmp: New file, from GNU gettext with modifications.
60648         * lib/fstrcmp.h: New file, from GNU gettext.
60649         * lib/fstrcmp.c: New file, from GNU gettext.
60650         * MODULES.html.sh (String handling): Add fstrcmp.
60651
60652 2007-08-18  Bruno Haible  <bruno@clisp.org>
60653
60654         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
60655         'bool'.
60656         (diag, compareseq): Remove const from the ctxt argument.
60657         (USE_HEURISTIC): Undefine at the end.
60658
60659 2007-08-18  Jim Meyering  <jim@meyering.net>
60660
60661         New file: lib/idcache.h
60662         * NEWS: Mention the addition.
60663         * modules/idcache (Files): Add lib/idcache.h
60664         * lib/idcache.c: Include "idcache.h".
60665         Don't include <sys/types.h>.
60666         Add a FIXME comment.
60667         Move file-scoped "static" declarations to the top.
60668         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
60669
60670 2007-08-17  Bruno Haible  <bruno@clisp.org>
60671         and Paul Eggert  <eggert@cs.ucla.edu>
60672
60673         * MODULES.html.sh: Add diffseq.
60674         * modules/diffseq: New file.
60675         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
60676         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
60677
60678 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
60679
60680         Import changes from coreutils for bootstrap script.
60681
60682         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
60683
60684         * build-aux/bootstrap (slurp): Work even in environments where
60685         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
60686         current code does not slurp files whose names start with ".", and
60687         this looks like it might be a troublesome area.
60688
60689         2007-07-11  Jim Meyering  <jim@meyering.net>
60690
60691         If there's a GPL vN copyright comment, require that N == 3.
60692
60693         2007-07-08  Jim Meyering  <jim@meyering.net>
60694
60695         Run the coreutils-specific code only if tests/Makefile.am.in exists.
60696         * build-aux/bootstrap (mam_template): Move definition out of loop.
60697
60698         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
60699
60700         * build-aux/bootstrap (symlink_to_dir): Rename function from
60701         symlink_to_gnulib.  Add a directory parameter.  Update all
60702         callers.
60703         (cp_mark_as_generated): Also check for -- and link to -- files in
60704         gl/.
60705
60706         2007-07-08  Jim Meyering  <jim@meyering.net>
60707
60708         Adapt to deeper hierarchy in gnulib.
60709         * build-aux/bootstrap (symlink_to_dir): If the destination
60710         directory doesn't exist, create it. This is required at least for
60711         "lib/uniwidth/cjk.h".
60712
60713         2007-05-15  Jim Meyering  <jim@meyering.net>
60714
60715         * build-aux/bootstrap: Now that generated Makefile.am files
60716         are no longer under version control, they must be created at
60717         bootstrap time.
60718
60719 2007-08-14  Ben Pfaff  <blp@gnu.org>
60720
60721         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
60722
60723 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
60724
60725         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
60726         given the changes below.
60727         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
60728         even on hosts that have padding bits beyond the supported 64.
60729
60730 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
60731
60732         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
60733         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
60734         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
60735         depends on it.
60736         (xstrtol_error): Remove.
60737         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
60738         but with a different signature.
60739         (ATTRIBUTE_NORETURN, __attribute__): New macros.
60740         * lib/xstrtol-error.c: Include exitfail.h.
60741         (xstrtol_fatal): New function, with a different signature from the
60742         old xstrtol_error, so that the caller need not worry about passing
60743         in an exit status, or about storage management of the option argument.
60744         (xstrtol_error): Now a static function.  Redo signature to
60745         implement xstrtol_fatal.  Output the correct number of hyphens in
60746         front of the option so that the caller need not worry about
60747         storage management.
60748         (N_): New macro.
60749         (_): Remove; not used now.
60750         * modules/xstrtol: Depend on getopt.
60751         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
60752         of old STRTOL_FATAL_ERROR macro.
60753         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
60754         of test program.
60755         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
60756         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
60757
60758 2007-08-08  Eric Blake  <ebb9@byu.net>
60759
60760         * lib/xstrtol-error.c: Add missing include.
60761
60762         Move xstrtol messages into gnulib domain, when --pobase is used.
60763         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
60764         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
60765         * modules/xstrtol (Files): Distribute new file.
60766         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
60767         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
60768         * tests/test-xstrtol.c: ...into new file.
60769         * tests/test-xstrtoul.c: Also test xstrtoul.
60770         * tests/test-xstrtoimax.c: Also test xstrtoimax.
60771         * tests/test-xstrtoumax.c: Also test xstrtoumax.
60772         * tests/test-xstrtol.sh: Drive the tests.
60773         * tests/test-xstrtoimax.sh: Likewise.
60774         * tests/test-xstrtoumax.sh: Likewise.
60775         * modules/xstrtol-tests: New module.
60776         * modules/xstrtoimax-tests: Likewise.
60777         * modules/xstrtoumax-tests: Likewise.
60778
60779 2007-08-08  Jim Meyering  <jim@meyering.net>
60780
60781         New function: mfile_name_concat.
60782         * lib/filenamecat.c (mfile_name_concat): New function, just like
60783         file_name_concat, but return NULL upon failure rather than exiting
60784         with a diagnostic.
60785         * lib/filenamecat.h: Declare it.
60786
60787 2007-08-07  Bruno Haible  <bruno@clisp.org>
60788
60789         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
60790         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
60791         warning from gcc.
60792         Reported by Eric Blake.
60793
60794 2007-08-07  Simon Josefsson  <simon@josefsson.org>
60795
60796         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
60797         * modules/crypto/arcfour (License): Likewise.
60798         * modules/crypto/des-tests (License): Likewise.
60799         * modules/crypto/gc-arctwo-tests (License): Likewise.
60800         * modules/crypto/gc-des-tests (License): Likewise.
60801         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
60802         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
60803         * modules/crypto/gc-md2-tests (License): Likewise.
60804         * modules/crypto/gc-md4-tests (License): Likewise.
60805         * modules/crypto/gc-md5-tests (License): Likewise.
60806         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
60807         * modules/crypto/gc-rijndael-tests (License): Likewise.
60808         * modules/crypto/gc-sha1-tests (License): Likewise.
60809         * modules/crypto/gc-tests (License): Likewise.
60810         * modules/crypto/hmac-md5 (License): Likewise.
60811         * modules/crypto/hmac-sha1 (License): Likewise.
60812         * modules/crypto/md2-tests (License): Likewise.
60813         * modules/crypto/md4-tests (License): Likewise.
60814         * modules/crypto/md5 (License): Likewise.
60815         * modules/crypto/rijndael (License): Likewise.
60816         * modules/crypto/sha1 (License): Likewise.
60817         * modules/memxor (License): Likewise.
60818
60819 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
60820         and Bruno Haible  <bruno@clisp.org>
60821
60822         * NEWS: Describe interface changes to human, xstrtol.
60823         * lib/human.h: Include <xstrtol.h>.
60824         (human_options): Return enum strtol_error, not int.  Remove
60825         bool arg; take int * instead.
60826         * lib/human.c: Don't include "gettext.h".
60827         (_): Remove; no longer used.
60828         Don't include <xstrtol.h>, since human.h does it.
60829         (human_options): Adjust to abovementioned interface changes.
60830         Do not report error to stderr; that's now the caller's
60831         responsibility.
60832         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
60833         interface change.
60834         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
60835         Str, Argument_type_string.  All uses changed.  Put " argument"
60836         in diagnostics to make them clearer.  Change wording of suffix
60837         message for clarity.
60838         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
60839         Argument_type_string.
60840         (STRTOL_FATAL_WARN): Remove; no longer used.
60841         * modules/human (Depends-on): Remove gettext-h.
60842
60843 2007-08-06  Simon Josefsson  <simon@josefsson.org>
60844
60845         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
60846
60847 2007-07-31  Bruno Haible  <bruno@clisp.org>
60848
60849         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
60850         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
60851         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
60852
60853 2007-07-31  Bruno Haible  <bruno@clisp.org>
60854
60855         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
60856         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
60857
60858 2007-07-30  Bruno Haible  <bruno@clisp.org>
60859
60860         * modules/base64 (License): Use the synonymous term "LGPLv2+".
60861         * modules/c-ctype (License): Likewise.
60862         * modules/c-strcase (License): Likewise.
60863         * modules/check-version (License): Likewise.
60864         * modules/iconv (License): Likewise.
60865         * modules/iconv_open (License): Likewise.
60866         * modules/read-file (License): Likewise.
60867         * modules/striconv (License): Likewise.
60868         * modules/strverscmp (License): Likewise.
60869         * modules/vasprintf (License): Likewise.
60870         * modules/crypto/des (License): Likewise.
60871         * modules/crypto/gc (License): Likewise.
60872         * modules/crypto/gc-arcfour (License): Likewise.
60873         * modules/crypto/gc-arctwo (License): Likewise.
60874         * modules/crypto/gc-des (License): Likewise.
60875         * modules/crypto/gc-hmac-md5 (License): Likewise.
60876         * modules/crypto/gc-hmac-sha1 (License): Likewise.
60877         * modules/crypto/gc-md2 (License): Likewise.
60878         * modules/crypto/gc-md4 (License): Likewise.
60879         * modules/crypto/gc-md5 (License): Likewise.
60880         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
60881         * modules/crypto/gc-random (License): Likewise.
60882         * modules/crypto/gc-rijndael (License): Likewise.
60883         * modules/crypto/gc-sha1 (License): Likewise.
60884         * modules/crypto/md2 (License): Likewise.
60885         * modules/crypto/md4 (License): Likewise.
60886
60887 2007-07-30  Jim Meyering  <jim@meyering.net>
60888
60889         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
60890         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
60891         it has valid stat data.  This bug would cause du not to count the
60892         sizes of inaccessible directories.
60893         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
60894         in <http://bugzilla.redhat.com/250077>.
60895
60896 2007-07-25  Peter O'Gorman  <peter@pogma.com>
60897             Bruno Haible  <bruno@clisp.org>
60898
60899         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
60900         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
60901         #include_next, gives a diagnostic about it, but reports no error in
60902         the exit code.
60903         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
60904
60905 2007-07-24  Ben Pfaff  <blp@gnu.org>
60906
60907         Improve name: "count-one-bits" is better than "popcount".
60908         * MODULES.html.sh: Update name.
60909         * lib/popcount.h: Renamed lib/count-one-bits.h.
60910         (popcount): Renamed count_one_bits.
60911         (popcountl): Renamed count_one_bits_l.
60912         (popcountll): Renamed count_one_bits_ll.
60913         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
60914         * modules/popcount: Renamed module/count-one-bits.
60915         * modules/popcount-tests: Renamed module/count-one-bits-tests.
60916         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
60917
60918 2007-07-23  Ben Pfaff  <blp@gnu.org>
60919
60920         * lib/popcount.h (popcount32): Reduce size of constants, to allow
60921         better code generation, and add U to large constants to avoid
60922         warnings, in non-GCC case.
60923         Suggested by Bruno Haible.
60924
60925 2007-07-23  Ben Pfaff  <blp@gnu.org>
60926
60927         * lib/popcount.h: Use verify_true instead of if...abort.
60928         * modules/popcount: Depend on verify module.
60929         Suggested by Jim Meyering.
60930
60931 2007-07-23  Bruno Haible  <bruno@clisp.org>
60932
60933         * gnulib-tool (func_import): Create a .cvsignore file also when the
60934         directory is not yet in CVS but the toplevel directory is. When
60935         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
60936         Reported by Karl Berry.
60937
60938 2007-07-22  Ben Pfaff  <blp@gnu.org>
60939
60940         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
60941         case.
60942         Suggested by Eric Blake.
60943
60944 2007-07-22  Ben Pfaff  <blp@gnu.org>
60945
60946         New module: popcount.
60947         * MODULES.html.sh: Add popcount.
60948         * modules/popcount: New file.
60949         * modules/popcount-tests: New file.
60950         * tests/test-popcount.c: New file.
60951         * lib/popcount.h: New file.
60952         * m4/popcount.m4: New file.
60953
60954 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
60955
60956         * build-aux/announce-gen: Update to GPLv3.
60957
60958         * build-aux/config.guess: Update from config.
60959
60960 2007-07-21  Bruno Haible  <bruno@clisp.org>
60961
60962         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
60963         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
60964
60965 2007-07-20  Jim Meyering  <jim@meyering.net>
60966
60967         * check-module: Diagnose a self-dependency.
60968
60969 2007-07-19  Bruno Haible  <bruno@clisp.org>
60970
60971         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
60972         empty.
60973         Reported by Eric Blake.
60974
60975 2007-07-18  Bruno Haible  <bruno@clisp.org>
60976
60977         * gnulib-tool: New options --po-base, --po-domain.
60978         (func_usage): Document them.
60979         (pobase, po_domain): New variables.
60980         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
60981         DEFAULT_TEXT_DOMAIN.
60982         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
60983         (func_import): Consider pobase and po_domain. Create a po/ directory.
60984         (func_create_testdir): Set pobase and po_domain to empty.
60985         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
60986         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
60987
60988 2007-07-18  Bruno Haible  <bruno@clisp.org>
60989
60990         * gnulib-tool (func_get_automake_snippet): Synthesize also an
60991         EXTRA_DIST augmentation for files in build-aux/.
60992
60993 2007-07-16  Bruno Haible  <bruno@clisp.org>
60994
60995         * modules/lseek (License): Use the synonymous term "LGPLv2+".
60996         * modules/getdelim (License): Likewise.
60997
60998 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
60999
61000         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
61001         * modules/d-type (License): Likewise.
61002         * modules/extensions (License): Likewise.
61003         * modules/fnmatch (License): Likewise.
61004         * modules/fseeko (License): Likewise.
61005         * modules/getaddrinfo (License): Likewise.
61006         * modules/getline (License): Likewise.
61007         * modules/getlogin_r (License): Likewise.
61008         * modules/getpass (License): Likewise.
61009         * modules/gettimeofday (License): Likewise.
61010         * modules/glob (License): Likewise.
61011         * modules/inet_ntop (License): Likewise.
61012         * modules/malloc (License): Likewise.
61013         * modules/malloca (License): Likewise.
61014         * modules/memmem (License): Likewise.
61015         * modules/mempcpy (License): Likewise.
61016         * modules/memset (License): Likewise.
61017         * modules/minmax (License): Likewise.
61018         * modules/mktime (License): Likewise.
61019         * modules/netinet_in (License): Likewise.
61020         * modules/pathmax (License): Likewise.
61021         * modules/poll (License): Likewise.
61022         * modules/regex (License): Likewise.
61023         * modules/snprintf (License): Likewise.
61024         * modules/stdbool (License): Likewise.
61025         * modules/stdint (License): Likewise.
61026         * modules/stdio (License): Likewise.
61027         * modules/strcase (License): Likewise.
61028         * modules/strcasestr (License): Likewise.
61029         * modules/strdup (License): Likewise.
61030         * modules/string (License): Likewise.
61031         * modules/strndup (License): Likewise.
61032         * modules/strnlen (License): Likewise.
61033         * modules/strpbrk (License): Likewise.
61034         * modules/strptime (License): Likewise.
61035         * modules/strsep (License): Likewise.
61036         * modules/sys_select (License): Likewise.
61037         * modules/sys_socket (License): Likewise.
61038         * modules/sys_stat (License): Likewise.
61039         * modules/sys_time (License): Likewise.
61040         * modules/time (License): Likewise.
61041         * modules/time_r (License): Likewise.
61042         * modules/timegm (License): Likewise.
61043         * modules/unistd (License): Likewise.
61044         * modules/vsnprintf (License): Likewise.
61045         * modules/wctype (License): Likewise.
61046
61047 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61048
61049         * modules/argz (License): LGPLv2+.
61050
61051 2007-07-15  Karl Berry  <karl@gnu.org>
61052
61053         * doc/gnulib.texi: revise node structure per new fdl.texi.
61054
61055 2007-07-14  Bruno Haible  <bruno@clisp.org>
61056
61057         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
61058         the output file.
61059         * lib/uniname/uninames.h: Regenerated.
61060
61061 2007-07-14  Karl Berry  <karl@gnu.org>
61062
61063         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
61064         omitting sectioning and index commands.
61065
61066 2007-07-13  Bruno Haible  <bruno@clisp.org>
61067
61068         New gnulib-tool option --more-symlinks.
61069         * gnulib-tool (func_usage): Document --more-symlinks.
61070         (do_copyrights): New variable.
61071         Recognize option --more-symlinks.
61072         (func_import): Don't add a copyright notice transform to
61073         sed_transform_lib_file if do_copyrights is empty.
61074
61075 2007-07-13  Bruno Haible  <bruno@clisp.org>
61076
61077         * lib/vasnprintf.c (decimal_point_char): Define also if
61078         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
61079         && !NEED_PRINTF_DIRECTIVE_A.
61080         Reported by Clemens Koller <clemens.koller@anagramm.de> via
61081         Gary V. Vaughan <gary@gnu.org>.
61082
61083 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
61084
61085         * lib/inttypes_.h: Undo previous change, since it was fixed
61086         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
61087
61088 2007-07-13  Bruno Haible  <bruno@clisp.org>
61089
61090         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
61091         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
61092
61093 2007-07-13  Jim Meyering  <jim@meyering.net>
61094
61095         df: Don't fail for Tru64's "file-on-file mount".
61096         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
61097         so we fall through and use statfs instead.  Details here:
61098         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
61099         Reported by Albert Chin.
61100
61101 2007-07-13  Bruno Haible  <bruno@clisp.org>
61102
61103         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
61104         * modules/configmake (License): Likewise.
61105         * modules/gettext (License): Likewise.
61106         * modules/gettext-h (License): Likewise.
61107         * modules/include_next (License): Likewise.
61108         * modules/link-warning (License): Likewise.
61109         * modules/localcharset (License): Likewise.
61110         * modules/localename (License): Likewise.
61111         * modules/lock (License): Likewise.
61112         * modules/relocatable-lib-lgpl (License): Likewise.
61113         * modules/size_max (License): Likewise.
61114         * modules/vasnprintf (License): Likewise.
61115         * modules/wchar (License): Likewise.
61116         * modules/xsize (License): Likewise.
61117
61118 2007-07-13  Bruno Haible  <bruno@clisp.org>
61119
61120         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
61121         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
61122
61123 2007-07-12  Bruno Haible  <bruno@clisp.org>
61124
61125         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
61126         in the modules files.
61127
61128 2007-07-11  Karl Berry  <karl@gnu.org>
61129
61130         * MODULES.html.sh (func_module): use
61131          sed -e '\|^'"${includefile}"'$|d'
61132          instead of /.../d, to avoid errors on $includefile's containing /.
61133
61134 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
61135
61136         * gnulib-tool (func_import): Avoid duplication of --avoid
61137         statements
61138         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
61139         names to `_' in variable names.
61140
61141 2007-07-10  Eric Blake  <ebb9@byu.net>
61142
61143         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
61144         * NEWS: Document this change.
61145
61146 2007-07-08  Bruno Haible  <bruno@clisp.org>
61147
61148         Update to Unicode 5.0.
61149         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
61150         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
61151         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
61152         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
61153         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
61154         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
61155         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
61156         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
61157         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
61158         U+10A3F, U+1D242..U+1D244.
61159         (nonspacing_table_ind): Update.
61160         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
61161         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
61162
61163 2007-07-08  Bruno Haible  <bruno@clisp.org>
61164
61165         Update to Unicode 5.0.
61166         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
61167         code transform. Extend the name index field of unicode_name_to_code and
61168         unicode_code_to_name from 16 to 24 bits.
61169         * lib/uniname/uniname.c (unicode_character_name,
61170         unicode_name_character): Add the range 0x12xxx to the code transform.
61171         * lib/uniname/uninames.h: Regenerated.
61172         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
61173
61174 2007-07-07  Bruno Haible  <bruno@clisp.org>
61175
61176         * modules/wcwidth-tests: New file.
61177         * tests/test-wcwidth.c: New file.
61178
61179         Work around MacOS X wcwidth() bug.
61180         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
61181         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
61182         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
61183         original wcwidth in non-UTF-8 locales.
61184         * modules/wcwidth (Depends-on): Add localcharset, streq,
61185         uniwidth/width.
61186         * doc/functions/wcwidth.texi: Update.
61187
61188 2007-07-07  Bruno Haible  <bruno@clisp.org>
61189
61190         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
61191         (wcwidth): New declaration.
61192         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
61193         macros.
61194         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
61195         here. Prepare for creating <wchar.h> unconditionally.
61196         * modules/wchar (Depends-on): Add link-warning.
61197         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
61198         REPLACE_WCWIDTH, and GL_LINK_WARNING.
61199         * lib/wcwidth.h: Remove file.
61200         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
61201         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
61202         * modules/wcwidth (Files): Remove lib/wcwidth.h.
61203         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
61204         (Include): Replace wcwidth.h with <wchar.h>.
61205         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
61206         * lib/mbchar.h: Don't include wcwidth.h.
61207         * lib/mbswidth.c: Likewise.
61208         * NEWS: Mention the change.
61209
61210 2007-07-07  Bruno Haible  <bruno@clisp.org>
61211
61212         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
61213         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
61214         definition with an external declaration.
61215         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
61216         defined as a function. Remove AC_C_INLINE requirement.
61217         * modules/wcwidth (Files): Add lib/wcwidth.c.
61218         (Makefile.am): Remove redundant statement.
61219
61220 2007-07-07  Bruno Haible  <bruno@clisp.org>
61221
61222         * MODULES.html.sh (Unicode string functions): Add the new modules.
61223
61224         * tests/uniwidth/test-u32-strwidth.c: New file.
61225         * modules/uniwidth/u32-strwidth-tests: New file.
61226
61227         * lib/uniwidth/u32-strwidth.c: New file.
61228         * modules/uniwidth/u32-strwidth: New file.
61229
61230         * tests/uniwidth/test-u16-strwidth.c: New file.
61231         * modules/uniwidth/u16-strwidth-tests: New file.
61232
61233         * lib/uniwidth/u16-strwidth.c: New file.
61234         * modules/uniwidth/u16-strwidth: New file.
61235
61236         * tests/uniwidth/test-u8-strwidth.c: New file.
61237         * modules/uniwidth/u8-strwidth-tests: New file.
61238
61239         * lib/uniwidth/u8-strwidth.c: New file.
61240         * modules/uniwidth/u8-strwidth: New file.
61241
61242         * tests/uniwidth/test-u32-width.c: New file.
61243         * modules/uniwidth/u32-width-tests: New file.
61244
61245         * lib/uniwidth/u32-width.c: New file.
61246         * modules/uniwidth/u32-width: New file.
61247
61248         * tests/uniwidth/test-u16-width.c: New file.
61249         * modules/uniwidth/u16-width-tests: New file.
61250
61251         * lib/uniwidth/u16-width.c: New file.
61252         * modules/uniwidth/u16-width: New file.
61253
61254         * tests/uniwidth/test-u8-width.c: New file.
61255         * modules/uniwidth/u8-width-tests: New file.
61256
61257         * lib/uniwidth/u8-width.c: New file.
61258         * modules/uniwidth/u8-width: New file.
61259
61260         * tests/uniwidth/test-uc_width.c: New file.
61261         * modules/uniwidth/width-tests: New file.
61262
61263         * lib/uniwidth/width.c: New file, from GNU libiconv.
61264         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
61265         * modules/uniwidth/width: New file.
61266
61267         * lib/uniwidth.h: New file, from GNU libiconv.
61268         * modules/uniwidth/base: New file.
61269
61270 2007-07-07  Bruno Haible  <bruno@clisp.org>
61271
61272         * lib/uniname.h: New file, from GNU gettext.
61273         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
61274         * lib/uniname/uninames.h: New file, from GNU gettext.
61275         * lib/uniname/uniname.c: New file, from GNU gettext.
61276         * tests/uniname/test-uninames.sh: New file.
61277         * tests/uniname/test-uninames.c: New file, from GNU gettext.
61278         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
61279         * modules/uniname/base: New file.
61280         * modules/uniname/uniname: New file.
61281         * modules/uniname/uniname-tests: New file.
61282         * MODULES.html.sh (Unicode string functions): Add the new modules.
61283
61284 2007-07-06  Bruno Haible  <bruno@clisp.org>
61285
61286         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
61287
61288 2007-07-06  Bruno Haible  <bruno@clisp.org>
61289
61290         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
61291         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
61292         includes <cygwin/sys_time.h> which includes <sys/select.h> which
61293         include <sys/time.h>.
61294         Reported by Eric Blake.
61295
61296 2007-07-06  Eric Blake  <ebb9@byu.net>
61297
61298         Fix testing canonicalize on cygwin.
61299         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
61300         Revert patch from 2007-06-19.
61301         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
61302         canonicalize module is also in use.
61303         * tests/test-canonicalize.c: New file.
61304         * tests/test-canonicalize.sh: Likewise.
61305         * modules/canonicalize-tests: Likewise.
61306
61307 2007-07-06  Jim Meyering  <jim@meyering.net>
61308
61309         * lib/getugroups.c (getugroups): Detect getgrent failure.
61310         Adjust comment to reflect reality: this function may return -1.
61311
61312 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
61313
61314         * build-aux/bootstrap (TP_URL,get_translations): Update to use
61315         the new TP address.
61316         (usage): Fix typo
61317         (gnulib_mk): New variable.
61318
61319 2007-07-05  Jim Meyering  <jim@meyering.net>
61320
61321         Don't let endgrent clobber errno, no matter how improbable.
61322         * lib/getugroups.c (getugroups): Save and restore errno around
61323         endgrent call.
61324
61325         Close the group DB even when failing with 2^31 or more members.
61326         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
61327
61328 2007-07-04  Jim Meyering  <jim@meyering.net>
61329
61330         * lib/getugroups.h: New file.
61331         * lib/getugroups.c: Include "getugroups.h".
61332         Remove uses of "register" keyword.
61333         Move local variable, "cp", down into scope where used.
61334         Give "username" parameter the "const" attribute.
61335         * modules/getugroups (Files): Add lib/getugroups.h
61336
61337 2007-07-04  Karl Berry  <karl@gnu.org>
61338
61339         * MODULES.html.sh (func_all_modules): Complete rename of
61340         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
61341
61342 2007-07-02  Bruno Haible  <bruno@clisp.org>
61343
61344         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
61345         mode, when inttypes.h comes from gnulib.
61346         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
61347
61348 2007-07-02  Simon Josefsson  <simon@josefsson.org>
61349
61350         * NEWS: Mention lgpl module name change.
61351
61352         * modules/lgpl-2.1: Renamed from lgpl.
61353
61354         * NEWS: Mention gpl module name change.
61355
61356         * modules/gpl-3.0: New file, based on gpl-2.0.
61357
61358         * modules/gpl-2.0: Renamed from gpl.
61359
61360         * modules/gpl: Fix filename, doc/gpl.texi is now found at
61361         doc/gpl-2.0.texi.
61362
61363 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
61364
61365         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
61366         #define __STDC_LIMIT_MACROS temporarily while including
61367         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
61368         Problem reported by Joel E. Denny in
61369         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
61370
61371 2007-07-01  Bruno Haible  <bruno@clisp.org>
61372
61373         * lib/unistdio.h: New file.
61374         * lib/unistdio/u-asnprintf.h: New file.
61375         * lib/unistdio/u-asprintf.h: New file.
61376         * lib/unistdio/u-printf-args.c: New file.
61377         * lib/unistdio/u-printf-args.h: New file.
61378         * lib/unistdio/u-printf-parse.h: New file.
61379         * lib/unistdio/u-snprintf.h: New file.
61380         * lib/unistdio/u-sprintf.h: New file.
61381         * lib/unistdio/u-vasprintf.h: New file.
61382         * lib/unistdio/u-vsnprintf.h: New file.
61383         * lib/unistdio/u-vsprintf.h: New file.
61384         * lib/unistdio/ulc-asnprintf.c: New file.
61385         * lib/unistdio/ulc-asprintf.c: New file.
61386         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
61387         * lib/unistdio/ulc-printf-parse.c: New file.
61388         * lib/unistdio/ulc-snprintf.c: New file.
61389         * lib/unistdio/ulc-sprintf.c: New file.
61390         * lib/unistdio/ulc-vasnprintf.c: New file.
61391         * lib/unistdio/ulc-vasprintf.c: New file.
61392         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
61393         * lib/unistdio/ulc-vsnprintf.c: New file.
61394         * lib/unistdio/ulc-vsprintf.c: New file.
61395         * lib/unistdio/u8-asnprintf.c: New file.
61396         * lib/unistdio/u8-asprintf.c: New file.
61397         * lib/unistdio/u8-printf-parse.c: New file.
61398         * lib/unistdio/u8-snprintf.c: New file.
61399         * lib/unistdio/u8-sprintf.c: New file.
61400         * lib/unistdio/u8-vasnprintf.c: New file.
61401         * lib/unistdio/u8-vasprintf.c: New file.
61402         * lib/unistdio/u8-vsnprintf.c: New file.
61403         * lib/unistdio/u8-vsprintf.c: New file.
61404         * lib/unistdio/u8-u8-asnprintf.c: New file.
61405         * lib/unistdio/u8-u8-asprintf.c: New file.
61406         * lib/unistdio/u8-u8-snprintf.c: New file.
61407         * lib/unistdio/u8-u8-sprintf.c: New file.
61408         * lib/unistdio/u8-u8-vasnprintf.c: New file.
61409         * lib/unistdio/u8-u8-vasprintf.c: New file.
61410         * lib/unistdio/u8-u8-vsnprintf.c: New file.
61411         * lib/unistdio/u8-u8-vsprintf.c: New file.
61412         * lib/unistdio/u16-asnprintf.c: New file.
61413         * lib/unistdio/u16-asprintf.c: New file.
61414         * lib/unistdio/u16-printf-parse.c: New file.
61415         * lib/unistdio/u16-snprintf.c: New file.
61416         * lib/unistdio/u16-sprintf.c: New file.
61417         * lib/unistdio/u16-vasnprintf.c: New file.
61418         * lib/unistdio/u16-vasprintf.c: New file.
61419         * lib/unistdio/u16-vsnprintf.c: New file.
61420         * lib/unistdio/u16-vsprintf.c: New file.
61421         * lib/unistdio/u16-u16-asnprintf.c: New file.
61422         * lib/unistdio/u16-u16-asprintf.c: New file.
61423         * lib/unistdio/u16-u16-snprintf.c: New file.
61424         * lib/unistdio/u16-u16-sprintf.c: New file.
61425         * lib/unistdio/u16-u16-vasnprintf.c: New file.
61426         * lib/unistdio/u16-u16-vasprintf.c: New file.
61427         * lib/unistdio/u16-u16-vsnprintf.c: New file.
61428         * lib/unistdio/u16-u16-vsprintf.c: New file.
61429         * lib/unistdio/u32-asnprintf.c: New file.
61430         * lib/unistdio/u32-asprintf.c: New file.
61431         * lib/unistdio/u32-printf-parse.c: New file.
61432         * lib/unistdio/u32-snprintf.c: New file.
61433         * lib/unistdio/u32-sprintf.c: New file.
61434         * lib/unistdio/u32-vasnprintf.c: New file.
61435         * lib/unistdio/u32-vasprintf.c: New file.
61436         * lib/unistdio/u32-vsnprintf.c: New file.
61437         * lib/unistdio/u32-vsprintf.c: New file.
61438         * lib/unistdio/u32-u32-asnprintf.c: New file.
61439         * lib/unistdio/u32-u32-asprintf.c: New file.
61440         * lib/unistdio/u32-u32-snprintf.c: New file.
61441         * lib/unistdio/u32-u32-sprintf.c: New file.
61442         * lib/unistdio/u32-u32-vasnprintf.c: New file.
61443         * lib/unistdio/u32-u32-vasprintf.c: New file.
61444         * lib/unistdio/u32-u32-vsnprintf.c: New file.
61445         * lib/unistdio/u32-u32-vsprintf.c: New file.
61446         * tests/unistdio/test-ulc-asnprintf1.c: New file.
61447         * tests/unistdio/test-ulc-asnprintf1.h: New file.
61448         * tests/unistdio/test-ulc-printf1.h: New file.
61449         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
61450         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
61451         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
61452         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
61453         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
61454         * tests/unistdio/test-ulc-vasprintf1.c: New file.
61455         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
61456         * tests/unistdio/test-ulc-vsprintf1.c: New file.
61457         * tests/unistdio/test-u8-asnprintf1.c: New file.
61458         * tests/unistdio/test-u8-asnprintf1.h: New file.
61459         * tests/unistdio/test-u8-printf1.h: New file.
61460         * tests/unistdio/test-u8-vasnprintf1.c: New file.
61461         * tests/unistdio/test-u8-vasnprintf2.c: New file.
61462         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
61463         * tests/unistdio/test-u8-vasnprintf3.c: New file.
61464         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
61465         * tests/unistdio/test-u8-vasprintf1.c: New file.
61466         * tests/unistdio/test-u8-vsnprintf1.c: New file.
61467         * tests/unistdio/test-u8-vsprintf1.c: New file.
61468         * tests/unistdio/test-u16-asnprintf1.c: New file.
61469         * tests/unistdio/test-u16-asnprintf1.h: New file.
61470         * tests/unistdio/test-u16-printf1.h: New file.
61471         * tests/unistdio/test-u16-vasnprintf1.c: New file.
61472         * tests/unistdio/test-u16-vasnprintf2.c: New file.
61473         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
61474         * tests/unistdio/test-u16-vasnprintf3.c: New file.
61475         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
61476         * tests/unistdio/test-u16-vasprintf1.c: New file.
61477         * tests/unistdio/test-u16-vsnprintf1.c: New file.
61478         * tests/unistdio/test-u16-vsprintf1.c: New file.
61479         * tests/unistdio/test-u32-asnprintf1.c: New file.
61480         * tests/unistdio/test-u32-asnprintf1.h: New file.
61481         * tests/unistdio/test-u32-printf1.h: New file.
61482         * tests/unistdio/test-u32-vasnprintf1.c: New file.
61483         * tests/unistdio/test-u32-vasnprintf2.c: New file.
61484         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
61485         * tests/unistdio/test-u32-vasnprintf3.c: New file.
61486         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
61487         * tests/unistdio/test-u32-vasprintf1.c: New file.
61488         * tests/unistdio/test-u32-vsnprintf1.c: New file.
61489         * tests/unistdio/test-u32-vsprintf1.c: New file.
61490         * modules/unistdio/base: New file.
61491         * modules/unistdio/u-printf-args: New file.
61492         * modules/unistdio/ulc-asnprintf: New file.
61493         * modules/unistdio/ulc-asprintf: New file.
61494         * modules/unistdio/ulc-fprintf: New file.
61495         * modules/unistdio/ulc-printf-parse: New file.
61496         * modules/unistdio/ulc-snprintf: New file.
61497         * modules/unistdio/ulc-sprintf: New file.
61498         * modules/unistdio/ulc-vasnprintf: New file.
61499         * modules/unistdio/ulc-vasprintf: New file.
61500         * modules/unistdio/ulc-vfprintf: New file.
61501         * modules/unistdio/ulc-vsnprintf: New file.
61502         * modules/unistdio/ulc-vsprintf: New file.
61503         * modules/unistdio/u8-asnprintf: New file.
61504         * modules/unistdio/u8-asprintf: New file.
61505         * modules/unistdio/u8-printf-parse: New file.
61506         * modules/unistdio/u8-snprintf: New file.
61507         * modules/unistdio/u8-sprintf: New file.
61508         * modules/unistdio/u8-vasnprintf: New file.
61509         * modules/unistdio/u8-vasprintf: New file.
61510         * modules/unistdio/u8-vsnprintf: New file.
61511         * modules/unistdio/u8-vsprintf: New file.
61512         * modules/unistdio/u8-u8-asnprintf: New file.
61513         * modules/unistdio/u8-u8-asprintf: New file.
61514         * modules/unistdio/u8-u8-snprintf: New file.
61515         * modules/unistdio/u8-u8-sprintf: New file.
61516         * modules/unistdio/u8-u8-vasnprintf: New file.
61517         * modules/unistdio/u8-u8-vasprintf: New file.
61518         * modules/unistdio/u8-u8-vsnprintf: New file.
61519         * modules/unistdio/u8-u8-vsprintf: New file.
61520         * modules/unistdio/u16-asnprintf: New file.
61521         * modules/unistdio/u16-asprintf: New file.
61522         * modules/unistdio/u16-printf-parse: New file.
61523         * modules/unistdio/u16-snprintf: New file.
61524         * modules/unistdio/u16-sprintf: New file.
61525         * modules/unistdio/u16-vasnprintf: New file.
61526         * modules/unistdio/u16-vasprintf: New file.
61527         * modules/unistdio/u16-vsnprintf: New file.
61528         * modules/unistdio/u16-vsprintf: New file.
61529         * modules/unistdio/u16-u16-asnprintf: New file.
61530         * modules/unistdio/u16-u16-asprintf: New file.
61531         * modules/unistdio/u16-u16-snprintf: New file.
61532         * modules/unistdio/u16-u16-sprintf: New file.
61533         * modules/unistdio/u16-u16-vasnprintf: New file.
61534         * modules/unistdio/u16-u16-vasprintf: New file.
61535         * modules/unistdio/u16-u16-vsnprintf: New file.
61536         * modules/unistdio/u16-u16-vsprintf: New file.
61537         * modules/unistdio/u32-asnprintf: New file.
61538         * modules/unistdio/u32-asprintf: New file.
61539         * modules/unistdio/u32-printf-parse: New file.
61540         * modules/unistdio/u32-snprintf: New file.
61541         * modules/unistdio/u32-sprintf: New file.
61542         * modules/unistdio/u32-vasnprintf: New file.
61543         * modules/unistdio/u32-vasprintf: New file.
61544         * modules/unistdio/u32-vsnprintf: New file.
61545         * modules/unistdio/u32-vsprintf: New file.
61546         * modules/unistdio/u32-u32-asnprintf: New file.
61547         * modules/unistdio/u32-u32-asprintf: New file.
61548         * modules/unistdio/u32-u32-snprintf: New file.
61549         * modules/unistdio/u32-u32-sprintf: New file.
61550         * modules/unistdio/u32-u32-vasnprintf: New file.
61551         * modules/unistdio/u32-u32-vasprintf: New file.
61552         * modules/unistdio/u32-u32-vsnprintf: New file.
61553         * modules/unistdio/u32-u32-vsprintf: New file.
61554         * modules/unistdio/ulc-asnprintf-tests: New file.
61555         * modules/unistdio/ulc-vasnprintf-tests: New file.
61556         * modules/unistdio/ulc-vasprintf-tests: New file.
61557         * modules/unistdio/ulc-vsnprintf-tests: New file.
61558         * modules/unistdio/ulc-vsprintf-tests: New file.
61559         * modules/unistdio/u8-asnprintf-tests: New file.
61560         * modules/unistdio/u8-vasnprintf-tests: New file.
61561         * modules/unistdio/u8-vasprintf-tests: New file.
61562         * modules/unistdio/u8-vsnprintf-tests: New file.
61563         * modules/unistdio/u8-vsprintf-tests: New file.
61564         * modules/unistdio/u16-asnprintf-tests: New file.
61565         * modules/unistdio/u16-vasnprintf-tests: New file.
61566         * modules/unistdio/u16-vasprintf-tests: New file.
61567         * modules/unistdio/u16-vsnprintf-tests: New file.
61568         * modules/unistdio/u16-vsprintf-tests: New file.
61569         * modules/unistdio/u32-asnprintf-tests: New file.
61570         * modules/unistdio/u32-vasnprintf-tests: New file.
61571         * modules/unistdio/u32-vasprintf-tests: New file.
61572         * modules/unistdio/u32-vsnprintf-tests: New file.
61573         * modules/unistdio/u32-vsprintf-tests: New file.
61574         * MODULES.html.sh (Unicode string functions): Add the new modules.
61575
61576 2007-07-01  Bruno Haible  <bruno@clisp.org>
61577
61578         * lib/sprintf.c (sprintf): Limit the available length estimation,
61579         to avoid address wraparound.
61580         * lib/vsprintf.c (vsprintf): Likewise.
61581         * modules/sprintf-posix (Dependencies): Add stdint.
61582         * modules/vsprintf-posix (Dependencies): Likewise.
61583
61584 2007-07-01  Bruno Haible  <bruno@clisp.org>
61585
61586         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
61587         Windows PATH as well. Conservative double-quoting. Comments.
61588
61589 2007-07-01  Bruno Haible  <bruno@clisp.org>
61590             Eric Blake  <ebb9@byu.net>
61591             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61592
61593         * gnulib-tool (self_abspathname): Fix algorithm to cope with
61594         empty components in $PATH, denoting '.'.
61595
61596 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61597
61598         * gnulib-tool: Fix indentation.
61599         (func_create_megatestdir): Likewise.
61600         Report by Bruno Haible.
61601
61602 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61603
61604         Sync from Automake.
61605         * build-aux/gnupload: Fix shell portability issues with for loops.
61606         Report by Karl Berry.
61607
61608 2007-06-29  Simon Josefsson  <simon@josefsson.org>
61609
61610         * build-aux/maint.mk (POURL): Use translationproject.org.
61611
61612 2007-06-27  Simon Josefsson  <simon@josefsson.org>
61613             Bruno Haible  <bruno@clisp.org>
61614
61615         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
61616         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
61617         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
61618         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
61619         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
61620
61621 2007-06-27  Bruno Haible  <bruno@clisp.org>
61622
61623         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
61624         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
61625
61626 2007-06-26  Karl Berry  <karl@gnu.org>
61627
61628         * MODULES.html.sh: remove xreadlink-with-size.
61629
61630 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
61631
61632         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
61633         method that I hope also handles the double-include problem noted
61634         by Bruno Haible in
61635         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
61636
61637 2007-06-23  Bruno Haible  <bruno@clisp.org>
61638
61639         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
61640         Don't let the 'mostlyclean' target fail if the last subdirectory could
61641         not be removed.
61642         Reported by Karl Berry.
61643
61644 2007-06-23  Bruno Haible  <bruno@clisp.org>
61645
61646         * gnulib-tool (echo): Add a speedier workaround for ksh.
61647         * tests/test-echo.sh: Likewise.
61648
61649 2007-06-23  Bruno Haible  <bruno@clisp.org>
61650
61651         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
61652         * tests/test-echo.sh: Likewise.
61653
61654 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61655
61656         * gnulib-tool (IFS): Initialize early, so we don't set it to
61657         empty later.
61658         (self_abspathname): Rewrite algorithm to set it, reindent.
61659         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
61660         (func_create_megatestdir): Merge some sed scripts.
61661
61662 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
61663
61664         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
61665         exposed by Sun Studio 11 cc on Solaris 8.
61666
61667 2007-06-22  Bruno Haible  <bruno@clisp.org>
61668
61669         * gnulib-tool (echo): Ensure the echo primitive does not interpret
61670         backslashes.
61671         * tests/test-echo.sh: New file.
61672
61673 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61674
61675         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
61676         simplify `sed_replace_build_aux' scripts, they are portable but
61677         echoing them with `echo' is not.
61678         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
61679
61680 2007-06-21  Karl Berry  <karl@gnu.org>
61681
61682         * config/srclist.txt: guess we can't handle the licenses via
61683         srclist at the moment.
61684
61685 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
61686
61687         * MODULES.html.sh: Add include_next.
61688         * modules/include_next: New file.
61689
61690 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
61691
61692         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
61693         INCLUDE_NEXT.
61694         (gl_CHECK_NEXT_HEADERS): New macro.
61695         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
61696         the obsolescent gl_ABSOLUTE_HEADER.
61697         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
61698         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
61699         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
61700         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
61701         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
61702         * m4/math_h.m4 (gl_MATH_H): Likewise.
61703         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
61704         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
61705         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
61706         * m4/stdint.m4 (gl_STDINT_H): Likewise.
61707         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
61708         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
61709         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
61710         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
61711         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
61712         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
61713         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
61714         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
61715         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
61716         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
61717         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
61718         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
61719         * m4/inttypes.m4 (gl_INTTYPES_H): Define
61720         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
61721         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
61722         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
61723         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
61724         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
61725         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
61726         * lib/float_.h: Likewise.
61727         * lib/inttypes_.h: Likewise.
61728         * lib/math_.h: Likewise.
61729         * lib/search_.h: Likewise.
61730         * lib/signal_.h: Likewise.
61731         * lib/stdint_.h: Likewise.
61732         * lib/stdio_.h: Likewise.
61733         * lib/stdlib_.h: Likewise.
61734         * lib/string_.h: Likewise.
61735         * lib/sys_stat_.h: Likewise.
61736         * lib/sys_time_.h: Likewise.
61737         * lib/time_.h: Likewise.
61738         * lib/unistd_.h: Likewise.
61739         * lib/wchar_.h: Likewise.
61740         * lib/wctype_.h: Likewise.
61741         * lib/dirent_.h: Likewise.
61742         * lib/iconv_.h: Likewise.
61743         * lib/locale_.h: Likewise.
61744         * lib/netinet_in_.h: Likewise.
61745         * lib/sys_select_.h: Likewise.
61746         * lib/sys_socket_.h: Likewise.
61747         * lib/sysexits_.h: Likewise.
61748         * modules/fcntl (Depends-on): Depend on include_next, not
61749         absolute_header.
61750         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
61751         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
61752         * modules/fchdir: Likewise.
61753         * modules/float: Likewise.
61754         * modules/iconv_open: Likewise.
61755         * modules/inttypes: Likewise.
61756         * modules/locale: Likewise.
61757         * modules/math: Likewise.
61758         * modules/netinet_in: Likewise.
61759         * modules/search: Likewise.
61760         * modules/signal: Likewise.
61761         * modules/stdint: Likewise.
61762         * modules/stdio: Likewise.
61763         * modules/stdlib: Likewise.
61764         * modules/string: Likewise.
61765         * modules/sys_select: Likewise.
61766         * modules/sys_socket: Likewise.
61767         * modules/sys_stat: Likewise.
61768         * modules/sys_time: Likewise.
61769         * modules/sysexits: Likewise.
61770         * modules/time: Likewise.
61771         * modules/unistd: Likewise.
61772         * modules/wchar: Likewise.
61773         * modules/wctype: Likewise.
61774         * modules/sys_stat: Change maintainer to "all".
61775         * modules/unistd: Likewise.
61776
61777 2007-06-20  Karl Berry  <karl@gnu.org>
61778
61779         * config/srclist.txt: track www changes in license files.
61780
61781 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
61782
61783         * build-aux/bootstrap: Remove stray dot.
61784         Make sure build_aux settings are honored when linking
61785         gnulib_extra_files.
61786
61787 2007-06-19  Eric Blake  <ebb9@byu.net>
61788
61789         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
61790         Allow compilation on cygwin.
61791
61792 2007-06-19  Jim Meyering  <jim@meyering.net>
61793
61794         xreadlink-with-size: Remove module.  No longer used.
61795         Ex-callers now use xreadlink or mreadlink-with-size.
61796         * modules/xreadlink-with-size: Remove module.
61797         * lib/xreadlink-with-size.c: Remove file.
61798         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
61799         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
61800         just before the function definition *is* accurate.
61801
61802         Eliminate one way canonicalize_filename_mode could exit.
61803         * lib/canonicalize.c (canonicalize_filename_mode):
61804         Use mreadlink_with_size, not xreadlink_with_size.
61805
61806 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
61807
61808         Detect porting problems to FreeBSD/arm, which has time_t wider than
61809         long int.  Original problem reported for GNU diff by Xin Li in
61810         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
61811         * modules/getdate (Depends-on): Add intprops, verify.
61812         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
61813         is an integer type no wider than long int.
61814
61815 2007-06-18  Jim Meyering  <jim@meyering.net>
61816
61817         New module: mreadlink-with-size.
61818         * MODULES.html.sh: Add mreadlink-with-size.
61819         * modules/mreadlink-with-size: New module
61820         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
61821         not xreadlink-with-size.
61822         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
61823
61824 2007-06-16  Bruno Haible  <bruno@clisp.org>
61825
61826         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
61827         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
61828         Reported by Gary V. Vaughan <gary@gnu.org>.
61829
61830 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
61831
61832         Revamp lchown so that it lives in unistd.h where it belongs.
61833         * lib/lchown.h: Remove.
61834         * lib/dirchownmod.c: Don't include lib/lchown.h.
61835         * lib/fchownat.c: Likewise.
61836         * lib/openat.c: Likewise.
61837         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
61838         does not follow symlinks.
61839         (EOPNOTSUPP): Define if not defined.
61840         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
61841         is defined to 0.
61842         (lchown): New decl.
61843         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
61844         Do not check for lchown decl.
61845         Set REPLACE_LCHOWN.
61846         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
61847         REPLACE_LCHOWN.
61848         * modules/chown: Make it clear it follows symlinks.
61849         * modules/lchown: Make it clear it doesn't follow symlinks.
61850         (Files): Remove lib/lchown.h
61851         (Depends-on): Add unistd.
61852         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
61853         (Include): Include <unistd.h>, not "lchown.h".
61854         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
61855         REPLACE_LCHOWN.
61856
61857 2007-06-15  Jim Meyering  <jim@meyering.net>
61858
61859         Change license (GPL to LGPL) of fsusage and dependents.
61860         * modules/fsusage (License): Change to LGPL.
61861         * modules/full-read (License): Likewise.
61862         * modules/full-write (License): Likewise.
61863         * modules/safe-read (License): Likewise.
61864         * modules/safe-write (License): Likewise.
61865
61866 2007-06-14  Ben Pfaff  <blp@gnu.org>
61867
61868         Missing part of allocsa -> malloca transition.
61869         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
61870         gl_MALLOCA.
61871
61872 2007-06-12  Bruno Haible  <bruno@clisp.org>
61873
61874         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
61875         to ia64, x86_64, i386.
61876         Reported by Eric Blake.
61877
61878 2007-06-12  Bruno Haible  <bruno@clisp.org>
61879
61880         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
61881         cross-compiling to x86_64.
61882
61883 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
61884
61885         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
61886         glitch reported by Ralf Wildenhues in
61887         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
61888
61889         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
61890         Vin Shelton.
61891
61892 2007-06-11  Bruno Haible  <bruno@clisp.org>
61893
61894         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
61895         replacement string.
61896         Reported by Eric Blake.
61897
61898 2007-06-10  Bruno Haible  <bruno@clisp.org>
61899
61900         Prepare vasnprintf code for use with Unicode strings.
61901         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
61902         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
61903         TYPE_U32_STRING.
61904         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
61905         a_u32_string variants.
61906         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
61907         * lib/printf-args.c: Don't include config.h and the specification
61908         header if PRINTF_FETCHARGS is already defined.
61909         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
61910         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
61911         TYPE_U16_STRING, TYPE_U32_STRING.
61912         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
61913         u16_directive, u16_directives, u32_directive, u32_directives): New
61914         types.
61915         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
61916         New declarations.
61917         * lib/printf-parse.c: Don't include config.h and the specification
61918         header if PRINTF_PARSE is already defined. Eliminate the set of
61919         parameters for WIDE_CHAR_VERSION; the user of this file must provide
61920         them now. Include c-ctype.h.
61921         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
61922         directive and CHAR_T_ONLY_ASCII.
61923         * lib/vasnprintf.c: Don't include config.h and the specification header
61924         if VASNPRINTF is already defined.
61925         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
61926         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
61927         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
61928         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
61929         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
61930         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
61931         code accordingly.
61932         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
61933         pad_ourselves also in this case, with the 'c' and 's' directives, and
61934         with a different notion of "width".
61935         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
61936
61937 2007-06-10  Bruno Haible  <bruno@clisp.org>
61938
61939         * modules/unistr/u32-mbsnlen: New file.
61940         * lib/unistr/u32-mbsnlen.c: New file.
61941
61942         * modules/unistr/u16-mbsnlen: New file.
61943         * lib/unistr/u16-mbsnlen.c: New file.
61944
61945         * modules/unistr/u8-mbsnlen: New file.
61946         * lib/unistr/u8-mbsnlen.c: New file.
61947
61948         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
61949         declarations.
61950
61951 2007-06-10  Bruno Haible  <bruno@clisp.org>
61952
61953         * lib/string_.h (mbsnlen): New declaration.
61954         * lib/mbsnlen.c: New file.
61955         * m4/mbsnlen.m4: New file.
61956         * modules/mbsnlen: New file.
61957         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
61958         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
61959         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
61960
61961 2007-06-10  Bruno Haible  <bruno@clisp.org>
61962
61963         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
61964
61965 2007-06-10  Bruno Haible  <bruno@clisp.org>
61966
61967         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
61968         * lib/mbuiter.h: Likewise.
61969
61970 2007-06-10  Bruno Haible  <bruno@clisp.org>
61971
61972         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
61973         declaration.
61974
61975 2007-06-10  Karl Berry  <karl@gnu.org>
61976
61977         * config/srclist.txt: remove gettext entries, Bruno prefers
61978         to update individually.
61979
61980 2007-06-10  Bruno Haible  <bruno@clisp.org>
61981
61982         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
61983         'maxlen'. Ensure only length + width bytes are allocated, not
61984         length + 1 + width.
61985
61986 2007-06-09  Bruno Haible  <bruno@clisp.org>
61987
61988         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
61989         (CHAR_T): Remove macro.
61990         (VASNPRINTF): Update.
61991
61992 2007-06-09  Bruno Haible  <bruno@clisp.org>
61993
61994         * MODULES.html.sh (Unicode string functions): Add the new modules.
61995
61996         * modules/uniconv/u32-conv-to-enc: New file.
61997         * lib/uniconv/u32-conv-to-enc.c: New file.
61998         * modules/uniconv/u32-conv-to-enc-tests: New file.
61999         * tests/uniconv/test-u32-conv-to-enc.c: New file.
62000
62001         * modules/uniconv/u16-conv-to-enc: New file.
62002         * lib/uniconv/u16-conv-to-enc.c: New file.
62003         * lib/uniconv/u-conv-to-enc.h: New file.
62004         * modules/uniconv/u16-conv-to-enc-tests: New file.
62005         * tests/uniconv/test-u16-conv-to-enc.c: New file.
62006
62007         * modules/uniconv/u8-conv-to-enc: New file.
62008         * lib/uniconv/u8-conv-to-enc.c: New file.
62009         * modules/uniconv/u8-conv-to-enc-tests: New file.
62010         * tests/uniconv/test-u8-conv-to-enc.c: New file.
62011
62012         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
62013         u32_conv_to_encoding): New declarations.
62014
62015 2007-06-09  Bruno Haible  <bruno@clisp.org>
62016
62017         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
62018
62019 2007-06-09  Bruno Haible  <bruno@clisp.org>
62020
62021         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
62022         * modules/malloca: Renamed from modules/allocsa, updated.
62023         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
62024         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
62025         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
62026         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
62027         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
62028         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
62029         * modules/xmalloca: Renamed from modules/xallocsa, updated.
62030         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
62031         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
62032         * modules/c-strcasestr (Depends-on): Update.
62033         * lib/c-strcasestr.c: Update.
62034         * modules/c-strstr (Depends-on): Update.
62035         * lib/c-strstr.c: Update.
62036         * modules/canonicalize-lgpl (Depends-on): Update.
62037         * lib/canonicalize-lgpl.c: Update.
62038         * modules/clean-temp (Depends-on): Update.
62039         * lib/clean-temp.c: Update.
62040         * modules/csharpcomp (Depends-on): Update.
62041         * lib/csharpcomp.c: Update.
62042         * modules/csharpexec (Depends-on): Update.
62043         * lib/csharpexec.c: Update.
62044         * modules/javacomp (Depends-on): Update.
62045         * lib/javacomp.c: Update.
62046         * modules/javaexec (Depends-on): Update.
62047         * lib/javaexec.c: Update.
62048         * modules/mbscasestr (Depends-on): Update.
62049         * lib/mbscasestr.c: Update.
62050         * modules/mbsstr (Depends-on): Update.
62051         * lib/mbsstr.c: Update.
62052         * modules/setenv (Depends-on): Update.
62053         * lib/setenv.c: Update.
62054         * modules/strcasestr (Depends-on): Update.
62055         * lib/strcasestr.c: Update.
62056         * modules/striconveha (Depends-on): Update.
62057         * lib/striconveha.c: Update.
62058         * modules/relocatable-prog-wrapper (Files): Update.
62059         * lib/relocwrapper.c: Update.
62060         * build-aux/install-reloc: Update.
62061         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
62062
62063 2007-06-08  Bruno Haible  <bruno@clisp.org>
62064
62065         Port to uClibc.
62066         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
62067         * lib/fpurge.c (fpurge): Likewise.
62068         * lib/freading.c (freading): Likewise.
62069         * lib/fseeko.c (rpl_fseeko): Likewise.
62070         * lib/fseterr.c (fseterr): Likewise.
62071         * lib/fwriting.c (fwriting): Likewise.
62072         * tests/test-fflush.c (main): Avoid a failure on uClibc.
62073
62074 2007-06-08  Bruno Haible  <bruno@clisp.org>
62075
62076         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
62077         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
62078         * modules/gettext (Files): Add m4/intlmacosx.m4.
62079
62080 2007-06-07  Bruno Haible  <bruno@clisp.org>
62081
62082         * modules/localename-tests: New file.
62083         * tests/test-localename.c: New file.
62084
62085         New module 'localename'.
62086         * lib/localename.h: New file.
62087         * lib/localename.c: New file, from GNU gettext.
62088         * m4/localename.m4: New file.
62089         * modules/localename: New file.
62090
62091 2007-06-07  Bruno Haible  <bruno@clisp.org>
62092
62093         Work around the lack of <wchar.h> on some builds of uClibc.
62094         * doc/headers/wchar.texi: Update.
62095         * lib/wchar_.h: Include <wchar.h> only if it exists.
62096         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
62097         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
62098         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
62099         doesn't exist.
62100         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
62101         * modules/mbfile (Depends-on): Add wchar.
62102         * modules/mbiter (Depends-on): Likewise.
62103         * modules/mbuiter (Depends-on): Likewise.
62104         Reported by Simon Josefsson.
62105
62106 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
62107
62108         Work around problem reported by Steven M. Schweda in
62109         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
62110         Tru64 5.1B with the Compaq compiler environment installed declares
62111         an 'isblank' function but does not define it in the C library.
62112         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
62113         * lib/regex_internal.h (isblank): Likewise.
62114         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
62115         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
62116
62117 2007-06-05  Bruno Haible  <bruno@clisp.org>
62118
62119         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
62120         ia64.
62121         * modules/printf-safe: New file.
62122         * modules/fprintf-posix (Depends-on): Add printf-safe.
62123         * modules/printf-posix (Depends-on): Likewise.
62124         * modules/snprintf-posix (Depends-on): Likewise.
62125         * modules/sprintf-posix (Depends-on): Likewise.
62126         * modules/vasnprintf-posix (Depends-on): Likewise.
62127         * modules/vasprintf-posix (Depends-on): Likewise.
62128         * modules/vfprintf-posix (Depends-on): Likewise.
62129         * modules/vprintf-posix (Depends-on): Likewise.
62130         * modules/vsnprintf-posix (Depends-on): Likewise.
62131         * modules/vsprintf-posix (Depends-on): Likewise.
62132         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
62133         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
62134         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
62135         "no" on i386, x86_64, ia64.
62136         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
62137         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
62138         on i386, x86_64, ia64.
62139         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
62140         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
62141         on i386, x86_64, ia64.
62142         * tests/test-vasnprintf-posix.c: Include float.h.
62143         (LDBL80_WORDS): New macro.
62144         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
62145         on i386, x86_64, ia64.
62146         * tests/test-vasprintf-posix.c: Include float.h.
62147         (LDBL80_WORDS): New macro.
62148         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
62149         on i386, x86_64, ia64.
62150         * tests/test-snprintf-posix.c: Include float.h.
62151         * tests/test-sprintf-posix.c: Likewise.
62152         * tests/test-vsnprintf-posix.c: Likewise.
62153         * tests/test-vsprintf-posix.c: Likewise.
62154
62155 2007-06-05  Bruno Haible  <bruno@clisp.org>
62156
62157         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
62158         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
62159         non-IEEE numbers on i386, x86_64, ia64.
62160         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
62161         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
62162         * tests/test-isnanl.h: Include float.h.
62163         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
62164
62165 2007-06-05  Bruno Haible  <bruno@clisp.org>
62166
62167         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
62168         also the %a / %A. Handle the %a / %A code before this extra handling.
62169
62170 2007-06-05  Bruno Haible  <bruno@clisp.org>
62171
62172         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
62173         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
62174
62175 2007-06-05  Bruno Haible  <bruno@clisp.org>
62176
62177         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
62178         typo in variable name.
62179
62180 2007-06-05  Eric Blake  <ebb9@byu.net>
62181
62182         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
62183         Reported by Simon Josefsson.
62184
62185 2007-06-04  Bruno Haible  <bruno@clisp.org>
62186
62187         Avoid test failures on some PowerPC platforms.
62188         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
62189         Define differently for PowerPC.
62190         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
62191         Reported by Gary V. Vaughan <gary@gnu.org>.
62192
62193 2007-06-02  Bruno Haible  <bruno@clisp.org>
62194
62195         Fix test-stdint failure on FreeBSD/ia64.
62196         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
62197         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
62198         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
62199         * doc/headers/stdint.texi: Update.
62200
62201 2007-06-01  Bruno Haible  <bruno@clisp.org>
62202
62203         * tests/test-binary-io.c (main): Pass a third argument to open().
62204         Reported by Gary V. Vaughan <gary@gnu.org>.
62205
62206 2007-06-01  Bruno Haible  <bruno@clisp.org>
62207
62208         * doc/functions/frexpl.texi: Update for mingw.
62209
62210 2007-06-01  Bruno Haible  <bruno@clisp.org>
62211
62212         * tests/test-lseek.c (main): Disable test of errno for invalid third
62213         argument.
62214         * doc/functions/lseek.texi: Update.
62215         Reported by Gary V. Vaughan <gary@gnu.org>.
62216
62217 2007-05-28  Bruno Haible  <bruno@clisp.org>
62218
62219         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
62220
62221 2007-05-31  Eric Blake  <ebb9@byu.net>
62222
62223         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
62224         cross compiling.
62225
62226 2007-05-30  Eric Blake  <ebb9@byu.net>
62227         and Bruno Haible  <bruno@clisp.org>
62228
62229         Work around mingw test failures exposed by m4-1.4.9b.
62230         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
62231         * tests/test-unistd.c: Disable uid_t and git_t tests for the
62232         moment.
62233
62234 2007-05-30  Bruno Haible  <bruno@clisp.org>
62235
62236         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
62237         assuming that they are closed. Needed on HP-UX 11.
62238
62239 2007-05-29  Bruno Haible  <bruno@clisp.org>
62240
62241         Fix a problem with #include_next.
62242         * lib/dirent_.h: Split the double-inclusion guard.
62243         * lib/fcntl_.h: Likewise.
62244         * lib/float_.h: Likewise.
62245         * lib/iconv_.h: Likewise.
62246         * lib/inttypes_.h: Likewise.
62247         * lib/locale_.h: Likewise.
62248         * lib/math_.h: Likewise.
62249         * lib/netinet_in_.h: Likewise.
62250         * lib/search_.h: Likewise.
62251         * lib/signal_.h: Likewise.
62252         * lib/stdint_.h: Likewise.
62253         * lib/stdio_.h: Likewise.
62254         * lib/stdlib_.h: Likewise.
62255         * lib/string_.h: Likewise.
62256         * lib/sys_select_.h: Likewise.
62257         * lib/sys_socket_.h: Likewise.
62258         * lib/sys_stat_.h: Likewise.
62259         * lib/sys_time_.h: Likewise.
62260         * lib/sysexits_.h: Likewise.
62261         * lib/time_.h: Likewise.
62262         * lib/unistd_.h: Likewise.
62263         * lib/wchar_.h: Likewise.
62264         * lib/wctype_.h: Likewise.
62265
62266 2007-05-29  Bruno Haible  <bruno@clisp.org>
62267
62268         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
62269         for the moment.
62270
62271 2007-05-29  Bruno Haible  <bruno@clisp.org>
62272
62273         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
62274         invocation.
62275         Reported by Eric Blake.
62276
62277 2007-05-29  Bruno Haible  <bruno@clisp.org>
62278
62279         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
62280         compiling case.
62281
62282 2007-05-29  Eric Blake  <ebb9@byu.net>
62283             Bruno Haible  <bruno@clisp.org>
62284
62285         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
62286         cross compiles.
62287
62288 2007-05-28  Eric Blake  <ebb9@byu.net>
62289
62290         * modules/closein-tests (test_closein_LDADD): Support test on
62291         cygwin with libtool.
62292
62293 2007-05-28  Bruno Haible  <bruno@clisp.org>
62294
62295         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
62296         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
62297         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
62298         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
62299         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
62300         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
62301         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
62302         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
62303         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
62304
62305 2007-05-28  Eric Blake  <ebb9@byu.net>
62306
62307         Unconditionally include <config.h> in unit tests.
62308         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
62309         * tests/test-allocsa.c, tests/test-arcfour.c,
62310         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
62311         tests/test-array_list.c, tests/test-array_oset.c,
62312         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
62313         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
62314         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
62315         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
62316         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
62317         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
62318         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
62319         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
62320         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
62321         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
62322         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
62323         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
62324         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
62325         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
62326         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
62327         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
62328         test-md5.c, test-memmem.c, test-printf-posix.c,
62329         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
62330         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
62331         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
62332         test-strcasestr.c, test-striconv.c, test-striconveh.c,
62333         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
62334         test-vasnprintf-posix2.c, test-vasnprintf.c,
62335         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
62336         test-vfprintf-posix.c, test-vprintf-posix.c,
62337         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
62338         test-xvasprintf.c: Likewise.
62339
62340 2007-05-28  Bruno Haible  <bruno@clisp.org>
62341
62342         * gnulib-tool (func_import): Remember the --with-tests command-line
62343         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
62344         Reported by Eric Blake.
62345
62346 2007-05-28  Bruno Haible  <bruno@clisp.org>
62347
62348         * modules/ftell-tests: New file.
62349         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
62350         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
62351
62352         * lib/ftell.c: New file.
62353         * modules/ftell: New file.
62354         * m4/ftell.m4: New file.
62355         * doc/functions/ftell.texi: Update.
62356         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
62357         REPLACE_FTELL.
62358         * lib/stdio_.h (rpl_ftell): New declaration.
62359         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
62360         REPLACE_FTELL.
62361
62362 2007-05-28  Eric Blake  <ebb9@byu.net>
62363
62364         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
62365
62366 2007-05-28  Bruno Haible  <bruno@clisp.org>
62367
62368         * modules/fseek-tests: New file.
62369         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
62370         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
62371
62372         * lib/fseek.c: New file.
62373         * modules/fseek: New file.
62374         * m4/fseek.m4: New file.
62375         * doc/functions/fseek.texi: Update.
62376         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
62377         REPLACE_FSEEK.
62378         * lib/stdio_.h (rpl_fseek): New declaration.
62379         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
62380         REPLACE_FSEEK.
62381
62382 2007-05-28  Bruno Haible  <bruno@clisp.org>
62383
62384         * lib/stdio_.h (fflush): More comments.
62385
62386 2007-05-28  Bruno Haible  <bruno@clisp.org>
62387
62388         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
62389         runtime test.
62390
62391 2007-05-28  Eric Blake  <ebb9@byu.net>
62392
62393         Improve lseek module.
62394         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
62395         * lib/unistd_.h (lseek): Scale back link warning message.
62396         * tests/test-lseek.c: Beef up test.
62397         * tests/test-lseek.sh: Exercise more facets of lseek.
62398         Reported by Bruno Haible.
62399
62400 2007-05-28  Bruno Haible  <bruno@clisp.org>
62401
62402         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
62403         to define.
62404
62405 2007-05-27  Bruno Haible  <bruno@clisp.org>
62406
62407         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
62408
62409 2007-05-27  Bruno Haible  <bruno@clisp.org>
62410
62411         * modules/openmp: New file.
62412         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
62413         Noah Misch.
62414
62415 2007-05-26  Bruno Haible  <bruno@clisp.org>
62416
62417         * modules/chdir-long (Depends-on): Add fchdir.
62418         * modules/chdir-safer (Depends-on): Likewise.
62419         * modules/fts (Depends-on): Likewise.
62420         * modules/fts-lgpl (Depends-on): Likewise.
62421         * modules/openat (Depends-on): Likewise.
62422         * modules/savewd (Depends-on): Likewise.
62423
62424 2007-05-24  Eric Blake  <ebb9@byu.net>
62425
62426         Fix lseek on mingw.
62427         * modules/lseek: New module.
62428         * m4/lseek.m4: New file.
62429         * lib/lseek.c: New file.
62430         * modules/lseek-tests: New file.
62431         * tests/test-lseek.c: New file.
62432         * tests/test-lseek.sh: New file.
62433         * MODULES.html.sh: Document lseek module.
62434         * modules/fflush (Depends-on): Add lseek, fseeko.
62435         * modules/fseeko (Depends-on): Likewise.
62436         * modules/ftello (Depends-on): Likewise.
62437         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
62438         broken.
62439         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
62440         broken.
62441         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
62442         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
62443         * lib/ftello.c (rpl_ftello): Likewise.
62444         * tests/test-fseeko.c (main): Test this.
62445         * tests/test-fseeko.sh: Likewise.
62446         * tests/test-ftello.c (main): Likewise.
62447         * tests/test-ftello.sh: Likewise.
62448         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
62449         implies replacing fseek.
62450         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
62451         HAVE_FTELLO.
62452         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
62453         * modules/unistd (Makefile.am): Likewise.
62454         * lib/unistd_.h (lseek): Declare a replacement.
62455         * doc/functions/lseek.texi (lseek): Document this fix.
62456         * doc/functions/fseek.texi (fseek): Likewise.
62457         * doc/functions/ftell.texi (ftell): Likewise.
62458
62459 2007-05-24  Bruno Haible  <bruno@clisp.org>
62460
62461         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
62462         in the printed representation of a NaN.
62463         * tests/test-vasprintf-posix.c (test_function): Likewise.
62464         * tests/test-snprintf-posix.h (test_function): Likewise.
62465         * tests/test-sprintf-posix.h (test_function): Likewise.
62466         Reported by Eric Blake.
62467
62468 2007-05-23  Eric Blake  <ebb9@byu.net>
62469
62470         Fix fseeko/ftello on cygwin 1.5.24.
62471         * doc/functions/fseeko.texi (fseeko): Document the fix.
62472         * doc/functions/ftello.texi (ftello): Document the fix.
62473         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
62474         * doc/functions/stdout.text (stdout): New file.
62475         * doc/functions/stderr.text (stderr): New file.
62476         * doc/gnulib.texi (Function Substitutes): Use new files.
62477         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
62478         prior to 1.7.0.
62479         * tests/test-ftello.c (main): Likewise for ftello.
62480         * tests/test-fseeko.sh: New file.
62481         * tests/test-ftello.sh: New file.
62482         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
62483         with seekable stdin.
62484         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
62485         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
62486         (gl_REPLACE_FSEEKO): New macro.
62487         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
62488         * modules/fseeko (Files): Distribute fseeko.c.
62489         * modules/ftello (Files): Distribute ftello.c.
62490         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
62491         mode.
62492         * lib/ftello.c (rpl_ftello): New file.
62493         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
62494         fseeko, ftello.
62495         (gl_STDIN_LARGE_OFFSET): New macro.
62496         * modules/stdio (Makefile.am): Perform the replacement.
62497         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
62498
62499 2007-05-23  Bruno Haible  <bruno@clisp.org>
62500
62501         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
62502         GNULIB_POSIXCHECK is defined.
62503
62504 2007-05-21  Bruno Haible  <bruno@clisp.org>
62505
62506         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
62507         Check also the output for NaN arguments. When cross-compiling, guess
62508         no on IRIX.
62509         * lib/vasnprintf.c: Update comments.
62510         * tests/test-vasnprintf-posix.c (strisnan): New function.
62511         (test_function): Use it.
62512         * tests/test-vasprintf-posix.c (strisnan): New function.
62513         (test_function): Use it.
62514         * tests/test-snprintf-posix.h (strisnan): New function.
62515         (test_function): Use it.
62516         * tests/test-sprintf-posix.h (strisnan): New function.
62517         (test_function): Use it.
62518         Reported by Eric Blake.
62519
62520 2007-05-20  Bruno Haible  <bruno@clisp.org>
62521
62522         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
62523         numbers that fails on BeOS.
62524         * doc/functions/frexpl.texi: Update.
62525
62526 2007-05-20  Jim Meyering  <jim@meyering.net>
62527
62528         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
62529         forced upon us by glibc-2.6.
62530
62531 2007-05-20  Bruno Haible  <bruno@clisp.org>
62532
62533         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
62534         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
62535         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
62536         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
62537         NEED_PRINTF_INFINITE.
62538         (is_infinitel): New function.
62539         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
62540         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
62541         gl_PREREQ_VASNPRINTF_INFINITE.
62542         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
62543         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
62544         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
62545         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
62546         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
62547         gl_PREREQ_VASNPRINTF_INFINITE.
62548         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
62549         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
62550         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
62551         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
62552         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
62553         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
62554         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
62555         * doc/functions/fprintf.texi: Update.
62556         * doc/functions/printf.texi: Update.
62557         * doc/functions/snprintf.texi: Update.
62558         * doc/functions/sprintf.texi: Update.
62559         * doc/functions/vfprintf.texi: Update.
62560         * doc/functions/vprintf.texi: Update.
62561         * doc/functions/vsnprintf.texi: Update.
62562         * doc/functions/vsprintf.texi: Update.
62563
62564 2007-05-20  Bruno Haible  <bruno@clisp.org>
62565
62566         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
62567         was not found in libc.
62568         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
62569
62570 2007-05-20  Bruno Haible  <bruno@clisp.org>
62571
62572         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
62573         printed as "-nan" instead of "nan".
62574         * tests/test-vasprintf-posix.c (test_function): Likewise.
62575         * tests/test-snprintf-posix.h (test_function): Likewise.
62576         * tests/test-sprintf-posix.h (test_function): Likewise.
62577         Needed for HP-UX 11.
62578
62579 2007-05-20  Jim Meyering  <jim@meyering.net>
62580
62581         Fix buggy test for the fchownat-deref bug.
62582         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
62583         symlink required for the run-test.  Without it, this test would
62584         always declare that fchownat doesn't work, and client code would
62585         unnecessarily use the replacement function with fixed libc.
62586         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
62587         Reported by Greg Schafer.
62588
62589 2007-05-19  Bruno Haible  <bruno@clisp.org>
62590
62591         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
62592         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
62593         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
62594         Needed for IRIX 6.5 and Solaris 2.5.1.
62595
62596 2007-05-19  Bruno Haible  <bruno@clisp.org>
62597
62598         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
62599         (test_function): Skip tests involving -0.0 on platforms where
62600         -0.0 = 0.0.
62601         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
62602         (test_function): Skip tests involving -0.0 on platforms where
62603         -0.0 = 0.0.
62604         * tests/test-snprintf-posix.h (have_minus_zero): New function.
62605         (test_function): Skip tests involving -0.0 on platforms where
62606         -0.0 = 0.0.
62607         * tests/test-sprintf-posix.h (have_minus_zero): New function.
62608         (test_function): Skip tests involving -0.0 on platforms where
62609         -0.0 = 0.0.
62610         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
62611         tests.
62612         * tests/test-printf-posix.h (test_function): Likewise.
62613         * tests/test-printf-posix.output: Remove all -0.0 related results.
62614         Needed for IRIX 6.5.
62615
62616 2007-05-19  Bruno Haible  <bruno@clisp.org>
62617
62618         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
62619         printed as "nan0x7fffffff" instead of "nan".
62620         * tests/test-vasprintf-posix.c (test_function): Likewise.
62621         * tests/test-snprintf-posix.h (test_function): Likewise.
62622         * tests/test-sprintf-posix.h (test_function): Likewise.
62623         * tests/test-fprintf-posix.h (NaN): Remove macro.
62624         (test_function): Remove all NaN related tests.
62625         * tests/test-printf-posix.h (NaN): Remove macro.
62626         (test_function): Remove all NaN related tests.
62627         * tests/test-printf-posix.output: Remove all NaN related results.
62628         Needed for IRIX 6.5.
62629
62630 2007-05-19  Bruno Haible  <bruno@clisp.org>
62631
62632         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
62633         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
62634
62635 2007-05-19  Bruno Haible  <bruno@clisp.org>
62636
62637         * lib/float_.h: New file.
62638         * m4/float_h.m4: New file.
62639         * modules/float: New file.
62640         * modules/isnanl (Dependencies): Add float.
62641         * modules/isnanl-nolibm (Dependencies): Likewise.
62642         * modules/mathl (Dependencies): Likewise.
62643         * modules/printf-frexpl (Dependencies): Likewise.
62644         * modules/signbit (Dependencies): Likewise.
62645         * modules/vasnprintf (Dependencies): Likewise.
62646         * doc/headers/float.texi: Update.
62647
62648 2007-05-19  Jim Meyering  <jim@meyering.net>
62649
62650         * lib/utimens.c (gl_futimens): Rename from futimens,
62651         now that glibc-2.6 declares futimens.
62652         * lib/utimens.h: Likewise.
62653
62654 2007-05-19  Bruno Haible  <bruno@clisp.org>
62655
62656         Avoid test failures on mingw.
62657         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
62658         * tests/test-printf-posix.sh: Likewise.
62659         * tests/test-vfprintf-posix.sh: Likewise.
62660         * tests/test-vprintf-posix.sh: Likewise.
62661
62662 2007-05-19  Bruno Haible  <bruno@clisp.org>
62663
62664         Fix *printf result for NaN, Inf, -0.0 on mingw.
62665         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
62666         * lib/vasnprintf.c: Include math.h and isnan.h.
62667         (is_infinite_or_zero): New function.
62668         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
62669         values in the %f, %F, %e, %E, %g, %G directives.
62670         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
62671         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
62672         gl_PRINTF_INFINITE and test its result. Invoke
62673         gl_PREREQ_VASNPRINTF_INFINITE.
62674         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
62675         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
62676         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
62677         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
62678         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
62679         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
62680         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
62681         * doc/functions/fprintf.texi: Update.
62682         * doc/functions/printf.texi: Update.
62683         * doc/functions/snprintf.texi: Update.
62684         * doc/functions/sprintf.texi: Update.
62685         * doc/functions/vfprintf.texi: Update.
62686         * doc/functions/vprintf.texi: Update.
62687         * doc/functions/vsnprintf.texi: Update.
62688         * doc/functions/vsprintf.texi: Update.
62689
62690 2007-05-19  Bruno Haible  <bruno@clisp.org>
62691
62692         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
62693         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
62694         Instead of multiplying with 10^k, set extra_zeroes to k.
62695         (scale10_round_long_double): Remove function.
62696
62697 2007-05-18  Bruno Haible  <bruno@clisp.org>
62698
62699         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
62700         introduced on 2007-05-06.
62701
62702 2007-05-18  Bruno Haible  <bruno@clisp.org>
62703
62704         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
62705         %g directives.
62706         * tests/test-vasprintf-posix.c (test_function): Likewise.
62707         * tests/test-snprintf-posix.h (test_function): Likewise.
62708         * tests/test-sprintf-posix.h (test_function): Likewise.
62709
62710 2007-05-18  Bruno Haible  <bruno@clisp.org>
62711
62712         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
62713         (strmatch): New function.
62714         (test_function): Test the %f directive on numbers of various exponents.
62715         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
62716         (strmatch): New function.
62717         (test_function): Test the %f directive on numbers of various exponents.
62718         * tests/test-snprintf-posix.h (strmatch): New function.
62719         (test_function): Test the %f directive on numbers of various exponents.
62720         * tests/test-sprintf-posix.h (strmatch): New function.
62721         (test_function): Test the %f directive on numbers of various exponents.
62722         * tests/test-snprintf-posix.c (SIZEOF): New macro.
62723         * tests/test-sprintf-posix.c (SIZEOF): New macro.
62724         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
62725         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
62726
62727 2007-05-18  Bruno Haible  <bruno@clisp.org>
62728
62729         Add support for 'long double' number output.
62730         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
62731         * lib/vasnprintf.c: Include math.h and float+.h.
62732         (mp_limb_t): New type.
62733         (GMP_LIMB_BITS): New macro.
62734         (mp_twolimb_t): New type.
62735         (GMP_TWOLIMB_BITS): New macro.
62736         (mpn_t): New type.
62737         (multiply, divide, convert_to_decimal, decode_long_double,
62738         scale10_round_long_double, scale10_round_decimal_long_double,
62739         floorlog10l): New functions.
62740         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
62741         for the %f, %F, %e, %E, %g, %G directives.
62742         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
62743         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
62744         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
62745         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
62746         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
62747         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
62748         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
62749         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
62750         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
62751         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
62752         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
62753         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
62754         * modules/snprintf-posix (Depends-on): Likewise.
62755         * modules/sprintf-posix (Depends-on): Likewise.
62756         * modules/vasnprintf-posix (Depends-on): Likewise.
62757         * modules/vasprintf-posix (Depends-on): Likewise.
62758         * modules/vfprintf-posix (Depends-on): Likewise.
62759         * modules/vsnprintf-posix (Depends-on): Likewise.
62760         * modules/vsprintf-posix (Depends-on): Likewise.
62761         * modules/vasnprintf (Files): Add lib/float+.h.
62762         * doc/functions/fprintf.texi: Update.
62763         * doc/functions/printf.texi: Update.
62764         * doc/functions/snprintf.texi: Update.
62765         * doc/functions/sprintf.texi: Update.
62766         * doc/functions/vfprintf.texi: Update.
62767         * doc/functions/vprintf.texi: Update.
62768         * doc/functions/vsnprintf.texi: Update.
62769         * doc/functions/vsprintf.texi: Update.
62770
62771 2007-05-18  Bruno Haible  <bruno@clisp.org>
62772
62773         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
62774
62775 2007-05-18  Bruno Haible  <bruno@clisp.org>
62776
62777         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
62778         for printing 64-bit integers. Needed for mingw.
62779
62780 2007-05-18  Bruno Haible  <bruno@clisp.org>
62781
62782         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
62783         gl_FUNC_FREXPL_WORKS.
62784         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
62785
62786 2007-05-18  Bruno Haible  <bruno@clisp.org>
62787
62788         * modules/frexpl-nolibm-tests: New file.
62789
62790         * modules/frexpl-nolibm: New file.
62791         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
62792
62793 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
62794
62795         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
62796         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
62797         GCC 4.2, which otherwise issues a lot of warnings.
62798         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
62799         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
62800         Likewise.
62801         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
62802         * modules/iconv_open (iconv.h): Likewise.
62803         * modules/locale (locale.h): Likewise.
62804         * modules/netinet_in (netinet/in.h): Likewise.
62805         * modules/sys_select (sys_select.h): Likewise.
62806         * modules/sys_socket (sys/socket.h): Likewise.
62807         * modules/sys_stat (sys/stat.h): Likewise.
62808         * modules/sysexits (sysexits.h): Likewise.
62809         * modules/unistd (unistd.h): Likewise.
62810
62811 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62812
62813         * modules/closein-tests (Makefile.am): Distribute
62814         `test-closein.sh'.
62815
62816 2007-05-17  Bruno Haible  <bruno@clisp.org>
62817
62818         * tests/test-printf-posix.output: Renamed from
62819         tests/test-fprintf-posix.out.
62820         * modules/fprintf-posix-tests: Update.
62821         * modules/printf-posix-tests: Update.
62822         * modules/vfprintf-posix-tests: Update.
62823         * modules/vprintf-posix-tests: Update.
62824         * tests/test-fprintf-posix.sh: Update.
62825         * tests/test-printf-posix.sh: Update.
62826         * tests/test-vfprintf-posix.sh: Update.
62827         * tests/test-vprintf-posix.sh: Update.
62828         Reported by Ralf Wildenhues.
62829
62830 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
62831
62832         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
62833         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
62834         GCC 4.2, which otherwise issues a lot of warnings.
62835         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
62836         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
62837         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
62838         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
62839         it should no longer be needed.
62840         * lib/string_.h: Likewise.
62841         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
62842         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
62843         * modules/inttypes (inttypes.h): Likewise.
62844         * modules/math (math.h): Likewise.
62845         * modules/search (search.h): Likewise.
62846         * modules/signal (signal.h): Likewise.
62847         * modules/stdint (stdint.h): Likewise.
62848         * modules/stdio (stdio.h): Likewise.
62849         * modules/stdlib (stdlib.h): Likewise.
62850         * modules/string (string.h): Likewise.
62851         * modules/sys_time (sys/time.h): Likewise.
62852         * modules/time (time.h): Likewise.
62853         * modules/wchar (wchar.h): Likewise.
62854         * modules/wctype (wtype.h): Likewise.
62855
62856 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
62857
62858         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
62859
62860 2007-05-13  Bruno Haible  <bruno@clisp.org>
62861
62862         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
62863         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
62864         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
62865         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
62866         (gl_PREREQ_STRTOK_R): Don't require it here.
62867
62868 2007-05-13  Bruno Haible  <bruno@clisp.org>
62869
62870         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
62871         when used in C++ mode.
62872
62873 2007-05-12  Bruno Haible  <bruno@clisp.org>
62874
62875         * lib/linebuffer.h: Tweak doc.
62876         * lib/linebuffer.c: Likewise.
62877
62878 2007-05-12  James Youngman  <jay@gnu.org>
62879
62880         * lib/linebuffer.c (readlinebuffer_delim): New function,
62881         like readlinebuffer, but use a caller-specified delimiter.
62882         (readlinebuffer): Just call readlinebuffer_delim with '\n'
62883         as the delimiter.
62884         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
62885
62886 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
62887
62888         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
62889         * modules/openat (Files): Remove openat-die.c.
62890         (Depends-on): Add openat-die.
62891         * modules/openat-die: New module.
62892
62893 2007-05-06  Bruno Haible  <bruno@clisp.org>
62894
62895         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
62896         Update with info about Cygwin.
62897         * doc/functions/fprintf.texi: Update.
62898         * doc/functions/printf.texi: Update.
62899         * doc/functions/snprintf.texi: Update.
62900         * doc/functions/sprintf.texi: Update.
62901         * doc/functions/vfprintf.texi: Update.
62902         * doc/functions/vprintf.texi: Update.
62903         * doc/functions/vsnprintf.texi: Update.
62904         * doc/functions/vsprintf.texi: Update.
62905         Reported by Eric Blake.
62906
62907 2007-05-06  Bruno Haible  <bruno@clisp.org>
62908
62909         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
62910         padding ourselves for the floating-point directives.
62911         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
62912         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
62913         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
62914         gl_PRINTF_FLAG_ZERO and test its result. Invoke
62915         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
62916         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
62917         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
62918         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
62919         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
62920         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
62921         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
62922         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
62923         * tests/test-snprintf-posix.h (test_function): Also check the width
62924         and some flags in the %f directive.
62925         * tests/test-sprintf-posix.h (test_function): Likewise.
62926         * tests/test-vasnprintf-posix.c (test_function): Likewise.
62927         * tests/test-vasprintf-posix.c (test_function): Likewise.
62928         * doc/functions/fprintf.texi: Update.
62929         * doc/functions/printf.texi: Update.
62930         * doc/functions/snprintf.texi: Update.
62931         * doc/functions/sprintf.texi: Update.
62932         * doc/functions/vfprintf.texi: Update.
62933         * doc/functions/vprintf.texi: Update.
62934         * doc/functions/vsnprintf.texi: Update.
62935         * doc/functions/vsprintf.texi: Update.
62936
62937 2007-05-06  Bruno Haible  <bruno@clisp.org>
62938
62939         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
62940         pass the ' flag character to sprintf or snprintf.
62941         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
62942         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
62943         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
62944         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
62945         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
62946         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
62947         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
62948         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
62949         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
62950         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
62951         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
62952         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
62953         * tests/test-snprintf-posix.h (test_function): Also check the grouping
62954         flag.
62955         * tests/test-sprintf-posix.h (test_function): Likewise.
62956         * tests/test-vasnprintf-posix.c (test_function): Likewise.
62957         * tests/test-vasprintf-posix.c (test_function): Likewise.
62958         * doc/functions/fprintf.texi: Update.
62959         * doc/functions/printf.texi: Update.
62960         * doc/functions/snprintf.texi: Update.
62961         * doc/functions/sprintf.texi: Update.
62962         * doc/functions/vfprintf.texi: Update.
62963         * doc/functions/vprintf.texi: Update.
62964         * doc/functions/vsnprintf.texi: Update.
62965         * doc/functions/vsprintf.texi: Update.
62966
62967 2007-05-01  Bruno Haible  <bruno@clisp.org>
62968
62969         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
62970
62971 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
62972
62973         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
62974         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
62975
62976 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
62977
62978         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
62979         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
62980         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
62981
62982 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
62983
62984         * lib/argp-help.c (struct hol_entry): New member `ord'.
62985         (HOL_ENTRY_PTRCMP): Use ord for comparison
62986         (hol_sort): Initialize ord.
62987
62988 2007-05-01  Bruno Haible  <bruno@clisp.org>
62989
62990         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
62991         Reported by Eric Blake.
62992         * doc/gnulib.texi (Function Substitutes): Update.
62993
62994 2007-05-01  Bruno Haible  <bruno@clisp.org>
62995
62996         * doc/functions.texi: Remove file, now redundant through
62997         doc/functions/*.texi.
62998
62999 2007-05-01  Bruno Haible  <bruno@clisp.org>
63000
63001         * modules/argp (Depends-on): Add sleep.
63002
63003 2007-05-01  Bruno Haible  <bruno@clisp.org>
63004
63005         * modules/sleep-tests: New file.
63006         * tests/test-sleep.c: New file.
63007
63008         * modules/sleep: New file.
63009         * lib/sleep.c: New file.
63010         * m4/sleep.m4: New file.
63011         * lib/unistd_.h (sleep): New declaration.
63012         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
63013         HAVE_SLEEP.
63014         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
63015         * doc/functions/sleep.texi: Document the sleep module.
63016
63017 2007-05-01  Bruno Haible  <bruno@clisp.org>
63018
63019         * lib/sigprocmask.h: Remove file.
63020         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
63021         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
63022         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
63023         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
63024         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
63025         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
63026         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
63027         HAVE_SIGSET_T as a shell variable.
63028         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
63029         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
63030         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
63031         (Depends-on): Add signal. Remove verify.
63032         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
63033         (Include): Mention <signal.h> instead of sigprocmask.h.
63034         * NEWS: Mention the change.
63035         * lib/fatal-signal.c: Don't include sigprocmask.h.
63036
63037 2007-05-01  Bruno Haible  <bruno@clisp.org>
63038
63039         * modules/signal: New file.
63040         * lib/signal_.h: New file.
63041         * m4/signal_h.m4: New file.
63042
63043 2007-05-01  Bruno Haible  <bruno@clisp.org>
63044
63045         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
63046         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
63047         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
63048         HAVE_WCTYPE_CTMP_BUG into wctype.h.
63049
63050 2007-05-01  Bruno Haible  <bruno@clisp.org>
63051
63052         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
63053         configure time.
63054         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
63055         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
63056         * modules/sys_stat (Makefile.am): Substitute their values into
63057         sys/stat.h.
63058
63059 2007-05-01  Bruno Haible  <bruno@clisp.org>
63060
63061         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
63062         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
63063         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
63064
63065 2007-05-01  Bruno Haible  <bruno@clisp.org>
63066
63067         * doc/header/assert.texi: Undo last change: don't mention the gnulib
63068         'assert' module here.
63069
63070 2007-05-01  Bruno Haible  <bruno@clisp.org>
63071
63072         * doc/functions/*.texi: New files.
63073         * doc/functions/google-ranking.txt: New file.
63074         * doc/gnulib.texi (Function Substitutes): New chapter.
63075         (ctime, inet_ntoa): Remove sections.
63076         * doc/ctime.texi: Remove file.
63077         * doc/inet_ntoa.texi: Remove file.
63078         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
63079         dependencies.
63080         (%.info): New rule, specifying a --reference-limit.
63081
63082 2007-05-01  Bruno Haible  <bruno@clisp.org>
63083
63084         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
63085
63086 2007-05-01  Bruno Haible  <bruno@clisp.org>
63087
63088         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
63089         the portability of 'mkdir' to mingw systems.
63090
63091 2007-05-01  Bruno Haible  <bruno@clisp.org>
63092
63093         * doc/headers/google-ranking.txt: New file.
63094
63095 2007-04-30  Eric Blake  <ebb9@byu.net>
63096
63097         Prefer fseeko to fseek.
63098         * modules/getpass (Depends-on): Add fseeko.
63099         * lib/getpass.c (getpass): Use fseeko, not fseek.
63100
63101 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
63102
63103         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
63104         assumes the sorting is stable, while most qsort implementations
63105         are not.  Use argument addresses to ensure they never compare as
63106         equal.
63107
63108         * tests/test-argp-2.sh (usage-indent test): Fix output
63109         (func_compare): Restore diff options
63110         * tests/test-argp.c: Restore #include "progname.h"
63111
63112 2007-04-29  Bruno Haible  <bruno@clisp.org>
63113
63114         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
63115         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
63116         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
63117         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
63118         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
63119         (configure.ac): Define CHECK_SNPRINTF_POSIX.
63120         (TESTS, check_PROGRAMS): Add test-snprintf.
63121         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
63122         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
63123         (TESTS, check_PROGRAMS): Add test-vsnprintf.
63124         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
63125         assertions that fail on HP-UX, OSF/1, or IRIX.
63126         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
63127
63128 2007-04-29  Bruno Haible  <bruno@clisp.org>
63129
63130         * MODULES.html.sh (posix_functions): Remove 'contents'.
63131
63132 2007-04-29  Karl Berry  <karl@gnu.org>
63133
63134         * config/srclist.txt (gendocs_template_min): new entry.
63135
63136 2007-04-29  Bruno Haible  <bruno@clisp.org>
63137
63138         Work around fpurge bug on BSD systems.
63139         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
63140         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
63141         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
63142         fpurge to rpl_fpurge if the system already has this function.
63143         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
63144         the case where the system already has this function. Correct invariants
63145         on BSD systems.
63146         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
63147         BSD systems.
63148
63149 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
63150
63151         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
63152         proposed by Sven Verdoolaege.
63153
63154         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
63155         options.
63156         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
63157         (usage and help tests): Update
63158
63159 2007-04-29  Bruno Haible  <bruno@clisp.org>
63160
63161         * tests/test-fflush.c (main): Use a file of size 17, not 10.
63162         Print more information in case of failure. Disable a test on BeOS.
63163
63164 2007-04-29  Bruno Haible  <bruno@clisp.org>
63165
63166         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
63167         This helps debugging on systems on which no gdb is available.
63168
63169 2007-04-29  Bruno Haible  <bruno@clisp.org>
63170
63171         * lib/freading.h: Improve comments.
63172         * lib/fwriting.h: Likewise.
63173         * tests/test-freading.c (main): Don't check freading immediately after
63174         repositioning. Needed for glibc.
63175
63176 2007-04-29  Bruno Haible  <bruno@clisp.org>
63177
63178         * lib/freading.c (freading): Trivial simplification.
63179
63180 2007-04-28  Bruno Haible  <bruno@clisp.org>
63181
63182         * tests/test-fwriting.c (main): Also test the interaction between
63183         fflush and fwriting.
63184         * modules/fwriting-tests (Depends-on): Add fflush.
63185
63186         * tests/test-freading.c (main): Also test the interaction between
63187         fflush and freading.
63188         * modules/freading-tests (Depends-on): Add fflush.
63189
63190 2007-04-28  Bruno Haible  <bruno@clisp.org>
63191
63192         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
63193         fseeko and ftello.
63194         Suggested by Eric Blake.
63195
63196 2007-04-28  Jim Meyering  <jim@meyering.net>
63197
63198         Avoid false-negative in gl_STDINT_H's C99 conformance test.
63199         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
63200         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
63201
63202 2007-04-27  Eric Blake  <ebb9@byu.net>
63203
63204         * doc/headers/assert.texi (assert.h): Document assert module use.
63205
63206 2007-04-27  Bruno Haible  <bruno@clisp.org>
63207
63208         * doc/headers/*.texi: New files.
63209         * doc/gnulib.texi (Header File Substitutes): New chapter.
63210         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
63211         dependencies.
63212         (standards.info ,standards.html, standards.dvi): Update dependencies.
63213         (mostlyclean, clean): New targets.
63214
63215 2007-04-27  Bruno Haible  <bruno@clisp.org>
63216
63217         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
63218         * modules/sysexits (Files, Makefile.am): Update.
63219
63220         * lib/sys_socket_.h: Renamed from lib/socket_.h.
63221         * modules/sys_socket (Files, Makefile.am): Update.
63222
63223         * lib/sys_stat_.h: Renamed from lib/stat_.h.
63224         * modules/sys_stat (Files, Makefile.am): Update.
63225
63226 2007-04-27  Eric Blake  <ebb9@byu.net>
63227
63228         * lib/freading.h: Improve comments.
63229         * lib/fwriting.h: Likewise.
63230         * lib/fflush.c: Likewise.
63231
63232         Fix closein for mingw.
63233         * modules/closein-tests: Add tests for closein.
63234         * tests/test-closein.c: New file.
63235         * tests/test-closein.sh: Likewise.
63236         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
63237         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
63238
63239 2007-04-27  Bruno Haible  <bruno@clisp.org>
63240
63241         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
63242         version is < 6.
63243         * lib/math_.h [__DECC]: Likewise.
63244         * lib/stdio_.h [__DECC]: Likewise.
63245         * lib/stdlib_.h [__DECC]: Likewise.
63246         * lib/string_.h [__DECC]: Likewise.
63247         * lib/time_.h [__DECC]: Likewise.
63248         * lib/wchar_.h [__DECC]: Likewise.
63249         * lib/wctype_.h [__DECC]: Likewise.
63250
63251 2007-04-27  Bruno Haible  <bruno@clisp.org>
63252
63253         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
63254
63255 2007-04-27  Bruno Haible  <bruno@clisp.org>
63256
63257         * lib/fflush.c: Add comments.
63258         * modules/fpurge-tests (Depends-on): Add fflush.
63259         * modules/freadable-tests (Depends-on): Likewise.
63260         * modules/fwritable-tests (Depends-on): Likewise.
63261
63262 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
63263
63264         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
63265         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
63266         Report by Bruno Haible <bruno@clisp.org>.
63267
63268 2007-04-26  Eric Blake  <ebb9@byu.net>
63269
63270         Fix fflush on mingw.
63271         * modules/fflush (Depends-on): Add freading.
63272         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
63273         but unread data.
63274
63275 2007-04-26  Eric Blake  <ebb9@byu.net>
63276         and Bruno Haible  <bruno@clisp.org>
63277
63278         Implement freading and fwriting.
63279         * lib/freading.c: New file.
63280         * lib/freading.h: Likewise.
63281         * m4/freading.m4: Likewise.
63282         * modules/freading: Likewise.
63283         * modules/freading-tests: Likewise.
63284         * tests/test-freading.c: Likewise.
63285         * lib/fwriting.c: New file.
63286         * lib/fwriting.h: Likewise.
63287         * m4/fwriting.m4: Likewise.
63288         * modules/fwriting: Likewise.
63289         * modules/fwriting-tests: Likewise.
63290         * tests/test-fwriting.c: Likewise.
63291         * MODULES.html.sh (File stream based Input/Output): Mention them.
63292
63293 2007-04-26  Bruno Haible  <bruno@clisp.org>
63294
63295         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
63296         'long' when we assume it.
63297         Suggested by Eric Blake.
63298
63299 2007-04-26  Bruno Haible  <bruno@clisp.org>
63300
63301         Ensure fseeko, ftello are declared on glibc systems.
63302         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
63303         * modules/fseeko (configure.ac-early): Likewise.
63304         * modules/ftello (configure.ac-early): Likewise.
63305         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
63306         AC_FUNC_FSEEKO for this.
63307         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
63308         (gl_CHECK_FSEEKO): Remove macro.
63309
63310 2007-04-26  Bruno Haible  <bruno@clisp.org>
63311
63312         * tests/test-fflush.c (main): Also check the ftell result after
63313         fflush and fseek/fseeko.
63314         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
63315         file descriptor position cache in the stream.
63316         * lib/fseeko.c (rpl_fseeko): Likewise.
63317
63318 2007-04-26  Bruno Haible  <bruno@clisp.org>
63319
63320         * modules/fflush-tests (Depends-on): Add fseeko.
63321
63322 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
63323             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63324
63325         * lib/argz_.h: ensure error_t definition is obtained in same
63326         mechanism system argz.h would have.
63327         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
63328         argz facilities are known bad.  Err on the side of caution if
63329         cross-compiling.
63330
63331 2007-04-25  Eric Blake  <ebb9@byu.net>
63332
63333         * lib/fpurge.c (includes): Use stdlib.h for free.
63334         * tests/test-fflush.c (main): Also test fflush-fseeko.
63335
63336 2007-04-25  Bruno Haible  <bruno@clisp.org>
63337
63338         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
63339         * lib/fseeko.c: New file.
63340         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
63341         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
63342         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
63343         gl_FUNC_FSEEKO.
63344         (gl_FUNC_FSEEKO): Invoke it.
63345         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
63346         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
63347         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
63348
63349 2007-04-25  Bruno Haible  <bruno@clisp.org>
63350
63351         * modules/fflush (Depends-on): Add ftello.
63352
63353 2007-04-25  Bruno Haible  <bruno@clisp.org>
63354
63355         * modules/ftello-tests: New file.
63356         * tests/test-ftello.c: New file.
63357
63358         * modules/ftello: New file.
63359         * m4/ftello.m4: New file.
63360         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
63361         HAVE_FTELLO.
63362         * lib/stdio_.h (ftello): New declaration.
63363         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
63364         HAVE_FTELLO.
63365
63366 2007-04-25  Bruno Haible  <bruno@clisp.org>
63367
63368         * modules/fseeko-tests: New file.
63369         * tests/test-fseeko.c: New file.
63370
63371         * modules/fseeko: New file.
63372         * m4/fseeko.m4: New file.
63373         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
63374         HAVE_FSEEKO.
63375         * lib/stdio_.h (fseeko): New declaration.
63376         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
63377         HAVE_FSEEKO.
63378
63379 2007-04-25  Bruno Haible  <bruno@clisp.org>
63380
63381         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
63382
63383 2007-04-25  Bruno Haible  <bruno@clisp.org>
63384
63385         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
63386         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
63387         * tests/test-unistd.c: Likewise.
63388         * tests/test-fcntl.c: Likewise.
63389
63390 2007-04-23  Eric Blake  <ebb9@byu.net>
63391
63392         * lib/fflush.c: Fix missing include.
63393         Reported by Bruno Haible.
63394
63395 2007-04-23  Bruno Haible  <bruno@clisp.org>
63396
63397         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
63398         Reported by Eric Blake.
63399
63400 2007-04-23  Bruno Haible  <bruno@clisp.org>
63401
63402         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
63403
63404 2007-04-23  Bruno Haible  <bruno@clisp.org>
63405
63406         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
63407
63408 2007-04-23  Bruno Haible  <bruno@clisp.org>
63409
63410         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
63411         Needed on HP-UX 11.
63412
63413 2007-04-16  Eric Blake  <ebb9@byu.net>
63414
63415         Make fflush rely on fpurge.
63416         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
63417         open coding all variants.
63418         * modules/fflush (Depends-on): Add fpurge and unistd.
63419         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
63420         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
63421
63422         Fix --with-tests compilation on cygwin.
63423         * modules/argmatch-tests (Makefile.am): List gnulib library first
63424         in LDADD.
63425         * modules/argp-tests (Makefile.am): Likewise.
63426         * modules/array-list-tests (Makefile.am): Likewise.
63427         * modules/array-oset-tests (Makefile.am): Likewise.
63428         * modules/avltree-list-tests (Makefile.am): Likewise.
63429         * modules/avltree-oset-tests (Makefile.am): Likewise.
63430         * modules/avltreehash-list-tests (Makefile.am): Likewise.
63431         * modules/carray-list-tests (Makefile.am): Likewise.
63432         * modules/dirname-tests (Makefile.am): Likewise.
63433         * modules/frexp-tests (Makefile.am): Likewise.
63434         * modules/isnanl-tests (Makefile.am): Likewise.
63435         * modules/linked-list-tests (Makefile.am): Likewise.
63436         * modules/linkedhash-list-tests (Makefile.am): Likewise.
63437         * modules/lock-tests (Makefile.am): Likewise.
63438         * modules/rbtree-list-tests (Makefile.am): Likewise.
63439         * modules/rbtree-oset-tests (Makefile.am): Likewise.
63440         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
63441         * modules/tls-tests (Makefile.am): Likewise.
63442         * modules/tsearch-tests (Makefile.am): Likewise.
63443         * modules/xvasprintf-tests (Makefile.am): Likewise.
63444
63445         Fix fpurge for cygwin.
63446         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
63447         value.
63448         * modules/fpurge-tests (Depends-on): Clean up trash.
63449
63450 2007-04-16  Simon Josefsson  <simon@josefsson.org>
63451
63452         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
63453
63454         * m4/autobuild.m4: Re-indent.
63455
63456 2007-04-13  Bruno Haible  <bruno@clisp.org>
63457
63458         * modules/fpurge-tests: New file.
63459         * tests/test-fpurge.c: New file.
63460
63461         * modules/fpurge: New file.
63462         * lib/fpurge.h: New file.
63463         * lib/fpurge.c: New file.
63464         * m4/fpurge.m4: New file.
63465
63466 2007-04-13  Bruno Haible  <bruno@clisp.org>
63467
63468         * modules/fbufmode-tests: New file.
63469         * tests/test-fbufmode.c: New file.
63470
63471         * modules/fbufmode: New file.
63472         * lib/fbufmode.h: New file.
63473         * lib/fbufmode.c: New file.
63474         * m4/fbufmode.m4: New file.
63475
63476 2007-04-13  Bruno Haible  <bruno@clisp.org>
63477
63478         * modules/fwritable-tests: New file.
63479         * tests/test-fwritable.c: New file.
63480
63481         * modules/fwritable: New file.
63482         * lib/fwritable.h: New file.
63483         * lib/fwritable.c: New file.
63484         * m4/fwritable.m4: New file.
63485
63486 2007-04-13  Bruno Haible  <bruno@clisp.org>
63487
63488         * modules/freadable-tests: New file.
63489         * tests/test-freadable.c: New file.
63490
63491         * modules/freadable: New file.
63492         * lib/freadable.h: New file.
63493         * lib/freadable.c: New file.
63494         * m4/freadable.m4: New file.
63495
63496 2007-04-13  Bruno Haible  <bruno@clisp.org>
63497
63498         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
63499         MOSTLYCLEANFILES.
63500
63501 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
63502
63503         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
63504         gzip bootstrap.conf to avoid dragging in i18n machinery.
63505         (gnulib_tool_option): Use it.
63506
63507 2007-04-13  Bruno Haible  <bruno@clisp.org>
63508
63509         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
63510         %F directives.
63511         * tests/test-vasprintf-posix.c (test_function): Likewise.
63512         * tests/test-snprintf-posix.h (test_function): Likewise.
63513         * tests/test-sprintf-posix.h (test_function): Likewise.
63514         * tests/test-fprintf-posix.h (test_function): Likewise.
63515         * tests/test-printf-posix.h (test_function): Likewise.
63516         * tests/test-fprintf-posix.out: Likewise.
63517
63518 2007-04-13  Bruno Haible  <bruno@clisp.org>
63519
63520         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
63521         * modules/tls-tests (configure.ac): Likewise.
63522         Reported by Arto C. Nirkko <anirkko@insel.ch>.
63523
63524 2007-04-13  Bruno Haible  <bruno@clisp.org>
63525
63526         * lib/tls.c (glthread_tls_get): Fix return type.
63527         Patch by Arto C. Nirkko <anirkko@insel.ch>.
63528
63529 2007-04-12  Eric Blake  <ebb9@byu.net>
63530
63531         * modules/gettime (Depends-on): Remove gettime.
63532         Reported by Dmitry V. Levin.
63533
63534 2007-04-12  Bruno Haible  <bruno@clisp.org>
63535
63536         * modules/fflush (Include): Mention <stdio.h>.
63537         * modules/strtoimax (Include): Mention <inttypes.h>.
63538         * modules/strtoumax (Include): Likewise.
63539
63540 2007-04-12  Eric Blake  <ebb9@byu.net>
63541
63542         * .cvsignore: New file.
63543         * .gitignore: Likewise.
63544
63545 2007-04-12  Bruno Haible  <bruno@clisp.org>
63546
63547         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
63548         not before, since $(LDADD) often contains libgnu.a.
63549         * modules/striconv-tests (test_striconv_LDADD): Likewise.
63550         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
63551         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
63552         Needed on Cygwin.
63553
63554 2007-04-12  Eric Blake  <ebb9@byu.net>
63555
63556         Work around glibc's failure to flush stdin on fclose.
63557         * lib/closein.c (close_stdin): Flush stdin before closing.
63558
63559         Work around glibc's failure to reset seekable stdin on exit.
63560         * modules/closein: New module.
63561         * lib/closein.c: New file.
63562         * lib/closein.h: Likewise.
63563         * m4/closein.m4: Likewise.
63564         * MODULES.html.sh (File stream based Input/Output): Document it.
63565
63566 2007-04-12  Simon Josefsson  <simon@josefsson.org>
63567
63568         * gnulib-tool: Rename generated 'autobuild' script to
63569         'do-autobuild' in --create-megatestdir output.
63570
63571         * doc/gnulib.texi (Build robot for gnulib): Fix.
63572
63573 2007-04-12  Simon Josefsson  <simon@josefsson.org>
63574
63575         * modules/sysexits (Depends-on): Add absolute-header.
63576
63577 2007-04-12  Eric Blake  <ebb9@byu.net>
63578
63579         No need to preserve errno on success.
63580         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
63581         Reported by Bruno Haible.
63582
63583 2007-04-12  Simon Josefsson  <simon@josefsson.org>
63584
63585         * MODULES.html.sh (Support for maintaining and releasing
63586         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
63587
63588 2007-04-12  Simon Josefsson  <simon@josefsson.org>
63589
63590         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
63591
63592 2007-04-12  Simon Josefsson  <simon@josefsson.org>
63593
63594         * modules/autobuild: New module.
63595
63596         * m4/autobuild.m4: New file.
63597
63598 2007-04-11  Bruno Haible  <bruno@clisp.org>
63599
63600         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
63601         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
63602         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
63603         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
63604         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
63605         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
63606         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
63607         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
63608         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
63609         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
63610         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
63611         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
63612         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
63613         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
63614         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
63615         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
63616         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
63617         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
63618         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
63619         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
63620         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
63621         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
63622         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
63623         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
63624         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
63625         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
63626         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
63627         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
63628         Reported by Eric Blake.
63629
63630 2007-04-11  Bruno Haible  <bruno@clisp.org>
63631
63632         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
63633
63634 2007-04-10  Bruno Haible  <bruno@clisp.org>
63635
63636         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
63637         for NaN and Infinity. Needed on FreeBSD 6.1.
63638         * tests/test-vasnprintf-posix.c (test_function): Undo last change
63639         regarding results for "%010a" of Infinity and NaN.
63640         * tests/test-vasprintf-posix.c (test_function): Likewise.
63641         * tests/test-snprintf-posix.h (test_function): Likewise.
63642         * tests/test-sprintf-posix.h (test_function): Likewise.
63643         * tests/test-fprintf-posix.h (test_function): Likewise.
63644         * tests/test-printf-posix.h (test_function): Likewise.
63645         * tests/test-fprintf-posix.out: Likewise.
63646
63647 2007-04-10  Bruno Haible  <bruno@clisp.org>
63648
63649         * modules/locale-tests: New file.
63650         * tests/test-locale.c: New file.
63651
63652         * modules/locale: New file.
63653         * lib/locale_.h: New file.
63654         * m4/locale_h.m4: New file.
63655
63656 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
63657             Bruno Haible  <bruno@clisp.org>
63658
63659         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
63660         be determined, test for availability of the copysignf, copysign,
63661         copysignl functions.
63662         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
63663         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
63664         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
63665
63666 2007-04-09  Eric Blake  <ebb9@byu.net>
63667
63668         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
63669         * modules/stdio (Makefile.am): Support fflush.
63670         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
63671         * modules/fflush: New file.
63672         * lib/fflush.c: Likewise.
63673         * m4/fflush.m4: Likewise.
63674         * modules/fflush-tests: New test.
63675         * tests/test-fflush.c: Likewise.
63676         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
63677
63678 2007-04-06  Bruno Haible  <bruno@clisp.org>
63679
63680         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
63681         (VASNPRINTF): Use signbit for faster determination whether to print a
63682         minus sign.
63683         * modules/vasnprintf (Files): Remove lib/float+.h.
63684         * modules/fprintf-posix (Depends-on): Add signbit.
63685         * modules/snprintf-posix (Depends-on): Likewise.
63686         * modules/sprintf-posix (Depends-on): Likewise.
63687         * modules/vasnprintf-posix (Depends-on): Likewise.
63688         * modules/vasprintf-posix (Depends-on): Likewise.
63689         * modules/vfprintf-posix (Depends-on): Likewise.
63690         * modules/vsnprintf-posix (Depends-on): Likewise.
63691         * modules/vsprintf-posix (Depends-on): Likewise.
63692
63693 2007-04-06  Bruno Haible  <bruno@clisp.org>
63694
63695         * tests/test-frexp.c (main): Test also the sign bit of zero results.
63696         * tests/test-frexpl.c (main): Likewise.
63697         * tests/test-ldexpl.c (main): Likewise.
63698         * modules/frexp-tests (Depends-on): Add signbit.
63699         * modules/frexpl-tests (Depdends-on): Likewise.
63700         * modules/ldexpl-tests (Depdends-on): Likewise.
63701
63702 2007-04-06  Bruno Haible  <bruno@clisp.org>
63703
63704         * modules/signbit-tests: New file.
63705         * tests/test-signbit.c: New file.
63706
63707         * modules/signbit: New file.
63708         * lib/signbitf.c: New file.
63709         * lib/signbitd.c: New file.
63710         * lib/signbitl.c: New file.
63711         * m4/signbit.m4: New file.
63712         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
63713         (signbit): New macro.
63714         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
63715         REPLACE_SIGNBIT.
63716         * modules/math (Makefile.am): Substibute also GNULIB_SIGNBIT and
63717         REPLACE_FREXPL into math.h.
63718
63719 2007-04-06  Bruno Haible  <bruno@clisp.org>
63720
63721         * modules/isnanf-nolibm-tests: New file.
63722         * tests/test-isnanf.c: New file.
63723
63724         * modules/isnanf-nolibm: New file.
63725         * lib/isnanf.h: New file.
63726         * lib/isnanf.c: New file.
63727         * lib/isnan.c: Consider the USE_FLOAT macro.
63728         * m4/isnanf.m4: New file.
63729
63730 2007-04-06  Bruno Haible  <bruno@clisp.org>
63731
63732         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
63733         (Link): New section.
63734
63735         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
63736
63737 2007-04-06  Bruno Haible  <bruno@clisp.org>
63738
63739         Assume the 'long double' type.
63740         * m4/longdouble.m4: Remove file.
63741         * config/srclist.txt: Don't mention longdouble.m4.
63742         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
63743         * lib/float+.h: Likewise.
63744         * lib/frexp.c: Likewise.
63745         * lib/printf-args.h: Likewise.
63746         * lib/printf-args.c: Likewise.
63747         * lib/printf-frexp.c: Likewise.
63748         * lib/printf-parse.c: Likewise.
63749         * lib/vasnprintf.c: Likewise.
63750         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
63751         * m4/intl.m4: Likewise.
63752         * m4/isnanl.m4: Likewise.
63753         * m4/printf.m4: Likewise.
63754         * m4/printf-frexpl.m4: Likewise.
63755         * m4/vasnprintf.m4: Likewise.
63756         * modules/allocsa (Files): Remove m4/longdouble.m4.
63757         * modules/gettext (Files): Likewise.
63758         * modules/relocatable-prog-wrapper (Files): Likewise.
63759         * modules/vasnprintf (Files): Likewise.
63760         * modules/isnanl (Files): Likewise.
63761         (Include): Simplify.
63762         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
63763         (Include): Simplify.
63764         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
63765         (Include): Simplify.
63766         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
63767         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
63768         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
63769         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
63770         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
63771         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
63772         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
63773         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
63774         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
63775         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
63776         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
63777         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
63778         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
63779         * tests/test-isnanl.c: Likewise.
63780         * tests/test-snprintf-posix.h: Likewise.
63781         * tests/test-sprintf-posix.h: Likewise.
63782         * tests/test-vasnprintf-posix.c: Likewise.
63783         * tests/test-vasnprintf-posix2.c: Likewise.
63784         * tests/test-vasprintf-posix.c: Likewise.
63785
63786 2007-04-06  Bruno Haible  <bruno@clisp.org>
63787
63788         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
63789         * lib/math_.h [__DECC]: Include the overridden include file through
63790         #include_next, outside the double-inclusion guard.
63791         * lib/stdio_.h [__DECC]: Likewise.
63792         * lib/stdlib_.h [__DECC]: Likewise.
63793         * lib/string_.h [__DECC]: Likewise.
63794         * lib/time_.h [__DECC]: Likewise.
63795         * lib/wchar_.h [__DECC]: Likewise.
63796         * lib/wctype_.h [__DECC]: Likewise.
63797         * lib/inttypes_.h [__DECC]: Likewise.
63798         Reported by Albert Chin <china@thewrittenword.com> in
63799         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
63800
63801 2007-04-04  Eric Blake  <ebb9@byu.net>
63802
63803         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
63804         1.5.x.
63805
63806 2007-04-04  Bruno Haible  <bruno@clisp.org>
63807
63808         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
63809         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
63810
63811 2007-04-04  Bruno Haible  <bruno@clisp.org>
63812
63813         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
63814         results for "%010a" of Infinity and NaN.
63815         * tests/test-vasprintf-posix.c (test_function): Likewise.
63816         * tests/test-snprintf-posix.h (test_function): Likewise.
63817         * tests/test-sprintf-posix.h (test_function): Likewise.
63818         * tests/test-fprintf-posix.h (test_function): Remove these tests.
63819         * tests/test-printf-posix.h (test_function): Likewise.
63820         * tests/test-fprintf-posix.out: Update.
63821         Needed for FreeBSD 6.1.
63822
63823 2007-04-04  Bruno Haible  <bruno@clisp.org>
63824
63825         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
63826         directly used by the gnulib modules nor by gnulib-tool.
63827
63828 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
63829
63830         * DEPENDENCIES: Give overall description of version dependency
63831         desirability.  Use more-typical names for apps.
63832         Add shell, coreutils, diffutils, grep, tar, gzip.
63833
63834 2007-04-04  Simon Josefsson  <simon@josefsson.org>
63835
63836         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
63837
63838 2007-04-04  Karl Berry  <karl@gnu.org>
63839
63840         * MODULES.html.sh (func_module): missing '.
63841
63842 2007-04-03  Bruno Haible  <bruno@clisp.org>
63843
63844         * modules/argmatch-tests (Makefile.am): New variable
63845         test_argmatch_LDADD.
63846         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
63847         * modules/array-list-tests (Makefile.am): New variable
63848         test_array_list_LDADD.
63849         * modules/array-oset-tests (Makefile.am): New variable
63850         test_array_oset_LDADD.
63851         * modules/avltree-list-tests (Makefile.am): New variable
63852         test_avltree_list_LDADD.
63853         * modules/avltree-oset-tests (Makefile.am): New variable
63854         test_avltree_oset_LDADD.
63855         * modules/avltreehash-list-tests (Makefile.am): New variable
63856         test_avltreehash_list_LDADD.
63857         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
63858         test_canonicalize_lgpl_LDADD.
63859         * modules/carray-list-tests (Makefile.am): New variable
63860         test_carray_list_LDADD.
63861         * modules/dirname-tests (Makefile.am): New variable
63862         test_dirname_LDADD.
63863         * modules/linked-list-tests (Makefile.am): New variable
63864         test_linked_list_LDADD.
63865         * modules/linkedhash-list-tests (Makefile.am): New variable
63866         test_linkedhash_list_LDADD.
63867         * modules/rbtree-list-tests (Makefile.am): New variable
63868         test_rbtree_list_LDADD.
63869         * modules/rbtree-oset-tests (Makefile.am): New variable
63870         test_rbtree_oset_LDADD.
63871         * modules/rbtreehash-list-tests (Makefile.am): New variable
63872         test_rbtreehash_list_LDADD.
63873         * modules/xvasprintf-tests (Makefile.am): New variable
63874         test_xvasprintf_LDADD.
63875         Reported by Eric Blake.
63876
63877 2007-04-03  Eric Blake  <ebb9@byu.net>
63878
63879         * DEPENDENCIES: Weaken m4 requirements.
63880
63881 2007-04-03  Bruno Haible  <bruno@clisp.org>
63882
63883         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
63884         * modules/isnanl-tests (configure.ac): Likewise.
63885
63886 2007-04-03  Ben Pfaff  <blp@gnu.org>
63887
63888         * modules/iconv_open: Add $(srcdir)/ to source directory
63889         references in Makefile fragments that call gperf, to fix VPATH
63890         builds.
63891
63892 2007-04-03  Bruno Haible  <bruno@clisp.org>
63893
63894         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
63895         * lib/ldexpl.c: Undo last change.
63896
63897 2007-04-03  Bruno Haible  <bruno@clisp.org>
63898
63899         * modules/printf-frexpl (Depends-on): Undo last change.
63900         (Files): Add m4/ldexpl.m4.
63901
63902 2007-04-03  Bruno Haible  <bruno@clisp.org>
63903
63904         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
63905         * modules/isnanl (Link): New section.
63906
63907         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
63908         * modules/frexp (Link): New section.
63909
63910         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
63911         * modules/frexpl (Link): New section.
63912
63913         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
63914         * modules/ldexpl (Link): New section.
63915
63916 2007-04-03  Bruno Haible  <bruno@clisp.org>
63917
63918         * modules/TEMPLATE-EXTENDED: New file.
63919         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
63920
63921 2007-04-03  Bruno Haible  <bruno@clisp.org>
63922
63923         * DEPENDENCIES: New file.
63924         Suggested by Simon Josefsson.
63925
63926 2007-04-03  Bruno Haible  <bruno@clisp.org>
63927
63928         * doc/gnulib.texi: Escape @.
63929
63930 2007-04-03  James Youngman  <jay@gnu.org>
63931         and Paul Eggert  <eggert@cs.ucla.edu>
63932
63933         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
63934         birthtime on all systems that have birthtime, not just those which
63935         use st_birthtimensec rather than st_birthtim.  Putting zero in
63936         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
63937         that the birth time is not available for files on an NFS mount.
63938
63939 2007-04-03  Simon Josefsson  <simon@josefsson.org>
63940
63941         * modules/memxor: Move back from crypto/, suggested by Bruno.
63942         * modules/crypto/hmac-sha1: Fix memxor dependency.
63943
63944         * modules/crypto/gc: Moved from ../.
63945
63946 2007-04-02  Eric Blake  <ebb9@byu.net>
63947
63948         * lib/ldexpl.c (includes): Avoid libm.
63949
63950         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
63951
63952 2007-04-02  Bruno Haible  <bruno@clisp.org>
63953
63954         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
63955         on IRIX.
63956
63957 2007-04-02  Bruno Haible  <bruno@clisp.org>
63958
63959         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
63960         x86 or x86_64 platforms running MacOS X.
63961         Reported by Ryan Schmidt <@ryandesign.com>.
63962
63963 2007-04-02  Bruno Haible  <bruno@clisp.org>
63964
63965         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
63966         i386.
63967
63968 2007-04-01  Simon Josefsson  <simon@josefsson.org>
63969
63970         * modules/crypto/arcfour: Moved from ../.
63971         * modules/crypto/arcfour-tests: Moved from ../.
63972         * modules/crypto/arctwo: Moved from ../.
63973         * modules/crypto/arctwo-tests: Moved from ../.
63974         * modules/crypto/des: Moved from ../.
63975         * modules/crypto/des-tests: Moved from ../.
63976         * modules/crypto/gc-arcfour: Moved from ../.
63977         * modules/crypto/gc-arcfour-tests: Moved from ../.
63978         * modules/crypto/gc-arctwo: Moved from ../.
63979         * modules/crypto/gc-arctwo-tests: Moved from ../.
63980         * modules/crypto/gc-des: Moved from ../.
63981         * modules/crypto/gc-des-tests: Moved from ../.
63982         * modules/crypto/gc-hmac-md5: Moved from ../.
63983         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
63984         * modules/crypto/gc-hmac-sha1: Moved from ../.
63985         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
63986         * modules/crypto/gc-md2: Moved from ../.
63987         * modules/crypto/gc-md2-tests: Moved from ../.
63988         * modules/crypto/gc-md4: Moved from ../.
63989         * modules/crypto/gc-md4-tests: Moved from ../.
63990         * modules/crypto/gc-md5: Moved from ../.
63991         * modules/crypto/gc-md5-tests: Moved from ../.
63992         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
63993         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
63994         * modules/crypto/gc-random: Moved from ../.
63995         * modules/crypto/gc-rijndael: Moved from ../.
63996         * modules/crypto/gc-rijndael-tests: Moved from ../.
63997         * modules/crypto/gc-sha1: Moved from ../.
63998         * modules/crypto/gc-sha1-tests: Moved from ../.
63999         * modules/crypto/gc-tests: Moved from ../.
64000         * modules/crypto/hmac-md5: Moved from ../.
64001         * modules/crypto/hmac-md5-tests: Moved from ../.
64002         * modules/crypto/hmac-sha1: Moved from ../.
64003         * modules/crypto/hmac-sha1-tests: Moved from ../.
64004         * modules/crypto/md2: Moved from ../.
64005         * modules/crypto/md2-tests: Moved from ../.
64006         * modules/crypto/md4: Moved from ../.
64007         * modules/crypto/md4-tests: Moved from ../.
64008         * modules/crypto/md5: Moved from ../.
64009         * modules/crypto/md5-tests: Moved from ../.
64010         * modules/crypto/memxor: Moved from ../.
64011         * modules/crypto/rijndael: Moved from ../.
64012         * modules/crypto/rijndael-tests: Moved from ../.
64013         * modules/crypto/sha1: Moved from ../.
64014
64015 2007-03-30  James Youngman  <jay@gnu.org>
64016
64017         * tests/test-stat-time.c (prepare_test): use chmod() rather than
64018         rename() to change the ctime of a file (because ctime is unaffected
64019         by rename on jfs2 on AIX 5.1).
64020         (main): Start by doing cleanup, in case a previous run failed leaving
64021         test files behind.
64022
64023 2007-03-31  Bruno Haible  <bruno@clisp.org>
64024
64025         Support old proprietary implementations of iconv.
64026         * modules/iconv_open: New file.
64027         * lib/iconv_.h: New file.
64028         * m4/iconv_h.m4: New file.
64029         * lib/iconv_open.c: New file.
64030         * lib/iconv_open-aix.gperf: New file.
64031         * lib/iconv_open-hpux.gperf: New file.
64032         * lib/iconv_open-irix.gperf: New file.
64033         * lib/iconv_open-osf.gperf: New file.
64034         * m4/iconv_open.m4: New file.
64035         * modules/linebreak (Depends-on): Add iconv_open.
64036         * modules/striconv (Depends-on): Likewise.
64037         * modules/striconveh (Depends-on): Likewise.
64038         * modules/unicodeio (Depends-on): Likewise.
64039         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
64040         (iconv_t)(-1).
64041         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
64042         conversion if cd is (iconv_t)(-1).
64043         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
64044         is not possible.
64045
64046 2007-03-31  Bruno Haible  <bruno@clisp.org>
64047
64048         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
64049         work on Solaris either. Protect also second use of "autodetect_jp".
64050
64051 2007-03-31  Bruno Haible  <bruno@clisp.org>
64052
64053         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
64054         the function is not present.
64055
64056 2007-03-31  Bruno Haible  <bruno@clisp.org>
64057
64058         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
64059         the function is not present.
64060
64061 2007-03-31  Bruno Haible  <bruno@clisp.org>
64062
64063         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
64064         a bug in HP-UX iconv_open().
64065
64066 2007-03-31  Bruno Haible  <bruno@clisp.org>
64067
64068         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
64069         (Mathematics <math.h>): New section, add fpieee.
64070         (Input/output <stdio.h>): Add fseterr.
64071         (Mathematics <math.h>): New section, add printf-frexp.
64072         (Container data structures): Add sublist.
64073         (Core language properties): Add fpucw, inline.
64074         (Functions for greatest-width integer types <inttypes.h>): Add
64075         imaxabs, imaxdiv, inttypes.
64076         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
64077         isnanl-nolibm, ldexp.
64078         (Mathematics <math.h>): New section, add printf-frexpl.
64079         (Support for systems lacking POSIX:2001): Add fprintf-posix,
64080         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
64081         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
64082         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
64083         (Unicode string functions): Add unistr/u*-mbtoucr.
64084         (Java): Add javacomp-script, javaexec-script.
64085         (C#): Add csharpcomp-script, csharpexec-script.
64086         (Support for building libraries and executables): Add havelib,
64087         relocatable-*.
64088         (Support for maintaining and releasing projects): Renamed from
64089         'Support for maintaining and release projects'. Add announce-gen.
64090
64091 2007-03-31  Bruno Haible  <bruno@clisp.org>
64092
64093         * README: Talk primarily about git.
64094         (git and CVS): Renamed from CVS.
64095         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
64096         gnulib is available through git.
64097         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
64098
64099 2007-03-30  Bruno Haible  <bruno@clisp.org>
64100
64101         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
64102         * lib/poll_.h: Likewise.
64103         * lib/stat_.h: Likewise.
64104         * lib/sys_time_.h: Likewise.
64105         * lib/sysexit_.h: Likewise.
64106         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
64107         * lib/stdbool_.h: Likewise.
64108         * lib/byteswap_.h: Add double-inclusion guard.
64109
64110 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
64111
64112         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
64113
64114 2007-03-30  Karl Berry  <karl@gnu.org>
64115
64116         * config/srclist-update: double space after USA in the license
64117         substitution, since that's how it's usually (?) written.
64118
64119 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
64120
64121         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
64122         reported by Bruno Haible.
64123
64124 2007-03-29  Bruno Haible  <bruno@clisp.org>
64125
64126         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
64127         a bug in AIX iconv().
64128
64129 2007-03-29  Bruno Haible  <bruno@clisp.org>
64130
64131         * modules/ldexpl-tests: New file.
64132         * tests/test-ldexpl.c: New file.
64133
64134 2007-03-29  Bruno Haible  <bruno@clisp.org>
64135
64136         * lib/ldexpl.c: Include fpucw.h.
64137         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
64138         multiplication.
64139         * modules/ldexpl (Depends-on): Add fpucw.
64140
64141 2007-03-29  Bruno Haible  <bruno@clisp.org>
64142
64143         * modules/ldexpl: New file.
64144         * m4/ldexpl.m4: New file.
64145         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
64146         set.
64147         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
64148         REPLACE_LDEXPL.
64149         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
64150         REPLACE_LDEXPL.
64151         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
64152         gl_FUNC_LDEXPL_WORKS.
64153         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
64154         * modules/mathl (Files): Remove lib/ldexpl.c.
64155         (Depends-on): Add ldexpl.
64156
64157 2007-03-29  Bruno Haible  <bruno@clisp.org>
64158
64159         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
64160
64161 2007-03-29  Bruno Haible  <bruno@clisp.org>
64162
64163         * tests/test-striconveh.c (main): Don't assume that a direct conversion
64164         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
64165         and possibly also HP-UX.
64166         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
64167         work on AIX, IRIX, HP-UX, OSF/1.
64168         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
64169         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
64170         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
64171         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
64172         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
64173         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
64174
64175 2007-03-29  Bruno Haible  <bruno@clisp.org>
64176
64177         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
64178
64179 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
64180
64181         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
64182         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
64183
64184 2007-03-29  Eric Blake  <ebb9@byu.net>
64185
64186         * lib/acl-internal.h: Remove redundant include.
64187         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
64188         Cygwin when a file is locked.
64189
64190 2007-03-29  Bruno Haible  <bruno@clisp.org>
64191
64192         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
64193         file.
64194         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
64195
64196 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
64197
64198         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
64199         try to remove a parent directory if the child couldn't be removed
64200         (except for the first rmdir, which could fail because the child
64201         doesn't exist).  Problem reported by Jeff Blaine in
64202         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
64203
64204 2007-03-28  Bruno Haible  <bruno@clisp.org>
64205
64206         * lib/striconveh.c (utf8conv_carefully): New function.
64207         (mem_cd_iconveh_internal): Invoke it.
64208
64209 2007-03-28  Bruno Haible  <bruno@clisp.org>
64210
64211         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
64212         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
64213         input.
64214         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
64215         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
64216         unistr/u8-uctomb.
64217
64218 2007-03-28  Bruno Haible  <bruno@clisp.org>
64219
64220         * modules/unistr/u8-mbtoucr: New file.
64221         * lib/unistr/u8-mbtoucr.c: New file.
64222         * modules/unistr/u16-mbtoucr: New file.
64223         * lib/unistr/u16-mbtoucr.c: New file.
64224         * modules/unistr/u16-mbtoucr: New file.
64225         * lib/unistr/u16-mbtoucr.c: New file.
64226         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
64227
64228 2007-03-27  Simon Josefsson  <simon@josefsson.org>
64229             Bruno Haible  <bruno@clisp.org>
64230
64231         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
64232         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
64233         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
64234
64235         * m4/stdio_h.m4: Add stubs for vasprintf too.
64236
64237         * modules/stdio: Support vasprintf in sed command.
64238
64239         * modules/vasprintf: Depend on stdio for prototypes.  Remove
64240         vasprintf.h.  Add stdio module indicator.
64241
64242         * lib/stdio_.h: Declare asprintf and vasprintf, based on
64243         vasprintf.h.
64244
64245         * lib/vasprintf.h: File removed.
64246
64247         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
64248         * lib/vasprintf.c: Ditto.
64249         * lib/xvasprintf.c: Ditto.
64250         * tests/test-vasprintf-posix.c: Ditto.
64251         * tests/test-vasprintf.c: Ditto.
64252
64253 2007-03-27  Bruno Haible  <bruno@clisp.org>
64254
64255         Make vasnprintf multithread-safe.
64256         * lib/vasnprintf.c (decimal_point_char): New function.
64257         (VASNPRINTF): Use it.
64258         Suggested by Simon Josefsson.
64259
64260 2007-03-27  Eric Blake  <ebb9@byu.net>
64261
64262         Support sub-second birthtime on cygwin.
64263         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
64264         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
64265         (get_stat_birthtime): Also work with st_birthtim.
64266
64267 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
64268
64269         * lib/stat-time.h (USE_BIRTHTIME): Remove.
64270         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
64271         (get_stat_birthtime_ns): Do not try to use "spare" fields.
64272         (get_stat_birthtime_ns): Simplify compile-time tests.
64273         (get_stat_birthtime): Change the API to look like
64274         get_stat_mtime etc., except return a negative tv_nsec on error.
64275         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
64276         Don't check for "spare" fields.
64277         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
64278         or for struct stat.st_birthtime, as these tests aren't used.
64279         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
64280
64281 2007-03-27  Bruno Haible  <bruno@clisp.org>
64282
64283         * lib/stat-time.h: Include <sys/stat.h>.
64284
64285 2007-03-27  James Youngman  <jay@gnu.org>
64286
64287         * lib/stat-time.h (get_stat_birthtime): New function for
64288           retrieving st_birthtime as provided by UFS2 (hence *BSD).
64289         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
64290           and its variants.
64291         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
64292         * modules/stat-time-test: New file.
64293         * tests/test-stat-time.c: New test, devised by Bruno Haible.
64294
64295 2007-03-26  Bruno Haible  <bruno@clisp.org>
64296
64297         Better support of signalling NaNs.
64298         * lib/atanl.c: Include isnanl.h.
64299         (atanl): Perform test for NaN at the beginning of the function and
64300         through a call to isnanl.
64301         * lib/cosl.c: Include isnanl.h.
64302         (cosl): Perform test for NaN at the beginning of the function and
64303         through a call to isnanl.
64304         * lib/ldexpl.c: Include isnanl.h.
64305         (ldexpl): Perform test for NaN through a call to isnanl.
64306         * lib/logl.c: Include isnanl.h.
64307         (logl): Perform test for NaN at the beginning of the function and
64308         through a call to isnanl.
64309         * lib/sinl.c: Include isnanl.h.
64310         (sinl): Perform test for NaN at the beginning of the function and
64311         through a call to isnanl.
64312         * lib/sqrtl.c: Include isnanl.h.
64313         (sqrtl): Perform test for NaN at the beginning of the function and
64314         through a call to isnanl.
64315         * lib/tanl.c: Include isnanl.h.
64316         (tanl): Perform test for NaN at the beginning of the function and
64317         through a call to isnanl.
64318         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
64319         * modules/mathl (Depends-on): Add isnanl.
64320
64321 2007-03-26  Eric Blake  <ebb9@byu.net>
64322
64323         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
64324         regression in logic sense of previous patch.
64325
64326 2007-03-26  Bruno Haible  <bruno@clisp.org>
64327
64328         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
64329         unportable shell command "if ! ...".
64330         Reported by Ralf Wildenhues.
64331
64332 2007-03-25  Bruno Haible  <bruno@clisp.org>
64333
64334         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
64335         <sysexits.h> file, and only add EX_CONFIG.
64336         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
64337         absolute file name and whether it is sufficient. Substitute also
64338         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
64339         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
64340         ABSOLUTE_SYSEXITS_H into sysexits.h.
64341
64342 2007-03-25  Bruno Haible  <bruno@clisp.org>
64343
64344         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
64345         hints is NULL.
64346
64347 2007-03-25  Bruno Haible  <bruno@clisp.org>
64348
64349         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
64350         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
64351
64352 2007-03-25  Bruno Haible  <bruno@clisp.org>
64353
64354         * lib/vasnprintf.c: Include langinfo.h.
64355         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
64356         multithread-safe.
64357         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
64358         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
64359         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
64360         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
64361         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
64362         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
64363         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
64364         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
64365         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
64366         Reported by Simon Josefsson.
64367
64368 2007-03-25  Bruno Haible  <bruno@clisp.org>
64369
64370         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
64371         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
64372         * modules/vasnprintf (Depends-on): Add stdint.
64373
64374 2007-03-25  Bruno Haible  <bruno@clisp.org>
64375
64376         * modules/fpieee: New file.
64377         * m4/fpieee.m4: New file.
64378         * modules/isnan-nolibm (Depends-on): Add fpieee.
64379         * modules/isnanl-nolibm (Depends-on): Add fpieee.
64380         * modules/isnanl (Depends-on): Add fpieee.
64381
64382 2007-03-25  Bruno Haible  <bruno@clisp.org>
64383
64384         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
64385
64386 2007-03-25  Bruno Haible  <bruno@clisp.org>
64387
64388         Avoid test failures on IRIX 6.5.
64389         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
64390         (main): Use it.
64391         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
64392         macros.
64393         (main): Use them.
64394
64395 2007-03-25  Bruno Haible  <bruno@clisp.org>
64396
64397         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
64398         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
64399         exists but doesn't work.
64400         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
64401         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
64402         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
64403         * modules/math (Makefile.am): Substibute also REPLACE_FREXPL into
64404         math.h.
64405
64406 2007-03-25  Bruno Haible  <bruno@clisp.org>
64407
64408         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
64409         returns inf. Needed on IRIX 6.5.
64410
64411 2007-03-25  Bruno Haible  <bruno@clisp.org>
64412
64413         * tests/test-frexpl.c: Include isnanl-nolibm.h.
64414         (main): Use isnanl instead of x != x idiom.
64415         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
64416
64417         * tests/test-frexp.c: Include isnan.h.
64418         (main): Use isnan instead of x != x idiom.
64419         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
64420
64421 2007-03-25  Bruno Haible  <bruno@clisp.org>
64422
64423         * tests/test-frexp.c (NaN): New function/macro.
64424         (main): Use it instead of 0.0 / 0.0.
64425         * tests/test-isnan.c (NaN): New function/macro.
64426         (main): Use it instead of 0.0 / 0.0.
64427         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
64428         (test_function): Use it instead of 0.0 / 0.0.
64429         * tests/test-vasprintf-posix.c (NaN): New function/macro.
64430         (test_function): Use it instead of 0.0 / 0.0.
64431         * tests/test-snprintf-posix.h (NaN): New function/macro.
64432         (test_function): Use it instead of 0.0 / 0.0.
64433         * tests/test-sprintf-posix.h (NaN): New function/macro.
64434         (test_function): Use it instead of 0.0 / 0.0.
64435         * tests/test-fprintf-posix.h (NaN): New function/macro.
64436         (test_function): Use it instead of 0.0 / 0.0.
64437         * tests/test-printf-posix.h (NaN): New function/macro.
64438         (test_function): Use it instead of 0.0 / 0.0.
64439
64440         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
64441
64442 2007-03-25  Bruno Haible  <bruno@clisp.org>
64443
64444         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
64445
64446 2007-03-25  Bruno Haible  <bruno@clisp.org>
64447
64448         * lib/regexec.c (merge_state_with_log): Make static.
64449
64450 2007-03-25  Bruno Haible  <bruno@clisp.org>
64451
64452         * lib/trigl.c (kernel_rem_pio2): Make static.
64453
64454 2007-03-25  Bruno Haible  <bruno@clisp.org>
64455
64456         * lib/sincosl.c (sincosl_table): Make static.
64457
64458 2007-03-25  Bruno Haible  <bruno@clisp.org>
64459
64460         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
64461         if the compiler does not support C99.
64462
64463 2007-03-25  Bruno Haible  <bruno@clisp.org>
64464
64465         * modules/time (Makefile.am): Ensure all rule action lines start with a
64466         tab.
64467
64468 2007-03-24  Bruno Haible  <bruno@clisp.org>
64469
64470         * modules/tsearch-tests: New file.
64471         * tests/test-tsearch.sh: New file.
64472         * tests/test-tsearch.c: New file, mostly copied from glibc.
64473
64474         * modules/search-tests: New file.
64475         * tests/test-search.c: New file.
64476
64477         * modules/search: New file.
64478         * lib/search_.h: New file, incorporating lib/tsearch.h.
64479         * m4/search_h.m4: New file.
64480         * lib/tsearch.h: Remove file.
64481         * lib/tsearch.c: Include search.h instead of tsearch.h.
64482         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
64483         HAVE_TSEARCH.
64484         * modules/tsearch (Files): Remove lib/tsearch.h.
64485         (Depends-on): Add search.
64486         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
64487         (Include): Change tsearch.h into search.h.
64488
64489 2007-03-24  Bruno Haible  <bruno@clisp.org>
64490
64491         * modules/fpucw: New file.
64492         * lib/fpucw.h: New file.
64493         * lib/frexp.c: Include fpucw.h.
64494         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
64495         (FUNC): Use them.
64496         * lib/printf-frexp.c: Include fpucw.h.
64497         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
64498         (FUNC): Use them.
64499         * lib/vasnprintf.c: Include fpucw.h.
64500         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
64501         'long double' calculations.
64502         * tests/test-frexpl.c: Include fpucw.h.
64503         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
64504         * tests/test-printf-frexpl.c: Include fpucw.h.
64505         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
64506         * modules/frexpl (Depends-on): Add fpucw.
64507         * modules/printf-frexpl (Depends-on): Likewise.
64508         * modules/fprintf-posix (Depends-on): Likewise.
64509         * modules/snprintf-posix (Depends-on): Likewise.
64510         * modules/sprintf-posix (Depends-on): Likewise.
64511         * modules/vasnprintf-posix (Depends-on): Likewise.
64512         * modules/vasprintf-posix (Depends-on): Likewise.
64513         * modules/vfprintf-posix (Depends-on): Likewise.
64514         * modules/vsnprintf-posix (Depends-on): Likewise.
64515         * modules/vsprintf-posix (Depends-on): Likewise.
64516         * modules/frexpl-tests (Depends-on): Likewise.
64517         * modules/printf-frexpl-tests (Depends-on): Likewise.
64518
64519 2007-03-24  Bruno Haible  <bruno@clisp.org>
64520
64521         * lib/float+.h: New file.
64522         * lib/isnan.c: Include float+.h.
64523         (SIZE): New macro.
64524         (FUNC): Compare only SIZE bytes of the value.
64525         * lib/vasnprintf.c: Include float+.h.
64526         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
64527         SIZEOF_LDBL or SIZEOF_DBL bytes.
64528         * modules/isnan-nolibm (Files): Add lib/float+.h.
64529         * modules/isnanl-nolibm (Files): Add lib/float+.h.
64530         * modules/isnanl (Files): Add lib/float+.h.
64531         * modules/vasnprintf (Files): Add lib/float+.h.
64532
64533 2007-03-24  Bruno Haible  <bruno@clisp.org>
64534
64535         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
64536         include isnanl-nolibm.h.
64537
64538 2007-03-24  Bruno Haible  <bruno@clisp.org>
64539
64540         * tests/test-read-file.c (main): Don't produce spurious output for
64541         expected situations. Make the test fail if it encountered unexpected
64542         results.
64543
64544 2007-03-24  Bruno Haible  <bruno@clisp.org>
64545
64546         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
64547         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
64548
64549 2007-03-24  Bruno Haible  <bruno@clisp.org>
64550
64551         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
64552
64553 2007-03-24  Bruno Haible  <bruno@clisp.org>
64554
64555         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
64556         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
64557
64558         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
64559         * modules/utf8-ucs4: Turn into a symbolic link to module
64560         unistr/u8-mbtouc.
64561
64562         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
64563         utf8-ucs4-unsafe.
64564         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
64565         unistr/u8-mbtouc-unsafe.
64566
64567         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
64568         * modules/utf16-ucs4: Turn into a symbolic link to module
64569         unistr/u16-mbtouc.
64570
64571         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
64572         utf16-ucs4-unsafe.
64573         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
64574         unistr/u16-mbtouc-unsafe.
64575
64576         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
64577         * modules/ucs4-utf8: Turn into a symbolic link to module
64578         unistr/u8-ubtomb.
64579
64580         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
64581         * modules/ucs4-utf16: Turn into a symbolic link to module
64582         unistr/u16-ubtomb.
64583
64584 2007-03-24  Bruno Haible  <bruno@clisp.org>
64585
64586         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
64587         Enable the function only if HAVE_INLINE.
64588         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
64589         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
64590         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
64591         Enable the function only if HAVE_INLINE.
64592         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
64593         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
64594         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
64595         Enable the function only if HAVE_INLINE.
64596         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
64597         Enable the function only if HAVE_INLINE.
64598         * modules/utf8-ucs4: Update.
64599         * modules/utf8-ucs4-unsafe: Update.
64600         * modules/utf16-ucs4: Update.
64601         * modules/utf16-ucs4-unsafe: Update.
64602         * modules/ucs4-utf8: Update.
64603         * modules/ucs4-utf16: Update.
64604
64605 2007-03-24  Bruno Haible  <bruno@clisp.org>
64606
64607         * lib/utf8-ucs4.h: Remove file.
64608         * lib/utf8-ucs4-unsafe.h: Remove file.
64609         * lib/utf16-ucs4.h: Remove file.
64610         * lib/utf16-ucs4-unsafe.h: Remove file.
64611         * lib/ucs4-utf8.h: Remove file.
64612         * lib/ucs4-utf16.h: Remove file.
64613         * lib/unistr.h: Include their previous contents.
64614         * m4/utf-ucs4.m4: Remove file.
64615         * m4/ucs4-utf.m4: Remove file.
64616         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
64617         (Depends-on): Add unistr/base.
64618         (configure.ac): Remove gl_UTF_UCS4.
64619         (Makefile.am): Update.
64620         (Include): Change to unistr.h.
64621         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
64622         (Depends-on): Add unistr/base.
64623         (configure.ac): Remove gl_UTF_UCS4.
64624         (Makefile.am): Update.
64625         (Include): Change to unistr.h.
64626         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
64627         (Depends-on): Add unistr/base.
64628         (configure.ac): Remove gl_UTF_UCS4.
64629         (Makefile.am): Update.
64630         (Include): Change to unistr.h.
64631         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
64632         (Depends-on): Add unistr/base.
64633         (configure.ac): Remove gl_UTF_UCS4.
64634         (Makefile.am): Update.
64635         (Include): Change to unistr.h.
64636         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
64637         (Depends-on): Add unistr/base.
64638         (configure.ac): Remove gl_UCS4_UTF.
64639         (Makefile.am): Update.
64640         (Include): Change to unistr.h.
64641         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
64642         (Depends-on): Add unistr/base.
64643         (configure.ac): Remove gl_UCS4_UTF.
64644         (Makefile.am): Update.
64645         (Include): Change to unistr.h.
64646         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
64647         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
64648         utf8-ucs4-unsafe.h.
64649         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
64650         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
64651         utf16-ucs4-unsafe.h.
64652         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
64653         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
64654         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
64655         * lib/unistr/u8-strchr.c: Likewise.
64656         * lib/unistr/u8-strrchr.c: Likewise.
64657         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
64658         * lib/unistr/u16-strchr.c: Likewise.
64659         * lib/unistr/u16-strrchr.c: Likewise.
64660         * lib/striconveh.c: Update.
64661         * lib/linebreak.c: Update.
64662
64663 2007-03-24  Bruno Haible  <bruno@clisp.org>
64664
64665         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
64666         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
64667
64668 2007-03-22  Bruno Haible  <bruno@clisp.org>
64669
64670         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
64671
64672 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
64673
64674         * MODULES.html.sh (File system functions): New module write-any-file.
64675         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
64676         * m4/write-any-file.m4: New files.
64677
64678 2007-03-23  Eric Blake  <ebb9@byu.net>
64679
64680         * gnulib-tool: Rearrange space-tab sequences, since some editors
64681         like to eat them.
64682
64683 2007-03-23  Eric Blake  <ebb9@byu.net>
64684
64685         * lib/version-etc.c (version_etc_va): Update license wording to
64686         be more concise.  Recommended by Richard Stallman.
64687
64688 2007-03-22  Bruno Haible  <bruno@clisp.org>
64689
64690         * lib/poll.c (MSG_PEEK): New fallback definition.
64691
64692 2007-03-22  Bruno Haible  <bruno@clisp.org>
64693
64694         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
64695         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
64696         (main): Update.
64697         Fixes a compilation error on BeOS.
64698
64699 2007-03-22  Bruno Haible  <bruno@clisp.org>
64700
64701         * modules/frexpl-tests: New file.
64702         * tests/test-frexpl.c: New file.
64703
64704         * modules/frexpl: New file.
64705         * m4/frexpl.m4: New file.
64706         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
64707         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
64708         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
64709         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
64710         (Depends-on): Add frexpl. Remove isnanl-nolibm.
64711         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
64712
64713 2007-03-22  Bruno Haible  <bruno@clisp.org>
64714
64715         * lib/frexpl.c: Share code with lib/frexp.c.
64716         * modules/mathl (Files): Add lib/frexp.c.
64717         (Depends-on): Add isnanl-nolibm.
64718
64719 2007-03-22  Bruno Haible  <bruno@clisp.org>
64720
64721         * modules/printf-frexp (Files): Add m4/frexp.m4.
64722         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
64723         only if the found frexp function actually works.
64724
64725 2007-03-22  Bruno Haible  <bruno@clisp.org>
64726
64727         * lib/frexp.c: Remove older implementation that uses divisions.
64728
64729 2007-03-21  Bruno Haible  <bruno@clisp.org>
64730
64731         * modules/frexp-tests: New file.
64732         * tests/test-frexp.c: New file.
64733
64734         * modules/frexp: New file.
64735         * lib/frexp.c: New file.
64736         * m4/frexp.m4: New file.
64737         * lib/math_.h (frexp): New declaration.
64738         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
64739         REPLACE_FREXP.
64740         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
64741
64742 2007-03-21  Bruno Haible  <bruno@clisp.org>
64743
64744         * modules/isnanl-tests: New file.
64745         * tests/test-isnanl.c: New file.
64746
64747         * modules/isnanl: New file.
64748         * lib/isnanl.h: New file.
64749         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
64750         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
64751         gl_FUNC_ISNANL_WORKS.
64752         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
64753         New macros.
64754
64755 2007-03-21  Bruno Haible  <bruno@clisp.org>
64756
64757         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
64758         lib/isnanl.h.
64759         (Include): Update.
64760         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
64761         * lib/vasnprintf.c: Update.
64762         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
64763         tests/test-isnanl.h, remove tests/test-isnanl.c.
64764         (Makefile.am): Update.
64765         * tests/test-isnanl-nolibm.c: New file.
64766         * tests/test-isnanl.h: New file.
64767         * tests/test-isnanl.c: Remove file.
64768
64769 2007-03-21  Jim Meyering  <jim@meyering.net>
64770
64771         When trying to open ".", treat ESTALE like EACCES.
64772         * lib/savewd.c (savewd_save): Resort to forking not just upon
64773         failure with EACCES, but also when errno is ESTALE.
64774
64775 2007-03-20  Bruno Haible  <bruno@clisp.org>
64776
64777         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
64778         Needed on AIX 5.1. Reported by Matthew Woehlke.
64779
64780 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
64781
64782         Suggestions by Bruno Haible:
64783         * lib/acl-internal.h: Include "gettext.h" rather than rolling
64784         our own.
64785         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
64786         * modules/acl (Depends-on): Add gettext.
64787
64788 2007-03-19  Bruno Haible  <bruno@clisp.org>
64789
64790         * modules/iconvme: Remove file.
64791         * lib/iconvme.h: Remove file.
64792         * lib/iconvme.c: Remove file.
64793         * m4/iconvme.m4: Remove file.
64794
64795 2007-03-19  Bruno Haible  <bruno@clisp.org>
64796
64797         * doc/relocatable-maint.texi: Break long shell script line.
64798         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
64799
64800 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
64801
64802         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
64803         handle file_has_acl.
64804         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
64805         * lib/acl.c: Move header inclusions and related macro defns into
64806         lib/acl-internal.h.
64807         (S_ISLNK): Remove defn, since that's now done for us.
64808         (file_has_acl): Move to lib/file-has-acl.c.
64809         Call acl_trivial if available.  This is the crucial part of the fix.
64810         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
64811         shared within the library.  Rewrite a bit, partly to make it compatible
64812         with the GNU coding style.
64813         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
64814         Remove unnecessary double-quotes.
64815         Don't test for acl_to_text; the build will catch that.
64816         Replace acl_entries if it doesn't exist and it is needed.
64817         Check for -lsec and acl_trivial (as used on Solaris 10).
64818         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
64819         lib/file-has-acl.c.
64820         (Depends-on): Add sys_stat, for S_ISLNK.
64821
64822 2007-03-19  Ben Pfaff  <blp@gnu.org>
64823
64824         * doc/gnulib.texi: Fix typos.
64825         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
64826
64827 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
64828
64829         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
64830         If size is zero here, buf must be zero.
64831
64832 2007-03-19  Simon Josefsson  <simon@josefsson.org>
64833
64834         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
64835         <bruno@clisp.org>.
64836
64837 2007-03-18  Bruno Haible  <bruno@clisp.org>
64838
64839         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
64840         Suggested by Eric Blake.
64841
64842 2007-03-18  Ben Pfaff  <blp@gnu.org>
64843
64844         * doc/relocatable.texi: Recommend using as prefix a directory
64845         that does not exist and will never be created.  Based on
64846         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
64847         and others.
64848
64849 2007-03-17  Bruno Haible  <bruno@clisp.org>
64850
64851         * lib/fchownat.c: Include lchown.h.
64852
64853 2007-03-17  Bruno Haible  <bruno@clisp.org>
64854
64855         Fix endless loop when the given allocated size was > INT_MAX.
64856         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
64857         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
64858         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
64859         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
64860         * lib/sprintf.c (sprintf): Likewise.
64861
64862 2007-03-17  Bruno Haible  <bruno@clisp.org>
64863
64864         * tests/test-argp-2.sh (func_compare): Output a context diff.
64865
64866 2007-03-17  Bruno Haible  <bruno@clisp.org>
64867
64868         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
64869         locale's decimal-point character.
64870
64871 2007-03-17  Bruno Haible  <bruno@clisp.org>
64872
64873         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
64874         before comparing it. Needed because on some platforms (e.g. x86) a
64875         'long double' occupies less bytes than sizeof (long double).
64876
64877 2007-03-17  Bruno Haible  <bruno@clisp.org>
64878
64879         * tests/test-crc.c (main): Make printf statements 64-bit clean.
64880         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
64881         * tests/test-getaddrinfo.c (simple): Likewise.
64882         * tests/test-read-file.c (main): Likewise.
64883
64884 2007-03-17  Bruno Haible  <bruno@clisp.org>
64885
64886         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
64887
64888 2007-03-17  Bruno Haible  <bruno@clisp.org>
64889
64890         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
64891         unused variable.
64892
64893 2007-03-17  Bruno Haible  <bruno@clisp.org>
64894
64895         * tests/test-c-strcasecmp.c: Include c-strcase.h.
64896         * tests/test-c-strncasecmp.c: Likewise.
64897
64898 2007-03-17  Bruno Haible  <bruno@clisp.org>
64899
64900         * modules/stdlib (Depends-on): Add unistd.
64901         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
64902         Needed for MacOS X 10.3.
64903
64904 2007-03-17  Bruno Haible  <bruno@clisp.org>
64905
64906         * lib/unistr/u-strdup.h: Include <stdlib.h>.
64907
64908 2007-03-17  Bruno Haible  <bruno@clisp.org>
64909
64910         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
64911
64912 2007-03-17  Bruno Haible  <bruno@clisp.org>
64913
64914         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
64915         to reflect files copied from gnulib (with or without modifications).
64916         Suggested by Jim Meyering.
64917
64918 2007-03-17  Eric Blake  <ebb9@byu.net>
64919
64920         * NEWS: Document stdlib change from 2007-02-18.
64921
64922 2007-03-17  Jim Meyering  <jim@meyering.net>
64923
64924         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
64925         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
64926         someone uses a name containing shell meta-characters.
64927         Reported by Alfred M. Szmidt.
64928
64929         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
64930
64931 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
64932
64933         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
64934         and copy gettext configuration files only if configure.ac contains
64935         a use of AM_GNU_GETTEXT_VERSION.
64936
64937 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
64938
64939         * build-aux/bootstrap (gnulib_name): New variable.
64940         (gnulib_tool_options): Use it.
64941
64942 2007-03-13  Simon Josefsson  <simon@josefsson.org>
64943
64944         * tests/test-des.c: Use new namespace.
64945
64946 2007-03-15  Bruno Haible  <bruno@clisp.org>
64947
64948         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
64949         Reported by James Youngman <jay@gnu.org>.
64950
64951 2007-03-15  Bruno Haible  <bruno@clisp.org>
64952
64953         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
64954         declared prototype. Needed with cc on OSF/1 5.1.
64955
64956 2007-03-15  Bruno Haible  <bruno@clisp.org>
64957
64958         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
64959         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
64960         (struct gl_list_implementation): Add dispose_fn argument to the
64961         'create_empty', 'create' methods.
64962         (struct gl_list_impl_base): Add field 'dispose_fn'.
64963         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
64964         argument.
64965         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
64966         dispose_fn argument.
64967         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
64968         dispose_fn on the dropped values.
64969         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
64970         dispose_fn argument.
64971         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
64972         dropped values.
64973         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
64974         (gl_tree_remove_node): Call dispose_fn on the dropped value.
64975         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
64976         (gl_tree_remove_node): Call dispose_fn on the dropped value.
64977         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
64978         argument.
64979         (gl_tree_list_free): Call dispose_fn on the dropped values.
64980         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
64981         the dropped values.
64982         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
64983         Add dispose_fn argument.
64984         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
64985         Call dispose_fn on the dropped values.
64986         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
64987         Add dispose_fn argument.
64988         (gl_sublist_create): Initialize the 'dispose_fn' field.
64989         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
64990         * tests/test-array_list.c (main): Update.
64991         * tests/test-carray_list.c (main): Update.
64992         * tests/test-avltree_list.c (main): Update.
64993         * tests/test-rbtree_list.c (main): Update.
64994         * tests/test-avltreehash_list.c (main): Update.
64995         * tests/test-rbtreehash_list.c (main): Update.
64996         * tests/test-linked_list.c (main): Update.
64997         * tests/test-linkedhash_list.c (main): Update.
64998         * tests/test-array_oset.c (main): Update.
64999
65000 2007-03-15  Bruno Haible  <bruno@clisp.org>
65001
65002         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
65003         (gl_oset_create_empty): Add dispose_fn argument.
65004         (struct gl_oset_implementation): Add dispose_fn argument to
65005         'create_empty' method.
65006         (struct gl_oset_impl_base): Add dispose_fn field.
65007         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
65008         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
65009         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
65010         values.
65011         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
65012         (gl_tree_oset_free): Call dispose_fn on the dropped values.
65013         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
65014         dropped value.
65015         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
65016         dropped value.
65017         * tests/test-array_oset.c (main): Update.
65018         * tests/test-avltree_oset.c (main): Update.
65019         * tests/test-rbtree_oset.c (main): Update.
65020         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
65021
65022 2007-03-13  Bruno Haible  <bruno@clisp.org>
65023
65024         * tests/test-stdbool.c (i): Update after last patch.
65025
65026 2007-03-12  Bruno Haible  <bruno@clisp.org>
65027
65028         * lib/quotearg.c: Include <wctype.h> early, before the definition of
65029         the iswprint macro. Needed on Solaris 2.5.1.
65030
65031 2007-03-12  Bruno Haible  <bruno@clisp.org>
65032
65033         * tests/test-printf-frexp.c (main): Declare x as volatile.
65034
65035 2007-03-12  Simon Josefsson  <simon@josefsson.org>
65036
65037         * doc/gnulib.texi (Build robot for gnulib): New section.
65038
65039 2007-03-12  Jim Meyering  <jim@meyering.net>
65040
65041         * build-aux/bootstrap: New file.
65042         * build-aux/bootstrap.conf: New file, from coreutils.
65043
65044 2007-03-11  Bruno Haible  <bruno@clisp.org>
65045
65046         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
65047
65048 2007-03-12  Simon Josefsson  <simon@josefsson.org>
65049
65050         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
65051         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
65052         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
65053
65054 2007-03-11  Bruno Haible  <bruno@clisp.org>
65055
65056         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
65057         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
65058
65059 2007-03-11  Bruno Haible  <bruno@clisp.org>
65060
65061         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
65062         formula. Needed for SunPRO C 5.0.
65063
65064 2007-03-11  Bruno Haible  <bruno@clisp.org>
65065
65066         * modules/long-options (Depends-on): Add getopt.
65067
65068 2007-03-11  Bruno Haible  <bruno@clisp.org>
65069
65070         * modules/modechange (Depends-on): Add stdbool.
65071
65072 2007-03-11  Bruno Haible  <bruno@clisp.org>
65073
65074         * modules/i-ring (Depends-on): Add stdbool.
65075
65076 2007-03-11  Bruno Haible  <bruno@clisp.org>
65077
65078         * modules/gc-des (Depends-on): Add stdbool.
65079
65080 2007-03-11  Bruno Haible  <bruno@clisp.org>
65081
65082         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
65083
65084 2007-03-11  Bruno Haible  <bruno@clisp.org>
65085
65086         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
65087
65088 2007-03-11  Bruno Haible  <bruno@clisp.org>
65089
65090         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
65091
65092 2007-03-11  Bruno Haible  <bruno@clisp.org>
65093
65094         * lib/vasnprintf.c (sprintf): Undefine.
65095
65096 2007-03-11  Bruno Haible  <bruno@clisp.org>
65097
65098         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
65099         initializers in SunPRO C and Compaq C compilers.
65100
65101 2007-03-11  Bruno Haible  <bruno@clisp.org>
65102
65103         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
65104         decrementing code ANSI C compliant.
65105
65106 2007-03-11  Bruno Haible  <bruno@clisp.org>
65107
65108         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
65109         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
65110
65111 2007-03-11  Bruno Haible  <bruno@clisp.org>
65112
65113         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
65114         <stdbool.h> substitute doesn't pass.
65115
65116 2007-03-11  Bruno Haible  <bruno@clisp.org>
65117
65118         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
65119
65120 2007-03-11  Bruno Haible  <bruno@clisp.org>
65121
65122         * gnulib-tool (func_create_megatestdir): Create also an autobuild
65123         script, for submission to autobuild.josefsson.org.
65124
65125 2007-03-10  Bruno Haible  <bruno@clisp.org>
65126
65127         * modules/canonicalize-lgpl-tests: New file.
65128         * tests/test-canonicalize-lgpl.sh: New file.
65129         * tests/test-canonicalize-lgpl.c: New file.
65130
65131         * modules/c-strcase-tests: New file.
65132         * tests/test-c-strcase.sh: New file.
65133         * tests/test-c-strcasecmp.c: New file.
65134         * tests/test-c-strncasecmp.c: New file.
65135
65136         * modules/atexit-tests: New file.
65137         * tests/test-atexit.sh: New file.
65138         * tests/test-atexit.c: New file.
65139
65140 2007-03-10  Bruno Haible  <bruno@clisp.org>
65141
65142         * tests/test-binary-io.sh: Use temporary filenames that are not so
65143         likely to clash with those of other tests (in a parallel make).
65144         * tests/test-binary-io.c: Likewise.
65145
65146 2007-03-10  Bruno Haible  <bruno@clisp.org>
65147
65148         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
65149         fallback; use #error instead.
65150         Suggested by Simon Josefsson.
65151
65152 2007-03-10  Bruno Haible  <bruno@clisp.org>
65153
65154         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
65155         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
65156         first and the last.
65157
65158 2007-03-10  Bruno Haible  <bruno@clisp.org>
65159
65160         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
65161
65162 2007-03-10  Bruno Haible  <bruno@clisp.org>
65163
65164         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
65165         "make distcheck".
65166         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
65167         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
65168         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
65169
65170 2007-03-10  Bruno Haible  <bruno@clisp.org>
65171
65172         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
65173         variable.
65174         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
65175         variable.
65176
65177 2007-03-09  Eric Blake  <ebb9@byu.net>
65178         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
65179
65180         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
65181         types are not being provided by gnulib.
65182         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
65183         types are supported.
65184
65185 2007-03-10  Bruno Haible  <bruno@clisp.org>
65186
65187         * lib/stdio_.h (__attribute__): New macro.
65188         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
65189         vsprintf): Specify __attribute__ __format__ for GCC.
65190         Suggested by Eric Blake.
65191
65192 2007-03-09  Bruno Haible  <bruno@clisp.org>
65193
65194         * modules/printf-posix-tests: New file.
65195         * tests/test-printf-posix.sh: New file.
65196         * tests/test-printf-posix.c: New file.
65197
65198         * modules/printf-posix: New file.
65199         * lib/printf.c: New file.
65200         * m4/printf-posix-rpl.m4: New file.
65201         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
65202         REPLACE_PRINTF.
65203         * lib/stdio_.h (printf): New declaration.
65204         (format, __format__, ____printf____, ____scanf____, ____strftime____,
65205         ____strfmon____): New macros.
65206         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
65207         REPLACE_PRINTF.
65208
65209 2007-03-09  Bruno Haible  <bruno@clisp.org>
65210
65211         * tests/test-vasnprintf-posix2.sh: New file.
65212         * tests/test-vasnprintf-posix2.c: New file.
65213         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
65214         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
65215         (Makefile.am): Activate test-vasnprintf-posix2.sh.
65216
65217         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
65218         a locale dependent decimal point, rather than always '.'.
65219
65220 2007-03-09  Eric Blake  <ebb9@byu.net>
65221
65222         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
65223         spite of platforms like Tandem/NSK that define it to -1.
65224
65225 2007-03-08  Bruno Haible  <bruno@clisp.org>
65226
65227         * modules/vprintf-posix-tests: New file.
65228         * tests/test-vprintf-posix.sh: New file.
65229         * tests/test-vprintf-posix.c: New file.
65230         * tests/test-printf-posix.h: New file.
65231
65232         * modules/vprintf-posix: New file.
65233         * lib/vprintf.c: New file.
65234         * m4/vprintf-posix.m4: New file.
65235         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
65236         REPLACE_VPRINTF.
65237         * lib/stdio_.h (vprintf): New declaration.
65238         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
65239         REPLACE_VPRINTF.
65240
65241 2007-03-08  Bruno Haible  <bruno@clisp.org>
65242
65243         * modules/fprintf-posix-tests: New file.
65244         * tests/test-fprintf-posix.sh: New file.
65245         * tests/test-fprintf-posix.c: New file.
65246
65247         * modules/fprintf-posix: New file.
65248         * lib/fprintf.c: New file.
65249         * m4/fprintf-posix.m4: New file.
65250         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
65251         REPLACE_FPRINTF.
65252         * lib/stdio_.h (fprintf): New declaration.
65253         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
65254         REPLACE_FPRINTF.
65255
65256 2007-03-08  Bruno Haible  <bruno@clisp.org>
65257
65258         * modules/vfprintf-posix-tests: New file.
65259         * tests/test-vfprintf-posix.sh: New file.
65260         * tests/test-vfprintf-posix.c: New file.
65261         * tests/test-fprintf-posix.h: New file.
65262         * tests/test-fprintf-posix.out: New file.
65263
65264         * modules/vfprintf-posix: New file.
65265         * lib/vfprintf.c: New file.
65266         * m4/vfprintf-posix.m4: New file.
65267         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
65268         REPLACE_VFPRINTF.
65269         * lib/stdio_.h (vfprintf): New declaration.
65270         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
65271         REPLACE_VFPRINTF.
65272
65273 2007-03-08  Bruno Haible  <bruno@clisp.org>
65274
65275         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
65276
65277 2007-03-08  Bruno Haible  <bruno@clisp.org>
65278
65279         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
65280         instead of 'expr' invocations.
65281         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
65282         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
65283         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
65284         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
65285         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
65286         Suggested by Paul Eggert.
65287
65288 2007-03-08  Bruno Haible  <bruno@clisp.org>
65289
65290         * modules/fseterr-tests: New file.
65291         * tests/test-fseterr.c: New file.
65292
65293         * modules/fseterr: New file.
65294         * lib/fseterr.h: New file.
65295         * lib/fseterr.c: New file.
65296
65297 2007-03-08  Bruno Haible  <bruno@clisp.org>
65298
65299         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
65300         * lib/getopt_.h: Likewise.
65301         * lib/mbswidth.h: Likewise.
65302         * lib/setenv.h: Likewise.
65303         * lib/vasnprintf.h: Likewise.
65304         * lib/vasprintf.h: Likewise.
65305         * lib/verror.h: Likewise.
65306         * lib/xsetenv.h: Likewise.
65307         * lib/xvasprintf.h: Likewise.
65308
65309 2007-03-08  Jim Meyering  <jim@meyering.net>
65310
65311         * users.txt: Add parted.
65312
65313         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
65314
65315 2007-03-07  Bruno Haible  <bruno@clisp.org>
65316
65317         * m4/printf.m4: Make the shell script snippets copy&pastable.
65318
65319 2007-03-02  Bruno Haible  <bruno@clisp.org>
65320
65321         * lib/netinet_in_.h: New file.
65322         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
65323         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
65324         * modules/netinet_in (Files): Add lib/netinet_in_.h.
65325         (Depends-on): Add absolute-header.
65326         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
65327         into netinet/in.h.
65328
65329 2007-03-03  Bruno Haible  <bruno@clisp.org>
65330
65331         * lib/sys_select_.h: New file.
65332         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
65333         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
65334         * modules/sys_select (Files): Add lib/sys_select_.h.
65335         (Depends-on): Add absolute-header.
65336         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
65337         into sys/select.h.
65338
65339 2007-03-02  Bruno Haible  <bruno@clisp.org>
65340
65341         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
65342         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
65343         values.
65344         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
65345         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
65346         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
65347         * modules/sys_socket (Depends-on): Add absolute-header.
65348         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
65349         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
65350         (Include): Remove requirement of inclusion of <sys/types.h>.
65351
65352 2007-03-02  Bruno Haible  <bruno@clisp.org>
65353
65354         * lib/byteswap_.h (bswap_32): Fix formula.
65355
65356 2007-03-06  Bruno Haible  <bruno@clisp.org>
65357
65358         * modules/sprintf-posix-tests: New file.
65359         * tests/test-sprintf-posix.c: New file.
65360
65361         * modules/sprintf-posix: New file.
65362         * lib/sprintf.c: New file.
65363         * m4/sprintf-posix.m4: New file.
65364         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
65365         REPLACE_SPRINTF.
65366         * lib/stdio_.h (sprintf): New declaration.
65367         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
65368         REPLACE_SPRINTF.
65369
65370 2007-03-06  Bruno Haible  <bruno@clisp.org>
65371
65372         * modules/vsprintf-posix-tests: New file.
65373         * tests/test-vsprintf-posix.c: New file.
65374         * tests/test-sprintf-posix.h: New file.
65375
65376         * modules/vsprintf-posix: New file.
65377         * lib/vsprintf.c: New file.
65378         * m4/vsprintf-posix.m4: New file.
65379         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
65380         REPLACE_VSPRINTF.
65381         * lib/stdio_.h (vsprintf): New declaration.
65382         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
65383         REPLACE_VSPRINTF.
65384
65385 2007-03-06  Bruno Haible  <bruno@clisp.org>
65386
65387         * modules/vsnprintf (Depend-on): Remove minmax.
65388
65389 2007-03-06  Bruno Haible  <bruno@clisp.org>
65390
65391         * modules/snprintf-posix-tests: New file.
65392         * tests/test-snprintf-posix.c: New file.
65393
65394         * modules/snprintf-posix: New file.
65395         * m4/snprintf-posix.m4: New file.
65396         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
65397         gl_FUNC_SNPRINTF.
65398         (gl_FUNC_SNPRINTF): Invoke it.
65399         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
65400         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
65401         is set.
65402         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
65403
65404 2007-03-06  Bruno Haible  <bruno@clisp.org>
65405
65406         * modules/vsnprintf-posix-tests: New file.
65407         * tests/test-vsnprintf-posix.c: New file.
65408         * tests/test-snprintf-posix.h: New file.
65409
65410         * modules/vsnprintf-posix: New file.
65411         * m4/vsnprintf-posix.m4: New file.
65412         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
65413         gl_FUNC_VSNPRINTF.
65414         (gl_FUNC_VSNPRINTF): Invoke it.
65415         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
65416         * lib/stdio_.h (vsnprintf): Define as a replacement if
65417         REPLACE_VSNPRINTF is set.
65418         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
65419
65420 2007-03-06  Bruno Haible  <bruno@clisp.org>
65421
65422         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
65423         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
65424
65425 2007-03-06  Bruno Haible  <bruno@clisp.org>
65426
65427         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
65428         (asinl): Declare also if HAVE_DECL_ASINL is set.
65429         (atanl): Declare also if HAVE_DECL_ATANL is set.
65430         (ceill): Declare also if HAVE_DECL_CEILL is set.
65431         (cosl): Declare also if HAVE_DECL_COSL is set.
65432         (expl): Declare also if HAVE_DECL_EXPL is set.
65433         (floorl): Declare also if HAVE_DECL_FLOORL is set.
65434         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
65435         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
65436         (logl): Declare also if HAVE_DECL_LOGL is set.
65437         (sinl): Declare also if HAVE_DECL_SINL is set.
65438         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
65439         (tanl): Declare also if HAVE_DECL_TANL is set.
65440         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
65441         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
65442         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
65443         declaration of frexpl, ldexpl.
65444         * modules/printf-frexpl (Depends-on): Add math.
65445         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
65446
65447 2007-03-05  Bruno Haible  <bruno@clisp.org>
65448
65449         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
65450         frexpl and ldexpl are declared.
65451         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
65452
65453 2007-03-05  Bruno Haible  <bruno@clisp.org>
65454
65455         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
65456         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
65457
65458 2007-03-05  Bruno Haible  <bruno@clisp.org>
65459
65460         * lib/stdio_.h: Include <stddef.h>.
65461
65462 2007-03-05  Bruno Haible  <bruno@clisp.org>
65463
65464         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
65465
65466 2007-03-05  Bruno Haible  <bruno@clisp.org>
65467
65468         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
65469         NetBSD 4, from Ralf Wildenhues.
65470
65471 2007-03-04  Bruno Haible  <bruno@clisp.org>
65472
65473         * lib/vasprintf.h: Update #if logic for the case when the functions
65474         exist but are overridden.
65475
65476 2007-03-04  Bruno Haible  <bruno@clisp.org>
65477
65478         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
65479         implementations: glibc-2.4 and MacOS X 10.3.
65480         * tests/test-vasnprintf-posix.c (test_function): Test also the case
65481         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
65482         * tests/test-vasprintf-posix.c (test_function): Likewise.
65483
65484 2007-03-04  Bruno Haible  <bruno@clisp.org>
65485
65486         * modules/vasprintf-posix-tests: New file.
65487         * tests/test-vasprintf-posix.c: New file.
65488
65489         * modules/vasprintf-posix: New file.
65490         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
65491         defined.
65492         * m4/vasprintf-posix.m4: New file.
65493         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
65494         gl_FUNC_VASPRINTF.
65495         (gl_FUNC_VASPRINTF): Invoke it.
65496         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
65497         here.
65498         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
65499
65500 2007-03-04  Bruno Haible  <bruno@clisp.org>
65501
65502         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
65503         REPLACE_GETTIMEOFDAY.
65504         * modules/sys_time (Makefile.am): Likewise.
65505         * m4/sys_time_h.m4: Likewise.
65506         * m4/gettimeofday.m4: Likewise.
65507
65508 2007-03-04  Bruno Haible  <bruno@clisp.org>
65509
65510         * modules/vasnprintf-posix-tests: New file.
65511         * tests/test-vasnprintf-posix.c: New file.
65512
65513         * modules/vasnprintf-posix: New file.
65514         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
65515         printf-frexpl.h.
65516         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
65517         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
65518         REPLACE_VASNPRINTF is defined.
65519         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
65520         gl_FUNC_VASNPRINTF.
65521         (gl_FUNC_VASNPRINTF): Invoke it.
65522         * m4/vasnprintf-posix.m4: New file.
65523         * m4/printf.m4: New file.
65524
65525 2007-03-04  Bruno Haible  <bruno@clisp.org>
65526
65527         Compile progreloc.c only if --enable-relocatable is specified.
65528         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
65529         if --enable-relocatable was specified.
65530         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
65531         lib_SOURCES.
65532
65533 2007-03-04  Jim Meyering  <jim@meyering.net>
65534
65535         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
65536         Use it consistently, rather than enumerating errno constants.
65537
65538 2007-03-04  Bruno Haible  <bruno@clisp.org>
65539
65540         * modules/xvasprintf-tests: New file.
65541         * tests/test-xvasprintf.c: New file.
65542
65543         * modules/vasprintf-tests: New file.
65544         * tests/test-vasprintf.c: New file.
65545
65546         * modules/vasnprintf-tests: New file.
65547         * tests/test-vasnprintf.c: New file.
65548
65549         * modules/vsnprintf-tests: New file.
65550         * tests/test-vsnprintf.c: New file.
65551
65552         * modules/snprintf-tests: New file.
65553         * tests/test-snprintf.c: New file.
65554
65555 2007-03-04  Bruno Haible  <bruno@clisp.org>
65556
65557         Compile relocatable.c only if --enable-relocatable is specified.
65558         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
65559         gl_RELOCATABLE_LIBRARY.
65560         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
65561         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
65562         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
65563         gl_RELOCATABLE_LIBRARY.
65564         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
65565         (Makefile.am): Remove lib_SOURCES.
65566         * modules/relocatable-lib-lgpl (configure.ac): Invoke
65567         gl_RELOCATABLE_LIBRARY.
65568         (Makefile.am): Remove lib_SOURCES.
65569         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
65570         always.
65571         * modules/relocatable-prog-wrapper (configure.ac): Invoke
65572         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
65573
65574 2007-03-04  Bruno Haible  <bruno@clisp.org>
65575
65576         * modules/argmatch-tests: New file.
65577         * tests/test-argmatch.c: New file.
65578
65579         * tests/test-allocsa.c (main): Halve the number of loop runs.
65580
65581         * modules/alloca-opt-tests: New file.
65582         * tests/test-alloca-opt.c: New file.
65583
65584 2007-03-04  Jim Meyering  <jim@meyering.net>
65585
65586         Work around difference between Linux ACLs and Solaris 10 ZFS.
65587         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
65588         for EINVAL.
65589
65590 2007-03-03  Bruno Haible  <bruno@clisp.org>
65591
65592         * modules/relocatable-prog (Depends-on): Add back progreloc's
65593         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
65594
65595 2007-03-03  Bruno Haible  <bruno@clisp.org>
65596
65597         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
65598         * modules/relocatable-lib: New file.
65599
65600 2007-03-03  Bruno Haible  <bruno@clisp.org>
65601
65602         * modules/relocatable-prog: Renamed from modules/relocatable.
65603         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
65604
65605 2007-03-03  Bruno Haible  <bruno@clisp.org>
65606
65607         * modules/relocatable-script (Files): Add doc/relocatable.texi,
65608         m4/relocatable-lib.m4.
65609         (Depends-on): Remove 'relocatable'.
65610         (configure.ac): Add gl_RELOCATABLE_NOP.
65611
65612 2007-03-03  Bruno Haible  <bruno@clisp.org>
65613
65614         * modules/relocatable-prog-wrapper: New file.
65615         * modules/relocatable (Depends-on): Add it. Remove all other
65616         dependencies except progname.
65617         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
65618
65619         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
65620         (gl_FUNC_STRERROR): Nop.
65621         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
65622
65623         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
65624         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
65625
65626         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
65627         (gl_FUNC_READLINK): Update.
65628
65629         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
65630
65631 2007-03-03  Bruno Haible  <bruno@clisp.org>
65632
65633         * lib/xreadlink.c: Include <unistd.h> unconditionally.
65634         * modules/xreadlink (Depends-on): Add unistd.
65635         * modules/xreadlink-with-size (Depends-on): Likewise.
65636
65637 2007-03-03  Bruno Haible  <bruno@clisp.org>
65638
65639         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
65640         extracted from gt_FUNC_SETENV.
65641         (gt_FUNC_SETENV): Remove macro.
65642         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
65643         remove gt_FUNC_SETENV.
65644
65645 2007-03-03  Bruno Haible  <bruno@clisp.org>
65646
65647         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
65648         ENABLE_RELOCATABLE here.
65649         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
65650
65651 2007-03-03  Bruno Haible  <bruno@clisp.org>
65652
65653         * modules/rbtreehash-list-tests (Depends-on): Add progname.
65654         * tests/test-rbtreehash_list.c: Include progname.h.
65655         (main): Call set_program_name.
65656
65657         * modules/rbtree-oset-tests (Depends-on): Add progname.
65658         * tests/test-rbtree_oset.c: Include progname.h.
65659         (main): Call set_program_name.
65660
65661         * modules/rbtree-list-tests (Depends-on): Add progname.
65662         * tests/test-rbtree_list.c: Include progname.h.
65663         (main): Call set_program_name.
65664
65665         * modules/linked-list-tests (Depends-on): Add progname.
65666         * tests/test-linked_list.c: Include progname.h.
65667         (main): Call set_program_name.
65668
65669 2007-03-03  Bruno Haible  <bruno@clisp.org>
65670
65671         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
65672         All uses of __restrict changed to _Restrict_.
65673         * lib/glob_.h (__restrict): Remove macro.
65674
65675 2007-03-02  Bruno Haible  <bruno@clisp.org>
65676
65677         * modules/gettext (configure.ac): Require gettext infrastructure
65678         from version 0.16.1.
65679
65680 2007-03-02  Bruno Haible  <bruno@clisp.org>
65681
65682         * modules/linkedhash-list-tests (Depends-on): Add progname.
65683         * tests/test-linkedhash_list.c: Include progname.h.
65684         (main): Call set_program_name.
65685
65686         * modules/carray-list-tests (Depends-on): Add progname.
65687         * tests/test-carray_list.c: Include progname.h.
65688         (main): Call set_program_name.
65689
65690         * modules/avltreehash-list-tests (Depends-on): Add progname.
65691         * tests/test-avltreehash_list.c: Include progname.h.
65692         (main): Call set_program_name.
65693
65694         * modules/avltree-oset-tests (Depends-on): Add progname.
65695         * tests/test-avltree_oset.c: Include progname.h.
65696         (main): Call set_program_name.
65697
65698         * modules/avltree-list-tests (Depends-on): Add progname.
65699         * tests/test-avltree_list.c: Include progname.h.
65700         (main): Call set_program_name.
65701
65702         * modules/array-oset-tests (Depends-on): Add progname.
65703         * tests/test-array_oset.c: Include progname.h.
65704         (main): Call set_program_name.
65705
65706         * modules/array-list-tests (Depends-on): Add progname.
65707         * tests/test-array_list.c: Include progname.h.
65708         (main): Call set_program_name.
65709
65710         * modules/argp-tests (Depends-on): Add progname.
65711         * tests/test-argp.c: Include argp.h first. Include progname.h.
65712         (main): Call set_program_name.
65713
65714 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
65715
65716         * doc/gnulib-tool.texi (Initial import): Reword description of
65717         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
65718         limited effect even if defined after the first system include.
65719
65720 2007-03-01  Bruno Haible  <bruno@clisp.org>
65721
65722         * build-aux/config.libpath: Update to libtool-1.5.22.
65723         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
65724
65725 2007-03-01  Bruno Haible  <bruno@clisp.org>
65726
65727         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
65728         foo_CFLAGS.
65729         Reported by Ralf Wildenhues.
65730
65731 2007-03-01  Bruno Haible  <bruno@clisp.org>
65732
65733         * build-aux/install-reloc: Remove object files left over by some
65734         compilers.
65735         Reported by Ralf Wildenhues.
65736
65737 2007-03-01  Bruno Haible  <bruno@clisp.org>
65738
65739         * build-aux/install-reloc: Break long lines.
65740
65741 2007-03-01  Bruno Haible  <bruno@clisp.org>
65742
65743         * doc/relocatable.texi: Document that it may not work on OpenBSD.
65744         Reported by Ralf Wildenhues.
65745
65746 2007-03-01  Bruno Haible  <bruno@clisp.org>
65747
65748         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
65749         include ordering constraints.
65750
65751 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
65752
65753         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
65754         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
65755         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
65756         as another example.
65757         * lib/time_.h: Fix misspelling.
65758         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
65759         Require gl_HEADER_TIME_H_DEFAULTS.
65760         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
65761         * m4/time_r.m4 (gl_TIME_R): Likewise.
65762         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
65763
65764 2007-03-01  Bruno Haible  <bruno@clisp.org>
65765
65766         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
65767         * m4/utimens.m4 (gl_UTIMENS): Likewise.
65768
65769 2007-03-01  Jim Meyering  <jim@meyering.net>
65770
65771         * modules/xreadlink (Maintainer): Add my name.
65772         * modules/xreadlink-with-size (Depends-on): Alphabetize.
65773
65774 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
65775             Bruno Haible  <bruno@clisp.org>
65776
65777         * build-aux/install-reloc: Compile also c-ctype.c.
65778         * build-aux/relocatable.sh.in: New file.
65779         * doc/relocatable.texi: New file.
65780         * doc/relocatable-maint.texi: New file.
65781         * doc/gnulib.texi: Include relocatable-maint.texi.
65782         * lib/progreloc.c: Include unistd.h unconditionally.
65783         * lib/relocwrapper.c: Include unistd.h unconditionally.
65784         Include c-ctype.h.
65785         (add_dotbin): Use c_tolower.
65786         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
65787         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
65788         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
65789         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
65790         to m4/relocatable-lib.m4.
65791         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
65792         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
65793         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
65794         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
65795         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
65796         * modules/relocatable: New file.
65797         * modules/relocatable-lib: New file.
65798         * modules/relocatable-script: New file.
65799
65800 2007-02-28  Bruno Haible  <bruno@clisp.org>
65801
65802         Import --enable-relocatable infrastructure.
65803         * build-aux/config.libpath: New file, from GNU gettext.
65804         * build-aux/install-reloc: New file, from GNU gettext.
65805         * build-aux/reloc-ldflags: New file, from GNU gettext.
65806         * lib/relocatable.h: New file, from GNU gettext.
65807         * lib/relocatable.c: New file, from GNU gettext.
65808         * lib/relocwrapper.c: New file, from GNU gettext.
65809         * m4/relocatable.m4: New file, from GNU gettext.
65810
65811 2007-02-28  Bruno Haible  <bruno@clisp.org>
65812
65813         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
65814
65815         * modules/xreadlink: New file, from GNU gettext with modifications.
65816         * lib/xreadlink.c: New file, from GNU gettext.
65817         * lib/xreadlink.h: Add comments.
65818         (xreadlink): New declaration.
65819
65820         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
65821         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
65822         lib/xreadlink-with-size.c.
65823         (configure.ac): Remove gl_XREADLINK invocation.
65824         (Makefile.am): Augment lib_SOURCES.
65825         * m4/xreadlink.m4: Remove file.
65826         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
65827         (xreadlink_with_size): Renamed from xreadink.
65828         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
65829         * modules/canonicalize (Depends-on): Replace xreadlink with
65830         xreadlink-with-size.
65831         * lib/canonicalize.c (canonicalize_filename_mode): Update.
65832
65833 2007-02-25  Jim Meyering  <jim@meyering.net>
65834
65835         * build-aux/announce-gen: When complaining about excess arguments,
65836         list them.
65837
65838 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
65839
65840         * README: Document signed integer overflow situation more
65841         accurately.
65842
65843 2007-02-25  Bruno Haible  <bruno@clisp.org>
65844
65845         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
65846         'a' or 'A' conversion.
65847
65848 2007-02-25  Bruno Haible  <bruno@clisp.org>
65849
65850         * modules/filename: Renamed from modules/pathname.
65851         (Files): Replace lib/pathname.h with lib/filename.h. Replace
65852         lib/concatpath.c with lib/concat-filename.c.
65853         (Makefile.am): Update.
65854         (Include): Replace pathname.h with filename.h.
65855         * lib/filename.h: Renamed from lib/pathname.h.
65856         (concatenated_filename): Renamed from concatenated_pathname.
65857         * lib/concat-filename.c: Renamed from lib/concatpath.c.
65858         (concatenated_filename): Renamed from concatenated_pathname.
65859         * lib/findprog.c: Include filename.h instead of pathname.h.
65860         (find_in_path): Update.
65861         * lib/javacomp.c: Include filename.h instead of pathname.h.
65862         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
65863         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
65864         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
65865         is_oldgcj_14_13_usable, is_javac_usable): Update.
65866         * lib/javaexec.c: Include filename.h instead of pathname.h.
65867         (execute_java_class): Update.
65868         * modules/findprog: Update.
65869         * modules/javacomp: Update.
65870         * modules/javaexec: Update.
65871         * MODULES.html.sh (File system functions): Add 'filename', remove
65872         'pathname'.
65873
65874 2007-02-25  Bruno Haible  <bruno@clisp.org>
65875
65876         * modules/printf-frexpl-tests: New file.
65877         * tests/test-printf-frexpl.c: New file.
65878
65879         * modules/printf-frexpl: New file.
65880         * lib/printf-frexpl.h: New file.
65881         * lib/printf-frexpl.c: New file.
65882         * m4/printf-frexpl.m4: New file.
65883
65884 2007-02-25  Bruno Haible  <bruno@clisp.org>
65885
65886         * modules/printf-frexp-tests: New file.
65887         * tests/test-printf-frexp.c: New file.
65888
65889         * modules/printf-frexp: New file.
65890         * lib/printf-frexp.h: New file.
65891         * lib/printf-frexp.c: New file.
65892         * m4/printf-frexp.m4: New file.
65893
65894 2007-02-25  Bruno Haible  <bruno@clisp.org>
65895
65896         Assume automake >= 1.10 for the tests.
65897         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
65898         * modules/arctwo-tests: Likewise.
65899         * modules/argp-tests: Likewise.
65900         * modules/avltree-list-tests: Likewise.
65901         * modules/avltree-oset-tests: Likewise.
65902         * modules/avltreehash-list-tests: Likewise.
65903         * modules/carray-list-tests: Likewise.
65904         * modules/crc-tests: Likewise.
65905         * modules/des-tests: Likewise.
65906         * modules/gc-arcfour-tests: Likewise.
65907         * modules/gc-arctwo-tests: Likewise.
65908         * modules/gc-des-tests: Likewise.
65909         * modules/gc-hmac-md5-tests: Likewise.
65910         * modules/gc-hmac-sha1-tests: Likewise.
65911         * modules/gc-md2-tests: Likewise.
65912         * modules/gc-md4-tests: Likewise.
65913         * modules/gc-md5-tests: Likewise.
65914         * modules/gc-pbkdf2-sha1-tests: Likewise.
65915         * modules/gc-rijndael-tests: Likewise.
65916         * modules/gc-sha1-tests: Likewise.
65917         * modules/gc-tests: Likewise.
65918         * modules/getaddrinfo-tests: Likewise.
65919         * modules/hmac-md5-tests: Likewise.
65920         * modules/hmac-sha1-tests: Likewise.
65921         * modules/linked-list-tests: Likewise.
65922         * modules/linkedhash-list-tests: Likewise.
65923         * modules/lock-tests: Likewise.
65924         * modules/md2-tests: Likewise.
65925         * modules/md4-tests: Likewise.
65926         * modules/md5-tests: Likewise.
65927         * modules/rbtree-list-tests: Likewise.
65928         * modules/rbtree-oset-tests: Likewise.
65929         * modules/rbtreehash-list-tests: Likewise.
65930         * modules/read-file-tests: Likewise.
65931         * modules/rijndael-tests: Likewise.
65932         * modules/stdint-tests: Likewise.
65933         * modules/tls-tests: Likewise.
65934
65935 2007-02-24  Bruno Haible  <bruno@clisp.org>
65936
65937         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
65938         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
65939         function; instead check whether isnan with a double argument links.
65940         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
65941         function; instead check whether isnan with a 'long double' argument
65942         links.
65943         Reported by Eric Blake <ebb9@byu.net>.
65944
65945 2007-02-24  Bruno Haible  <bruno@clisp.org>
65946
65947         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
65948         defined.
65949         * lib/isnanl.c: Remove all code. Just include isnan.c.
65950         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
65951
65952 2007-02-25  Jim Meyering  <jim@meyering.net>
65953
65954         Avoid conflicting types for 'unsetenv' on FreeBSD.
65955         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
65956         conflicting with FreeBSD's (5.0 and 6.1) function declaration
65957         in stdlib.h.
65958
65959 2007-02-24  Bruno Haible  <bruno@clisp.org>
65960
65961         * modules/isnanl-nolibm-tests: New file.
65962         * tests/test-isnanl.c: New file.
65963
65964         * modules/isnanl-nolibm: New file.
65965         * lib/isnanl.h: New file.
65966         * lib/isnanl.c: New file.
65967         * m4/isnanl.m4: New file.
65968
65969 2007-02-24  Bruno Haible  <bruno@clisp.org>
65970
65971         * modules/isnan-nolibm-tests: New file.
65972         * tests/test-isnan.c: New file.
65973
65974         * modules/isnan-nolibm: New file.
65975         * lib/isnan.h: New file.
65976         * lib/isnan.c: New file.
65977         * m4/isnan.m4: New file.
65978
65979 2007-02-24  Bruno Haible  <bruno@clisp.org>
65980
65981         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
65982         assume that an exponent fits in 20 bits.
65983
65984 2007-02-24  Jim Meyering  <jim@meyering.net>
65985
65986         * m4/regex.m4: Update the description of the configure-time option,
65987         --without-included-regex, to state accurately what the defaults are,
65988         and perhaps to give people an idea why using this option is risky.
65989
65990 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
65991
65992         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
65993         loops on small arguments.  This attempts to avoid the problem
65994         Bruno Haible reported for AIX 4.3.2 in
65995         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
65996
65997 2007-02-23  Bruno Haible  <bruno@clisp.org>
65998
65999         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
66000         Needed for help2man.
66001
66002 2007-02-23  Karl Berry  <karl@gnu.org>
66003
66004         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
66005         exists, foo.h should be cvs-ignored, not committed.
66006
66007 2007-02-23  Eric Blake  <ebb9@byu.net>
66008
66009         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
66010         * lib/stat-time.h (includes): Likewise.
66011         * lib/utimecmp.c (includes): Likewise.
66012         * lib/utimens.h (includes): Likewise.
66013         * lib/getdate.y (includes): Also include "timespec.h" for use
66014         internal to the module.
66015         * modules/utimens (Depends-on): Revert yesterday's patch.
66016         * modules/nanosleep (Depends-on): Add missing dependency.
66017
66018 2007-02-22  Bruno Haible  <bruno@clisp.org>
66019
66020         * lib/glob.c: Don't include getlogin_r.h.
66021
66022 2007-02-22  Jim Meyering  <jim@meyering.net>
66023
66024         * modules/utimens (Depends-on): Add timespec, required for
66025         utimens.h's inclusion of timespec.h.
66026
66027 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
66028
66029         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
66030         long unreadable paths in GNU/Linux.  Problem reported by Andreas
66031         Schwab in
66032         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
66033         I'll try to think of a better way to fix the Solaris problem.
66034
66035         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
66036         like glibc; on Solaris 10, it fails with errno == EINVAL.
66037         POSIX says the behavior is unspecified if the first argument is NULL,
66038         so play it safe and never pass NULL to the system getcwd.
66039
66040 2007-02-21  Jim Meyering  <jim@meyering.net>
66041
66042         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
66043         of gettimeofday.  It would conflict with the one now always
66044         provided via sys_time_.h.  Reported by Matthew Woehlke, as
66045         an IRIX 6.5 build failure.
66046
66047 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
66048
66049         Minor fixups to port to Solaris 10 with Sun C 5.8.
66050         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
66051         * modules/getcwd (Depends-on): Add dirfd.
66052         * lib/putenv.c (putenv): #undef it.
66053         (rpl_putenv): New decl.
66054         (malloc, free): Include <stdlib.h> rather than prototyping separately.
66055
66056 2007-02-20  Bruno Haible  <bruno@clisp.org>
66057
66058         * modules/stdio-tests: New file.
66059         * tests/test-stdio.c: New file.
66060
66061         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
66062         (Depends-on): Add stdio.
66063         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
66064         (Include): Use <stdio.h> instead of vsnprintf.h.
66065         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
66066         HAVE_DECL_VSNPRINTF.
66067         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
66068
66069         * modules/snprintf (Files): Remove lib/snprintf.h.
66070         (Depends-on): Add stdio.
66071         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
66072         (Include): Use <stdio.h> instead of snprintf.h.
66073         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
66074         HAVE_DECL_SNPRINTF.
66075         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
66076         * lib/getaddrinfo.c: Likewise.
66077
66078         * modules/stdio: New file.
66079         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
66080         * lib/snprintf.h: Remove file.
66081         * lib/vsnprintf.h: Remove file.
66082         * lib/.cppi-disable: Remove snprintf.h.
66083         * m4/stdio_h.m4: New file.
66084         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
66085
66086 2007-02-20  Jim Meyering  <jim@meyering.net>
66087
66088         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
66089         used by e.g., mingw.  From Bruno Haible.
66090
66091 2007-02-19  Bruno Haible  <bruno@clisp.org>
66092
66093         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
66094         warnings.
66095         Reported by Ben Pfaff <blp@cs.stanford.edu>.
66096
66097 2007-02-19  Bruno Haible  <bruno@clisp.org>
66098
66099         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
66100         from mingw users.
66101
66102 2007-02-19  Bruno Haible  <bruno@clisp.org>
66103
66104         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
66105         warnings.
66106         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
66107
66108 2007-02-19  Jim Meyering  <jim@meyering.net>
66109
66110         Don't use FD after a successful "fdopendir (fd)".
66111         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
66112         Reset it by calling dirfd on the just-obtained DIR*.
66113
66114         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
66115         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
66116
66117 2007-02-18  Bruno Haible  <bruno@clisp.org>
66118
66119         * lib/readlink.c: Include <unistd.h>.
66120         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
66121         HAVE_READLINK.
66122         * modules/readlink (Depends-on): Add unistd.
66123         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
66124         (Include): Add <unistd.h>.
66125
66126         * lib/getlogin_r.h: Remove file.
66127         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
66128         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
66129         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
66130         HAVE_DECL_GETLOGIN_R.
66131         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
66132         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
66133         (Include): Use <unistd.h> instead of getlogin_r.h.
66134
66135         * lib/getcwd.h: Remove file.
66136         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
66137         * lib/xgetcwd.c: Likewise.
66138         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
66139         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
66140         * modules/getcwd (Files): Remove lib/getcwd.h.
66141         (Depends-on): Add unistd.
66142         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
66143         (Include): Use <unistd.h> instad of getcwd.h.
66144
66145         * lib/ftruncate.c: Include <unistd.h> first.
66146         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
66147         Set HAVE_FTRUNCATE.
66148         * modules/ftruncate (Depends-on): Add unistd.
66149         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
66150
66151         * lib/fchdir.c: Include <unistd.h> first.
66152         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
66153         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
66154         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
66155         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
66156         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
66157
66158         * lib/dup2.c: Include <unistd.h> first.
66159         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
66160         HAVE_DUP2.
66161         * modules/dup2 (Depends-on): Add unistd.
66162         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
66163
66164         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
66165         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
66166         REPLACE_CHOWN. Don't define chown as a macro here.
66167         * modules/chown (Depends-on): Add unistd.
66168         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
66169
66170         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
66171         Add definition for GL_LINK_WARNING.
66172         (chown, dup2): New declarations.
66173         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
66174         link warning.
66175         (ftruncate): New declaration.
66176         (getcwd): New declaration, taken from old getcwd.h.
66177         (getlogin_r): New declaration, taken from old getlogin_r.h.
66178         (readlink): New declaration.
66179         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
66180         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
66181         (gl_PREREQ_UNISTD): Remove macro.
66182         (gl_UNISTD_MODULE_INDICATOR): New macro.
66183         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
66184         many new variables. Don't set UNISTD_H.
66185         * modules/unistd (Description): Change.
66186         (Depends-on): Add link-warning.
66187         (configure.ac): Update.
66188         (Makefile.am): Create unistd.h always. Substitute many new variables
66189         into it.
66190
66191 2007-02-18  Bruno Haible  <bruno@clisp.org>
66192
66193         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
66194         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
66195         HAVE_GETSUBOPT.
66196         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
66197         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
66198         * lib/getsubopt.h: Remove file.
66199         * modules/getsubopt (Files): Remove lib/getsubopt.h.
66200         (Depends-on): Add stdlib.
66201         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
66202         (Includes): Use <stdlib.h> instead of getsubopt.h.
66203         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
66204         Set HAVE_GETSUBOPT.
66205         * lib/getsubopt.c: Don't include getsubopt.h.
66206
66207 2007-02-18  Bruno Haible  <bruno@clisp.org>
66208
66209         * modules/fchdir (Depends-on): Add dup2.
66210
66211 2007-02-18  Bruno Haible  <bruno@clisp.org>
66212
66213         * lib/stdlib_.h: Handle glibc's special invocation convention
66214         specially.
66215
66216 2007-02-18  Bruno Haible  <bruno@clisp.org>
66217
66218         * modules/stdlib-tests: New file.
66219         * tests/test-stdlib.c: New file.
66220
66221         * modules/mkstemp (Files): Remove lib/mkstemp.h.
66222         (Depends-on): Add stdlib.
66223         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
66224         (Includes): Use <stdlib.h> instead of mkstemp.h.
66225         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
66226         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
66227         * lib/mkstemp.c: Don't include mkstemp.h.
66228         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
66229         * lib/stdlib--.h: Don't include mkstemp.h.
66230
66231         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
66232         (Depends-on): Add stdlib.
66233         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
66234         (Includes): Use <stdlib.h> instead of mkdtemp.h.
66235         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
66236         HAVE_MKDTEMP.
66237         * lib/mkdtemp.c: Don't include mkdtemp.h.
66238         * lib/clean-temp.c: Don't include mkdtemp.h.
66239
66240         * modules/exit (Files): Remove lib/exit.h.
66241         (Depends-on): Add stdlib.
66242         (Makefile.am): Remove lib_SOURCES.
66243         (Include): Use <stdlib.h> instead of exit.h.
66244         * lib/argmatch.c: Don't include exit.h.
66245         * lib/execute.c: Likewise.
66246         * lib/pagealign_alloc.c: Likewise.
66247         * lib/pipe.c: Likewise.
66248         * lib/wait-process.c: Likewise.
66249         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
66250         * lib/exitfail.c: Likewise.
66251         * lib/savewd.c: Likewise.
66252         * lib/xsetenv.c: Likewise.
66253
66254         * modules/stdlib: New file.
66255         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
66256         and extra comments about mkstemp().
66257         * lib/exit.h: Remove file.
66258         * lib/mkdtemp.h: Remove file.
66259         * lib/mkstemp.h: Remove file.
66260         * m4/stdlib_h.m4: New file.
66261         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
66262
66263 2007-02-18  Bruno Haible  <bruno@clisp.org>
66264
66265         * modules/math-tests: New file.
66266         * tests/test-math.c: New file.
66267
66268         * modules/math: New file.
66269         * modules/mathl (Files): Remove lib/mathl.h.
66270         (Depends-on): Add math.
66271         (Makefile.am): Don't mention mathl.h.
66272         (Include): Use <math.h> instead of mathl.h.
66273         * lib/math_.h: New file.
66274         * lib/mathl.h: Remove file.
66275         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
66276         mathl.h.
66277         * lib/asinl.c: Likewise.
66278         * lib/atanl.c: Likewise.
66279         * lib/ceill.c: Likewise.
66280         * lib/cosl.c: Likewise.
66281         * lib/expl.c: Likewise.
66282         * lib/floorl.c: Likewise.
66283         * lib/frexpl.c: Likewise.
66284         * lib/ldexpl.c: Likewise.
66285         * lib/logl.c: Likewise.
66286         * lib/sincosl.c: Likewise.
66287         * lib/sinl.c: Likewise.
66288         * lib/sqrtl.c: Likewise.
66289         * lib/tanl.c: Likewise.
66290         * lib/trigl.c: Likewise.
66291         * m4/math_h.m4: New file.
66292         * MODULES.html.sh (Mathematics): Add math.
66293
66294 2007-02-17  Bruno Haible  <bruno@clisp.org>
66295
66296         * modules/wctype-tests: New file.
66297         * tests/test-wctype.c: New file.
66298
66299         * modules/wchar-tests: New file.
66300         * tests/test-wchar.c: New file.
66301
66302         * modules/unistd-tests: New file.
66303         * tests/test-unistd.c: New file.
66304
66305         * modules/time-tests: New file.
66306         * tests/test-time.c: New file.
66307
66308         * modules/sysexits-tests: New file.
66309         * tests/test-sysexits.c: New file.
66310
66311         * modules/sys_time-tests: New file.
66312         * tests/test-sys_time.c: New file.
66313
66314         * modules/sys_stat-tests: New file.
66315         * tests/test-sys_stat.c: New file.
66316
66317         * modules/sys_socket-tests: New file.
66318         * tests/test-sys_socket.c: New file.
66319
66320         * modules/sys_select-tests: New file.
66321         * tests/test-sys_select.c: New file.
66322
66323         * modules/string-tests: New file.
66324         * tests/test-string.c: New file.
66325
66326         * modules/stdbool-tests: New file.
66327         * tests/test-stdbool.c: New file.
66328
66329         * modules/netinet_in-tests: New file.
66330         * tests/test-netinet_in.c: New file.
66331
66332         * modules/inttypes-tests: New file.
66333         * tests/test-inttypes.c: New file.
66334
66335         * modules/fcntl-tests: New file.
66336         * tests/test-fcntl.c: New file.
66337
66338         * modules/byteswap-tests: New file.
66339         * tests/test-byteswap.c: New file.
66340
66341         * modules/arpa_inet-tests: New file.
66342         * tests/test-arpa_inet.c: New file.
66343
66344 2007-02-17  Bruno Haible  <bruno@clisp.org>
66345
66346         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
66347         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
66348         if the corresponding module is not enabled. Emit link warnings if
66349         the function is used nevertheless.
66350         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
66351         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
66352         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
66353         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
66354         * modules/inttypes (Depends-on): Add link-warning.
66355         (Makefile.am): Copy the contents of build-aux/link-warning.h into
66356         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
66357         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
66358         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
66359         * modules/imaxdiv (configure.ac): Likewise.
66360         * modules/strtoimax (configure.ac): Likewise.
66361         * modules/strtoumax (configure.ac): Likewise.
66362
66363 2007-02-17  Bruno Haible  <bruno@clisp.org>
66364
66365         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
66366         gl_STRING_MODULE_INDICATOR_DEFAULTS.
66367         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
66368         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
66369
66370 2007-02-17  Bruno Haible  <bruno@clisp.org>
66371
66372         * modules/link-warning: New file.
66373         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
66374         * lib/string_.h (GL_LINK_WARNING): Remove definition.
66375         * modules/string (Depends-on): Add link-warning.
66376         (Makefile.am): Copy the contents of build-aux/link-warning.h into
66377         string.h.
66378         * MODULES.html.sh (Support for building libraries and executables): Add
66379         link-warning.
66380
66381 2007-02-17  Bruno Haible  <bruno@clisp.org>
66382
66383         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
66384         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
66385         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
66386         long lines.
66387
66388 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
66389             Bruno Haible  <bruno@clisp.org>
66390
66391         * modules/tmpfile: New file.
66392         * lib/tmpfile.c: New file.
66393         * m4/tmpfile.m4: New file.
66394         * MODULES.html.sh (func_all_modules): New section "Input/output".
66395
66396 2007-02-15  Bruno Haible  <bruno@clisp.org>
66397
66398         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
66399         (supports_delete_on_close): New function.
66400         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
66401
66402 2007-02-14  Bruno Haible  <bruno@clisp.org>
66403
66404         * modules/mbspcasecmp-tests: New file.
66405         * tests/test-mbspcasecmp.sh: New file.
66406         * tests/test-mbspcasecmp.c: New file.
66407
66408         New module mbspcasecmp.
66409         * modules/mbspcasecmp: New file.
66410         * lib/mbspcasecmp.c: New file.
66411         * lib/string_.h (strncasecmp): Change warning message.
66412         (mbspcasecmp): New declaration.
66413         * m4/mbspcasecmp.m4: New file.
66414         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
66415         GNULIB_MBSPCASECMP.
66416         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
66417         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
66418
66419 2007-02-14  Bruno Haible  <bruno@clisp.org>
66420
66421         * modules/mbsncasecmp-tests: New file.
66422         * tests/test-mbsncasecmp.sh: New file.
66423         * tests/test-mbsncasecmp.c: New file.
66424
66425         New module mbsncasecmp.
66426         * modules/mbsncasecmp: New file.
66427         * lib/mbsncasecmp.c: New file.
66428         * lib/string_.h (mbsncasecmp): New declaration.
66429         * m4/mbsncasecmp.m4: New file.
66430         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
66431         GNULIB_MBSNCASECMP.
66432         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
66433         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
66434
66435 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
66436
66437         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
66438         Verify that it doesn't overlap with our flags.
66439         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
66440         do not have the desired effect in multibyte locales; instead, use
66441         mbscasecmp.
66442         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
66443         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
66444         we don't require GNU fnmatch ourselves (if our users require it, they
66445         should do so explicitly).
66446
66447         Fix regex code so it doesn't rely on strcasecmp.
66448         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
66449         Otherwise, include gnulib's langinfo.h.
66450         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
66451         undesirable behavior in non-C locales.  Instead, rely on localecharset.
66452         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
66453         * modules/regex (FILES): Remove m4/codeset.m4.
66454         (Depends-on): Add localcharset.  Remove strcase.
66455
66456 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66457
66458         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
66459         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
66460
66461 2007-02-13  Bruno Haible  <bruno@clisp.org>
66462
66463         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
66464         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
66465
66466 2007-02-12  Bruno Haible  <bruno@clisp.org>
66467
66468         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
66469         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
66470         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
66471         time warning rather than a link error.
66472
66473 2007-02-12  Bruno Haible  <bruno@clisp.org>
66474
66475         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
66476         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
66477         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
66478
66479 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
66480
66481         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
66482         args, not 2.
66483
66484 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
66485
66486         New module 'time', so that apps can include <time.h> as per
66487         POSIX and GNU instead of separate include files like time_r.h
66488         and timegm.h.  This implementation tries out a simpler approach
66489         for replacing decls in standard include files (as compared to
66490         the string module), somewhat as an experiment.
66491
66492         * config/srclist.txt: Comment out mktime.c for now.
66493         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
66494         since it doesn't apply any more.  Use generic wording instead.
66495         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
66496         'time'.
66497         * lib/time_.h, m4/time_h.m4, modules/time: New files.
66498         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
66499         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
66500         Don't include <sys/types.h>; no longer needed since we assume C89.
66501         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
66502         * lib/strftime.c: Likewise.
66503         * lib/time_r.c: Likewise.
66504         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
66505         * lib/nanosleep.c: Include <time.h> first, to check interface.
66506         * lib/strptime.c: Likewise.
66507         * lib/time_r.c: Likewise.
66508         * lib/timegm.c: Likewise.
66509         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
66510         needed.
66511         * lib/timegm.c: Don't include timegm.h; no longer needed.
66512         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
66513         time.h now handles any problems in that area.
66514         (struct timespec, nanosleep): Remove; time.h now arranges for these.
66515         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
66516         that time.h defines struct timespec.
66517         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
66518         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
66519         handles that.
66520         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
66521         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
66522         needed.  Set REPLACE_LOCALTIME.
66523         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
66524         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
66525         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
66526         nanosleep; time_h.m4 now does that.  Don't require
66527         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
66528         module handles this now.
66529         * modules/getdate (Depends-on): Remove timespec.  Add time.
66530         * modules/nanosleep (Depends-on): Likewise.
66531         * modules/stat-time (Depends-on): Likewise.
66532         * modules/nanosleep (Include): Include time.h, not timespec.h.
66533         * modules/strptime (Files): Remove lib/strptime.h.
66534         (Depends-on): Add extensions, time.
66535         (Include): Include time.h, not strptime.h.
66536         * modules/time_r (Files): Remove lib/time_r.h.
66537         (Depends-on): Add time.
66538         (Include): Include time.h, not time_r.h.
66539         * modules/timegm: Likewise.
66540         * modules/timespec (Description): Now does timespec-related decls
66541         of our own, instead of struct timespec itself.
66542         (Depends-on): Add time; remove extensions.
66543         (Maintainer): Add self.
66544         * modules/utimecmp (Depends-on): Add time; remove timespec.
66545         * modules/utimens (Depends-on): Likewise.
66546         * modules/xnanosleep (Depends-on): Likewise.
66547
66548 2007-02-11  Bruno Haible  <bruno@clisp.org>
66549
66550         * lib/c-strstr.c: Include allocsa.h.
66551         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
66552         * lib/c-strcasestr.c: Include allocsa.h.
66553         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
66554         * lib/strcasestr.c: Include allocsa.h.
66555         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
66556         * lib/mbsstr.c: Include allocsa.h.
66557         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
66558         allocsa/freesa instead of malloc/free.
66559         * lib/mbscasestr.c: Include allocsa.h.
66560         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
66561         allocsa/freesa instead of malloc/free.
66562         * modules/c-strstr (Depends-on): Add allocsa.
66563         * modules/c-strcasestr (Depends-on): Likewise.
66564         * modules/strcasestr (Depends-on): Likewise.
66565         * modules/mbsstr (Depends-on): Likewise.
66566         * modules/mbscasestr (Depends-on): Likewise.
66567
66568 2007-02-11  Bruno Haible  <bruno@clisp.org>
66569
66570         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
66571
66572         * modules/mbsspn-tests: New file.
66573         * tests/test-mbsspn.sh: New file.
66574         * tests/test-mbsspn.c: New file.
66575
66576 2007-02-11  Bruno Haible  <bruno@clisp.org>
66577
66578         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
66579
66580         * modules/mbspbrk-tests: New file.
66581         * tests/test-mbspbrk.sh: New file.
66582         * tests/test-mbspbrk.c: New file.
66583
66584 2007-02-11  Bruno Haible  <bruno@clisp.org>
66585
66586         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
66587         unneeded cast.
66588
66589         * modules/mbscspn-tests: New file.
66590         * tests/test-mbscspn.sh: New file.
66591         * tests/test-mbscspn.c: New file.
66592
66593 2007-02-11  Bruno Haible  <bruno@clisp.org>
66594
66595         * modules/mbscasecmp-tests: New file.
66596         * tests/test-mbscasecmp.sh: New file.
66597         * tests/test-mbscasecmp.c: New file.
66598
66599 2007-02-11  Bruno Haible  <bruno@clisp.org>
66600
66601         Ensure O(n) worst-case complexity of mbscasestr.
66602         * lib/mbscasestr.c: Include stdbool.h.
66603         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
66604         functions.
66605         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
66606         the bookkeeping indicates that it's worth it.
66607         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
66608
66609         * modules/mbscasestr-tests: New file.
66610         * tests/test-mbscasestr1.c: New file.
66611         * tests/test-mbscasestr2.sh: New file.
66612         * tests/test-mbscasestr2.c: New file.
66613         * tests/test-mbscasestr3.sh: New file.
66614         * tests/test-mbscasestr3.c: New file.
66615         * tests/test-mbscasestr4.sh: New file.
66616         * tests/test-mbscasestr4.c: New file.
66617         * m4/locale-tr.m4: New file.
66618
66619 2007-02-11  Bruno Haible  <bruno@clisp.org>
66620
66621         Ensure O(n) worst-case complexity of mbsstr.
66622         * lib/mbsstr.c: Include stdbool.h.
66623         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
66624         functions.
66625         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
66626         bookkeeping indicates that it's worth it.
66627         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
66628
66629         * modules/mbsstr-tests: New file.
66630         * tests/test-mbsstr1.c: New file.
66631         * tests/test-mbsstr2.sh: New file.
66632         * tests/test-mbsstr2.c: New file.
66633         * tests/test-mbsstr3.sh: New file.
66634         * tests/test-mbsstr3.c: New file.
66635         * m4/locale-fr.m4: New file.
66636
66637 2007-02-11  Bruno Haible  <bruno@clisp.org>
66638
66639         * lib/mbsrchr.c (mbsrchr): Fix bug.
66640
66641         * modules/mbsrchr-tests: New file.
66642         * tests/test-mbsrchr.sh: New file.
66643         * tests/test-mbsrchr.c: New file.
66644
66645 2007-02-11  Bruno Haible  <bruno@clisp.org>
66646
66647         * lib/mbschr.c (mbschr): Fix bug.
66648
66649         * modules/mbschr-tests: New file.
66650         * tests/test-mbschr.sh: New file.
66651         * tests/test-mbschr.c: New file.
66652         * m4/locale-zh.m4: New file.
66653
66654 2007-02-11  Bruno Haible  <bruno@clisp.org>
66655
66656         Support for copying multibyte string iterators.
66657         * lib/mbiter.h: Include <string.h>.
66658         (mbiter_multi_copy): New function.
66659         (mbi_copy): New macro.
66660         * lib/mbuiter.h: Include <string.h>.
66661         (mbuiter_multi_copy): New function.
66662         (mbui_copy): New macro.
66663
66664 2007-02-11  Bruno Haible  <bruno@clisp.org>
66665
66666         New module mbslen.
66667         * modules/mbslen: New file.
66668         * lib/mbslen.c: New file.
66669         * lib/string_.h (mbslen): New declaration.
66670         * m4/mbslen.m4: New file.
66671         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
66672         GNULIB_MBSLEN.
66673         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
66674         * MODULES.html.sh (Internationalization functions): Add mbslen.
66675
66676 2007-02-11  Bruno Haible  <bruno@clisp.org>
66677
66678         Ensure O(n) worst-case complexity of strcasestr substitute.
66679         * lib/strcasestr.c: Include stdbool.h.
66680         (knuth_morris_pratt): New function.
66681         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
66682         bookkeeping indicates that it's worth it.
66683         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
66684
66685         * modules/strcasestr-tests: New file.
66686         * tests/test-strcasestr.c: New file.
66687
66688 2007-02-11  Bruno Haible  <bruno@clisp.org>
66689
66690         Ensure O(n) worst-case complexity of c_strcasestr.
66691         * lib/c-strcasestr.c: Include stdbool.h, string.h.
66692         (knuth_morris_pratt): New function.
66693         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
66694         the bookkeeping indicates that it's worth it.
66695         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
66696
66697         * modules/c-strcasestr-tests: New file.
66698         * tests/test-c-strcasestr.c: New file.
66699
66700 2007-02-11  Bruno Haible  <bruno@clisp.org>
66701
66702         Ensure O(n) worst-case complexity of c_strstr.
66703         * lib/c-strstr.c: Include stdbool.h, string.h.
66704         (knuth_morris_pratt): New function.
66705         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
66706         bookkeeping indicates that it's worth it.
66707         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
66708
66709         * lib/c-strstr.c: Complete rewrite for maintainability.
66710
66711         * modules/c-strstr-tests: New file.
66712         * tests/test-c-strstr.c: New file.
66713
66714 2007-02-11  Bruno Haible  <bruno@clisp.org>
66715
66716         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
66717         5.2.1 and earlier, whereby \055 was treated just like the range
66718         delimiter '-'.
66719         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
66720
66721 2007-02-08  Bruno Haible  <bruno@clisp.org>
66722
66723         * modules/regex (Depends-on): Add stdbool.
66724         Reported by Dalibor Topic <robilad@kaffe.org>.
66725
66726 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
66727
66728         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
66729         Prefer returning from main to exiting from it.
66730         Remove unnecessary parens after sizeof.
66731
66732 2007-02-05  Bruno Haible  <bruno@clisp.org>
66733
66734         New module mbssep.
66735         * modules/mbssep: New file.
66736         * lib/mbssep.c: New file.
66737         * lib/string_.h (strsep): Add a conditional link warning.
66738         (mbssep): New declaration.
66739         * m4/mbssep.m4: New file.
66740         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
66741         GNULIB_MBSSEP.
66742         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
66743         * MODULES.html.sh (Internationalization functions): Add mbssep.
66744
66745 2007-02-05  Bruno Haible  <bruno@clisp.org>
66746
66747         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
66748         Optimize search in case of 1 delimiter.
66749
66750 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
66751
66752         * lib/acl.h: Include sys/types.h before sys/acl.h.
66753
66754 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
66755
66756         Merge upstream fix for glibc bugzilla #3957:
66757
66758         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
66759
66760         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
66761         bit for RE_HAT_LISTS_NOT_NEWLINE.
66762         (build_charclass_op): Remove bogus comment.
66763
66764 2007-02-05  Simon Josefsson  <simon@josefsson.org>
66765
66766         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
66767
66768 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
66769
66770         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
66771         * lib/memmem.c [!defined _LIBC]: Include config.h.
66772
66773 2007-02-04  Bruno Haible  <bruno@clisp.org>
66774
66775         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
66776         warning message.
66777
66778 2007-02-04  Bruno Haible  <bruno@clisp.org>
66779
66780         New module mbstok_r.
66781         * modules/mbstok_r: New file.
66782         * lib/mbstok_r.c: New file.
66783         * lib/string_.h (strtok_r): Change argument names to match the
66784         comments. Add a conditional link warning.
66785         (mbstok_r): New declaration.
66786         * m4/mbstok_r.m4: New file.
66787         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
66788         GNULIB_MBSTOK_R.
66789         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
66790         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
66791
66792 2007-02-04  Bruno Haible  <bruno@clisp.org>
66793
66794         New module mbsspn.
66795         * modules/mbsspn: New file.
66796         * lib/mbsspn.c: New file.
66797         * lib/string_.h (strspn): Add a conditional link warning.
66798         (mbsspn): New declaration.
66799         * m4/mbsspn.m4: New file.
66800         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
66801         GNULIB_MBSSPN.
66802         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
66803         * MODULES.html.sh (Internationalization functions): Add mbsspn.
66804
66805 2007-02-04  Bruno Haible  <bruno@clisp.org>
66806
66807         New module mbspbrk.
66808         * modules/mbspbrk: New file.
66809         * lib/mbspbrk.c: New file.
66810         * lib/string_.h (strpbrk): Add a conditional link warning.
66811         (mbspbrk): New declaration.
66812         * m4/mbspbrk.m4: New file.
66813         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
66814         GNULIB_MBSPBRK.
66815         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
66816         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
66817
66818 2007-02-04  Bruno Haible  <bruno@clisp.org>
66819
66820         New module mbscspn.
66821         * modules/mbscspn: New file.
66822         * lib/mbscspn.c: New file.
66823         * lib/string_.h (strcspn): Add a conditional link warning.
66824         (mbscspn): New declaration.
66825         * m4/mbscspn.m4: New file.
66826         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
66827         GNULIB_MBSCSPN.
66828         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
66829         * MODULES.html.sh (Internationalization functions): Add mbscspn.
66830
66831 2007-02-04  Bruno Haible  <bruno@clisp.org>
66832
66833         New module mbscasestr, reduced goal of strcasestr.
66834         * modules/mbscasestr: New file.
66835         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
66836         (mbscasestr): Renamed from strcasestr.
66837         * lib/strcasestr.c: Don't include mbuiter.h.
66838         (strcasestr): Remove support for multibyte locales.
66839         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
66840         Change the conditional link warning.
66841         (mbscasestr): New declaration.
66842         * m4/mbscasestr.m4: New file.
66843         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
66844         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
66845         REPLACE_STRCASESTR.
66846         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
66847         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
66848         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
66849         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
66850         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
66851         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
66852         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
66853         (Depends-on): Remove mbuiter.
66854         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
66855
66856 2007-02-04  Bruno Haible  <bruno@clisp.org>
66857
66858         Simplify handling of strncasecmp.
66859         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
66860         the conditional link warning.
66861         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
66862         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
66863         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
66864         * modules/strcase (configure.ac): Don't invoke
66865         gl_STRING_MODULE_INDICATOR.
66866         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
66867
66868 2007-02-04  Bruno Haible  <bruno@clisp.org>
66869
66870         New module mbscasecmp, reduced goal of strcasecmp.
66871         * modules/mbscasecmp: New file.
66872         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
66873         (mbscasecmp): Renamed from strcasecmp.
66874         * lib/strcasecmp.c: Don't include mbuiter.h.
66875         (strcasecmp): Remove support for multibyte locales.
66876         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
66877         Change the conditional link warning.
66878         (mbscasecmp): New declaration.
66879         * m4/mbscasecmp.m4: New file.
66880         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
66881         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
66882         REPLACE_STRCASECMP.
66883         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
66884         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
66885         GNULIB_MBSCASECMP.
66886         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
66887         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
66888         * modules/strcase (Files): Remove m4/mbrtowc.m4.
66889         (Depends-on): Remove mbuiter.
66890         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
66891
66892 2007-02-04  Bruno Haible  <bruno@clisp.org>
66893
66894         New module mbsstr. Remove module strstr.
66895         * modules/mbsstr: New file.
66896         * modules/strstr: Remove file.
66897         * lib/mbsstr.c: Renamed from lib/strstr.c.
66898         (mbsstr): Renamed from strstr.
66899         * lib/string_.h (strstr): Remove declaration. Change the conditional
66900         link warning.
66901         (mbsstr): New declaration.
66902         * m4/mbsstr.m4: New file.
66903         * m4/strstr.m4: Remove file.
66904         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
66905         REPLACE_STRSTR.
66906         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
66907         Don't initialize GNULIB_STRSTR.
66908         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
66909         substitute GNULIB_STRSTR and REPLACE_STRSTR.
66910         * MODULES.html.sh (Internationalization functions): Add mbsstr.
66911         (Support for systems lacking ANSI C 89): Remove strstr.
66912
66913 2007-02-04  Bruno Haible  <bruno@clisp.org>
66914
66915         New module mbsrchr.
66916         * modules/mbsrchr: New file.
66917         * lib/mbsrchr.c: New file.
66918         * lib/string_.h (strrchr): Add a conditional link warning.
66919         (mbsrchr): New declaration.
66920         * m4/mbsrchr.m4: New file.
66921         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
66922         GNULIB_MBSRCHR.
66923         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
66924         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
66925
66926 2007-02-04  Bruno Haible  <bruno@clisp.org>
66927
66928         New module mbschr.
66929         * modules/mbschr: New file.
66930         * lib/mbschr.c: New file.
66931         * lib/string_.h (strchr): Add a conditional link warning.
66932         (mbschr): New declaration.
66933         * m4/mbschr.m4: New file.
66934         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
66935         GNULIB_MBSCHR.
66936         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
66937         * MODULES.html.sh (Internationalization functions): Add mbschr.
66938
66939 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
66940
66941         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
66942
66943         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
66944
66945 2007-02-04  Bruno Haible  <bruno@clisp.org>
66946
66947         New module description section 'configure.ac-early'.
66948         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
66949         (func_get_autoconf_early_snippet): New function.
66950         (func_import, func_create_testdir): Use it. Remove special cases for
66951         modules 'extensions' and 'lock'.
66952         * modules/extensions (configure.ac-early): Require
66953         gl_USE_SYSTEM_EXTENSIONS.
66954         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
66955
66956 2007-02-04  Bruno Haible  <bruno@clisp.org>
66957
66958         Make use of gcj-4.3's -fsource and -ftarget option.
66959         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
66960         and if so try the options -fsource and -ftarget.
66961         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
66962         source_version, ftarget_option, target_version arguments.
66963         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
66964         (is_envjavac_oldgcj_14_14_usable): Renamed from
66965         is_envjavac_gcj_14_14_usable.
66966         (is_envjavac_oldgcj_14_13_usable): Renamed from
66967         is_envjavac_gcj_14_13_usable.
66968         (is_gcj_present): Update.
66969         (is_gcj_43, is_gcj43_usable): New functions.
66970         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
66971         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
66972         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
66973         try the options -fsource and -ftarget.
66974
66975 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
66976
66977         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
66978         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
66979         larger value.
66980
66981 2007-02-03  Jim Meyering  <jim@meyering.net>
66982
66983         Give tools a better chance to allocate space for very large buffers.
66984         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
66985
66986         Make pwd and readlink work also when run with an unreadable parent dir
66987         on systems with openat support.
66988         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
66989         provided getcwd function, even when we have openat support.
66990         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
66991
66992 2007-02-02  Bruno Haible  <bruno@clisp.org>
66993
66994         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
66995         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
66996         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
66997         portability problems if one of these functions is only used on specific
66998         platforms.
66999         Reported by Paul Eggert.
67000
67001 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
67002
67003         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
67004         is causing more trouble than it's curing.
67005         * lib/regex_internal.h (__mempcpy): Remove.
67006         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
67007         (and make the code a tad smaller to boot).
67008         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
67009
67010 2007-02-02  Jim Meyering  <jim@meyering.net>
67011
67012         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
67013         section, not in the Makefile.am: one.
67014
67015 2007-02-02  Eric Blake  <ebb9@byu.net>
67016
67017         * lib/strchrnul.c: Always include config.h first.
67018
67019         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
67020         gnulib strstr is not necessary here.
67021
67022 2007-02-02  Simon Josefsson  <simon@josefsson.org>
67023
67024         * m4/socklen.m4: Fix typo.
67025
67026 2007-02-02  Eric Blake  <ebb9@byu.net>
67027
67028         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
67029         * modules/netinet_in (Makefile.am): Likewise.
67030
67031 2007-02-01  Bruno Haible  <bruno@clisp.org>
67032
67033         * lib/string_.h (GL_LINK_WARNING): New macro.
67034         (strcasecmp, strstr, strcasestr): If provided by the system,
67035         conditionally define as a macro that leads to a warning instead of to
67036         an error.
67037         (strncasecmp): Conditionally define as a macro that leads to a warning.
67038
67039 2007-02-01  Karl Berry  <karl@gnu.org>
67040
67041         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
67042
67043 2007-02-01  Bruno Haible  <bruno@clisp.org>
67044
67045         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
67046         renamings.
67047
67048 2007-02-01  Eric Blake  <ebb9@byu.net>
67049
67050         * modules/regex (Depends-on): Revert dependence on mempcpy.
67051         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
67052         module's definition of mempcpy.
67053         Reported by Paul Eggert.
67054
67055 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
67056
67057         * lib/string_.h: If the gnulib module XYZ is not present, undefine
67058         the symbol XYZ before redefining it.  This fixes a problem with
67059         programs that don't use XYZ, when compiled on systems that define
67060         XYZ to something else.
67061
67062 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
67063
67064         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
67065         occurs when "mkdir -m foo" creates a setgid directory that is (1)
67066         writeable to group or other and (2) is intended to have a special
67067         mode bit that is set or cleared.  In such a case, the directory
67068         should be neither group- nor other-writeable until the special
67069         mode bits are right.
67070
67071 2007-01-31  Eric Blake  <ebb9@byu.net>
67072
67073         * modules/mountlist (Depends-on): Add strstr.
67074
67075         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
67076         bug.
67077         * modules/string (Makefile.am): Remove redundant replacement.
67078         * modules/regex (Depends-on): Add mempcpy.
67079
67080 2007-01-31  Bruno Haible  <bruno@clisp.org>
67081
67082         New module description field 'Link'.
67083         * gnulib-tool (func_usage): Document --extract-link-directive.
67084         (sed_extract_prog): Recognize 'Link' directive.
67085         (func_get_link_directive): New function.
67086         (func_import): Show summary of link directives.
67087         Handle --extract-link-directive option.
67088         * modules/acl (Link): New section.
67089         * modules/clock-time (Link): New section.
67090         * modules/euidaccess (Link): New section.
67091         * modules/gettext (Link): New section.
67092         * modules/iconv (Link): New section.
67093         * modules/lock (Link): New section.
67094         * modules/nanosleep (Link): New section.
67095         * modules/readline (Link): New section.
67096
67097 2007-01-27  Bruno Haible  <bruno@clisp.org>
67098
67099         Enforce the use of gnulib modules for unportable <string.h> functions.
67100         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
67101         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
67102         (gl_HEADER_STRING_H_BODY): Require it.
67103         * lib/string_.h: If the gnulib module XYZ is not present, redefine
67104         the symbol XYZ to one that gives a link error.
67105         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
67106         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
67107         * modules/mempcpy (configure.ac): Likewise.
67108         * modules/memrchr (configure.ac): Likewise.
67109         * modules/stpcpy (configure.ac): Likewise.
67110         * modules/stpncpy (configure.ac): Likewise.
67111         * modules/strcase (configure.ac): Likewise.
67112         * modules/strcasestr (configure.ac): Likewise.
67113         * modules/strchrnul (configure.ac): Likewise.
67114         * modules/strdup (configure.ac): Likewise.
67115         * modules/strndup (configure.ac): Likewise.
67116         * modules/strnlen (configure.ac): Likewise.
67117         * modules/strpbrk (configure.ac): Likewise.
67118         * modules/strsep (configure.ac): Likewise.
67119         * modules/strstr (configure.ac): Likewise.
67120         * modules/strtok_r (configure.ac): Likewise.
67121
67122 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
67123
67124         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
67125
67126 2007-01-30  Jim Meyering  <jim@meyering.net>
67127
67128         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
67129
67130 2007-01-29  Bruno Haible  <bruno@clisp.org>
67131
67132         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
67133         * lib/execute.c: Likewise.
67134         * lib/pipe.c: Likewise.
67135         * lib/printf-args.h: Likewise.
67136         * lib/printf-args.c: Likewise.
67137         * lib/printf-parse.c: Likewise.
67138         * lib/vasnprintf.c: Likewise.
67139
67140 2007-01-29  Eric Blake  <ebb9@byu.net>
67141
67142         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
67143         declaration.
67144
67145 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
67146
67147         * lib/strptime.h (strptime): Use 'restrict' for args where
67148         POSIX requires this.
67149         * lib/strptime.c (strptime): Likewise.
67150         Change license notice from LGPL to GPL, since gnulib-tool will
67151         change this as needed.
67152         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
67153         defined.
67154         Include "strptime.h" first, to check interface.
67155         Do not #undef _LIBC and _NL_CURRENT.
67156         Do not include <stdlib.h>; no longer needed.
67157         Include "time_r.h" and declare ptime_locale_status
67158         only if _LIBC is not defined.
67159         (__P): Remove unused macro.
67160         (match_string): Bring back glibc version, but use it only if _LIBC
67161         is defined.
67162         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
67163         Remove unnecessary assertion and abort() call.
67164         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
67165         * m4/strptime.m4: Fix serial number comment.
67166         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
67167         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
67168         (Depends-on): Add time_r.
67169
67170 2007-01-29  Bruno Haible  <bruno@clisp.org>
67171
67172         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
67173         strptime.
67174         * modules/strptime (Depends-on): Add stdbool.
67175         * lib/strptime.h: Include <time.h> always. Add comments.
67176
67177 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
67178
67179         * modules/strptime: New file.
67180         * lib/strptime.h: New file.
67181         * lib/strptime.c: New file.
67182         * m4/strptime.m4: New file.
67183
67184 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
67185
67186         * MODULES.html.sh: New module mpsort.
67187         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
67188
67189         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
67190         a circularity problem with HP-UX ia64 reported by Bob Proulx in
67191         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
67192         All uses changed.
67193         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
67194         All uses changed.
67195         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
67196         to _Restrict_.
67197         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
67198         the parameter matches the prototype.
67199
67200 2007-01-28  Jim Meyering  <jim@meyering.net>
67201
67202         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
67203         sys/time.h here, reverting that part of the previous patch:
67204         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
67205
67206 2007-01-28  Bruno Haible  <bruno@clisp.org>
67207
67208         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
67209         value of $(SYS_TIME_H).
67210         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
67211         remove it conditionally, too. [added by Jim Meyering]
67212         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
67213         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
67214         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
67215         GETTIMEOFDAY_REPLACEMENT to 1.
67216
67217 2007-01-28  Bruno Haible  <bruno@clisp.org>
67218
67219         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
67220         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
67221         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
67222         Set UNISTD_H instead of UNISTD_H2.
67223         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
67224
67225 2007-01-28  Bruno Haible  <bruno@clisp.org>
67226
67227         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
67228         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
67229
67230 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67231
67232         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
67233         (func_create_testdir): Ensure C locale for `grep' and `tr'
67234         character ranges.
67235         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
67236         ACLOCAL_AMFLAGS parsing state machine.
67237
67238 2007-01-27  Bruno Haible  <bruno@clisp.org>
67239
67240         * modules/unistr/base: Update.
67241
67242 2007-01-27  Bruno Haible  <bruno@clisp.org>
67243
67244         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
67245         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
67246         * modules/unistr/u32-mbtouc-unsafe: Renamed from
67247         modules/unistr/u32-mbtouc.
67248         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
67249         * lib/unistr.h: Update.
67250         * lib/linebreak.c: Update.
67251         * modules/unistr/u32-mbtouc: Renamed from
67252         modules/unistr/u32-mbtouc-safe.
67253         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
67254         * lib/unistr.h: Update.
67255         * lib/unistr/u32-to-u8.c: Update.
67256         * lib/unistr/u32-to-u16.c: Update.
67257
67258 2007-01-27  Bruno Haible  <bruno@clisp.org>
67259
67260         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
67261         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
67262         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
67263         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
67264         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
67265         * modules/unistr/u16-mbtouc-unsafe: Renamed from
67266         modules/unistr/u16-mbtouc.
67267         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
67268         * lib/unistr.h: Update.
67269         * lib/linebreak.c: Update.
67270         * modules/linebreak: Update.
67271         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
67272         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
67273         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
67274         * modules/unistr/u16-mbtouc: Renamed from
67275         modules/unistr/u16-mbtouc-safe.
67276         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
67277         * lib/unistr.h: Update.
67278         * lib/unistr/u16-to-u8.c: Update.
67279         * modules/unistr/u16-to-u8: Update.
67280         * lib/unistr/u16-to-u32.c: Update.
67281         * modules/unistr/u16-to-u32: Update.
67282
67283 2007-01-27  Bruno Haible  <bruno@clisp.org>
67284
67285         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
67286         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
67287         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
67288         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
67289         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
67290         * modules/unistr/u8-mbtouc-unsafe: Renamed from
67291         modules/unistr/u8-mbtouc.
67292         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
67293         * lib/unistr.h: Update.
67294         * lib/striconveh.c: Update.
67295         * modules/striconveh: Update.
67296         * lib/linebreak.c: Update.
67297         * modules/linebreak: Update.
67298         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
67299         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
67300         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
67301         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
67302         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
67303         * lib/unistr.h: Update.
67304         * lib/striconveh.c: Update.
67305         * modules/striconveh: Update.
67306         * lib/unistr/u8-to-u16.c: Update.
67307         * modules/unistr/u8-to-u16: Update.
67308         * lib/unistr/u8-to-u32.c: Update.
67309         * modules/unistr/u8-to-u32: Update.
67310
67311 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67312
67313         Sync from Libtool.
67314         * lib/argz.c: Do not include strings.h nor memory.h, include
67315         string.h unconditionally.  Patch by Simon Josefsson.
67316
67317 2007-01-27  Bruno Haible  <bruno@clisp.org>
67318
67319         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
67320         from gl_HEADER_STRING_H_BODY.
67321         (gl_HEADER_STRING_H_BODY): Require it.
67322         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
67323         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
67324         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
67325         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
67326         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
67327         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
67328         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
67329         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
67330         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
67331         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
67332         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
67333         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
67334         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
67335         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
67336         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
67337
67338 2007-01-27  Bruno Haible  <bruno@clisp.org>
67339
67340         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
67341         check_PROGRAMS into noinst_PROGRAMS.
67342         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
67343         check_PROGRAMS in this case.
67344         (func_import): Set for_test to false.
67345         (func_create_testdir): Set for_test to true.
67346
67347 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
67348             Bruno Haible  <bruno@clisp.org>
67349
67350         * modules/strcasestr (Files): Remove lib/strcasestr.h.
67351         (Depends-on): Add string.
67352         (Includes): Use <string.h> instead of strcasestr.h.
67353         * modules/string (Makefile.am): Also substitute the value of
67354         REPLACE_STRCASESTR.
67355         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
67356         assume strcasestr is declared in <string.h> not <strings.h>. Also
67357         set REPLACE_STRCASESTR.
67358         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
67359         REPLACE_STRCASESTR.
67360         * lib/strcasestr.h: Remove file.
67361         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
67362         * lib/string_.h (strcasestr): New declaration.
67363
67364 2007-01-27  Bruno Haible  <bruno@clisp.org>
67365
67366         * lib/string_.h: Use 'extern'.
67367
67368 2007-01-27  Jim Meyering  <jim@meyering.net>
67369
67370         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
67371         of set-but-not-used local, "q".
67372
67373         * lib/mempcpy.c: Include <config.h> before <string.h>.
67374         This fixes a compilation error on HP-UX, due to the system's
67375         "restrict"-using mempcpy prototype.
67376
67377 2007-01-26  Bruno Haible  <bruno@clisp.org>
67378
67379         Small optimization.
67380         * lib/javacomp.c: Include c-strstr.h.
67381          (is_envjavac_gcj): Use c_strstr instead of strstr.
67382         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
67383
67384 2007-01-26  Bruno Haible  <bruno@clisp.org>
67385
67386         * MODULES.html.sh (Unicode string functions): Add the new modules.
67387
67388         * modules/uniconv/u32-strconv-to-locale: New file.
67389         * lib/uniconv/u32-strconv-to-locale.c: New file.
67390
67391         * modules/uniconv/u16-strconv-to-locale: New file.
67392         * lib/uniconv/u16-strconv-to-locale.c: New file.
67393
67394         * modules/uniconv/u8-strconv-to-locale: New file.
67395         * lib/uniconv/u8-strconv-to-locale.c: New file.
67396
67397         * modules/uniconv/u32-strconv-from-locale: New file.
67398         * lib/uniconv/u32-strconv-from-locale.c: New file.
67399
67400         * modules/uniconv/u16-strconv-from-locale: New file.
67401         * lib/uniconv/u16-strconv-from-locale.c: New file.
67402
67403         * modules/uniconv/u8-strconv-from-locale: New file.
67404         * lib/uniconv/u8-strconv-from-locale.c: New file.
67405
67406         * modules/uniconv/u32-strconv-to-enc: New file.
67407         * lib/uniconv/u32-strconv-to-enc.c: New file.
67408         * modules/uniconv/u32-strconv-to-enc-tests: New file.
67409         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
67410
67411         * modules/uniconv/u16-strconv-to-enc: New file.
67412         * lib/uniconv/u16-strconv-to-enc.c: New file.
67413         * lib/uniconv/u-strconv-to-enc.h: New file.
67414         * modules/uniconv/u16-strconv-to-enc-tests: New file.
67415         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
67416
67417         * modules/uniconv/u8-strconv-to-enc: New file.
67418         * lib/uniconv/u8-strconv-to-enc.c: New file.
67419         * modules/uniconv/u8-strconv-to-enc-tests: New file.
67420         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
67421
67422         * modules/uniconv/u32-strconv-from-enc: New file.
67423         * lib/uniconv/u32-strconv-from-enc.c: New file.
67424         * modules/uniconv/u32-strconv-from-enc-tests: New file.
67425         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
67426
67427         * modules/uniconv/u16-strconv-from-enc: New file.
67428         * lib/uniconv/u16-strconv-from-enc.c: New file.
67429         * modules/uniconv/u16-strconv-from-enc-tests: New file.
67430         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
67431
67432         * modules/uniconv/u8-strconv-from-enc: New file.
67433         * lib/uniconv/u8-strconv-from-enc.c: New file.
67434         * lib/uniconv/u-strconv-from-enc.h: New file.
67435         * modules/uniconv/u8-strconv-from-enc-tests: New file.
67436         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
67437
67438         * modules/uniconv/u32-conv-from-enc: New file.
67439         * lib/uniconv/u32-conv-from-enc.c: New file.
67440         * modules/uniconv/u32-conv-from-enc-tests: New file.
67441         * tests/uniconv/test-u32-conv-from-enc.c: New file.
67442
67443         * modules/uniconv/u16-conv-from-enc: New file.
67444         * lib/uniconv/u16-conv-from-enc.c: New file.
67445         * lib/uniconv/u-conv-from-enc.h: New file.
67446         * modules/uniconv/u16-conv-from-enc-tests: New file.
67447         * tests/uniconv/test-u16-conv-from-enc.c: New file.
67448
67449         * modules/uniconv/u8-conv-from-enc: New file.
67450         * lib/uniconv/u8-conv-from-enc.c: New file.
67451         * modules/uniconv/u8-conv-from-enc-tests: New file.
67452         * tests/uniconv/test-u8-conv-from-enc.c: New file.
67453
67454         * modules/uniconv/base: New file.
67455         * lib/uniconv.h: New file.
67456
67457 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
67458
67459         * doc/gnulib-tool.texi (Initial import): Update to match current
67460         behavior with strdup module.
67461         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
67462         * lib/memmem.h: Remove; all uses removed.  This is now done
67463         by <string.h>.
67464         * lib/mempcpy.h: Likewise.
67465         * lib/memrchr.h: Likewise.
67466         * lib/stpcpy.h: Likewise.
67467         * lib/stpncpy.h: Likewise.
67468         * lib/strcase.h: Likewise.
67469         * lib/strchrnul.h: Likewise.
67470         * lib/strdup.h: Likewise.
67471         * lib/strndup.h: Likewise.
67472         * lib/strnlen.h: Likewise.
67473         * lib/strpbrk.h: Likewise.
67474         * lib/strsep.h: Likewise.
67475         * lib/strstr.h: Likewise.
67476         * lib/strtok_r.h: Likewise.
67477         * lib/string_.h: New file.
67478         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
67479         Rely on <string.h> instead.
67480         * lib/canon-host.c: Likewise.
67481         * lib/chdir-long.c: Likewise.
67482         * lib/concatpath.c: Likewise.
67483         * lib/exclude.c: Likewise.
67484         * lib/fchdir.c: Likewise.
67485         * lib/getaddrinfo.c: Likewise.
67486         * lib/getcwd.c: Likewise.
67487         * lib/getsubopt.c: Likewise.
67488         * lib/glob.c: Likewise.
67489         * lib/hard-locale.c: Likewise.
67490         * lib/iconvme.c: Likewise.
67491         * lib/javacomp.c: Likewise.
67492         * lib/mempcpy.c: Likewise.
67493         * lib/memrchr.c: Likewise.
67494         * lib/regex_internal.h: Likewise.
67495         * lib/stpncpy.c: Likewise.
67496         * lib/strcasecmp.c: Likewise.
67497         * lib/strchrnul.c: Likewise.
67498         * lib/strdup.c: Likewise.
67499         * lib/striconv.c: Likewise.
67500         * lib/striconveh.c: Likewise.
67501         * lib/striconveha.c: Likewise.
67502         * lib/strncasecmp.c: Likewise.
67503         * lib/strndup.c: Likewise.
67504         * lib/strnlen.c: Likewise.
67505         * lib/strsep.c: Likewise.
67506         * lib/strstr.c: Likewise.
67507         * lib/strtok_r.c: Likewise.
67508         * lib/userspec.c: Likewise.
67509         * lib/w32spawn.h: Likewise.
67510         * lib/xstrndup.c: Likewise.
67511         * lib/mountlist.c (strstr): Remove decl.
67512         * m4/string_h.m4: New file.
67513         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
67514         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
67515         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
67516         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
67517         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
67518         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
67519         Set REPLACE_STRCASECMP if necessary.
67520         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
67521         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
67522         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
67523         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
67524         HAVE_DECL_STRDUP if necessary.
67525         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
67526         since gl_FUNC_STRNDUP does that now.
67527         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
67528         Check for decl here...
67529         (gl_PREREQ_STRNLEN): ... not here.
67530         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
67531         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
67532         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
67533         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
67534         necessary.
67535         * modules/string: New file.
67536         * modules/memmem (Files): Remove special-purpose include file.
67537         (Depends-on): Add string.
67538         (Include): Include <string.h>, not the removed file.
67539         * modules/mempcpy: Likewise.
67540         * modules/memrchr: Likewise.
67541         * modules/stpcpy: Likewise.
67542         * modules/stpncpy: Likewise.
67543         * modules/strcase: Likewise.
67544         * modules/strchrnul: Likewise.
67545         * modules/strdup: Likewise.
67546         * modules/strndup: Likewise.
67547         * modules/strnlen: Likewise.
67548         * modules/strpbrk: Likewise.
67549         * modules/strsep: Likewise.
67550         * modules/strstr: Likewise.
67551         * modules/strtok_r: Likewise.
67552         * tests/test-dirname.c: Don't include "strdup.h", since
67553         <string.h> now suffices.
67554         * tests/test-memmem.c: Don't include "memmem.h", since
67555         <string.h> now suffices.
67556
67557 2007-01-25  Bruno Haible  <bruno@clisp.org>
67558
67559         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
67560         *resultp is 0.
67561
67562         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
67563         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
67564         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
67565         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
67566
67567         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
67568         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
67569         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
67570         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
67571         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
67572         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
67573
67574 2007-01-24  Bruno Haible  <bruno@clisp.org>
67575
67576         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
67577         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
67578         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
67579         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
67580         gl_FUNC_FTS_CORE.
67581         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
67582         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
67583         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
67584         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
67585         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
67586         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
67587         gl_FUNC_FCHOWNAT.
67588         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
67589         gl_FUNC_STRFTIME.
67590         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
67591         Reported by Ralf Wildenhues.
67592
67593 2007-01-24  Bruno Haible  <bruno@clisp.org>
67594
67595         Drop AC_REQUIRE calls that are redundant with the module dependencies.
67596         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
67597         gl_GETADDRINFO.
67598         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
67599         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
67600         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
67601
67602 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
67603
67604         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
67605         Don't use 'exit'; just return from 'main'.
67606         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
67607
67608         * lib/fnmatch_.h: Readjust white space and comments to match
67609         glibc, to avoid spurious diffs.
67610
67611 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
67612
67613         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
67614         2004-12-01 change by Jakub Jelinek, since this code won't compile
67615         if !LIBC.  Problem reported by Bob Proulx.
67616
67617 2007-01-23  Bruno Haible  <bruno@clisp.org>
67618
67619         * lib/striconveh.c: Include c-strcaseeq.h.
67620         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
67621         * modules/striconveh (Depends-on): Add c-strcaseeq.
67622
67623 2007-01-23  Bruno Haible  <bruno@clisp.org>
67624
67625         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
67626
67627         * modules/c-strcaseeq: New file.
67628         * lib/c-strcaseeq.h: New file.
67629
67630         * modules/streq: New file.
67631         * lib/streq.h: New file.
67632
67633 2007-01-23  Bruno Haible  <bruno@clisp.org>
67634
67635         * modules/striconveha-tests: New file.
67636         * tests/test-striconveha.c: New file.
67637
67638         * lib/striconveha.h: Include <stdbool.h>.
67639         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
67640         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
67641         (mem_iconveha_notranslit): Renamed from mem_iconveha.
67642         (mem_iconveha): New function.
67643         (str_iconveha_notranslit): Renamed from str_iconveha.
67644         (str_iconveha): New function.
67645         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
67646         c-strcase.
67647
67648 2007-01-23  Bruno Haible  <bruno@clisp.org>
67649
67650         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
67651         encodings without forgiving before trying any encoding with handler.
67652         (str_iconveha): Try all encodings without forgiving before trying any
67653         encoding with handler.
67654
67655 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
67656
67657         Import the following changes from libc.
67658
67659         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
67660
67661         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
67662
67663         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
67664
67665         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
67666         normal_bracket label.
67667
67668         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
67669
67670         [BZ #361]
67671         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
67672         to normal_bracket after fetching the next character.
67673
67674 2007-01-22  Bruno Haible  <bruno@clisp.org>
67675
67676         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
67677         argument.
67678         * lib/striconveh.c (iconv_carefully_1): New function.
67679         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
67680         argument.
67681         (str_cd_iconveh): Update.
67682         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
67683         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
67684         * tests/test-striconveh.c (MAGIC): New macro.
67685         (new_offsets): New function.
67686         (main): Test call with and without offsets.
67687
67688 2007-01-22  Bruno Haible  <bruno@clisp.org>
67689
67690         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
67691         * modules/sys_select (Makefile.am): Likewise.
67692         * modules/sys_socket (Makefile.am): Likewise.
67693         * modules/sys_time (Makefile.am): Likewise.
67694
67695 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
67696
67697         * modules/gettimeofday (License): Change from GPL to LGPL, since
67698         gettimeofday is a library function.
67699
67700 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
67701
67702         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
67703
67704 2007-01-21  Bruno Haible  <bruno@clisp.org>
67705
67706         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
67707
67708 2007-01-21  Bruno Haible  <bruno@clisp.org>
67709
67710         * modules/striconveha: New file.
67711         * lib/striconveha.h: New file.
67712         * lib/striconveha.c: New file.
67713         * MODULES.html.sh (Internationalization functions): Add striconveha.
67714         * lib/striconv.c (str_iconv): Optimize the case of an empty input
67715         string.
67716         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
67717
67718 2007-01-21  Bruno Haible  <bruno@clisp.org>
67719
67720         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
67721         * lib/striconveh.c (str_iconveh): Likewise.
67722
67723 2007-01-21  Bruno Haible  <bruno@clisp.org>
67724
67725         * lib/striconveh.h (mem_iconveh): New declaration.
67726         * lib/striconveh.c (mem_iconveh): New function.
67727         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
67728
67729 2007-01-21  Bruno Haible  <bruno@clisp.org>
67730
67731         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
67732
67733         * lib/striconveh.h (mem_cd_iconveh): Change specification.
67734         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
67735         original result buffer.
67736         (str_cd_iconveh): Update.
67737         * tests/test-striconveh.c (main): Update.
67738
67739         * lib/striconv.h (mem_cd_iconv): Change specification.
67740         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
67741         result buffer.
67742         (str_cd_iconv): Update.
67743         * tests/test-striconv.c (main): Update.
67744
67745 2007-01-21  Bruno Haible  <bruno@clisp.org>
67746
67747         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
67748
67749 2007-01-20  Jim Meyering  <jim@meyering.net>
67750
67751         * lib/userspec.c (parse_with_separator): If a user or group string
67752         starts with "+", skip the corresponding name-to-ID look-up, since
67753         such a look-up must fail: user and group names may not include "+".
67754
67755 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
67756
67757         * lib/poll.c: Include sys/time.h and time.h unconditionally,
67758         since we now assume the sys_time module.
67759         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
67760         check for sys/time.h; no longer needed.
67761         * modules/poll (Depends-on): Depend on sys_time.
67762
67763 2007-01-18  Bruno Haible  <bruno@clisp.org>
67764
67765         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
67766         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
67767
67768         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
67769         gettimeofday.
67770
67771         * tests/test-gettimeofday.c: Include <time.h>.
67772         (dummy): Remove variable.
67773
67774         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
67775         gl_HEADER_SYS_TIME_H.
67776         (gl_HEADER_SYS_TIME_H): New macro.
67777
67778         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
67779         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
67780         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
67781         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
67782         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
67783         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
67784         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
67785         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
67786         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
67787         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
67788         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
67789
67790         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
67791         last change; it caused a compilation error when cross-compiling to
67792         Cygwin.
67793
67794 2007-01-18  Jim Meyering  <jim@meyering.net>
67795
67796         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
67797         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
67798         than the race-prone "test -d sys || mkdir sys".
67799         (configure.ac): Use AC_PROG_MKDIR_P.
67800         * modules/sys_select: Likewise.
67801         * modules/sys_socket: Likewise.
67802         * modules/sys_time: Likewise.
67803
67804 2007-01-18  Eric Blake  <ebb9@byu.net>
67805
67806         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
67807         replace gettimeofday.
67808         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
67809         name, to avoid infinite recursion.
67810
67811 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
67812
67813         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
67814         module sys_time.
67815         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
67816         assume timespec.h defines struct timeval.
67817         * lib/settime.c: Likewise.
67818         * lib/utimens.c: Likewise.
67819         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
67820         since we now assume the gettimeofday module.
67821         * lib/tempname.c (__gen_tempname): Likewise.
67822         * lib/gettimeofday.h: Remove.
67823         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
67824         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
67825         Include <time.h>, for 'time()'.
67826         (localtime_buffer_addr): Also use this workaround if
67827         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
67828         to simplify the uses.  All uses changed.
67829         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
67830         that #undef is inside {}, and 'const' follows type name consistently.
67831         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
67832         (gettimeofday): Do not use the maximum possible value for
67833         tv->tv_usec, since that might break usages other than ls.c.
67834         Instead, we'll leave ls.c alone.  This undoes today's patch
67835         by Bruno.  Add a compile-time warning for 1s-clock resolution;
67836         we've never observed the problem but might as well keep the
67837         canary.
67838         * lib/nanosleep.c: Include timespec.h first, for interface check.
67839         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
67840         now assume the sys_time module.
67841         * lib/tempname.c: Likewise.
67842         * lib/timespec.h: Likewise.
67843         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
67844         needed.
67845         * lib/strftime.c: Likewise.
67846         * lib/timespec.h: Likewise.
67847         * lib/posixtm.c: Include posixtm.h first, for interface check.
67848         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
67849         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
67850         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
67851         * lib/sys_time_.h: New file.
67852         * lib/timespec.h (struct timespec): Use long int, not long.
67853         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
67854         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
67855         Remove obsolescent call to AC_HEADER_TIME.
67856         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
67857         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
67858         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
67859         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
67860         Likewise.
67861         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
67862         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
67863         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
67864         into the sys_time module.  Check for gettimeofday just once.
67865         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
67866         for gettimeofday signature to just check the signature.  Merely
67867         compile it, since linking doesn't test signature.  Improve test for
67868         whether gettimeofday.o is actually needed.
67869         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
67870         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
67871         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
67872         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
67873         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
67874         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
67875         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
67876         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
67877         than worrying about sys/time.h.
67878         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
67879         Don't bother worrying about TIME_WITH_SYS_TIME.
67880         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
67881         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
67882         * m4/sys_time_h.m4: New file.
67883         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
67884         Don't include sys/time.h.  Return from main rather than exiting.
67885         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
67886         all uses changed.
67887         * modules/gethrxtime (Depends-on): Add sys_time.
67888         * modules/gettime (Depends-on): Likewise.
67889         * modules/gettimeofday (Depends-on): Likewise.
67890         * modules/nanosleep (Depends-on): Likewise.
67891         * modules/settime (Depends-on): Likewise.
67892         * modules/tempname (Depends-on): Likewise.
67893         * modules/utimens (Depends-on): Likewise.
67894         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
67895         (Include): Change back to <sys/time.h>.
67896         (Maintainer): Add self.
67897         * modules/sys_time: New file.
67898         * modules/tempname (Depends-on): Add gettimeofday.
67899         * tests/test-gettimeofday.c: Include <sys/time.h>
67900         rather than gettimeofday.h.
67901
67902 2007-01-17  Bruno Haible  <bruno@clisp.org>
67903
67904         * gnulib-tool (func_get_license): Revert last patch. Instead, let
67905         the license default to GPL.
67906         (func_create_testdir): Don't complain if a module is LGPL and its
67907         tests module depends on GPLed modules.
67908
67909 2007-01-17  Bruno Haible  <bruno@clisp.org>
67910
67911         * lib/gettimeofday.c (gettimeofday): Add code for the case
67912         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
67913         maximum possible value for tv->tv_usec, rather than the minimum one.
67914
67915 2005-10-08  Martin Lambers  <marlam@marlam.de>
67916 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
67917 2007-01-16  Bruno Haible  <bruno@clisp.org>
67918
67919         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
67920         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
67921         gl_FUNC_GETTIMEOFDAY.
67922         (Include): Add gettimeofday.h.
67923         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
67924         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
67925         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
67926         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
67927         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
67928         * lib/gettimeofday.h: New file.
67929         * lib/gettimeofday.c: Include <sys/timeb.h>.
67930         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
67931         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
67932         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
67933         fall back on time().
67934
67935         * tests/test-gettimeofday.c: New file.
67936         * modules/gettimeofday-tests: New file.
67937
67938 2007-01-16  Eric Blake  <ebb9@byu.net>
67939
67940         * modules/fnmatch (Depends-on): Depend on wchar.
67941         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
67942         * m4/fnmatch.m4: Likewise.
67943         * modules/mbchar (Makefile.am): Assume <wchar.h>.
67944         * m4/mbchar.m4: Likewise.
67945         * modules/mbswidth (Depends-on): Depend on wchar.
67946         * lib/mbswidth.c: Assume <wchar.h>.
67947         * m4/mbswidth.m4: Likewise.
67948         * modules/quotearg (Depends-on): Depend on wchar.
67949         * lib/quotearg.c: Assume <wchar.h>.
67950         * m4/quotearg.m4: Likewise.
67951         * modules/regex (Depends-on): Depend on wchar.
67952         * lib/regex_internal.h: Assume <wchar.h>.
67953         * m4/regex.m4: Likewise.
67954         * modules/stdint (Depends-on): Depend on wchar.
67955         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
67956         * m4/stdint.m4: Likewise.
67957         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
67958         * modules/strftime (Depends-on): Depend on wchar.
67959         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
67960         * modules/strtol (Depends-on): Depend on wchar.
67961         * lib/strtol.c: Assume <wchar.h>.
67962         * modules/wcwidth (Depends-on): Depend on wchar.
67963         * lib/wcwidth.h: Assume <wchar.h>.
67964         * m4/wcwidth.m4: Likewise.
67965
67966 2007-01-16  Bruno Haible  <bruno@clisp.org>
67967
67968         * modules/csharpexec-script: New, created from...
67969         * modules/csharpexec: ... this.
67970
67971 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
67972
67973         * modules/javaexec-script: New, created from...
67974         * modules/javaexec: ... this.
67975
67976 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
67977
67978         * modules/poll (Dependencies): Add sys_select.
67979
67980 2007-01-15  Jim Meyering  <jim@meyering.net>
67981
67982         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
67983         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
67984         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
67985         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
67986
67987 2007-01-15  Bruno Haible  <bruno@clisp.org>
67988
67989         * modules/striconveh: New file.
67990         * lib/striconveh.h: New file.
67991         * lib/striconveh.c: New file.
67992         * MODULES.html.sh (Internationalization functions): Add striconveh.
67993
67994         * modules/striconveh-tests: New file.
67995         * tests/test-striconveh.c: New file.
67996
67997 2007-01-15  Bruno Haible  <bruno@clisp.org>
67998
67999         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
68000         not from GNU libiconv or GNU libc.
68001
68002 2007-01-15  Bruno Haible  <bruno@clisp.org>
68003
68004         * doc/gnulib-intro.texi (Copyright): Explain the different license
68005         terms for module descriptions, autoconf macros, tests, documentation.
68006
68007 2007-01-14  Bruno Haible  <bruno@clisp.org>
68008
68009         * modules/striconv-tests: New file.
68010         * tests/test-striconv.c: New file.
68011
68012 2007-01-14  Bruno Haible  <bruno@clisp.org>
68013
68014         * modules/iconv-tests: New file.
68015         * tests/test-iconv.c: New file.
68016
68017 2007-01-14  Bruno Haible  <bruno@clisp.org>
68018
68019         * gnulib-tool (func_get_license): For test modules, use the license of
68020         the main module.
68021
68022 2007-01-14  Bruno Haible  <bruno@clisp.org>
68023
68024         * modules/iconv (Include): Clarify that <iconv.h> can only be included
68025         if iconv is found to exist.
68026
68027 2007-01-14  Bruno Haible  <bruno@clisp.org>
68028
68029         * modules/c-ctype-tests: New file.
68030         * tests/test-c-ctype.c: New file.
68031
68032 2007-01-14  Bruno Haible  <bruno@clisp.org>
68033
68034         * modules/binary-io-tests: New file.
68035         * tests/test-binary-io.sh: New file.
68036         * tests/test-binary-io.c: New file.
68037
68038 2007-01-14  Bruno Haible  <bruno@clisp.org>
68039
68040         * modules/array-oset-tests: New file.
68041         * tests/test-array_oset.c: New file.
68042
68043 2007-01-14  Bruno Haible  <bruno@clisp.org>
68044
68045         * modules/array-list-tests: New file.
68046         * tests/test-array_list.c: New file.
68047
68048 2007-01-14  Bruno Haible  <bruno@clisp.org>
68049
68050         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
68051         and make.
68052         Reported by Simon Josefsson in
68053         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
68054
68055 2007-01-14  Bruno Haible  <bruno@clisp.org>
68056
68057         * modules/allocsa-tests: New file.
68058         * tests/test-allocsa.c: New file.
68059
68060 2007-01-14  Bruno Haible  <bruno@clisp.org>
68061
68062         * modules/fchdir (Depends-on): Add absolute-header.
68063         * modules/unistd (Depends-on): Likewise.
68064
68065 2006-12-30  Bruno Haible  <bruno@clisp.org>
68066
68067         * modules/fchdir: New file.
68068         * modules/unistd (Files): Add lib/unistd_.h.
68069         (Makefile.am): Generate unistd.h from unistd_.h.
68070         * lib/fchdir.c: New file.
68071         * lib/dirent_.h: New file.
68072         * lib/unistd_.h: New file.
68073         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
68074         * m4/fchdir.m4: New file.
68075         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
68076         (gl_HEADER_UNISTD): Invoke it.
68077         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
68078         function.
68079         * lib/backupfile.c (opendir, closedir): Undefine.
68080         * lib/chown.c (open, close): Undefine.
68081         * lib/clean-temp.c (open, close): Undefine.
68082         * lib/copy-file.c (open, close): Undefine.
68083         * lib/execute.c (open, close): Undefine.
68084         * lib/fsusage.c (open, close): Undefine.
68085         * lib/gc-gnulib.c (open, close): Undefine.
68086         * lib/getcwd.c (opendir, closedir): Undefine.
68087         * lib/glob.c (opendir, closedir): Undefine.
68088         * lib/javacomp.c (open, close): Undefine.
68089         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
68090         * lib/openat-proc.c (open, close): Undefine.
68091         * lib/pagealign_alloc.c (open, close): Undefine.
68092         * lib/pipe.c (open, close): Undefine.
68093         * lib/progreloc.c (open, close): Undefine.
68094         * lib/savedir.c (opendir, closedir): Undefine.
68095         * lib/utime.c (open, close): Undefine.
68096         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
68097
68098 2007-01-10  Bruno Haible  <bruno@clisp.org>
68099
68100         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
68101
68102 2007-01-12  Eric Blake  <ebb9@byu.net>
68103
68104         Provide a robust <wchar.h>.  Further simplifications are now
68105         possible in other modules, but not included here.
68106         * modules/wchar: New module.
68107         * m4/wchar.m4: New file.
68108         * lib/wchar_.h: Likewise.
68109         * modules/mbchar (Depends-on): Depend on wchar, as the first use
68110         of the new module.
68111         * MODULES.html.sh (Extended multibyte and wide character utilities):
68112         New section.
68113
68114 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
68115
68116         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
68117         to a reasonable default for memory allocation.
68118         (xreadlink): Don't allocate a huge buffer, to work around a buggy
68119         file system that reports garbage st_size values for symlinks.
68120         Problem reported by Liyang Hu.
68121
68122 2007-01-11  Simon Josefsson  <simon@josefsson.org>
68123
68124         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
68125         Emacs .#* auto-save files).
68126
68127 2007-01-11  Bruno Haible  <bruno@clisp.org>
68128
68129         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
68130         directory.
68131
68132 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
68133
68134         Use @...@ consistently in lib/wctype_.h.
68135         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
68136         on it being set to 1 or 0.
68137         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
68138         go back to AC_SUBSTing it.
68139         * modules/wctype (Makefile.am): Undo previous change.
68140
68141 2007-01-10  Eric Blake  <ebb9@byu.net>
68142
68143         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
68144         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
68145         * modules/wctype (Makefile.am): Likewise.
68146         Reported by Chris McGuire.
68147
68148 2007-01-10  Jim Meyering  <jim@meyering.net>
68149
68150         fts.c: a small readability/maintainability improvement
68151         * lib/fts.c (fts_read): Make this code slightly more readable and
68152         maintainable by hoisting the "sp->fts_cur = p" assignments to
68153         immediately follow the statements that set P.  Derived from
68154         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
68155
68156 2007-01-10  Eric Blake  <ebb9@byu.net>
68157
68158         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
68159         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
68160         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
68161         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
68162         Reported by Chris McGuire.
68163
68164 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68165
68166         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
68167         in sed script.
68168
68169 2007-01-09  Bruno Haible  <bruno@clisp.org>
68170
68171         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
68172         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
68173         variables.
68174         (func_module): Use them.
68175
68176 2007-01-09  Bruno Haible  <bruno@clisp.org>
68177
68178         * modules/unistr/base: New file.
68179         * lib/unistr.h: New file.
68180
68181         * modules/unistr/u8-to-u16: New file.
68182         * lib/unistr/u8-to-u16.c: New file.
68183
68184         * modules/unistr/u8-to-u32: New file.
68185         * lib/unistr/u8-to-u32.c: New file.
68186
68187         * modules/unistr/u16-to-u8: New file.
68188         * lib/unistr/u16-to-u8.c: New file.
68189
68190         * modules/unistr/u16-to-u32: New file.
68191         * lib/unistr/u16-to-u32.c: New file.
68192
68193         * modules/unistr/u32-to-u8: New file.
68194         * lib/unistr/u32-to-u8.c: New file.
68195
68196         * modules/unistr/u32-to-u16: New file.
68197         * lib/unistr/u32-to-u16.c: New file.
68198
68199         * modules/unistr/u8-check: New file.
68200         * modules/unistr/u16-check: New file.
68201         * modules/unistr/u32-check: New file.
68202         * lib/unistr/u8-check.c: New file.
68203         * lib/unistr/u16-check.c: New file.
68204         * lib/unistr/u32-check.c: New file.
68205
68206         * modules/unistr/u8-chr: New file.
68207         * modules/unistr/u16-chr: New file.
68208         * modules/unistr/u32-chr: New file.
68209         * lib/unistr/u8-chr.c: New file.
68210         * lib/unistr/u16-chr.c: New file.
68211         * lib/unistr/u32-chr.c: New file.
68212
68213         * modules/unistr/u8-cmp: New file.
68214         * modules/unistr/u16-cmp: New file.
68215         * modules/unistr/u32-cmp: New file.
68216         * lib/unistr/u8-cmp.c: New file.
68217         * lib/unistr/u16-cmp.c: New file.
68218         * lib/unistr/u32-cmp.c: New file.
68219
68220         * modules/unistr/u8-cpy: New file.
68221         * modules/unistr/u16-cpy: New file.
68222         * modules/unistr/u32-cpy: New file.
68223         * lib/unistr/u8-cpy.c: New file.
68224         * lib/unistr/u16-cpy.c: New file.
68225         * lib/unistr/u32-cpy.c: New file.
68226         * lib/unistr/u-cpy.h: New file.
68227
68228         * modules/unistr/u8-cpy-alloc: New file.
68229         * modules/unistr/u16-cpy-alloc: New file.
68230         * modules/unistr/u32-cpy-alloc: New file.
68231         * lib/unistr/u8-cpy-alloc.c: New file.
68232         * lib/unistr/u16-cpy-alloc.c: New file.
68233         * lib/unistr/u32-cpy-alloc.c: New file.
68234         * lib/unistr/u-cpy-alloc.h: New file.
68235
68236         * modules/unistr/u8-endswith: New file.
68237         * modules/unistr/u16-endswith: New file.
68238         * modules/unistr/u32-endswith: New file.
68239         * lib/unistr/u8-endswith.c: New file.
68240         * lib/unistr/u16-endswith.c: New file.
68241         * lib/unistr/u32-endswith.c: New file.
68242         * lib/unistr/u-endswith.h: New file.
68243
68244         * modules/unistr/u8-mblen: New file.
68245         * modules/unistr/u16-mblen: New file.
68246         * modules/unistr/u32-mblen: New file.
68247         * lib/unistr/u8-mblen.c: New file.
68248         * lib/unistr/u16-mblen.c: New file.
68249         * lib/unistr/u32-mblen.c: New file.
68250
68251         * modules/unistr/u8-mbtouc: New file.
68252         * modules/unistr/u16-mbtouc: New file.
68253         * modules/unistr/u32-mbtouc: New file.
68254         * lib/unistr/u8-mbtouc.c: New file.
68255         * lib/unistr/u16-mbtouc.c: New file.
68256         * lib/unistr/u32-mbtouc.c: New file.
68257
68258         * modules/unistr/u8-mbtouc-safe: New file.
68259         * modules/unistr/u16-mbtouc-safe: New file.
68260         * modules/unistr/u32-mbtouc-safe: New file.
68261         * lib/unistr/u8-mbtouc-safe.c: New file.
68262         * lib/unistr/u16-mbtouc-safe.c: New file.
68263         * lib/unistr/u32-mbtouc-safe.c: New file.
68264
68265         * modules/unistr/u8-move: New file.
68266         * modules/unistr/u16-move: New file.
68267         * modules/unistr/u32-move: New file.
68268         * lib/unistr/u8-move.c: New file.
68269         * lib/unistr/u16-move.c: New file.
68270         * lib/unistr/u32-move.c: New file.
68271         * lib/unistr/u-move.h: New file.
68272
68273         * modules/unistr/u8-next: New file.
68274         * modules/unistr/u16-next: New file.
68275         * modules/unistr/u32-next: New file.
68276         * lib/unistr/u8-next.c: New file.
68277         * lib/unistr/u16-next.c: New file.
68278         * lib/unistr/u32-next.c: New file.
68279
68280         * modules/unistr/u8-prev: New file.
68281         * modules/unistr/u16-prev: New file.
68282         * modules/unistr/u32-prev: New file.
68283         * lib/unistr/u8-prev.c: New file.
68284         * lib/unistr/u16-prev.c: New file.
68285         * lib/unistr/u32-prev.c: New file.
68286
68287         * modules/unistr/u8-set: New file.
68288         * modules/unistr/u16-set: New file.
68289         * modules/unistr/u32-set: New file.
68290         * lib/unistr/u8-set.c: New file.
68291         * lib/unistr/u16-set.c: New file.
68292         * lib/unistr/u32-set.c: New file.
68293         * lib/unistr/u-set.h: New file.
68294
68295         * modules/unistr/u8-startswith: New file.
68296         * modules/unistr/u16-startswith: New file.
68297         * modules/unistr/u32-startswith: New file.
68298         * lib/unistr/u8-startswith.c: New file.
68299         * lib/unistr/u16-startswith.c: New file.
68300         * lib/unistr/u32-startswith.c: New file.
68301         * lib/unistr/u-startswith.h: New file.
68302
68303         * modules/unistr/u8-stpcpy: New file.
68304         * modules/unistr/u16-stpcpy: New file.
68305         * modules/unistr/u32-stpcpy: New file.
68306         * lib/unistr/u8-stpcpy.c: New file.
68307         * lib/unistr/u16-stpcpy.c: New file.
68308         * lib/unistr/u32-stpcpy.c: New file.
68309         * lib/unistr/u-stpcpy.h: New file.
68310
68311         * modules/unistr/u8-stpncpy: New file.
68312         * modules/unistr/u16-stpncpy: New file.
68313         * modules/unistr/u32-stpncpy: New file.
68314         * lib/unistr/u8-stpncpy.c: New file.
68315         * lib/unistr/u16-stpncpy.c: New file.
68316         * lib/unistr/u32-stpncpy.c: New file.
68317         * lib/unistr/u-stpncpy.h: New file.
68318
68319         * modules/unistr/u8-strcat: New file.
68320         * modules/unistr/u16-strcat: New file.
68321         * modules/unistr/u32-strcat: New file.
68322         * lib/unistr/u8-strcat.c: New file.
68323         * lib/unistr/u16-strcat.c: New file.
68324         * lib/unistr/u32-strcat.c: New file.
68325         * lib/unistr/u-strcat.h: New file.
68326
68327         * modules/unistr/u8-strchr: New file.
68328         * modules/unistr/u16-strchr: New file.
68329         * modules/unistr/u32-strchr: New file.
68330         * lib/unistr/u8-strchr.c: New file.
68331         * lib/unistr/u16-strchr.c: New file.
68332         * lib/unistr/u32-strchr.c: New file.
68333
68334         * modules/unistr/u8-strcmp: New file.
68335         * modules/unistr/u16-strcmp: New file.
68336         * modules/unistr/u32-strcmp: New file.
68337         * lib/unistr/u8-strcmp.c: New file.
68338         * lib/unistr/u16-strcmp.c: New file.
68339         * lib/unistr/u32-strcmp.c: New file.
68340
68341         * modules/unistr/u8-strcpy: New file.
68342         * modules/unistr/u16-strcpy: New file.
68343         * modules/unistr/u32-strcpy: New file.
68344         * lib/unistr/u8-strcpy.c: New file.
68345         * lib/unistr/u16-strcpy.c: New file.
68346         * lib/unistr/u32-strcpy.c: New file.
68347         * lib/unistr/u-strcpy.h: New file.
68348
68349         * modules/unistr/u8-strcspn: New file.
68350         * modules/unistr/u16-strcspn: New file.
68351         * modules/unistr/u32-strcspn: New file.
68352         * lib/unistr/u8-strcspn.c: New file.
68353         * lib/unistr/u16-strcspn.c: New file.
68354         * lib/unistr/u32-strcspn.c: New file.
68355         * lib/unistr/u-strcspn.h: New file.
68356
68357         * modules/unistr/u8-strdup: New file.
68358         * modules/unistr/u16-strdup: New file.
68359         * modules/unistr/u32-strdup: New file.
68360         * lib/unistr/u8-strdup.c: New file.
68361         * lib/unistr/u16-strdup.c: New file.
68362         * lib/unistr/u32-strdup.c: New file.
68363         * lib/unistr/u-strdup.h: New file.
68364
68365         * modules/unistr/u8-strlen: New file.
68366         * modules/unistr/u16-strlen: New file.
68367         * modules/unistr/u32-strlen: New file.
68368         * lib/unistr/u8-strlen.c: New file.
68369         * lib/unistr/u16-strlen.c: New file.
68370         * lib/unistr/u32-strlen.c: New file.
68371         * lib/unistr/u-strlen.h: New file.
68372
68373         * modules/unistr/u8-strmblen: New file.
68374         * modules/unistr/u16-strmblen: New file.
68375         * modules/unistr/u32-strmblen: New file.
68376         * lib/unistr/u8-strmblen.c: New file.
68377         * lib/unistr/u16-strmblen.c: New file.
68378         * lib/unistr/u32-strmblen.c: New file.
68379
68380         * modules/unistr/u8-strmbtouc: New file.
68381         * modules/unistr/u16-strmbtouc: New file.
68382         * modules/unistr/u32-strmbtouc: New file.
68383         * lib/unistr/u8-strmbtouc.c: New file.
68384         * lib/unistr/u16-strmbtouc.c: New file.
68385         * lib/unistr/u32-strmbtouc.c: New file.
68386
68387         * modules/unistr/u8-strncat: New file.
68388         * modules/unistr/u16-strncat: New file.
68389         * modules/unistr/u32-strncat: New file.
68390         * lib/unistr/u8-strncat.c: New file.
68391         * lib/unistr/u16-strncat.c: New file.
68392         * lib/unistr/u32-strncat.c: New file.
68393         * lib/unistr/u-strncat.h: New file.
68394
68395         * modules/unistr/u8-strncmp: New file.
68396         * modules/unistr/u16-strncmp: New file.
68397         * modules/unistr/u32-strncmp: New file.
68398         * lib/unistr/u8-strncmp.c: New file.
68399         * lib/unistr/u16-strncmp.c: New file.
68400         * lib/unistr/u32-strncmp.c: New file.
68401
68402         * modules/unistr/u8-strncpy: New file.
68403         * modules/unistr/u16-strncpy: New file.
68404         * modules/unistr/u32-strncpy: New file.
68405         * lib/unistr/u8-strncpy.c: New file.
68406         * lib/unistr/u16-strncpy.c: New file.
68407         * lib/unistr/u32-strncpy.c: New file.
68408         * lib/unistr/u-strncpy.h: New file.
68409
68410         * modules/unistr/u8-strnlen: New file.
68411         * modules/unistr/u16-strnlen: New file.
68412         * modules/unistr/u32-strnlen: New file.
68413         * lib/unistr/u8-strnlen.c: New file.
68414         * lib/unistr/u16-strnlen.c: New file.
68415         * lib/unistr/u32-strnlen.c: New file.
68416         * lib/unistr/u-strnlen.h: New file.
68417
68418         * modules/unistr/u8-strpbrk: New file.
68419         * modules/unistr/u16-strpbrk: New file.
68420         * modules/unistr/u32-strpbrk: New file.
68421         * lib/unistr/u8-strpbrk.c: New file.
68422         * lib/unistr/u16-strpbrk.c: New file.
68423         * lib/unistr/u32-strpbrk.c: New file.
68424         * lib/unistr/u-strpbrk.h: New file.
68425
68426         * modules/unistr/u8-strrchr: New file.
68427         * modules/unistr/u16-strrchr: New file.
68428         * modules/unistr/u32-strrchr: New file.
68429         * lib/unistr/u8-strrchr.c: New file.
68430         * lib/unistr/u16-strrchr.c: New file.
68431         * lib/unistr/u32-strrchr.c: New file.
68432
68433         * modules/unistr/u8-strspn: New file.
68434         * modules/unistr/u16-strspn: New file.
68435         * modules/unistr/u32-strspn: New file.
68436         * lib/unistr/u8-strspn.c: New file.
68437         * lib/unistr/u16-strspn.c: New file.
68438         * lib/unistr/u32-strspn.c: New file.
68439         * lib/unistr/u-strspn.h: New file.
68440
68441         * modules/unistr/u8-strstr: New file.
68442         * modules/unistr/u16-strstr: New file.
68443         * modules/unistr/u32-strstr: New file.
68444         * lib/unistr/u8-strstr.c: New file.
68445         * lib/unistr/u16-strstr.c: New file.
68446         * lib/unistr/u32-strstr.c: New file.
68447         * lib/unistr/u-strstr.h: New file.
68448
68449         * modules/unistr/u8-strtok: New file.
68450         * modules/unistr/u16-strtok: New file.
68451         * modules/unistr/u32-strtok: New file.
68452         * lib/unistr/u8-strtok.c: New file.
68453         * lib/unistr/u16-strtok.c: New file.
68454         * lib/unistr/u32-strtok.c: New file.
68455         * lib/unistr/u-strtok.h: New file.
68456
68457         * modules/unistr/u8-uctomb: New file.
68458         * modules/unistr/u16-uctomb: New file.
68459         * modules/unistr/u32-uctomb: New file.
68460         * lib/unistr/u8-uctomb.c: New file.
68461         * lib/unistr/u16-uctomb.c: New file.
68462         * lib/unistr/u32-uctomb.c: New file.
68463
68464         * MODULES.html.sh (Unicode string functions): Add the new modules.
68465
68466 2007-01-08  Bruno Haible  <bruno@clisp.org>
68467
68468         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
68469         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
68470         subdirectories.
68471
68472 2007-01-08  Karl Berry  <karl@gnu.org>
68473
68474         * doc/error.texi: mention that main() fns must set program_name
68475         when progname is used.
68476
68477 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
68478
68479         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
68480         WCTYPE_H is empty, for the benefit of builds from non-distclean
68481         directories.  Problem reported by Eric Blake in
68482         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
68483
68484 2007-01-08  Bruno Haible  <bruno@clisp.org>
68485
68486         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
68487         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
68488         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
68489         PROVIDE_CANONICALIZE_FILENAME_MODE.
68490         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
68491
68492 2007-01-08  Bruno Haible  <bruno@clisp.org>
68493
68494         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
68495         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
68496         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
68497         * lib/fts.c: Likewise.
68498         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
68499
68500 2006-12-25  Bruno Haible  <bruno@clisp.org>
68501
68502         * modules/utf8-ucs4-safe: New file.
68503         * lib/utf8-ucs4-safe.h: New file.
68504         * lib/unistr/utf8-ucs4-safe.c: New file.
68505
68506         * modules/utf16-ucs4-safe: New file.
68507         * lib/utf16-ucs4-safe.h: New file.
68508         * lib/unistr/utf16-ucs4-safe.c: New file.
68509
68510         * MODULES.html.sh (Unicode string functions): Add the new modules.
68511
68512 2007-01-08  Bruno Haible  <bruno@clisp.org>
68513
68514         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
68515         (Depends-on): Add unitypes.
68516         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
68517         (u8_mbtouc_aux): Move out to separate file.
68518         (u8_mbtouc): Use ucs4_t, uint8_t types.
68519         * lib/unistr/utf8-ucs4.c: New file.
68520
68521         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
68522         (Depends-on): Add unitypes.
68523         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
68524         (u16_mbtouc_aux): Move out to separate file.
68525         (u16_mbtouc): Use ucs4_t, uint16_t types.
68526         * lib/unistr/utf16-ucs4.c: New file.
68527
68528         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
68529         (Depends-on): Add unitypes.
68530         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
68531         (u8_uctomb_aux): Move out to separate file.
68532         (u8_uctomb): Use ucs4_t, uint8_t types.
68533         * lib/unistr/ucs4-utf8.c: New file.
68534
68535         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
68536         (Depends-on): Add unitypes.
68537         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
68538         (u16_uctomb_aux): Move out to separate file.
68539         (u16_uctomb): Use ucs4_t, uint16_t types.
68540         * lib/unistr/ucs4-utf16.c: New file.
68541
68542 2006-12-25  Bruno Haible  <bruno@clisp.org>
68543
68544         * modules/unitypes: New file.
68545         * lib/unitypes.h: New file.
68546         * MODULES.html.sh (func_all_modules): New section "Unicode string
68547         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
68548         this section. Add unitypes.
68549
68550 2007-01-08  Bruno Haible  <bruno@clisp.org>
68551
68552         Avoid variable names that conflict with those from libtool.
68553         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
68554         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
68555         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
68556         library_names_spec to acl_library_names_spec, hardcode_* to
68557         acl_hardcode_*.
68558         Reported by Ralf Wildenhues.
68559
68560 2007-01-08  Bruno Haible  <bruno@clisp.org>
68561
68562         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
68563         definition.
68564         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
68565         definition.
68566         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
68567         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
68568         definition.
68569         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
68570         definition.
68571         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
68572         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
68573         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
68574         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
68575         definition.
68576         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
68577         definition.
68578         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
68579         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
68580         GC_USE_<algorithm>.
68581         * lib/gc-libgcrypt.c: Likewise.
68582         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
68583         * modules/gc-arctwo (configure.ac): Likewise.
68584         * modules/gc-des (configure.ac): Likewise.
68585         * modules/gc-hmac-md5 (configure.ac): Likewise.
68586         * modules/gc-hmac-sha1 (configure.ac): Likewise.
68587         * modules/gc-md2 (configure.ac): Likewise.
68588         * modules/gc-md4 (configure.ac): Likewise.
68589         * modules/gc-md5 (configure.ac): Likewise.
68590         * modules/gc-random (configure.ac): Likewise.
68591         * modules/gc-rijndael (configure.ac): Likewise.
68592         * modules/gc-sha1 (configure.ac): Likewise.
68593
68594 2007-01-08  Bruno Haible  <bruno@clisp.org>
68595
68596         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
68597         macro definition.
68598         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
68599         definition.
68600         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
68601         definition.
68602         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
68603         * modules/fcntl-safer (configure.ac): Likewise.
68604         * modules/fopen-safer (configure.ac): Likewise.
68605         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
68606         GNULIB_FWRITEERROR macro definition.
68607
68608 2007-01-08  Bruno Haible  <bruno@clisp.org>
68609
68610         * m4/gnulib-common.m4: New file.
68611         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
68612         (func_get_filelist): Add m4/gnulib-common.m4.
68613
68614 2007-01-08  Bruno Haible  <bruno@clisp.org>
68615
68616         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
68617         command.
68618
68619 2007-01-08  Jim Meyering  <jim@meyering.net>
68620
68621         Use a more robust test for a "can't happen" condition.
68622         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
68623         narrowed the st_size value.  Presuming the "can't happen" condition
68624         is true, that narrowing could conceivably convert an invalid st_size
68625         value into a valid one.  Instead, use a change based on Matthew
68626         Woehlke's original patch.
68627
68628         Slight readability improvement: use an assert-like macro
68629         in place of literal "abort ()" uses.
68630         * lib/fts.c (fts_assert): Define.
68631         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
68632         Use this macro instead of a bare 'abort'.
68633
68634 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
68635
68636         Don't worry about using IRIX 5.3's wctype.h broken definitions;
68637         simply work around them.
68638         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
68639         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
68640         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
68641         declaring.
68642         Don't bother to define as macros, since the standard doesn't require it.
68643         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
68644         longer worry about IRIX 5.3.
68645         (HAVE_WCTYPE_CTMP_BUG): Remove.
68646
68647 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
68648
68649         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
68650         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
68651         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
68652         Problems reported by Georg Schwarz for IRIX 5.3.
68653
68654         * gnulib-tool (autoconf_minversion): Take the maximum version number
68655         found, not the minimum.  Problem reported by James Youngman.
68656
68657 2007-01-03  Karl Berry  <karl@gnu.org>
68658
68659         * doc/error.texi: new file, explaining interaction with progname.
68660         * doc/gnulib.texi: include it.  Update copyright.
68661
68662 2007-01-03  Simon Josefsson  <simon@josefsson.org>
68663
68664         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
68665         AC_CANONICAL_HOST, to improve autobuild outputs.
68666
68667 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
68668             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
68669
68670         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
68671         sockets, server sockets, and other file descriptors.  Count errors
68672         to compute the return value.  Reorder the code a bit to be easier
68673         to follow.  Don't set event bits that were not requested (except
68674         POLLERR and POLLHUP).
68675
68676 2007-01-01  Bruno Haible  <bruno@clisp.org>
68677
68678         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
68679
68680 2007-01-03  Jim Meyering  <jim@meyering.net>
68681
68682         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
68683
68684 2007-01-02  Bruno Haible  <bruno@clisp.org>
68685
68686         * modules/settime (Include): Require timespec.h.
68687         * modules/nanosleep (Include): Likewise.
68688
68689 2007-01-01  Bruno Haible  <bruno@clisp.org>
68690
68691         * gnulib-tool (func_emit_copyright_notice): Bump year.
68692         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
68693
68694 2007-01-01  Bruno Haible  <bruno@clisp.org>
68695
68696         Improve support for OpenBSD.
68697         * build-aux/config.rpath (libname_spec): Export.
68698         (library_names_spec): New variable. Export.
68699         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
68700         library_names_spec from the config.rpath output. Locate shared library
68701         through the name pattern in library_names_spec.
68702
68703 2007-01-01  Eric Blake  <ebb9@byu.net>
68704
68705         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
68706
68707 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
68708
68709         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
68710         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
68711         assume the C locale, and avoid an "eval" that could cause trouble.
68712         Problem with SORT reported by Bob Proulx.
68713
68714         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
68715         Define.  Trivial patch from Henning Nielsen Lund, originally
68716         sent to bug-grep@gnu.org today.
68717
68718 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
68719
68720         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
68721         struct stat.  Problem reported by Henning Nielsen Lund.
68722         * lib/acl.c: Include acl.h first, to check interface.  Don't
68723         bother to include sys/types.h and sys/stat.h again.
68724
68725 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
68726
68727         Import the following change from libc; problem reported by
68728         Sven Verdoolaege.
68729
68730         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
68731
68732         [BZ #1373]
68733         * lib/argp.h: Remove __NTH for __argp_usage inline function.
68734
68735 2006-12-28  Jim Meyering  <jim@meyering.net>
68736
68737         * build-aux/announce-gen: Do not assume that the package
68738         builds any of tar.gz, tar.bz2, and .xdelta files.
68739         Suggestion from Simon Josefsson.
68740
68741 2006-12-28  Simon Josefsson  <simon@josefsson.org>
68742
68743         * modules/announce-gen: New file.
68744
68745 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
68746
68747         * lib/mbchar.h: Just include <wctype.h>; the wctype module
68748         handles its gotchas now.
68749         * lib/mbswidth.c: Likewise.
68750         * lib/wcwidth.h: Likewise.
68751         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
68752         and iswcntrl; the wctype module does this stuff now.
68753         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
68754         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
68755         * modules/mbchar (Depends-on): Add wctype.
68756         * modules/mbswidth (Depends-on): Likewise.
68757         * modules/wcwidth (Depends-on): Likewise.
68758
68759 2006-12-27  Eric Blake  <ebb9@byu.net>
68760
68761         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
68762         module uses more than what <wctype.h> is required to provide.
68763
68764 2006-12-26  Eric Blake  <ebb9@byu.net>
68765
68766         * gnulib-tool (sed_extract_prog): Avoid space-tab.
68767
68768 2006-12-26  Eric Blake  <ebb9@byu.net>
68769
68770         * modules/absolute-header: New module.
68771         * modules/fcntl (Depends-on): Depend on it.
68772         * modules/inttypes (Depends-on): Likewise.
68773         * modules/stdint (Depends-on): Likewise.
68774         * modules/sys_stat (Depends-on): Likewise.
68775         * modules/wctype (Depends-on): Likewise.
68776         * MODULES.html.sh (Support for building libraries and
68777         executables): Document it.
68778
68779 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
68780
68781         * gnulib-tool (SED): Remove, undoing previous change.
68782         The problem was that it broke coreutils on Solaris, because
68783         "sed --posix" leaked into a makefile.
68784         (sed): New alias, if 'alias' and GNU sed.
68785
68786 2006-12-24  Jim Meyering  <jim@meyering.net>
68787
68788         Work around an fchownat bug in glibc-2.4:
68789         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
68790         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
68791         in spite of the -P option.
68792         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
68793         New macros.
68794         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
68795         * modules/openat (Files): Add lib/fchownat.c.
68796         * lib/openat.c (fchownat): Don't define here.  Move to...
68797         * lib/fchownat.c: ...this new file.
68798
68799 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
68800
68801         Fix bug reported by Bruno Haible in
68802         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
68803         where quotearg.c didn't compile on Mac OS X 10.2 because it
68804         lacks <wchar.h> and wint_t.
68805         * lib/wctype_.h (__wctype_wint_t): New type.
68806         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
68807         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
68808         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
68809         Arg is now of type __wctype_wint_t, not wint_t.
68810         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
68811         substitute HAVE_WINT_T.
68812         * modules/wctype (Files): Add m4/wint_t.m4.
68813         (wctype.h): Substitute HAVE_WINT_T.
68814
68815 2006-12-23  Bruno Haible  <bruno@clisp.org>
68816
68817         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
68818
68819 2006-12-23  Bruno Haible  <bruno@clisp.org>
68820
68821         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
68822         S_ISLNK.
68823         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
68824         mingw.
68825
68826 2006-12-22  Bruno Haible  <bruno@clisp.org>
68827
68828         * lib/copy-file.c: Include acl.h.
68829         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
68830         Close the file descriptors only after being done with copy_acl.
68831         * modules/copy-file (Depends-on): Add acl.
68832
68833 2006-12-22  Bruno Haible  <bruno@clisp.org>
68834
68835         * gnulib-tool (SED): New variable.
68836         Use $SED instead of sed everywhere.
68837
68838 2006-12-22  Bruno Haible  <bruno@clisp.org>
68839
68840         * modules/no-c++: New file.
68841         * m4/no-c++.m4: New file.
68842         * MODULES.html.sh (Support for building libraries and executables):
68843         Add no-c++.
68844
68845 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
68846
68847         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
68848         Include <limits.h>, and use its INT_MAX to rewrite the
68849         j loop so that it does not overflow 'int'.  Problem reported by
68850         Ralf Wildenhues in
68851         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
68852         Play it safe by shifting left by 1 rather than multiplying by 2,
68853         as GCC is less likely to optimize this away when the value
68854         is signed (when it assumes overflow leads to undefined behavior).
68855         Also, don't assume time_t uses two's complement.
68856
68857 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
68858
68859         * MODULES.html.sh: New module wctype.
68860         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
68861         * lib/fnmatch.c: Don't bother to include <wchar.h> before
68862         <wctype.h>, since the new wctype module should fix this.
68863         * lib/quotearg.c: Include <wctype.h> unconditionally, since
68864         the wctype module should arrange for it.
68865         * lib/regex_internal.h: Likewise.
68866         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
68867         since the wctype module should handle this now.
68868         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
68869         * modules/fnmatch (Depends-on): Add wctype.
68870         * modules/quotearg (Depends-on): Likewise.
68871         * modules/regex (Depends-on): Likewise.
68872
68873 2006-12-19  Bruno Haible  <bruno@clisp.org>
68874
68875         * lib/strdup.h [C++]: Wrap definitions in extern "C".
68876         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
68877
68878 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68879
68880         * modules/savewd (Depends-on): Fix dependency on fcntl.
68881
68882 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
68883
68884         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
68885         conforms to C99, rather than relying on the user's environment
68886         setting of STDINT_H.
68887
68888 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
68889         and Eric Blake  <ebb9@byu.net>
68890
68891         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
68892         This is more consistent with the other defines here.
68893         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
68894         Port to z/OS.  Problem reported by Paul Gilmartin.
68895         Change local vars to use gl_ prefix rather than ac_.
68896         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
68897         with other defines.
68898         * modules/double-slash-root: New module.
68899         * modules/dirname (Files): Remove m4/double-slash-root.m4.
68900         (Depends-on): Add double-slash-root.
68901         * MODULES.html.sh (File system functions): Mention new module.
68902
68903 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
68904
68905         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
68906         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
68907         This is for the benefit of gzip, which doesn't do i18n.
68908
68909 2006-12-12  Jim Meyering  <jim@meyering.net>
68910
68911         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
68912         Reported by Andreas Schwab <schwab@suse.de>.
68913
68914 2006-12-12  Bruno Haible  <bruno@clisp.org>
68915
68916         Merge these changes.
68917         2006-09-05  Bruno Haible  <bruno@clisp.org>
68918         * lib/iconvme.c (iconv_string): No need to save and restore errno when
68919         iconv_alloc succeeded.
68920         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
68921         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
68922         test for " && dest " at the end - dest is always != NULL there. Call
68923         iconv with 4xNULL arguments initially, to reset the state. Call iconv
68924         with 2xNULL arguments, also to flush the state storage. Handle the
68925         IRIX iconv behaviour. Realloc the final result, to throw away unused
68926         memory.
68927
68928 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
68929
68930         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
68931         and fchmodat unconditionally, since glibc 2.4 has them.
68932         Problem reported by Arkadiusz Miskiewicz.
68933
68934 2006-12-10  Bruno Haible  <bruno@clisp.org>
68935
68936         * gnulib-tool (func_import): Show the include files only for those
68937         modules that are copied and specified.
68938         Reported by Karl Berry.
68939
68940 2006-12-08  Jim Meyering  <jim@meyering.net>
68941
68942         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
68943         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
68944
68945         * build-aux/announce-gen: Add two new options, both optional:
68946         --bootstrap-tools=TOOL_LIST
68947               a comma-separated list of tools, e.g.,
68948               autoconf,automake,bison,gnulib
68949         --gnulib-snapshot-date=DATE
68950               if gnulib is in the bootstrap tool list,
68951               then report this as the snapshot date.
68952               If not specified, use the current date/time.
68953               If you specify a date here, be sure it's UTC.
68954
68955 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68956
68957         * tests/test-argp-2.sh: Fix test to match actual output.
68958         (func_compare): Fix sed script to be portable.
68959
68960 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
68961
68962         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
68963         workaround for this case.  It is not autoconfigured now; offhand
68964         it's hard to see how to autoconfigure it.
68965
68966 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
68967
68968         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
68969         a directory that is about to be chowned.  Such a directory's
68970         initial file permissions should permit the owner only and this
68971         should not be changed until after the chown, since the group and
68972         other bits would be incorrect if they granted permission before
68973         the chown.
68974
68975         Fix porting problem for iswctype reported by Georg Schwarz in:
68976         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
68977         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
68978         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
68979         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
68980         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
68981
68982 2006-12-03  Jim Meyering  <jim@meyering.net>
68983
68984         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
68985         p->fts_statp may not yet be defined.
68986         (fts_read): Instead, set it in the caller, once p->fts_statp is
68987         sure to be defined, and corresponds to a top-level directory.
68988         This bug made du -x fail.  Here's the coreutils test case:
68989         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
68990         Reported by Mike Frysinger.
68991
68992 2006-12-01  Jim Meyering  <jim@meyering.net>
68993
68994         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
68995         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
68996         Reported by Simon Josefsson.
68997
68998 2006-11-30  Jim Meyering  <jim@meyering.net>
68999
69000         * m4/warning.m4: Use the all-permissive copyright notice
69001         recommended by RMS (rather than LGPL).
69002         * m4/vararrays.m4: Likewise.
69003         * m4/flexmember.m4: Likewise.
69004
69005 2006-11-29  Bruno Haible  <bruno@clisp.org>
69006
69007         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
69008         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
69009         using +=.
69010         Reported by Simon Josefsson <simon@josefsson.org>.
69011
69012 2006-11-28  James Youngman <jay@gnu.org>
69013
69014         * README: Advise users that they might find the bug-gnulib@gnu.org
69015         and autotools-announce@gnu.org mailing lists useful.
69016
69017 2006-11-28  Bruno Haible  <bruno@clisp.org>
69018
69019         * m4/ptrdiff_max.m4: Remove file.
69020
69021 2006-11-21  Bruno Haible  <bruno@clisp.org>
69022
69023         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
69024         _AC_COMPUTE_INT.
69025         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
69026         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
69027         _AC_COMPUTE_INT.
69028         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
69029         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
69030         _AC_COMPUTE_INT.
69031         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
69032
69033 2006-11-28  Jim Meyering  <jim@meyering.net>
69034
69035         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
69036         warning from "gcc -Wshadow" about shadowing the builtin.
69037
69038 2006-11-27  Bruno Haible  <bruno@clisp.org>
69039
69040         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
69041         _AC_COMPUTE_INT.
69042         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
69043
69044 2006-11-27  Bruno Haible  <bruno@clisp.org>
69045             Paul Eggert  <eggert@cs.ucla.edu>
69046
69047         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
69048
69049 2006-11-26  Bruno Haible  <bruno@clisp.org>
69050
69051         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
69052         noinst_LTLIBRARIES.
69053
69054 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
69055             Bruno Haible  <bruno@clisp.org>
69056
69057         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
69058         if compiling with "gcc -ansi".
69059
69060 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
69061
69062         Fix some incompatibilities with gcc -ansi -pedantic.
69063         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
69064         if compiling pedantically with GCC, unless it's C99 or later.
69065         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
69066         it mishandles gcc -ansi -pedantic as well.
69067         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
69068         if gcc -pedantic.
69069         * lib/regexec.c (check_node_accept_bytes): Don't use auto
69070         initializers for struct if -pedantic, unless it's C99 or later.
69071
69072 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
69073
69074         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
69075         Don't close an fd more than once. Identical atimes indicate
69076         success, not failure.
69077
69078 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
69079
69080         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
69081
69082 2006-11-23  Jim Meyering  <jim@meyering.net>
69083
69084         * build-aux/announce-gen: New file.  From coreutils.
69085
69086 2006-11-22  Jim Meyering  <jim@meyering.net>
69087
69088         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
69089         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
69090         (fts_read): Use a temporary to narrow the overused st_size member
69091         before using it in a switch statement.  Reported by Matthew Woehlke.
69092
69093         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
69094         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
69095
69096 2006-11-20  Bruno Haible  <bruno@clisp.org>
69097
69098         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
69099         changequote instead of pairs of brackets.
69100         Reported by Andreas Schwab <schwab@suse.de>.
69101
69102 2006-11-21  Jim Meyering  <jim@meyering.net>
69103
69104         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
69105         so as to remain compatible with older compilers.
69106         Patch from Michael Deutschmann.
69107
69108 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
69109
69110         * MODULES.html.sh (File system functions): Add openat.
69111
69112         * lib/openat.h (rpl_fstatat): New macro, if
69113         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
69114         (fstatat): Define to rpl_fstatat under the same conditions,
69115         unless COMPILING_FSTATAT.
69116         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
69117         seems to have the bug.
69118         * lib/fstatat.c: New file.
69119         * modules/openat (Files): Add it.
69120
69121 2006-11-20  Bruno Haible  <bruno@clisp.org>
69122
69123         * Makefile: New file.
69124
69125 2006-11-20  Jim Meyering  <jim@meyering.net>
69126
69127         The beginnings of syntax-related checks for gnulib.
69128         * lib/Makefile: New file.
69129         * lib/t-idcache: New script.  Ensure that the two halves of
69130         idcache.c stay in sync.
69131
69132         * lib/idcache.c: Adjust comments in user- and group- portions to
69133         be more accurate, and to be consistent with one another.
69134
69135 2006-11-20  Jim Meyering  <jim@meyering.net>
69136
69137         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
69138         continue using the flexible array member (thus, this module performs
69139         half as many malloc calls), with the addition that...
69140         (getgroup, getuser): Consistently record a non-match via an empty
69141         "name" string, and map an empty string match to a NULL return value.
69142         * modules/idcache (Depends-on): Re-add flexmember.
69143
69144         * lib/idcache.c (getuser): Remove all uses of the register keyword.
69145         (getuidbyname, getgroup, getgidbyname): Likewise.
69146
69147         Use cleaner syntax: NULL rather than 0.
69148         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
69149
69150 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
69151
69152         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
69153         It mishandled the case where the group was missing.
69154         Problem reported by Greg Schafer.
69155         * modules/idcache: Likewise.
69156
69157 2006-11-18  Jim Meyering  <jim@meyering.net>
69158
69159         * check-module (%exempt_header): Add exception for some
69160         conditionally-included headers.
69161
69162         * modules/i-ring (Depends-on): Add verify.
69163         (License): Change to LGPL.
69164
69165 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
69166
69167         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
69168         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
69169         and inttostr.h.  Use snprintf rather than uinttostr, so that
69170         LGPLed code doesn't depend on GPLed.
69171
69172 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
69173
69174         * modules/inline (License): Change from GPL to LGPL.
69175
69176 2006-11-17  Jim Meyering  <jim@meyering.net>
69177
69178         * modules/d-type (License): Switch to LGPL.
69179
69180 2006-11-15  Bruno Haible  <bruno@clisp.org>
69181
69182         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
69183
69184 2006-11-15  Eric Blake  <ebb9@byu.net>
69185
69186         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
69187         the module dependency.
69188
69189 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
69190             Bruno Haible  <bruno@clisp.org>
69191
69192         * gnulib-tool (func_create_testdir): Add license consistency check.
69193
69194 2006-11-15  Eric Blake  <ebb9@byu.net>
69195
69196         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
69197         random "(cached)" in configure output.
69198
69199 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69200
69201         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
69202         test for conforming inttypes.h is both announced and cached.
69203
69204         * MODULES.html.sh (seen_modules, seen_files): New variables.
69205         (func_module): Rewrite to use a few less gnulib-tool and sed
69206         invocations.  Avoid a couple of quadratic algorithms for ...
69207         (missed_modules, missed_files): ... these, with ...
69208         (func_append, func_tmpdir): ... these new functions, from
69209         gnulib-tool.  Analogously, install traps for cleanup.
69210
69211         * tests/test-gc.c (main): Remove unused variables.
69212         * tests/test-read-file.c: Include stdlib.h, for 'free'.
69213
69214 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
69215
69216         * modules/inttostr (License): Change to LGPL.
69217
69218 2006-11-14  Eric Blake  <ebb9@byu.net>
69219
69220         * modules/tempname (License): Change to LGPL.
69221
69222 2006-11-14  Eric Blake  <ebb9@byu.net>
69223
69224         * doc/functions.texi (Function Portability): *printf functions on
69225         Cygwin now understand all POSIX size specifiers.
69226
69227 2006-11-14  Bruno Haible  <bruno@clisp.org>
69228
69229         * modules/c-ctype (License): Change to LGPL.
69230
69231 2006-11-12  Bruno Haible  <bruno@clisp.org>
69232
69233         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
69234         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
69235         for GNOME libraries, for which the include files are installed in
69236         subdirectories of $prefix/include.
69237
69238 2006-11-12  Bruno Haible  <bruno@clisp.org>
69239
69240         * m4/lib-link.m4: Require at least autoconf-2.54.
69241         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
69242         name to underscores for the --with option.
69243
69244 2006-11-13  Bruno Haible  <bruno@clisp.org>
69245
69246         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
69247         the tests directory.
69248         Reported by Ralf Wildenhues.
69249
69250 2006-11-13  Bruno Haible  <bruno@clisp.org>
69251
69252         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
69253         (func_emit_initmacro_end): Undo the override here.
69254         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
69255         Works around the famous automake error in coreutils.
69256
69257 2006-11-13  Eric Blake  <ebb9@byu.net>
69258
69259         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
69260         element, not its node.
69261
69262 2006-11-12  Bruno Haible  <bruno@clisp.org>
69263
69264         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
69265         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
69266
69267 2006-11-12  Bruno Haible  <bruno@clisp.org>
69268
69269         * gnulib-tool: New option --local-symlink.
69270         (func_usage): Document it.
69271         (lsymbolic): New variable.
69272         (func_import, func_create_testdir): If --symlink was not specified,
69273         test whether --local-symlink was specified and the file comes from
69274         the local_gnulib_dir.
69275
69276 2006-11-12  Bruno Haible  <bruno@clisp.org>
69277
69278         * gnulib-tool (func_ln): New function.
69279         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
69280
69281 2006-11-12  Bruno Haible  <bruno@clisp.org>
69282
69283         Finish support for source files in subdirectories.
69284         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
69285         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
69286         AUTOMAKE_OPTIONS.
69287         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
69288
69289 2006-11-12  Bruno Haible  <bruno@clisp.org>
69290
69291         * gnulib-tool (func_get_automake_snippet): Synthesize also an
69292         EXTRA_lib_SOURCES augmentation.
69293         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
69294
69295 2006-11-12  Jim Meyering  <jim@meyering.net>
69296
69297         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
69298         file descriptors.  This also averts a failure on systems with
69299         native openat support when a traversed directory lacks "x" access.
69300         * lib/fts_.h: Include "i-ring.h"
69301         (struct FTS) [fts_fd_ring]: New member.
69302         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
69303         (FCHDIR): Add parentheses.
69304         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
69305         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
69306         When descending, rather than simply closing the previous
69307         fts_cwd_fd value, push that file descriptor onto the ring.
69308         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
69309         (fts_open): Initialize the new fd_ring member.
69310         (fts_close): Clear the ring.
69311         (fts_safe_changedir): When possible, use our new fd_ring to skip
69312         the diropen and fstat and dev/ino comparison that would normally
69313         accompany a virtual `chdir ("..")'.
69314
69315         * modules/fts (Depends-on): Add i-ring.
69316         * modules/i-ring: New module.
69317         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
69318         * m4/i-ring.m4: New file.
69319
69320 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69321
69322         * gnulib-tool (func_create_testdir): Fix replacement of
69323         `build-aux' in configure.ac.  Run autotools in gltests
69324         subdirectory.
69325         (func_create_testdir, func_create_megatestdir, test): There is
69326         no need for '--force' in most autotool invocations in a new
69327         tree.  Actually fail the whole test if any of the tools, or the
69328         configure or make stages fail.
69329
69330         Sync from Automake.
69331         * build-aux/gnupload: Revert last change.  Add pointer to upload
69332         instructions of the GNU Maintenance Instructions.
69333         Suggestion by Karl Berry.
69334
69335 2006-11-10  Jim Meyering  <jim@meyering.net>
69336
69337         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
69338
69339 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
69340
69341         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
69342         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
69343         (bind_textdomain_codeset) [! ENABLE_NLS]:
69344         Evaluate all the arguments.  That way, callers get compatible behavior
69345         if the arguments have side effects.  Also, it avoids some GCC
69346         diagnostics in some cases; Joel E. Denny reported problems when Bison
69347         was configured with --enable-gcc-warnigs.
69348
69349 2006-11-10  Jim Meyering  <jim@meyering.net>
69350
69351         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
69352         relevant options in CFLAGS (like -O, -fno-inline) are taken into
69353         account.
69354
69355 2006-11-10  Jim Meyering  <jim@meyering.net>
69356
69357         * modules/inline: New file/module.
69358         * modules/xalloc (Files): Remove m4/inline.m4.
69359         (Depends-on): Add inline, instead.
69360         * modules/oset: Likewise.
69361         * modules/list: Likewise.
69362
69363 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
69364
69365         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
69366         Problem reported by Matthew Woehlke.
69367
69368 2006-11-09  Bruno Haible  <bruno@clisp.org>
69369
69370         * lib/tempname.c (gen_tempname): Remove variant that invokes
69371         __gen_tempname.
69372         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
69373         __gen_tempname.
69374
69375 2006-11-08  Bruno Haible  <bruno@clisp.org>
69376
69377         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
69378         to 'yes' instead of 'cross-compiling'.
69379
69380 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
69381
69382         * lib/quotearg.h (quotearg_free): New decl.
69383         * lib/quotearg.c (quotearg_free): New function.
69384         (slot0, nslots, slotvec0, slotvec):
69385         Now file-scope so that quotearg_free can get at them.
69386
69387 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69388
69389         Sync from Automake.
69390         * build-aux/gnupload: Add missing 'gnu' to example URL.
69391         Report by Karl Berry.
69392
69393 2006-11-08  Bruno Haible  <bruno@clisp.org>
69394
69395         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
69396         Suggested by Paul Eggert.
69397
69398 2006-11-08  Jim Meyering  <jim@meyering.net>
69399
69400         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
69401         It's already included if !_LIBC.
69402         (fts_safe_changedir): Add a comment.
69403
69404 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
69405
69406         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
69407         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
69408         Matthew Woehlke.
69409
69410         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
69411         definitions up, to avoid colliding with change below.
69412         (static_inline) [HAVE_INLINE]: New macro.
69413         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
69414         Provide extern decls when !HAVE_INLINE.  Do not define unless
69415         static_inline is defined, either by us or by xmalloc.c.  Use
69416         static_inline rather than static inline.
69417         (XCALLOC): Optimize sizeof(T) = 1 case.
69418         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
69419
69420 2006-11-07  Bruno Haible  <bruno@clisp.org>
69421
69422         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
69423         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
69424         AC_C_INLINE.
69425         * modules/xalloc (Files): Add m4/inline.m4.
69426
69427 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69428
69429         * README: Fix typo.
69430         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
69431         (Miscellanous Notes): ...from this.
69432
69433 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
69434
69435         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
69436         Mention that offsetof should be used instead of sizeof.
69437         From Bruno Haible.
69438
69439 2006-11-07  Bruno Haible  <bruno@clisp.org>
69440
69441         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
69442
69443 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
69444
69445         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
69446         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
69447         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
69448         (gl_tree_add_before, gl_tree_add_after):
69449         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
69450         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
69451         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
69452         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
69453         (gl_linked_add_after, gl_linked_add_at): Likewise.
69454         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
69455         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
69456         (gl_tree_add_before, gl_tree_add_after): Likewise.
69457         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
69458         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
69459         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
69460
69461 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69462
69463         * lib/gl_oset.h: Use C comment style, not C++ comment style.
69464
69465 2006-11-06  Bruno Haible  <bruno@clisp.org>
69466
69467         * m4/inline.m4: New file.
69468         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
69469         * modules/list (Files): Add m4/inline.m4.
69470         * modules/oset (Files): Likewise.
69471
69472 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
69473
69474         * lib/idcache.c: Include <stddef.h>, for offsetof.
69475         (struct userid.name): Change from char * to a flexible array member.
69476         All uses changed.
69477         * modules/idcache (Depends-on): Add flexmember.
69478
69479         * MODULES.html.sh (Core language properties): New module flexmember.
69480         * modules/flexmember, m4/flexmember.m4: New files.
69481
69482         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
69483         inline functions that are identical with the old xnmalloc_inline,
69484         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
69485         that we can avoid some unnecessary integer multiplications and
69486         divisions in the common case where the element size is known at
69487         compile time.
69488         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
69489         needed.
69490         (xnboundedmalloc): Remove.
69491         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
69492         arguments, for consistency with rest of this header.
69493         (xcharalloc): Rewrite using XNMALLOC.
69494         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
69495         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
69496         versions have been moved to lib/xalloc.h and renamed to be the
69497         non-*_inline versions.
69498         (xmalloc, xrealloc): Implement without reference to the xnmalloc
69499         and xnrealloc functions, since those functions are now inline and
69500         now call us.
69501         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
69502         renaming described above.
69503         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
69504         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
69505         captures the dependency in AC_C_INLINE.
69506
69507         New module canonicalize-lgpl, proposed by Charles Wilson in
69508         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
69509         with a few small changes afterwards.
69510         * MODULES.html.sh (File system functions): New module
69511         canonicalize-lgpl.
69512         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
69513         and canonicalize_file_name.
69514         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
69515         * modules/canonicalize-lgpl: New files.
69516
69517 2006-11-05  Bruno Haible  <bruno@clisp.org>
69518
69519         * gnulib-tool (func_import, func_create_testdir): Create directories
69520         also for files in subdirectories of lib/.
69521
69522 2006-11-05  Bruno Haible  <bruno@clisp.org>
69523
69524         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
69525         ANSI C compliant.
69526
69527 2006-11-03  Bruno Haible  <bruno@clisp.org>
69528
69529         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
69530         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
69531         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
69532         (xnboundedmalloc): New inline function.
69533         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
69534         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
69535         xmalloc.
69536         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
69537         xmalloc.
69538         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
69539         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
69540         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
69541         xmalloc.
69542         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
69543         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
69544         xmalloc.
69545         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
69546         gl_tree_add_after): Use XMALLOC instead of xmalloc.
69547         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
69548         xmalloc.
69549         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
69550         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
69551         gl_tree_add_after): Use XMALLOC instead of xmalloc.
69552         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
69553         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
69554         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
69555         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
69556
69557 2006-11-03  Bruno Haible  <bruno@clisp.org>
69558
69559         * lib/c-ctype.h [C++]: Define functions without name mangling.
69560         * lib/fwriteerror.h [C++]: Likewise.
69561         * lib/gcd.h [C++]: Likewise.
69562         * lib/linebreak.h [C++]: Likewise.
69563
69564 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
69565
69566         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
69567         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
69568         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
69569         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
69570         Check for functions and headers just once.
69571         Check for declaration of canonicalize_file_name.
69572         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
69573
69574 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
69575
69576         * gnulib-tool (func_import): Fix typo in actioncmd.
69577
69578 2006-11-02  Bruno Haible  <bruno@clisp.org>
69579
69580         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
69581         newline sequence in the Makefile.am snippet as a space, like "make"
69582         does.
69583         Reported by Roger Persson <perrog@gmail.com>.
69584
69585 2006-11-01  Bruno Haible  <bruno@clisp.org>
69586
69587         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
69588         already declared in <string.h>.
69589         * lib/strcase.h (strncasecmp): Don't declare it if yes.
69590
69591 2006-11-01  Bruno Haible  <bruno@clisp.org>
69592
69593         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
69594         * lib/strcase.h: Include <string.h>.
69595         (strcasecmp): Define to rpl_strcasecmp here.
69596
69597 2006-11-01  Bruno Haible  <bruno@clisp.org>
69598
69599         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
69600
69601 2006-11-01  Eric Blake  <ebb9@byu.net>
69602
69603         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
69604
69605         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
69606
69607 2006-10-29  Bruno Haible  <bruno@clisp.org>
69608
69609         Make it compile in C++ mode.
69610         * lib/full-write.c (full_rw): Add a cast.
69611
69612 2006-11-01  Bruno Haible  <bruno@clisp.org>
69613
69614         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
69615         be POSIX compliant.
69616         Reported by Roger Persson <perrog@gmail.com>.
69617
69618 2006-11-01  Eric Blake  <ebb9@byu.net>
69619
69620         * lib/getopt_.h: Fix comments.
69621
69622 2006-10-31  Eric Blake  <ebb9@byu.net>
69623
69624         * modules/tmpdir (Depends-on): Add sys_stat.
69625         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
69626         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
69627         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
69628         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
69629         tempname.
69630
69631 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
69632
69633         Avoid some C++ diagnostics reported by Bruno Haible.
69634         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
69635         xmalloc.
69636         (quotearg_alloc): Use xcharalloc rather than xmalloc.
69637         (struct slotvec): Move to top level.
69638         (quotearg_n_options): Rewrite to avoid xmalloc.
69639         * lib/xalloc.h (xcharalloc): New function.
69640         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
69641         [defined __cplusplus]: Add function template that provides result
69642         type propagation.  This part of the change is from Bruno Haible.
69643
69644 2006-10-29  Bruno Haible  <bruno@clisp.org>
69645
69646         Make it compile in C++ mode.
69647         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
69648         * lib/strnlen1.c (strnlen1): Cast memchr result.
69649         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
69650         * lib/clean-temp.c (string_equals, string_hash): Add casts.
69651         (create_temp_dir): Rename local variable 'template'.
69652         (compile_csharp_using_sscli): Add cast.
69653         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
69654         * lib/findprog.c (find_in_path): Likewise.
69655         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
69656         * lib/wait-process.c (register_slave_subprocess): Likewise.
69657
69658 2006-10-22  Bruno Haible  <bruno@clisp.org>
69659
69660         * modules/tsearch: New file.
69661         * lib/tsearch.h: New file.
69662         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
69663         * m4/tsearch.m4: New file.
69664         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
69665
69666 2006-10-29  Eric Blake  <ebb9@byu.net>
69667
69668         * lib/arcfour.c: Assume config.h.
69669         * lib/arctwo.c: Likewise.
69670         * lib/base64.c: Likewise.
69671         * lib/check-version.c: Likewise.
69672         * lib/crc.c: Likewise.
69673         * lib/des.c: Likewise.
69674         * lib/gc-gnulib.c: Likewise.
69675         * lib/gc-libgcrypt.c: Likewise.
69676         * lib/gc-pbkdf2-sha1.c: Likewise.
69677         * lib/getaddrinfo.c: Likewise.
69678         * lib/getdelim.c: Likewise.
69679         * lib/getline.c: Likewise.
69680         * lib/hmac-md5.c: Likewise.
69681         * lib/hmac-sha1.c: Likewise.
69682         * lib/iconvme.c: Likewise.
69683         * lib/md2.c: Likewise.
69684         * lib/md4.c: Likewise.
69685         * lib/memxor.c: Likewise.
69686         * lib/read-file.c: Likewise.
69687         * lib/readline.c: Likewise.
69688         * lib/rijndael-alg-fst.c: Likewise.
69689         * lib/rijndael-api-fst.c: Likewise.
69690         * lib/xgetdomainname.c: Likewise.
69691
69692 2006-10-28  Eric Blake  <ebb9@byu.net>
69693
69694         * lib/xstrndup.c: Assume config.h.
69695
69696 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
69697
69698         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
69699         stat-macros.h is now for our own macros, whereas stat_h is for
69700         macros in the <sys/stat.h> name space.
69701         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
69702         (STAT_MACROS_H): Remove.
69703         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
69704         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
69705         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
69706         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
69707         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
69708         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
69709         Move these macros to ...
69710         * lib/stat_.h: here.  Don't include stat-macros.h.
69711         * lib/canonicalize.c: Don't include stat-macros.h.
69712         * lib/chown.c: Likewise.
69713         * lib/euidaccess.c: Likewise.
69714         * lib/file-type.c: Likewise.
69715         * lib/filemode.c: Likewise.
69716         * lib/glob.c: Likewise.
69717         * lib/isapipe.c: Likewise.
69718         * lib/lchown.c: Likewise.
69719         * lib/lstat.c: Likewise.
69720         * lib/mkdir-p.c: Likewise.
69721         * lib/rmdir.c: Likewise.
69722         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
69723         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
69724         unless mkdir isn't declared, to speed up 'configure'.
69725         Always create sys/stat.h, since it's unlikely any real sys/stat.h
69726         would define all the S_* symbols.
69727         * modules/canonicalize (Depends-on):
69728         Depend on sys_stat, not stat-macros.
69729         * modules/chown: Likewise.
69730         * modules/euidaccess: Likewise.
69731         * modules/filemode: Likewise.
69732         * modules/file-type: Likewise.
69733         * modules/glob: Likewise.
69734         * modules/isapipe: Likewise.
69735         * modules/lchown: Likewise.
69736         * modules/lstat: Likewise.
69737         * modules/mkancesdirs: Likewise.
69738         * modules/rmdir: Likewise.
69739         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
69740         * modules/modechange: Likewise.
69741         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
69742         (configure.ac): Remove gl_STAT_MACROS.
69743         * modules/sys_stat (Depends-on): Remove stat-macros.
69744
69745 2006-10-27  Bruno Haible  <bruno@clisp.org>
69746
69747         * m4/signed.m4: Remove file.
69748         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
69749         invocation.
69750         * modules/vasnprintf (Files): Remove m4/signed.m4.
69751
69752 2006-10-27  Bruno Haible  <bruno@clisp.org>
69753
69754         Update to GNU gettext 0.16.
69755         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
69756         m4/inttypes-h.m4, m4/signed.m4.
69757         * m4/gettext.m4: Update to GNU gettext 0.16.
69758         * m4/intl.m4: New file, from GNU gettext.
69759         * m4/intldir.m4: New file, from GNU gettext.
69760         * config/srclist.txt: Update
69761
69762 2006-10-27  Eric Blake  <ebb9@byu.net>
69763
69764         * MODULES.html.sh: Document tempname.
69765         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
69766         dependencies.
69767         (Files): Move lib/tempname.c...
69768         * modules/tempname: ...to this new module.
69769         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
69770         (gl_PREREQ_TEMPNAME): Move...
69771         * m4/tempname.m4: ...to this new file.
69772         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
69773         * modules/sys_stat (Depends-on): Add stat-macros.
69774         * lib/stat_.h (includes): Pick up stat macros.
69775         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
69776         if stat macros are broken.
69777         * lib/tempname.c (includes): No need to include "stat-macros.h".
69778         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
69779         (direxists, __path_search) [!_LIBC]: Don't compile these in
69780         gnulib; the tmpdir module covers that.
69781         * lib/tempname.h: New file.
69782
69783 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
69784
69785         * COPYING: Explain how gnulib-tool converts licence headers.
69786         Almost all wording by Eric Blake.
69787
69788 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
69789
69790         * lib/mbchar.h (is_basic_table): Make read-only.
69791         * lib/mbchar.c (is_basic_table): Likewise.
69792         Reported by John Darrington.
69793
69794 2006-10-25  Bruno Haible  <bruno@clisp.org>
69795
69796         * lib/progname.h (set_program_name): Undefine before defining.
69797
69798 2006-10-25  Bruno Haible  <bruno@clisp.org>
69799
69800         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
69801         false for non-gcc C++ compilers.
69802         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
69803
69804 2006-10-24  Bruno Haible  <bruno@clisp.org>
69805
69806         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
69807         iconv implementations like Irix iconv.
69808
69809 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
69810
69811         * modules/vararrays: New file.
69812         * m4/vararrays.m4: New file, taken from diffutils.
69813         * MODULES.html.sh: New module vararrays.
69814
69815 2006-10-24  Karl Berry  <karl@gnu.org>
69816
69817         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
69818         Don't call GNU Unix.
69819
69820 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69821
69822         * users.txt: Add Libtool.
69823
69824         Sync from Libtool:
69825
69826         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
69827
69828         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
69829         to gnulib's policy of including config.h unconditionally.
69830
69831 2006-10-24  Bruno Haible  <bruno@clisp.org>
69832
69833         * modules/wcwidth (Files): Add m4/wint_t.m4.
69834         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
69835         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
69836
69837 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
69838
69839         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
69840         to pacify GCC with some -W flags enabled.  Problem reported by
69841         Bruno Haible.
69842
69843 2006-10-24  Jim Meyering  <jim@meyering.net>
69844
69845         * MODULES.html.sh: Remove uinttostr.  It's not a module.
69846         Reported by Karl Berry.
69847
69848 2006-10-23  Bruno Haible  <bruno@clisp.org>
69849
69850         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
69851
69852 2006-10-24  Bruno Haible  <bruno@clisp.org>
69853
69854         * lib/gl_list.h: Use C comment style, not C++ comment style.
69855
69856 2006-10-23  Eric Blake  <ebb9@byu.net>
69857
69858         * lib/getaddrinfo.c (includes): Add missing include.
69859
69860 2006-10-23  Bruno Haible  <bruno@clisp.org>
69861             Paul Eggert  <eggert@cs.ucla.edu>
69862
69863         Ability to rename obstack_free.
69864         * lib/obstack.h (__obstack_free): New macro. Declare instead of
69865         obstack_free.
69866         (obstack_free): Invoke the __obstack_free macro.
69867         * lib/obstack.c (obstack_free): Use __obstack_free macro.
69868
69869 2006-10-23  Bruno Haible  <bruno@clisp.org>
69870             Paul Eggert  <eggert@cs.ucla.edu>
69871
69872         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
69873         __argc, __argv from the declaration. (They are defined as macros on
69874         mingw.)
69875
69876 2006-10-22  Bruno Haible  <bruno@clisp.org>
69877
69878         * doc/gnulib-intro.texi: New file.
69879         * doc/gnulib.texi: Include it.
69880
69881 2006-10-21  Bruno Haible  <bruno@clisp.org>
69882
69883         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
69884         "Introduction", "Miscellanous Notes", "Particular Modules".
69885
69886 2006-10-21  Bruno Haible  <bruno@clisp.org>
69887
69888         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
69889         Change mostlyclean-local rule to avoid sh syntax error from bash
69890         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
69891
69892 2006-10-23  Jim Meyering  <jim@meyering.net>
69893
69894         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
69895         in place of snprintf.
69896
69897         * modules/inttostr (Files): Add lib/uinttostr.c.
69898         * lib/uinttostr.c (inttostr): New file/function.
69899         * lib/inttostr.h (uinttostr): Declare.
69900         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
69901         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
69902         Add uinttostr.
69903         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
69904
69905 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
69906
69907         * lib/canonicalize.c (ELOOP): Define if not already defined.
69908         Problem reported by Bruno Haible in
69909         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
69910
69911 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
69912
69913         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
69914         Problem reported by Perry Smith and Ville Laurikari.
69915
69916         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
69917         uses.
69918
69919 2006-10-19  Bruno Haible  <bruno@clisp.org>
69920
69921         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
69922         for mingw.
69923
69924 2006-10-19  Bruno Haible  <bruno@clisp.org>
69925
69926         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
69927         Needed for mingw.
69928
69929 2006-10-19  Bruno Haible  <bruno@clisp.org>
69930
69931         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
69932
69933 2006-10-19  Bruno Haible  <bruno@clisp.org>
69934
69935         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
69936         it.
69937
69938 2006-10-19  Bruno Haible  <bruno@clisp.org>
69939
69940         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
69941         invocation.
69942
69943 2006-10-19  Bruno Haible  <bruno@clisp.org>
69944
69945         * gnulib-tool (func_create_testdir): Don't include ftruncate and
69946         mountlist by default.
69947
69948 2006-10-16  Bruno Haible  <bruno@clisp.org>
69949
69950         * lib/c-strstr.c: Include c-strstr.h.
69951
69952 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
69953
69954         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
69955         in a slash.
69956
69957 2006-10-18  Bruno Haible  <bruno@clisp.org>
69958
69959         * lib/lock.h [C++]: Wrap definitions in extern "C".
69960
69961 2006-10-18  Bruno Haible  <bruno@clisp.org>
69962
69963         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
69964         gl_LIBOBJS list.
69965
69966 2006-10-18  Bruno Haible  <bruno@clisp.org>
69967
69968         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
69969
69970 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
69971
69972         * lib/xstrtol.h: Include gettext.h.
69973         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
69974         Problem reported by Eric Blake.
69975         * modules/xstrtol (Depends-on): Add gettext-h.
69976
69977 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
69978
69979         * lib/strftime.c (advance): New macro.
69980         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
69981         incomplete type, so you can't add 0 to it.  Problem and patch
69982         reported by Eelco Dolstra for dietlibc.
69983
69984 2006-10-18  Jim Meyering  <jim@meyering.net>
69985
69986         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
69987         type for a local, and rename it: s/up/user_proc/.
69988
69989 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
69990
69991         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
69992         READ_UTMP_USER_PROCESS.
69993         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
69994
69995 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
69996
69997         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
69998         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
69999
70000 2006-10-17  Eric Blake  <ebb9@byu.net>
70001
70002         * lib/sigprocmask.c (sigprocmask): Fix typo.
70003
70004         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
70005
70006         * modules/clean-temp (Makefile.am): Don't add to make output...
70007         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
70008         config.h.
70009
70010 2006-10-17  Bruno Haible  <bruno@clisp.org>
70011
70012         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
70013         differently if DEFAULT_TEXT_DOMAIN is set.
70014
70015 2006-10-16  Bruno Haible  <bruno@clisp.org>
70016
70017         * lib/clean-temp.c: Include fwriteerror.h.
70018
70019 2006-10-16  Bruno Haible  <bruno@clisp.org>
70020
70021         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
70022
70023 2006-10-16  Bruno Haible  <bruno@clisp.org>
70024
70025         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
70026         * lib/sigprocmask.h: Include <sys/types.h>.
70027         (sigset_t): Use the system's definition if present.
70028
70029 2006-10-17  Eric Blake  <ebb9@byu.net>
70030
70031         * lib/xvasprintf.c (includes): Assume config.h.
70032         * lib/xasprintf.c (includes): Likewise.
70033
70034 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
70035
70036         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
70037         at least as wide as intmax_t.
70038
70039 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
70040
70041         (Imported from Automake.)
70042         * build-aux/gnupload: Update to version 1.1 of directive file.
70043
70044 2006-10-16  Eric Blake  <ebb9@byu.net>
70045
70046         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
70047         match Automake 1.10a.
70048
70049 2006-10-14  Bruno Haible  <bruno@clisp.org>
70050
70051         * modules/sigprocmask: New file.
70052         * lib/sigprocmask.h: New file.
70053         * lib/sigprocmask.c: New file.
70054         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
70055         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
70056         request sigprocmask.o.
70057         (gl_PREREQ_SIGPROCMASK): New macro.
70058         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
70059         (Depends-on): Add sigprocmask.
70060         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
70061         gt_SIGNALBLOCKING. Test for 'raise' only once.
70062         * lib/fatal-signal.c: Include sigprocmask.h.
70063         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
70064         unblock_fatal_signals): Define always.
70065         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
70066         sigprocmask.
70067
70068 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
70069
70070         Sync from Automake.
70071         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
70072         which incorrectly sets the mode of an existing destination
70073         directory.  In some cases the unpatched install-sh could do the
70074         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
70075         system.  We hope this is rare in practice, but it's clearly worth
70076         fixing.  Problem reported by Alex Unleashed in
70077         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
70078         Also, don't bother to check for -m bugs unless we're using -m;
70079         suggested by Stepan Kasal.
70080
70081 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70082
70083         Sync from Automake.
70084         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
70085         `-c' flag, so they appear at the same position as in %FASTDEP%
70086         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
70087         which ignores unknown options only after the first non-option.
70088         Bug report against M4 by Nelson H. F. Beebe.
70089
70090 2006-10-13  Jim Meyering  <jim@meyering.net>
70091
70092         Fix a bug in yesterday's change.
70093         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
70094         p->fts_statp->st_dev would be used uninitialized.
70095         Ensures that we always call fts_stat on the very first entry.
70096         Miklos Szeredi reported that find -xdev stopped working.
70097
70098 2006-10-12  Bruno Haible  <bruno@clisp.org>
70099
70100         * gnulib-tool (func_get_automake_snippet): Append an automatically
70101         computed EXTRA_DIST augmentation.
70102         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
70103         * modules/alloca-opt (Makefile.am): Likewise.
70104         * modules/allocsa (Makefile.am): Likewise.
70105         * modules/arcfour (Makefile.am): Likewise.
70106         * modules/arctwo (Makefile.am): Likewise.
70107         * modules/argmatch (Makefile.am): Likewise.
70108         * modules/argz (Makefile.am): Likewise.
70109         * modules/atexit (Makefile.am): Likewise.
70110         * modules/backupfile (Makefile.am): Likewise.
70111         * modules/byteswap (Makefile.am): Likewise.
70112         * modules/c-strtod (Makefile.am): Likewise.
70113         * modules/c-strtold (Makefile.am): Likewise.
70114         * modules/calloc (Makefile.am): Likewise.
70115         * modules/canon-host (Makefile.am): Likewise.
70116         * modules/canonicalize (Makefile.am): Likewise.
70117         * modules/chdir-long (Makefile.am): Likewise.
70118         * modules/chdir-safer (Makefile.am): Likewise.
70119         * modules/check-version (Makefile.am): Likewise.
70120         * modules/chown (Makefile.am): Likewise.
70121         * modules/cloexec (Makefile.am): Likewise.
70122         * modules/close-stream (Makefile.am): Likewise.
70123         * modules/closeout (Makefile.am): Likewise.
70124         * modules/crc (Makefile.am): Likewise.
70125         * modules/csharpexec (Makefile.am): Likewise.
70126         * modules/cycle-check (Makefile.am): Likewise.
70127         * modules/des (Makefile.am): Likewise.
70128         * modules/dev-ino (Makefile.am): Likewise.
70129         * modules/dirfd (Makefile.am): Likewise.
70130         * modules/dirname (Makefile.am): Likewise.
70131         * modules/dup2 (Makefile.am): Likewise.
70132         * modules/eealloc (Makefile.am): Likewise.
70133         * modules/error (Makefile.am): Likewise.
70134         * modules/euidaccess (Makefile.am): Likewise.
70135         * modules/exclude (Makefile.am): Likewise.
70136         * modules/exitfail (Makefile.am): Likewise.
70137         * modules/fcntl-safer (Makefile.am): Likewise.
70138         * modules/fcntl (Makefile.am): Likewise.
70139         * modules/file-type (Makefile.am): Likewise.
70140         * modules/fileblocks (Makefile.am): Likewise.
70141         * modules/filemode (Makefile.am): Likewise.
70142         * modules/filenamecat (Makefile.am): Likewise.
70143         * modules/fnmatch (Makefile.am): Likewise.
70144         * modules/fopen-safer (Makefile.am): Likewise.
70145         * modules/fpending (Makefile.am): Likewise.
70146         * modules/fprintftime (Makefile.am): Likewise.
70147         * modules/free (Makefile.am): Likewise.
70148         * modules/fsusage (Makefile.am): Likewise.
70149         * modules/ftruncate (Makefile.am): Likewise.
70150         * modules/fts (Makefile.am): Likewise.
70151         * modules/gc-arcfour (Makefile.am): Likewise.
70152         * modules/gc-des (Makefile.am): Likewise.
70153         * modules/gc-hmac-md5 (Makefile.am): Likewise.
70154         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
70155         * modules/gc-md4 (Makefile.am): Likewise.
70156         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
70157         * modules/gc-sha1 (Makefile.am): Likewise.
70158         * modules/gc (Makefile.am): Likewise.
70159         * modules/getaddrinfo (Makefile.am): Likewise.
70160         * modules/getcwd (Makefile.am): Likewise.
70161         * modules/getdelim (Makefile.am): Likewise.
70162         * modules/getdomainname (Makefile.am): Likewise.
70163         * modules/getgroups (Makefile.am): Likewise.
70164         * modules/gethostname (Makefile.am): Likewise.
70165         * modules/gethrxtime (Makefile.am): Likewise.
70166         * modules/getline (Makefile.am): Likewise.
70167         * modules/getloadavg (Makefile.am): Likewise.
70168         * modules/getlogin_r (Makefile.am): Likewise.
70169         * modules/getndelim2 (Makefile.am): Likewise.
70170         * modules/getopt (Makefile.am): Likewise.
70171         * modules/getpagesize (Makefile.am): Likewise.
70172         * modules/getpass-gnu (Makefile.am): Likewise.
70173         * modules/getpass (Makefile.am): Likewise.
70174         * modules/getsubopt (Makefile.am): Likewise.
70175         * modules/gettime (Makefile.am): Likewise.
70176         * modules/gettimeofday (Makefile.am): Likewise.
70177         * modules/getugroups (Makefile.am): Likewise.
70178         * modules/getusershell (Makefile.am): Likewise.
70179         * modules/glob (Makefile.am): Likewise.
70180         * modules/group-member (Makefile.am): Likewise.
70181         * modules/hard-locale (Makefile.am): Likewise.
70182         * modules/hash (Makefile.am): Likewise.
70183         * modules/hmac-md5 (Makefile.am): Likewise.
70184         * modules/hmac-sha1 (Makefile.am): Likewise.
70185         * modules/human (Makefile.am): Likewise.
70186         * modules/idcache (Makefile.am): Likewise.
70187         * modules/imaxabs (Makefile.am): Likewise.
70188         * modules/imaxdiv (Makefile.am): Likewise.
70189         * modules/inet_ntop (Makefile.am): Likewise.
70190         * modules/inet_pton (Makefile.am): Likewise.
70191         * modules/intprops (Makefile.am): Likewise.
70192         * modules/inttostr (Makefile.am): Likewise.
70193         * modules/inttypes (Makefile.am): Likewise.
70194         * modules/isapipe (Makefile.am): Likewise.
70195         * modules/javaversion (Makefile.am): Likewise.
70196         * modules/lchmod (Makefile.am): Likewise.
70197         * modules/lchown (Makefile.am): Likewise.
70198         * modules/localcharset (Makefile.am): Likewise.
70199         * modules/long-options (Makefile.am): Likewise.
70200         * modules/lstat (Makefile.am): Likewise.
70201         * modules/malloc (Makefile.am): Likewise.
70202         * modules/mathl (Makefile.am): Likewise.
70203         * modules/mbchar (Makefile.am): Likewise.
70204         * modules/md2 (Makefile.am): Likewise.
70205         * modules/md4 (Makefile.am): Likewise.
70206         * modules/md5 (Makefile.am): Likewise.
70207         * modules/memcasecmp (Makefile.am): Likewise.
70208         * modules/memchr (Makefile.am): Likewise.
70209         * modules/memcmp (Makefile.am): Likewise.
70210         * modules/memcoll (Makefile.am): Likewise.
70211         * modules/memcpy (Makefile.am): Likewise.
70212         * modules/memmem (Makefile.am): Likewise.
70213         * modules/memmove (Makefile.am): Likewise.
70214         * modules/mempcpy (Makefile.am): Likewise.
70215         * modules/memrchr (Makefile.am): Likewise.
70216         * modules/memset (Makefile.am): Likewise.
70217         * modules/memxor (Makefile.am): Likewise.
70218         * modules/mkancesdirs (Makefile.am): Likewise.
70219         * modules/mkdir-p (Makefile.am): Likewise.
70220         * modules/mkdir (Makefile.am): Likewise.
70221         * modules/mkdtemp (Makefile.am): Likewise.
70222         * modules/mkstemp (Makefile.am): Likewise.
70223         * modules/mktime (Makefile.am): Likewise.
70224         * modules/modechange (Makefile.am): Likewise.
70225         * modules/mountlist (Makefile.am): Likewise.
70226         * modules/nanosleep (Makefile.am): Likewise.
70227         * modules/obstack (Makefile.am): Likewise.
70228         * modules/openat (Makefile.am): Likewise.
70229         * modules/pagealign_alloc (Makefile.am): Likewise.
70230         * modules/pathmax (Makefile.am): Likewise.
70231         * modules/physmem (Makefile.am): Likewise.
70232         * modules/poll (Makefile.am): Likewise.
70233         * modules/posixtm (Makefile.am): Likewise.
70234         * modules/posixver (Makefile.am): Likewise.
70235         * modules/putenv (Makefile.am): Likewise.
70236         * modules/quote (Makefile.am): Likewise.
70237         * modules/quotearg (Makefile.am): Likewise.
70238         * modules/raise (Makefile.am): Likewise.
70239         * modules/read-file (Makefile.am): Likewise.
70240         * modules/readline (Makefile.am): Likewise.
70241         * modules/readlink (Makefile.am): Likewise.
70242         * modules/readtokens (Makefile.am): Likewise.
70243         * modules/readutmp (Makefile.am): Likewise.
70244         * modules/realloc (Makefile.am): Likewise.
70245         * modules/regex (Makefile.am): Likewise.
70246         * modules/rename-dest-slash (Makefile.am): Likewise.
70247         * modules/rename (Makefile.am): Likewise.
70248         * modules/rijndael (Makefile.am): Likewise.
70249         * modules/rmdir (Makefile.am): Likewise.
70250         * modules/rpmatch (Makefile.am): Likewise.
70251         * modules/safe-read (Makefile.am): Likewise.
70252         * modules/safe-write (Makefile.am): Likewise.
70253         * modules/same-inode (Makefile.am): Likewise.
70254         * modules/same (Makefile.am): Likewise.
70255         * modules/save-cwd (Makefile.am): Likewise.
70256         * modules/savedir (Makefile.am): Likewise.
70257         * modules/setenv (Makefile.am): Likewise.
70258         * modules/settime (Makefile.am): Likewise.
70259         * modules/sha1 (Makefile.am): Likewise.
70260         * modules/sig2str (Makefile.am): Likewise.
70261         * modules/snprintf (Makefile.am): Likewise.
70262         * modules/stat-macros (Makefile.am): Likewise.
70263         * modules/stat-time (Makefile.am): Likewise.
70264         * modules/stdbool (Makefile.am): Likewise.
70265         * modules/stdint (Makefile.am): Likewise.
70266         * modules/stdlib-safer (Makefile.am): Likewise.
70267         * modules/stpcpy (Makefile.am): Likewise.
70268         * modules/stpncpy (Makefile.am): Likewise.
70269         * modules/strcase (Makefile.am): Likewise.
70270         * modules/strcasestr (Makefile.am): Likewise.
70271         * modules/strchrnul (Makefile.am): Likewise.
70272         * modules/strcspn (Makefile.am): Likewise.
70273         * modules/strdup (Makefile.am): Likewise.
70274         * modules/strerror (Makefile.am): Likewise.
70275         * modules/strftime (Makefile.am): Likewise.
70276         * modules/strndup (Makefile.am): Likewise.
70277         * modules/strnlen (Makefile.am): Likewise.
70278         * modules/strpbrk (Makefile.am): Likewise.
70279         * modules/strsep (Makefile.am): Likewise.
70280         * modules/strstr (Makefile.am): Likewise.
70281         * modules/strtod (Makefile.am): Likewise.
70282         * modules/strtoimax (Makefile.am): Likewise.
70283         * modules/strtok_r (Makefile.am): Likewise.
70284         * modules/strtol (Makefile.am): Likewise.
70285         * modules/strtoll (Makefile.am): Likewise.
70286         * modules/strtoul (Makefile.am): Likewise.
70287         * modules/strtoull (Makefile.am): Likewise.
70288         * modules/strtoumax (Makefile.am): Likewise.
70289         * modules/strverscmp (Makefile.am): Likewise.
70290         * modules/sys_socket (Makefile.am): Likewise.
70291         * modules/sys_stat (Makefile.am): Likewise.
70292         * modules/sysexits (Makefile.am): Likewise.
70293         * modules/time_r (Makefile.am): Likewise.
70294         * modules/timegm (Makefile.am): Likewise.
70295         * modules/timespec (Makefile.am): Likewise.
70296         * modules/tmpfile-safer (Makefile.am): Likewise.
70297         * modules/trim (Makefile.am): Likewise.
70298         * modules/unistd-safer (Makefile.am): Likewise.
70299         * modules/unlinkdir (Makefile.am): Likewise.
70300         * modules/unlocked-io (Makefile.am): Likewise.
70301         * modules/userspec (Makefile.am): Likewise.
70302         * modules/utime (Makefile.am): Likewise.
70303         * modules/utimecmp (Makefile.am): Likewise.
70304         * modules/utimens (Makefile.am): Likewise.
70305         * modules/vasnprintf (Makefile.am): Likewise.
70306         * modules/vasprintf (Makefile.am): Likewise.
70307         * modules/vsnprintf (Makefile.am): Likewise.
70308         * modules/xalloc (Makefile.am): Likewise.
70309         * modules/xgetcwd (Makefile.am): Likewise.
70310         * modules/xnanosleep (Makefile.am): Likewise.
70311         * modules/xreadlink (Makefile.am): Likewise.
70312         * modules/xstrtod (Makefile.am): Likewise.
70313         * modules/xstrtol (Makefile.am): Likewise.
70314         * modules/xstrtold (Makefile.am): Likewise.
70315         * modules/yesno (Makefile.am): Likewise.
70316         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
70317
70318 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
70319
70320         * modules/error (Makefile.am): Distribute files through
70321         EXTRA_DIST, not lib_SOURCES.
70322
70323 2006-10-12  Eric Blake  <ebb9@byu.net>
70324
70325         * modules/error (Makefile.am): Distribute files in /lib.
70326         * modules/obstack (Makefile.am): Likewise.
70327
70328 2006-10-12  Bruno Haible  <bruno@clisp.org>
70329
70330         * modules/acl (Makefile.am): Distribute all files in lib/ through
70331         EXTRA_DIST.
70332         * modules/arcfour (Makefile.am): Likewise.
70333         * modules/arctwo (Makefile.am): Likewise.
70334         * modules/argmatch (Makefile.am): Likewise.
70335         * modules/argz (Makefile.am): Likewise.
70336         * modules/atexit (Makefile.am): Likewise.
70337         * modules/backupfile (Makefile.am): Likewise.
70338         * modules/c-strtod (Makefile.am): Likewise.
70339         * modules/c-strtold (Makefile.am): Likewise.
70340         * modules/calloc (Makefile.am): Likewise.
70341         * modules/canon-host (Makefile.am): Likewise.
70342         * modules/canonicalize (Makefile.am): Likewise.
70343         * modules/chdir-long (Makefile.am): Likewise.
70344         * modules/chdir-safer (Makefile.am): Likewise.
70345         * modules/check-version (Makefile.am): Likewise.
70346         * modules/chown (Makefile.am): Likewise.
70347         * modules/cloexec (Makefile.am): Likewise.
70348         * modules/close-stream (Makefile.am): Likewise.
70349         * modules/closeout (Makefile.am): Likewise.
70350         * modules/crc (Makefile.am): Likewise.
70351         * modules/cycle-check (Makefile.am): Likewise.
70352         * modules/des (Makefile.am): Likewise.
70353         * modules/dirfd (Makefile.am): Likewise.
70354         * modules/dirname (Makefile.am): Likewise.
70355         * modules/dup2 (Makefile.am): Likewise.
70356         * modules/euidaccess (Makefile.am): Likewise.
70357         * modules/exclude (Makefile.am): Likewise.
70358         * modules/exitfail (Makefile.am): Likewise.
70359         * modules/fcntl-safer (Makefile.am): Likewise.
70360         * modules/file-type (Makefile.am): Likewise.
70361         * modules/fileblocks (Makefile.am): Likewise.
70362         * modules/filemode (Makefile.am): Likewise.
70363         * modules/filenamecat (Makefile.am): Likewise.
70364         * modules/fnmatch (Makefile.am): Likewise.
70365         * modules/fopen-safer (Makefile.am): Likewise.
70366         * modules/fpending (Makefile.am): Likewise.
70367         * modules/fprintftime (Makefile.am): Likewise.
70368         * modules/free (Makefile.am): Likewise.
70369         * modules/fsusage (Makefile.am): Likewise.
70370         * modules/ftruncate (Makefile.am): Likewise.
70371         * modules/fts (Makefile.am): Likewise.
70372         * modules/gc (Makefile.am): Likewise.
70373         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
70374         * modules/getaddrinfo (Makefile.am): Likewise.
70375         * modules/getcwd (Makefile.am): Likewise.
70376         * modules/getdelim (Makefile.am): Likewise.
70377         * modules/getdomainname (Makefile.am): Likewise.
70378         * modules/getgroups (Makefile.am): Likewise.
70379         * modules/gethostname (Makefile.am): Likewise.
70380         * modules/gethrxtime (Makefile.am): Likewise.
70381         * modules/getline (Makefile.am): Likewise.
70382         * modules/getloadavg (Makefile.am): Likewise.
70383         * modules/getlogin_r (Makefile.am): Likewise.
70384         * modules/getopt (Makefile.am): Likewise.
70385         * modules/getpass (Makefile.am): Likewise.
70386         * modules/getpass-gnu (Makefile.am): Likewise.
70387         * modules/getsubopt (Makefile.am): Likewise.
70388         * modules/gettime (Makefile.am): Likewise.
70389         * modules/gettimeofday (Makefile.am): Likewise.
70390         * modules/getugroups (Makefile.am): Likewise.
70391         * modules/getusershell (Makefile.am): Likewise.
70392         * modules/glob (Makefile.am): Likewise.
70393         * modules/group-member (Makefile.am): Likewise.
70394         * modules/hard-locale (Makefile.am): Likewise.
70395         * modules/hash (Makefile.am): Likewise.
70396         * modules/hmac-md5 (Makefile.am): Likewise.
70397         * modules/hmac-sha1 (Makefile.am): Likewise.
70398         * modules/human (Makefile.am): Likewise.
70399         * modules/idcache (Makefile.am): Likewise.
70400         * modules/imaxabs (Makefile.am): Likewise.
70401         * modules/imaxdiv (Makefile.am): Likewise.
70402         * modules/inet_ntop (Makefile.am): Likewise.
70403         * modules/inet_pton (Makefile.am): Likewise.
70404         * modules/inttostr (Makefile.am): Likewise.
70405         * modules/isapipe (Makefile.am): Likewise.
70406         * modules/lchown (Makefile.am): Likewise.
70407         * modules/long-options (Makefile.am): Likewise.
70408         * modules/lstat (Makefile.am): Likewise.
70409         * modules/malloc (Makefile.am): Likewise.
70410         * modules/mathl (Makefile.am): Likewise.
70411         * modules/mbchar (Makefile.am): Likewise.
70412         * modules/md2 (Makefile.am): Likewise.
70413         * modules/md4 (Makefile.am): Likewise.
70414         * modules/md5 (Makefile.am): Likewise.
70415         * modules/memcasecmp (Makefile.am): Likewise.
70416         * modules/memchr (Makefile.am): Likewise.
70417         * modules/memcmp (Makefile.am): Likewise.
70418         * modules/memcoll (Makefile.am): Likewise.
70419         * modules/memcpy (Makefile.am): Likewise.
70420         * modules/memmem (Makefile.am): Likewise.
70421         * modules/memmove (Makefile.am): Likewise.
70422         * modules/mempcpy (Makefile.am): Likewise.
70423         * modules/memrchr (Makefile.am): Likewise.
70424         * modules/memset (Makefile.am): Likewise.
70425         * modules/memxor (Makefile.am): Likewise.
70426         * modules/mkancesdirs (Makefile.am): Likewise.
70427         * modules/mkdir (Makefile.am): Likewise.
70428         * modules/mkdir-p (Makefile.am): Likewise.
70429         * modules/mkdtemp (Makefile.am): Likewise.
70430         * modules/mkstemp (Makefile.am): Likewise.
70431         * modules/mktime (Makefile.am): Likewise.
70432         * modules/modechange (Makefile.am): Likewise.
70433         * modules/mountlist (Makefile.am): Likewise.
70434         * modules/nanosleep (Makefile.am): Likewise.
70435         * modules/openat (Makefile.am): Likewise.
70436         * modules/pagealign_alloc (Makefile.am): Likewise.
70437         * modules/physmem (Makefile.am): Likewise.
70438         * modules/poll (Makefile.am): Likewise.
70439         * modules/posixtm (Makefile.am): Likewise.
70440         * modules/posixver (Makefile.am): Likewise.
70441         * modules/putenv (Makefile.am): Likewise.
70442         * modules/quote (Makefile.am): Likewise.
70443         * modules/quotearg (Makefile.am): Likewise.
70444         * modules/raise (Makefile.am): Likewise.
70445         * modules/read-file (Makefile.am): Likewise.
70446         * modules/readline (Makefile.am): Likewise.
70447         * modules/readlink (Makefile.am): Likewise.
70448         * modules/readtokens (Makefile.am): Likewise.
70449         * modules/readutmp (Makefile.am): Likewise.
70450         * modules/realloc (Makefile.am): Likewise.
70451         * modules/regex (Makefile.am): Likewise.
70452         * modules/rename (Makefile.am): Likewise.
70453         * modules/rename-dest-slash (Makefile.am): Likewise.
70454         * modules/rijndael (Makefile.am): Likewise.
70455         * modules/rmdir (Makefile.am): Likewise.
70456         * modules/rpmatch (Makefile.am): Likewise.
70457         * modules/safe-read (Makefile.am): Likewise.
70458         * modules/safe-write (Makefile.am): Likewise.
70459         * modules/same (Makefile.am): Likewise.
70460         * modules/save-cwd (Makefile.am): Likewise.
70461         * modules/savedir (Makefile.am): Likewise.
70462         * modules/setenv (Makefile.am): Likewise.
70463         * modules/settime (Makefile.am): Likewise.
70464         * modules/sha1 (Makefile.am): Likewise.
70465         * modules/sig2str (Makefile.am): Likewise.
70466         * modules/snprintf (Makefile.am): Likewise.
70467         * modules/stdlib-safer (Makefile.am): Likewise.
70468         * modules/stpcpy (Makefile.am): Likewise.
70469         * modules/stpncpy (Makefile.am): Likewise.
70470         * modules/strcase (Makefile.am): Likewise.
70471         * modules/strcasestr (Makefile.am): Likewise.
70472         * modules/strchrnul (Makefile.am): Likewise.
70473         * modules/strcspn (Makefile.am): Likewise.
70474         * modules/strdup (Makefile.am): Likewise.
70475         * modules/strerror (Makefile.am): Likewise.
70476         * modules/strftime (Makefile.am): Likewise.
70477         * modules/strndup (Makefile.am): Likewise.
70478         * modules/strnlen (Makefile.am): Likewise.
70479         * modules/strpbrk (Makefile.am): Likewise.
70480         * modules/strsep (Makefile.am): Likewise.
70481         * modules/strstr (Makefile.am): Likewise.
70482         * modules/strtod (Makefile.am): Likewise.
70483         * modules/strtoimax (Makefile.am): Likewise.
70484         * modules/strtok_r (Makefile.am): Likewise.
70485         * modules/strtol (Makefile.am): Likewise.
70486         * modules/strtoll (Makefile.am): Likewise.
70487         * modules/strtoul (Makefile.am): Likewise.
70488         * modules/strtoull (Makefile.am): Likewise.
70489         * modules/strtoumax (Makefile.am): Likewise.
70490         * modules/strverscmp (Makefile.am): Likewise.
70491         * modules/time_r (Makefile.am): Likewise.
70492         * modules/timegm (Makefile.am): Likewise.
70493         * modules/tmpfile-safer (Makefile.am): Likewise.
70494         * modules/unistd-safer (Makefile.am): Likewise.
70495         * modules/unlinkdir (Makefile.am): Likewise.
70496         * modules/userspec (Makefile.am): Likewise.
70497         * modules/utime (Makefile.am): Likewise.
70498         * modules/utimecmp (Makefile.am): Likewise.
70499         * modules/utimens (Makefile.am): Likewise.
70500         * modules/vasnprintf (Makefile.am): Likewise.
70501         * modules/vasprintf (Makefile.am): Likewise.
70502         * modules/vsnprintf (Makefile.am): Likewise.
70503         * modules/xalloc (Makefile.am): Likewise.
70504         * modules/xgetcwd (Makefile.am): Likewise.
70505         * modules/xnanosleep (Makefile.am): Likewise.
70506         * modules/xreadlink (Makefile.am): Likewise.
70507         * modules/xstrtod (Makefile.am): Likewise.
70508         * modules/xstrtol (Makefile.am): Likewise.
70509         * modules/xstrtold (Makefile.am): Likewise.
70510         * modules/yesno (Makefile.am): Likewise.
70511
70512 2006-10-12  Jim Meyering  <jim@meyering.net>
70513
70514         * m4/getloadavg.m4: Revert the change below.
70515
70516         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
70517         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
70518         fail with a symlink, which is what coreutils' ./bootstrap now
70519         creates by default.
70520
70521 2006-10-12  Bruno Haible  <bruno@clisp.org>
70522
70523         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
70524         mingw.
70525         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
70526         MSVC and mingw explicitly.
70527
70528 2006-10-11  Simon Josefsson  <jas@extundo.com>
70529             Bruno Haible  <bruno@clisp.org>
70530
70531         Add support for multiple gnulib-tool invocations in the scope of a
70532         single configure.ac file.
70533         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
70534         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
70535         with the same contents as the _LIBADD variable.
70536         (func_emit_initmacro_start, func_emit_initmacro_end,
70537         func_emit_initmacro_done): New functions.
70538         (func_import, func_create_testdir): Invoke them. Allow the identifiers
70539         gl_LIBOBJS and gl_LTLIBOBJS.
70540
70541 2006-10-11  Bruno Haible  <bruno@clisp.org>
70542
70543         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
70544         (func_create_testdir): Don't create po/Makefile.am, don't invoke
70545         autoreconf. Instead, invoke autopoint explicitly but move back the
70546         *.m4 files from gnulib.
70547
70548 2006-10-11  Bruno Haible  <bruno@clisp.org>
70549
70550         * gnulib-tool (func_usage): Make module names after --create-testdir
70551         optional.
70552         (func_create_testdir): If no module was specified, use nearly all
70553         modules.
70554
70555 2006-10-12  Jim Meyering  <jim@meyering.net>
70556
70557         Big performance improvement for fts-based tools that use FTS_NOSTAT.
70558         Avoid spurious inode-mismatch problems on non-POSIX file systems.
70559         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
70560         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
70561         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
70562         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
70563         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
70564         (fts_set_stat_required): New function.
70565         (fts_open): Defer the calls to fts_stat, if possible or requested.
70566         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
70567         into fts_stat itself.
70568         (fts_read): Perform any required (deferred) fts_stat call.
70569         (fts_build): Likewise, for the directory we're about to open and read.
70570         In the readdir loop, carefully decide whether each entry will require
70571         an eventual call to fts_stat, using dirent.d_type info if available.
70572         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
70573         a command line argument into this function.  Update all callers.
70574         Map a return value of FTS_DOT to FTS_D for a command line argument.
70575         * modules/fts (Depends-on): Add d-type.  Alphabetize.
70576         Thanks to Miklos Szeredi for his tenacity and for the initial
70577         bug report about "find" failing on a FUSE-based file system.
70578
70579         * lib/fts.c (fts_open): Use consistent indentation.
70580
70581 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
70582
70583         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
70584         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
70585         reported by Jim Meyering.  All uses of cache variables renamed
70586         to match Autoconf's.
70587         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
70588         the other one.
70589
70590         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
70591         Fix misspelling in diagnostic.
70592
70593 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
70594
70595         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
70596         defined.  Problem reported by Matthew Woehlke.
70597
70598         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
70599         Add support for Tandem NonStop R series.
70600         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
70601         Use new macro.
70602
70603         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
70604         (has_trailing_slash): Omit size arg; all callers changed.
70605         Omit 'inline', since it doesn't help performance and we'd
70606         need to configure it.
70607         Don't count //, ///, etc. as having a trailing slash.
70608         As a side effect, this removes a C99ism reported by Matthew Woehlke.
70609         (rpl_rename_dest_slash): On failure, use rename's errno rather
70610         than (in some cases) an incorrect or junk errno.
70611         Simplify code by removing need to compute length; this does
70612         cause it to make two passes instead of one over the file name,
70613         but it's worth it.
70614
70615         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
70616         change, since Autoconf's version may no longer be appropriate now
70617         that we are using CVS Autoconf's version.  Add support for Tandem.
70618
70619 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
70620             Bruno Haible  <bruno@clisp.org>
70621
70622         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
70623         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
70624         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
70625         gl_AC_TYPE_LONG_LONG.
70626
70627         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
70628         instead of HAVE_LONG_LONG.
70629         * lib/printf-args.c (printf_fetchargs): Likewise.
70630         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
70631         * lib/vasnprintf.c (VASNPRINTF): Likewise.
70632         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
70633         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
70634         gl_AC_TYPE_LONG_LONG.
70635
70636 2006-10-11  Bruno Haible  <bruno@clisp.org>
70637
70638         * m4/longlong.m4: Add comments.
70639         * m4/ulonglong.m4: Likewise.
70640
70641 2006-10-10  Bruno Haible  <bruno@clisp.org>
70642
70643         Make it possible to #define stpcpy, strdup to aliases.
70644         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
70645         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
70646
70647 2006-10-10  Bruno Haible  <bruno@clisp.org>
70648
70649         Make it possible to #define gcd to an alias.
70650         * lib/gcd.c: Include config.h.
70651
70652 2006-10-10  Bruno Haible  <bruno@clisp.org>
70653
70654         Make it possible to #define c_isascii to an alias.
70655         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
70656         defined. Undefine the macros before defining them, to avoid gcc
70657         warnings.
70658         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
70659         define NO_C_CTYPE_MACROS early.
70660
70661 2006-10-10  Bruno Haible  <bruno@clisp.org>
70662
70663         Make it possible to #define set_program_name to an alias.
70664         * lib/progname.c: Don't undefine set_program_name; instead, undefine
70665         ENABLE_RELOCATABLE early.
70666
70667 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
70668
70669         Port to Tandem NSK OSS, which has 64-bit signed int but at most
70670         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
70671         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
70672         More generally, don't assume that 64-bit signed int is available
70673         if unsigned int is, and vice versa.
70674         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
70675         unsigned symbols, not on their signed counterparts.
70676         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
70677         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
70678         (UINT64_C, UINTMAX_C):
70679         Likewise.
70680         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
70681         unsigned counterparts.
70682         (Have_long_long, Unsigned): New macros.
70683         (Int): Renamed from INT.
70684         (strtoimax): Use the new macros.
70685         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
70686         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
70687         * modules/inttypes (inttypes.h): Substitute
70688         HAVE_UNSIGNED_LONG_LONG_INT.
70689         * modules/stdint (stdint.h): Likewise.
70690         (Files): Add m4/ulonglong.m4.
70691
70692 2006-10-10  Bruno Haible  <bruno@clisp.org>
70693
70694         Fix a gcc -Wshadow warning.
70695         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
70696         to 'bucket'.
70697         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
70698         gl_linked_indexof_from_to): Likewise.
70699         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
70700         Likewise.
70701         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
70702         Likewise.
70703         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
70704         Reported by Eric Blake.
70705
70706 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
70707
70708         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
70709         for NetBSD.  Problem reported by Bruno Haible.
70710
70711 2006-10-09  Jim Meyering  <jim@meyering.net>
70712
70713         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
70714         Patch from Bruno Haible.
70715
70716 2006-10-09  Jim Meyering  <jim@meyering.net>
70717
70718         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
70719         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
70720         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
70721
70722 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
70723
70724         Don't include <config.h> twice; this doesn't work in some cases,
70725         e.g., when config.h has "#define intmax_t long long int" and
70726         we include <config.h>, <inttypes.h>, <config.h> in that order.
70727         Problem reported by Matthew Woehlke in:
70728         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
70729         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
70730         * lib/fts-cycle.c: Don't include config.h.
70731         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
70732         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
70733         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
70734         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
70735         inttypes.h.
70736         * lib/xstrtoumax.c: Likewise.
70737         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
70738         __strtol and the like, so that this module is more like its siblings.
70739         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
70740         Remove; no longer needed now that we assume gnulib inttypes.h.
70741
70742 2006-10-08  Bruno Haible  <bruno@clisp.org>
70743
70744         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
70745         option.
70746
70747 2006-10-07  Jim Meyering  <jim@meyering.net>
70748
70749         * modules/inttypes (inttypes.h): Revert what seems to have been
70750         an inadvertent part of today's change: use "|", not "/" in the
70751         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
70752
70753 2006-10-07  Bruno Haible  <bruno@clisp.org>
70754
70755         * modules/sublist: New file.
70756
70757 2006-10-07  Bruno Haible  <bruno@clisp.org>
70758
70759         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
70760         * modules/argz (argz.h): Likewise.
70761         * modules/arpa_inet (arpa/inet.h): Likewise.
70762         * modules/byteswap (byteswap.h): Likewise.
70763         * modules/configmake (configmake.h): Likewise.
70764         * modules/fcntl (fcntl.h): Likewise.
70765         * modules/fnmatch (fnmatch.h): Likewise.
70766         * modules/getopt (getopt.h): Likewise.
70767         * modules/glob (glob.h): Likewise.
70768         * modules/inttypes (inttypes.h): Likewise.
70769         * modules/netinet_in (netinet/in.h): Likewise.
70770         * modules/poll (poll.h): Likewise.
70771         * modules/stdbool (stdbool.h): Likewise.
70772         * modules/stdint (stdint.h): Likewise.
70773         * modules/sys_select (sys/select.h): Likewise.
70774         * modules/sys_socket (sys/socket.h): Likewise.
70775         * modules/sys_stat (sys/stat.h): Likewise.
70776         * modules/sysexits (sysexits.h): Likewise.
70777         * modules/unistd (unistd.h): Likewise.
70778         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
70779         Add a "DO NOT EDIT" comment to the generated file.
70780         (func_import): Likewise for gnulib-comp.m4.
70781
70782 2006-10-07  Bruno Haible  <bruno@clisp.org>
70783
70784         * lib/gl_sublist.h: New file.
70785         * lib/gl_sublist.c: New file.
70786
70787 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
70788
70789         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
70790         name (relative to the original working directory) and the file
70791         name component (relative to the temporary working directory).  All
70792         callers changed.
70793         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
70794         * lib/mkdir-p.c (make_dir_parents): Likewise.
70795         * lib/mkdir-p.h (make_dir_parents): Likewise.
70796
70797 2006-10-06  Eric Blake  <ebb9@byu.net>
70798
70799         Define several macros for use by the clean-temp module.
70800         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
70801         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
70802         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
70803
70804         * lib/clean-temp.h (close_stream_temp): New declaration.
70805         * lib/clean-temp.c (includes): Pull in headers according to what
70806         other modules are in use.
70807         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
70808
70809 2006-10-06  Bruno Haible  <bruno@clisp.org>
70810
70811         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
70812         instead of fopen, fwriteerror.
70813
70814 2006-10-06  Bruno Haible  <bruno@clisp.org>
70815
70816         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
70817         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
70818         int.
70819         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
70820         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
70821         Return an error indicator.
70822         Suggested by Eric Blake.
70823
70824 2006-10-06  Bruno Haible  <bruno@clisp.org>
70825
70826         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
70827         Reported by Eric Blake.
70828
70829 2006-10-06  Bruno Haible  <bruno@clisp.org>
70830
70831         * modules/closeout (Description): Mention stderr too.
70832
70833 2006-10-06  Bruno Haible  <bruno@clisp.org>
70834         and Paul Eggert  <eggert@cs.ucla.edu>
70835
70836         * lib/closeout.c (close_stdout): Also close stderr.
70837         * lib/closeout.h: Update comment.
70838
70839 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
70840
70841         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
70842         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
70843         * lib/dirchownmod.c: Include lchown.h.
70844         * lib/lchown.c: Don't include files that lchown.h now includes.
70845         Don't declare chown, since lchown.h now does that.
70846         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
70847         (lchown): Define to rpl_chown if lchown is declared but
70848         does not exist.  Declare using a prototype if lchown is not
70849         declared.  Add a copyright notice.
70850         * lib/mkstemp.h: Include <unistd.h>.
70851         * lib/openat.c: Include lchown.h.
70852
70853         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
70854         we now test for that separately.
70855         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
70856         rather than O_NOFOLLOW, when testing whether it's possible to
70857         avoid a race condition reliably.
70858         * lib/savewd.c (savewd_chdir): Likewise.
70859
70860         Remove macros that are no longer needed now that stdint.h is
70861         reliable.
70862         * lib/fsusage.c (UINTMAX_MAX): Remove.
70863         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
70864         * lib/utimecmp.c (SIZE_MAX): Remove.
70865
70866         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
70867
70868         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
70869         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
70870         O_NOATIME works.
70871
70872 2006-10-05  Bruno Haible  <bruno@clisp.org>
70873
70874         * lib/gl_list.h (gl_sortedlist_search_from_to,
70875         gl_sortedlist_indexof_from_to): New declarations.
70876         (gl_list_implementation): New fields sortedlist_search_from_to,
70877         sortedlist_indexof_from_to.
70878         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
70879         inline functions.
70880         * lib/gl_list.c (gl_sortedlist_search_from_to,
70881         gl_sortedlist_indexof_from_to): New functions.
70882         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
70883         function.
70884         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
70885         (gl_array_sortedlist_search_from_to): New function.
70886         (gl_array_list_implementation): Update.
70887         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
70888         function.
70889         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
70890         (gl_carray_sortedlist_search_from_to): New function.
70891         (gl_carray_list_implementation): Update.
70892         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
70893         gl_linked_sortedlist_indexof_from_to): New functions.
70894         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
70895         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
70896         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
70897         gl_tree_sortedlist_indexof_from_to): New functions.
70898         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
70899         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
70900         Update.
70901         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
70902         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
70903         Update.
70904
70905 2006-10-05  Bruno Haible  <bruno@clisp.org>
70906
70907         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
70908         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
70909         (struct gl_list_implementation): Add fields search_from_to,
70910         indexof_from_to. Remove fields search, indexof.
70911         (gl_list_search): Use the search_from_to method.
70912         (gl_list_search_from, gl_list_search_from_to): New functions.
70913         (gl_list_indexof): Use the indexof_from_to method.
70914         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
70915         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
70916         (gl_list_search_from, gl_list_search_from_to): New functions.
70917         (gl_list_indexof): Use the indexof_from_to method.
70918         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
70919         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
70920         gl_array_indexof. Add start_index, end_index arguments.
70921         (gl_array_search_from_to): Renamed from gl_array_search. Add
70922         start_index, end_index arguments.
70923         (gl_array_remove, gl_array_list_implementation): Update.
70924         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
70925         gl_carray_indexof. Add start_index, end_index arguments.
70926         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
70927         start_index, end_index arguments.
70928         (gl_carray_remove, gl_carray_list_implementation): Update.
70929         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
70930         gl_linked_search. Add start_index, end_index arguments.
70931         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
70932         start_index, end_index arguments.
70933         (gl_linked_remove): Update.
70934         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
70935         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
70936         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
70937         field to 'size_t'.
70938         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
70939         gl_tree_search. Add start_index, end_index arguments.
70940         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
70941         start_index, end_index arguments.
70942         (gl_tree_remove): Update.
70943         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
70944         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
70945         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
70946         function.
70947         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
70948         gl_tree_search. Add start_index, end_index arguments.
70949         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
70950         start_index, end_index arguments.
70951         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
70952         Update.
70953         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
70954
70955 2006-10-05  Bruno Haible  <bruno@clisp.org>
70956
70957         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
70958
70959         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
70960         fwriteerror_temp): New declarations.
70961         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
70962         (descriptors): New variable.
70963         (cleanup): First, close the descriptors.
70964         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
70965         fclose_temp, fwriteerror_temp): New functions.
70966
70967 2006-10-04  Jim Meyering  <jim@meyering.net>
70968
70969         * lib/fts.c (fts_open): Tiny comment change.
70970
70971 2006-10-04  Bruno Haible  <bruno@clisp.org>
70972
70973         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
70974         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
70975         gl_LOCK_BODY.
70976         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
70977         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
70978         gl_LOCK_EARLY_BODY.
70979         (gl_LOCK): Require gl_LOCK_BODY.
70980
70981 2006-10-04  Bruno Haible  <bruno@clisp.org>
70982
70983         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
70984         (gl_oset_search_atleast): New declaration.
70985         (struct gl_oset_implementation): Add field 'search_atleast'.
70986         (gl_oset_search_atleast): New inline function.
70987         * lib/gl_oset.c (gl_oset_search_atleast): New function.
70988         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
70989         (gl_array_oset_implementation): Update.
70990         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
70991         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
70992         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
70993
70994 2006-10-04  Bruno Haible  <bruno@clisp.org>
70995
70996         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
70997
70998 2006-10-03  Bruno Haible  <bruno@clisp.org>
70999
71000         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
71001         from gl_avltreehash_list_implementation.
71002
71003 2006-10-03  Bruno Haible  <bruno@clisp.org>
71004
71005         * lib/gl_oset.c (gl_oset_add): Fix return type.
71006
71007 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
71008
71009         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
71010
71011 2006-10-02  Eric Blake  <ebb9@byu.net>
71012
71013         * modules/strnlen (Depends-on): Add extensions.
71014
71015 2006-10-02  Eric Blake  <ebb9@byu.net>
71016
71017         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
71018         definition in 2.60+.
71019
71020 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
71021
71022         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
71023         checks.
71024
71025 2006-10-02  Bruno Haible  <bruno@clisp.org>
71026
71027         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
71028         to the AUTOMAKE_OPTIONS.
71029         Reported by Jim Meyering.
71030
71031 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
71032
71033         Work around bug in Solaris 10 /proc file system:
71034         /proc/self/fd/NNN/.. isn't the parent directory of
71035         the directory whose file descriptor is NNN.  This needs to
71036         be worked around at run time, not compile time, since a
71037         program might be built on Solaris 8, where things work, and
71038         run on Solaris 10.
71039         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
71040         to use the following interface instead:
71041         (OPENAT_BUFFER_SIZE): New macro.
71042         (openat_proc_name): New function.
71043         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
71044         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
71045         Likewise.
71046         * lib/openat-proc.c: New file.
71047         * modules/openat (Files): Add lib/openat-proc.c.
71048         (Depends-on): Add same-inode, stdbool.
71049         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
71050
71051 2006-09-29  Bruno Haible  <bruno@clisp.org>
71052
71053         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
71054         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
71055         argument. Set stdout_closed before testing for ferror, not after.
71056         (fwriteerror, fwriteerror_no_ebadf): New functions.
71057
71058 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71059
71060         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
71061
71062 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
71063
71064         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
71065         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
71066
71067 2006-09-28  Jim Meyering  <jim@meyering.net>
71068
71069         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
71070         Include <unistd.h>.
71071
71072 2006-09-28  Bruno Haible  <bruno@clisp.org>
71073
71074         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
71075         * modules/linkedhash-list (Depends-on): Likewise.
71076         * modules/rbtreehash-list (Depends-on): Likewise.
71077
71078 2006-09-28  Bruno Haible  <bruno@clisp.org>
71079
71080         * lib/strndup.h: Simplify the redefinition of strndup.
71081         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
71082         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
71083
71084 2006-09-28  Bruno Haible  <bruno@clisp.org>
71085
71086         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
71087         * lib/gl_linkedhash_list.c: Likewise.
71088         * lib/gl_rbtreehash_list.c: Likewise.
71089
71090 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
71091
71092         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
71093         getaddrinfo.
71094
71095         * lib/__fpending.h: Don't include <stdio_ext.h> unless
71096         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
71097         it causes <stdio_ext.h> to cause a compile-time error.
71098         Problem reported by Nelson H. F. Beebe.
71099         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
71100         of HAVE_DECL___PENDING.
71101
71102         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
71103         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
71104         declaration.
71105
71106 2006-09-27  Jim Meyering  <jim@meyering.net>
71107
71108         This file could end up with a definition for a function
71109         named __strndup, rather than rpl_strndup on a system with
71110         incomplete weak_alias support.
71111         * lib/strndup.c (strndup): Rename from __strndup.
71112         Remove #defines that used to map __strndup to strndup.
71113         Don't use K&R prototypes.
71114         Remove LIBC-related code, since this file is not sync'd with glibc.
71115         * lib/strndup.h: Revamp, accordingly.
71116         * m4/strndup.m4: Modernize.
71117
71118 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
71119
71120         * modules/savewd (Depends-on): Add 'raise'.
71121         * lib/savewd.c: Include <signal.h>, for 'raise'.
71122
71123 2006-09-26  Jim Meyering  <jim@meyering.net>
71124
71125         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
71126         when we detect Darwin 8.7.0's acl_get_file bug.
71127         Rearrange to perform the new (below) run-test while $LIBS
71128         contains any acl-related library.  Set USE_ACL at the end.
71129         (gl_ACL_GET_FILE): New function.
71130
71131 2006-09-26  Eric Blake  <ebb9@byu.net>
71132
71133         * lib/verror.c: Include <config.h> unconditionally.
71134
71135 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
71136
71137         * modules/clock-time (Maintainer): Add self.
71138         * modules/getlogin_r (Depends-on): Add extensions.
71139
71140 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71141
71142         * modules/clock-time: New module.
71143         * modules/nanosleep (Depends-on): Add clock-time.
71144         * modules/gethrxtime (Depends-on): Likewise.
71145         * modules/gettime (Depends-on): Likewise.
71146         * modules/settime (Depends-on): Likewise.
71147
71148         * modules/fts-lgpl: Depend on openat.
71149         * modules/mkancesdirs: Depend on savewd.
71150         * modules/mkdir-p: Likewise.
71151
71152 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71153
71154         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
71155
71156         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
71157         `gl_have_arbitrary_file_name_length_limit' to
71158         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
71159         actually works between configure runs.
71160
71161 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71162             Bruno Haible  <bruno@clisp.org>
71163
71164         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
71165
71166 2006-09-25  Jim Meyering  <jim@meyering.net>
71167
71168         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
71169         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
71170
71171 2006-09-25  Eric Blake  <ebb9@byu.net>
71172
71173         * gnulib-tool (func_import, func_create_testdir): Fix typos in
71174         exec's in 2006-09-18 patch when shuffling fds.
71175
71176 2006-09-25  Bruno Haible  <bruno@clisp.org>
71177
71178         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
71179         Reported by Jim Meyering.
71180
71181 2006-09-24  Jim Meyering  <jim@meyering.net>
71182
71183         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
71184         compare a pointer against a literal "0".  That caused failures with
71185         at least HP-UX's hpcc.
71186
71187 2006-09-22  Simon Josefsson  <jas@extundo.com>
71188
71189         * modules/gc-sha1:
71190         * modules/gc-md4:
71191         * modules/gc-hmac-sha1:
71192         * modules/gc-hmac-md5:
71193         * modules/gc-des:
71194         * modules/gc-arcfour: Distribute more files.
71195
71196 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71197
71198         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
71199         (gl_linked_iterator_from_to): Initialize struct completely.
71200         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
71201         (gl_tree_iterator_from_to): Likewise
71202         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
71203         * lib/gl_array_list.c [lint] (gl_array_iterator)
71204         (gl_array_iterator_from_to): Likewise.
71205         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
71206         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
71207         (gl_carray_iterator_from_to): Likewise.
71208
71209         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
71210         * lib/md4.c (md4_process_block): Remove unused variable.
71211         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
71212         parentheses for clarity.
71213
71214 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71215
71216         * modules/bison-i18n (Depends-on): Add gettext.
71217
71218 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71219
71220         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
71221         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
71222         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
71223         also add missing comma that caused broken test.
71224         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
71225         stdlib.h, for `abort'.
71226         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
71227         variables.
71228         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
71229         include unistd.h if present, for `rmdir'.
71230         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
71231         variables.
71232         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
71233         in the process include standard headers for prototypes.
71234         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
71235         gets declared on GNU/Linux.
71236         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
71237         unistd.h, for `rmdir'.
71238         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
71239
71240         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
71241         always true.
71242         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
71243
71244         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
71245
71246 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71247
71248         * gnulib-tool (func_version): Create output all at once.  This
71249         may help avoid triggering unnecessary SIGPIPEs, and at any
71250         rate it doesn't hurt.
71251
71252 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71253             Bruno Haible  <bruno@clisp.org>
71254
71255         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
71256         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
71257         * m4/signed.m4 (bh_C_SIGNED): Likewise.
71258
71259         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
71260         (gl_FUNC_VASPRINTF): Invoke it.
71261
71262 2006-09-22  Bruno Haible  <bruno@clisp.org>
71263
71264         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
71265         getloadavg.c as first argument.
71266
71267 2006-09-22  Bruno Haible  <bruno@clisp.org>
71268
71269         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
71270         at the beginning of the gl_INIT macro.
71271         * modules/getloadavg (configure.ac): Pass $gl_source_base to
71272         gl_GETLOADAVG.
71273
71274 2006-09-22  Bruno Haible  <bruno@clisp.org>
71275
71276         * gnulib-tool (func_create_megatestdir): Don't include the config-h
71277         module.
71278         Suggested by Ralf Wildenhues.
71279
71280 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
71281
71282         Import this patch from libc:
71283
71284         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
71285
71286         * lib/regex_internal.c (re_string_reconstruct): Handle
71287         offset < pstr->valid_raw_len && pstr->offsets_needed case.
71288         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
71289         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
71290         re_string_context_at.
71291
71292         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
71293         now requires it.
71294         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
71295         gl_REGEX now does it for us.
71296         (gl_REGEX): Add test taken from
71297         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
71298
71299         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
71300         Check that large offsets work.  Modernize Autoconf usages.
71301         Prefer "yes" to mean a good thing rather than a bad.
71302         Don't put "#define mkstemp" in config.h, as this might interfere
71303         with standard system headers that "#define mkstemp mkstemp64".
71304
71305         * modules/mkstemp (Depends-on): Add extensions, so that
71306         mkstemp is visible on some platforms.
71307         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
71308         (Include): Change to "mkstemp.h" from <stdlib.h>.
71309         (Files): Add mkstemp.h.
71310
71311         * lib/mkstemp.h: New file, since some standard headers
71312         #define mkstemp.
71313         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
71314         Include "mkstemp.h".
71315         Make the _LIBC code resemble glibc original more,
71316         e.g., use K&R style.
71317         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
71318         (mkstemp): Remove, since mkstemp.h does this for us.
71319         * lib/stdlib--.h: Include mkstemp.h.
71320
71321         Import this patch from libc:
71322
71323         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
71324
71325         * lib/tempname.c (__gen_tempname): Change attempts_min
71326         into a macro.  Use preprocessor to decide how to initialize
71327         attempts [Coverity CID 67].
71328
71329 2006-09-20  Bruno Haible  <bruno@clisp.org>
71330
71331         * lib/mkdtemp.c: Import from libc.
71332         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
71333                 * sysdeps/posix/tempname.c (__gen_tempname): Change
71334                 attempts_min into a macro.  Use preprocessor to decide how to
71335                 initialize attempts [Coverity CID 67].
71336         2001-11-27  Paul Eggert  <eggert@twinsun.com>
71337                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
71338                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
71339
71340 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71341
71342         * gnulib-tool (func_exit): New function, to allow to pass the
71343         exit status portably through the trap.  Use everywhere.
71344         (--help, --version): Signal a write error.
71345         (trap): catch SIGPIPE, for write errors.
71346         Exit at the end of the trap, with the correct exit status.
71347
71348 2006-09-19  Karl Berry  <karl@gnu.org>
71349
71350         * doc/gnulib.texi: note about the license texinfo files.
71351
71352 2006-09-19  Eric Blake  <ebb9@byu.net>
71353
71354         * gnulib-tool: Avoid space-tab.
71355
71356 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
71357
71358         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
71359         that prevented coreutils 6.1 from building.  Problem reported
71360         by Petter Reinholdtsen.
71361
71362 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
71363
71364         * gnulib-tool (avoidlist): Fix typo that broke options like
71365         --avoid=lock that are used by coreutils bootstrap.
71366
71367 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
71368
71369         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
71370         more systematically.
71371
71372 2006-09-18  Jim Meyering  <jim@meyering.net>
71373
71374         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
71375
71376 2006-09-18  Bruno Haible  <bruno@clisp.org>
71377
71378         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
71379
71380 2006-09-18  Bruno Haible  <bruno@clisp.org>
71381
71382         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
71383         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
71384         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
71385         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
71386         * m4/gettext.m4: Require autoconf >= 2.52.
71387         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
71388         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
71389         of gl_cv_header_inttypes_h.
71390
71391 2006-09-18  Bruno Haible  <bruno@clisp.org>
71392
71393         * lib/javaversion.c: Include configmake.h.
71394
71395 2006-09-18  Bruno Haible  <bruno@clisp.org>
71396
71397         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
71398         avoid that the while loops be executed in a subshell.
71399
71400 2006-09-18  Bruno Haible  <bruno@clisp.org>
71401
71402         * MODULES.html.sh (func_module): Break long lines.
71403         Suggested by Bruce Korb <bkorb@gnu.org>.
71404
71405 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71406
71407         Speed up by a factor of 1.12.
71408         * gnulib-tool (nl): New variable.
71409         (func_import): Rewrite include directive extraction to only read each
71410         directive once.
71411
71412 2006-09-17  Bruno Haible  <bruno@clisp.org>
71413
71414         * modules/javaversion (Makefile.am): Remove DEFS setting.
71415         (Depends-on): Add configmake, for PKGDATADIR definition.
71416
71417 2006-09-17  Bruno Haible  <bruno@clisp.org>
71418
71419         * gnulib-tool (func_create_testdir): Rewrite all files at once.
71420
71421 2006-09-17  Bruno Haible  <bruno@clisp.org>
71422
71423         * gnulib-tool (func_append): New function, stolen from libtool.m4.
71424         (func_modules_transitive_closure, func_modules_add_dummy,
71425         func_modules_to_filelist, func_import, func_create_testdir,
71426         func_create_megatestdir, ...): Use it wherever possible.
71427         Suggested by Ralf Wildenhues.
71428
71429 2006-09-16  Karl Berry  <karl@gnu.org>
71430
71431         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
71432         to avoid sectioning errors.
71433         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
71434         [ifinfo]: blank line after @center-ed titles.
71435         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
71436         Spell FSF address consistently with others.
71437         (These changes approved by rms.)
71438
71439 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71440
71441         Speed up by a factor of 1.61.
71442         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
71443         already checked module names again.
71444
71445 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71446
71447         Speed up by a factor of 1.13.
71448         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
71449         for new_files, and the input to func_add_or_update.
71450
71451 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71452
71453         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
71454         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
71455
71456 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
71457
71458         * modules/mkancesdirs (Depends-on): Add fcntl.
71459         * modules/savewd: New file.
71460         * MODULES.html.sh (File system functions): Add savewd.
71461
71462         * modules/configmake (Makefile.am): Add support for the
71463         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
71464
71465 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
71466
71467         * m4/savewd.m4: New file.
71468
71469 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
71470
71471         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
71472         (dirchownmod): New arg FD.  All callers changed.
71473         Use FD rather than opening the directory ourself, as opening is
71474         now the caller's responsibility.
71475         * lib/dirchownmod.h: Likewise.
71476         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
71477         hosts that require <sys/types.h> before <sys/stat.h>.  Include
71478         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
71479         (test_dir): Remove.
71480         (mkancesdirs): Return length of prefix of FILE that has already
71481         been made, or -2 if there is a child doing the work.  Redo
71482         algorithm so that it is O(N) rather than O(N**2).  Optimize away
71483         ".", and treat ".." specially since it might stray back into
71484         already-created areas.  Use a subprocess if necessary.  New arg
71485         WD; all users changed.  MAKE_DIR function should now return 1
71486         if it creates a directory that is not readable.  Return -2 if
71487         a child process is spun off.
71488         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
71489         Adjust signature to match code.
71490         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
71491         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
71492         all users changed.
71493         * lib/savewd.c, lib/savewd.h: New files.
71494
71495 2006-09-15  Jim Meyering  <jim@meyering.net>
71496
71497         * modules/rename-dest-slash: New module.
71498         * MODULES.html.sh (posix_compat): Add it here.
71499
71500         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
71501
71502 2006-09-15  Jim Meyering  <jim@meyering.net>
71503
71504         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
71505         file.
71506
71507         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
71508
71509 2006-09-15  Jim Meyering  <jim@meyering.net>
71510
71511         * lib/rename-dest-slash.c (has_trailing_slash): Use
71512         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
71513         (rpl_rename_dest_slash): Perform the cheaper trailing slash
71514         test before testing whether SRC is a directory.
71515         Suggestions from Bruno Haible.
71516
71517         Avoid a warning about an unused variable.
71518         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
71519         into the #ifdef block where it's used.
71520
71521         * lib/rename-dest-slash.c: New file.
71522
71523 2006-09-14  Bruno Haible  <bruno@clisp.org>
71524
71525         * lib/allocsa.c: Include <config.h> unconditionally.
71526         * lib/asnprintf.c: Likewise.
71527         * lib/asprintf.c: Likewise.
71528         * lib/c-strcasecmp.c: Likewise.
71529         * lib/c-strcasestr.c: Likewise.
71530         * lib/c-strncasecmp.c: Likewise.
71531         * lib/c-strstr.c: Likewise.
71532         * lib/classpath.c: Likewise.
71533         * lib/clean-temp.c: Likewise.
71534         * lib/concatpath.c: Likewise.
71535         * lib/copy-file.c: Likewise.
71536         * lib/csharpcomp.c: Likewise.
71537         * lib/csharpexec.c: Likewise.
71538         * lib/execute.c: Likewise.
71539         * lib/fatal-signal.c: Likewise.
71540         * lib/findprog.c: Likewise.
71541         * lib/fwriteerror.c: Likewise.
71542         * lib/gl_array_list.c: Likewise.
71543         * lib/gl_array_oset.c: Likewise.
71544         * lib/gl_avltree_list.c: Likewise.
71545         * lib/gl_avltree_oset.c: Likewise.
71546         * lib/gl_avltreehash_list.c: Likewise.
71547         * lib/gl_carray_list.c: Likewise.
71548         * lib/gl_linked_list.c: Likewise.
71549         * lib/gl_linkedhash_list.c: Likewise.
71550         * lib/gl_list.c: Likewise.
71551         * lib/gl_oset.c: Likewise.
71552         * lib/gl_rbtree_list.c: Likewise.
71553         * lib/gl_rbtree_oset.c: Likewise.
71554         * lib/gl_rbtreehash_list.c: Likewise.
71555         * lib/imaxabs.c: Likewise.
71556         * lib/imaxdiv.c: Likewise.
71557         * lib/javacomp.c: Likewise.
71558         * lib/javaexec.c: Likewise.
71559         * lib/javaversion.c: Likewise.
71560         * lib/linebreak.c: Likewise.
71561         * lib/localcharset.c: Likewise.
71562         * lib/lock.c: Likewise.
71563         * lib/mbchar.c: Likewise.
71564         * lib/mbswidth.c: Likewise.
71565         * lib/mkdtemp.c: Likewise.
71566         * lib/pipe.c: Likewise.
71567         * lib/printf-args.c: Likewise.
71568         * lib/printf-parse.c: Likewise.
71569         * lib/progname.c: Likewise.
71570         * lib/progreloc.c: Likewise.
71571         * lib/readlink.c: Likewise.
71572         * lib/sh-quote.c: Likewise.
71573         * lib/stpcpy.c: Likewise.
71574         * lib/stpncpy.c: Likewise.
71575         * lib/strcasecmp.c: Likewise.
71576         * lib/strcasestr.c: Likewise.
71577         * lib/strcspn.c: Likewise.
71578         * lib/striconv.c: Likewise.
71579         * lib/strncasecmp.c: Likewise.
71580         * lib/strnlen1.c: Likewise.
71581         * lib/strstr.c: Likewise.
71582         * lib/strtok_r.c: Likewise.
71583         * lib/tls.c: Likewise.
71584         * lib/tmpdir.c: Likewise.
71585         * lib/unicodeio.c: Likewise.
71586         * lib/unsetenv.c: Likewise.
71587         * lib/vasnprintf.c: Likewise.
71588         * lib/vasprintf.c: Likewise.
71589         * lib/wait-process.c: Likewise.
71590         * lib/xallocsa.c: Likewise.
71591         * lib/xsetenv.c: Likewise.
71592         * lib/xstriconv.c: Likewise.
71593
71594 2006-09-13  Simon Josefsson  <jas@extundo.com>
71595
71596         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
71597         that internally, suggested by Ralf Wildenhues
71598         <Ralf.Wildenhues@gmx.de>.
71599
71600 2006-09-13  Simon Josefsson  <jas@extundo.com>
71601
71602         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
71603         @LIBOBJS@.
71604         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
71605
71606 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
71607
71608         * lib/_fpending.c: Include <config.h> unconditionally, since we no
71609         longer worry about uses that don't define HAVE_CONFIG_H.
71610         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
71611         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
71612         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
71613         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
71614         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
71615         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
71616         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
71617         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
71618         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
71619         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
71620         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
71621         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
71622         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
71623         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
71624         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
71625         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
71626         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
71627         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
71628         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
71629         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
71630         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
71631         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
71632         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
71633         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
71634         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
71635         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
71636         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
71637         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
71638         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
71639         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
71640         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
71641         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
71642         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
71643         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
71644         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
71645         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
71646         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
71647         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
71648         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
71649         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
71650         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
71651         Likewise.
71652
71653 2006-09-13  Eric Blake  <ebb9@byu.net>
71654
71655         * lib/getopt.c: Fix typo in last commit.
71656
71657 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
71658
71659         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
71660         dgettext.
71661
71662 2006-09-12  Jim Meyering  <jim@meyering.net>
71663
71664         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
71665         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
71666         Reported by Nelson H. F. Beebe.
71667
71668 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
71669
71670         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
71671         program_invocation_name and program_invocation_short_name are
71672         initialized.
71673         * lib/argp-namefrob.h: Move declarations of program_invocation_name
71674         and program_invocation_short_name to argp.h, so they are visible
71675         to user programs.
71676         * lib/argp.h: Likewise
71677
71678 2006-09-10  Bruno Haible  <bruno@clisp.org>
71679
71680         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
71681         m4/inttypes_h.m4, m4/uintmax_t.m4.
71682
71683 2006-09-10  Bruno Haible  <bruno@clisp.org>
71684
71685         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
71686         gl_AC_TYPE_UINTMAX_T.
71687
71688 2006-09-10  Bruno Haible  <bruno@clisp.org>
71689
71690         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
71691
71692 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
71693
71694         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
71695         convention.  Text proposed by Bruno Haible.
71696         (struct argp_option): Document the use of N_() wrappers.
71697
71698         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
71699         '\v', and translate the two parts separately, instead of feeding
71700         the whole string to gettext.  This allows to exclude
71701         '\v' from the strings visible to the translator by writing doc
71702         strings as N_("..") "\v" N_("..").
71703
71704 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
71705
71706         * config/srclist.txt: Undo latest change; the bug was fixed.
71707
71708 2006-09-09  Bruno Haible  <bruno@clisp.org>
71709
71710         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
71711         assignments if building a library without libtool.
71712         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
71713         in func_emit_lib_Makefile_am.
71714         (func_import): When building a static library libfoo.a, arrange to
71715         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
71716         (func_create_testdir): Likewise.
71717         * modules/gc (configure.ac, Makefile.am): If building statically,
71718         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
71719         * modules/iconvme (configure.ac, Makefile.am): Likewise.
71720         * modules/striconv (configure.ac, Makefile.am): Likewise.
71721         Based on a suggestion by Ralf Wildenhues.
71722
71723 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
71724
71725         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
71726         Check for unistd.h too, since Autoconf doesn't assume POSIX.
71727         Also:
71728
71729         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
71730         Add year_2050_test to catch glibc bug 2821
71731         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
71732
71733         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
71734         Prefer #ifdef to #if.
71735
71736         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
71737         Return from 'main' instead of calling 'exit'.
71738
71739 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
71740
71741         * lib/mktime.c (guess_time_tm): Fix bug where mktime
71742         returned the maximum time_t value rather than (time_t) -1.
71743         Problem originally reported by William Bardwell
71744         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
71745
71746         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
71747         Moved to here ...
71748         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
71749         ... from here.
71750
71751 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
71752
71753         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
71754         2821 is fixed.
71755
71756 2006-09-08  Jim Meyering  <jim@meyering.net>
71757
71758         Don't make generated files read-only.  That would bother too many
71759         people.  However, do retain the ability to work when targets are
71760         read-only: remove the destination and temporary files before writing
71761         them (when generated via sed or echo), or by using the -f option for
71762         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
71763         * modules/alloca-opt, modules/argz, modules/arpa_inet:
71764         * modules/byteswap, modules/configmake, modules/fcntl:
71765         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
71766         * modules/localcharset, modules/netinet_in, modules/poll:
71767         * modules/stdbool, modules/stdint, modules/sys_select:
71768         * modules/sys_socket, modules/sys_stat, modules/sysexits:
71769
71770 2006-09-08  Jim Meyering  <jim@meyering.net>
71771
71772         Avoid new build failure on FreeBSD 6.0.
71773         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
71774         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
71775         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
71776
71777 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71778
71779         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
71780
71781 2006-09-07  Jim Meyering  <jim@meyering.net>
71782
71783         Fix global typo in last change: use chmod u-w, not chmod u-x.
71784         Spotted by Paul Eggert and Bruce Korb.
71785         * modules/alloca-opt, modules/argz, modules/arpa_inet:
71786         * modules/byteswap, modules/configmake, modules/fcntl:
71787         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
71788         * modules/localcharset, modules/netinet_in, modules/poll:
71789         * modules/stdbool, modules/stdint, modules/sys_select:
71790         * modules/sys_socket, modules/sys_stat, modules/sysexits:
71791
71792 2006-09-06  Jim Meyering  <jim@meyering.net>
71793
71794         Make generated files be read-only.
71795         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
71796         Ensure that each generated file is now read-only.
71797         * modules/argz: Likewise.
71798         * modules/arpa_inet: Likewise.
71799         * modules/byteswap: Likewise.
71800         * modules/configmake: Likewise.
71801         * modules/fcntl: Likewise.
71802         * modules/fnmatch: Likewise.
71803         * modules/getopt: Likewise.
71804         * modules/glob: Likewise.
71805         * modules/inttypes: Likewise.
71806         * modules/netinet_in: Likewise.
71807         * modules/poll: Likewise.
71808         * modules/stdbool: Likewise.
71809         * modules/stdint: Likewise.
71810         * modules/sys_select: Likewise.
71811         * modules/sys_socket: Likewise.
71812         * modules/sys_stat: Likewise.
71813         * modules/sysexits: Likewise.
71814         * modules/localcharset: Same as above, but continue using temporary
71815         file named "t-$@" (why different?) rather than the "$@-t" used
71816         everywhere else.
71817
71818         * modules/sysexits (Makefile.am): Replace literal occurrences
71819         of "sysexit.h" more readable, and more consistent, "$@".
71820
71821 2006-09-06  Bruno Haible  <bruno@clisp.org>
71822
71823         * modules/striconv: New file.
71824         * modules/xstriconv: New file.
71825         * MODULES.html.sh (Internationalization functions): Add striconv,
71826         xstriconv.
71827
71828 2006-09-06  Bruno Haible  <bruno@clisp.org>
71829
71830         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
71831         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
71832         not using libtool correctly.
71833
71834 2006-09-06  Bruno Haible  <bruno@clisp.org>
71835
71836         * lib/striconv.h: New file.
71837         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
71838         iconvstring.c.
71839         * lib/xstriconv.h: New file.
71840         * lib/xstriconv.c: New file.
71841
71842 2006-09-06  Bruno Haible  <bruno@clisp.org>
71843
71844         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
71845         lib_..._LDFLAGS.
71846
71847 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71848
71849         * lib/argz_.h: Sync from Libtool.
71850
71851         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
71852                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
71853
71854         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
71855
71856 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
71857
71858         * modules/trim: New file.
71859
71860 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
71861
71862         * lib/trim.h: New file.
71863         * lib/trim.c: New file.
71864
71865 2006-09-05  Bruno Haible  <bruno@clisp.org>
71866
71867         * MODULES.html.sh (String handling): Add trim.
71868
71869 2006-09-04  Karl Berry  <karl@gnu.org>
71870
71871         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
71872         until next release.
71873
71874 2006-09-03  Bruno Haible  <bruno@clisp.org>
71875
71876         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
71877         correctly.
71878
71879 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
71880
71881         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
71882         not gl_GETLOADAVG.  Omit unneeded semicolons.
71883         Problems reported by Ralf Wildenhues in
71884         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
71885         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
71886         at the end, which is the usual gnulib style.
71887
71888         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
71889         of doing all the work ourselves.
71890         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
71891         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
71892
71893 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
71894
71895         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
71896         Problem reported by Ralf Wildenhues in
71897         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
71898
71899         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
71900         HAVE_STRUCT_STATFS_F_FSTYPENAME.
71901
71902 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
71903
71904         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
71905         yesterday's patch by changing test -n to test -z.
71906
71907 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
71908
71909         * modules/getloadavg (Files): Add m4/getloadavg.m4.
71910         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
71911         the former is now obsolescent.
71912
71913         * modules/chdir-long (Depends-on): Add fcntl.
71914
71915 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
71916
71917         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
71918         obsolescent, and programs should use gnulib instead.
71919         * m4/getloadavg.m4: New file, with contents taken from Autoconf
71920         but with prefixes changed.
71921
71922 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
71923
71924         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
71925         or stdbool.h, because they might not exist while configuring.
71926
71927         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
71928         Don't include unistd.h or limits.h; not needed, since chdir-long.h
71929         does that for us.
71930         (O_DIRECTORY): Remove.
71931
71932 2006-08-31  Eric Blake  <ebb9@byu.net>
71933
71934         * gnulib-tool: Don't let emacs change spaces to TAB.
71935
71936 2006-08-31  Bruno Haible  <bruno@clisp.org>
71937
71938         * gnulib-tool: When calling func_import more than once, do it in a
71939         subshell.
71940         Reported by Eric Blake <ebb9@byu.net>.
71941
71942 2006-08-31  Bruno Haible  <bruno@clisp.org>
71943
71944         * gnulib-tool (nl): Remove variable.
71945         (sed_transform_lib_file): Use more robust test for config-h module.
71946         (func_import): Fix typo in 2006-08-25 patch.
71947
71948 2006-08-31  Bruno Haible  <bruno@clisp.org>
71949
71950         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
71951         specified, augment Makefile.am variables instead of assigning them.
71952
71953 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
71954
71955         Work around a bug in both the Linux and SunOS 64-bit kernels:
71956         nanosleep mishandles sleeps for longer than 2**31 seconds.
71957         Problem reported by Frank v Waveren in
71958         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
71959         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
71960         Check for nanosleep bug.
71961         (LIB_NANOSLEEP): Append clock_gettime library if needed.
71962
71963 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
71964
71965         Work around a bug in both the Linux and SunOS 64-bit kernels:
71966         nanosleep mishandles sleeps for longer than 2**31 seconds.
71967         Problem reported by Frank v Waveren in
71968         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
71969         * lib/nanosleep.c (BILLION): New constant.
71970         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
71971         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
71972         implementation.
71973
71974 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
71975
71976         * modules/nanosleep (Depends-on): Add gettime.
71977
71978 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
71979         and Simon Josefsson  <jas@extundo.com>
71980         and Oskar Liljeblad  <oskar@osk.mine.nu>
71981
71982         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
71983         * gnulib-tool (func_import): New license type 'unmodifiable license
71984         text'.
71985         * modules/fdl: Use it.  Longer description.
71986         * module/gpl, module/lgpl: New files.
71987
71988 2006-08-30  Jim Meyering  <jim@meyering.net>
71989
71990         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
71991         shadowing the parameter.
71992
71993 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71994
71995         Sync from Libtool:
71996
71997         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71998
71999         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
72000         sharing with gnulib.  Report by Eric Blake.
72001
72002 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
72003
72004         * modules/isapipe: New file.
72005         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
72006
72007 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
72008
72009         * modules/configmake (Makefile.am): Add a comment, and omit
72010         the CONFIGMAKE_ prefix from generated macro names.  Suggested
72011         by Bruno Haible.
72012
72013 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
72014
72015         * m4/isapipe.m4: New file.
72016
72017 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
72018
72019         * lib/isapipe.c, lib/isapipe.h: New files.
72020
72021 2006-08-29  Jim Meyering  <jim@meyering.net>
72022
72023         * modules/configmake (Makefile.am): Make configmake.h depend on
72024         Makefile.  Otherwise, a stale configmake.h could hang around.
72025
72026 2006-08-29  Eric Blake  <ebb9@byu.net>
72027
72028         * lib/error.c (error_at_line, print_errno_message): Match libc, after
72029         resolution of upstream bug 3044.
72030
72031 2006-08-29  Bruno Haible  <bruno@clisp.org>
72032
72033         * modules/localcharset (Depends-on): Add configmake.
72034         (Makefile.am): Remove setting of LIBDIR through DEFS.
72035
72036 2006-08-29  Bruno Haible  <bruno@clisp.org>
72037
72038         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
72039         defined.
72040
72041 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
72042
72043         * modules/fcntl: New file.
72044         * modules/chdir-safer (Depends-on): Add fcntl.
72045         * modules/fts: Likewise.
72046         * modules/mkdir-p: Likewise.
72047
72048         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
72049         This undoes the most recent change, since we're now addressing the
72050         problem in a different way.
72051
72052         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
72053         into output, since the output might be called Makefile.am even
72054         if $makefile_name is something different.
72055         (func_import): Use $makefile_am rather than
72056         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
72057         empty.
72058
72059         * modules/inttypes (Files): Add m4/inttypes-h.m4.
72060
72061 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
72062
72063         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
72064         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
72065         recent change to stdint.m4, since we're now addressing the problem in a
72066         different way.
72067
72068 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
72069
72070         * m4/fcntl_h.m4: New file.
72071
72072 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
72073
72074         * lib/fcntl_.h: New file.
72075         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
72076         the fcntl module.
72077         * lib/dirchownmod.c: Likewise.
72078         * lib/fts.c: Likewise.
72079
72080         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
72081         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
72082         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
72083         just before including <inttypes.h>, to avoid circular inclusion.
72084
72085 2006-08-28  Jim Meyering  <jim@meyering.net>
72086
72087         * doc/visibility.texi: Actually read and correct the grammar of the
72088         sentence affected by yesterday's change.
72089
72090 2006-08-28  Eric Blake  <ebb9@byu.net>
72091
72092         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
72093         needs wrapper.
72094
72095 2006-08-28  Eric Blake  <ebb9@byu.net>
72096
72097         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
72098
72099 2006-08-28  Eric Blake  <ebb9@byu.net>
72100
72101         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
72102
72103 2006-08-28  Bruno Haible  <bruno@clisp.org>
72104
72105         * modules/c-strstr: New file, from GNU gettext.
72106         * MODULES.html.sh (String handling): Add c-strstr.
72107
72108 2006-08-28  Bruno Haible  <bruno@clisp.org>
72109
72110         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
72111         macros.
72112         Reported by Eric Blake.
72113
72114 2006-08-28  Bruno Haible  <bruno@clisp.org>
72115
72116         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
72117         (VASNPRINTF): Return a string of length > INT_MAX without failing.
72118         * lib/vasprintf.c: Include errno.h, limits.h.
72119         (EOVERFLOW): New fallback definition.
72120         (vasprintf): Test here whether the string length is > INT_MAX.
72121         * lib/vsnprintf.c: Include errno.h, limits.h.
72122         (EOVERFLOW): New fallback definition.
72123         (vsnprintf): Fix bug when generated string was too long for the buffer.
72124         Test here whether the string length is > INT_MAX.
72125
72126 2006-08-28  Bruno Haible  <bruno@clisp.org>
72127
72128         * lib/inttypes_.h (SCNX*): Remove definitions.
72129         Reported by Eric Blake.
72130
72131 2006-08-28  Bruno Haible  <bruno@clisp.org>
72132
72133         * lib/c-strstr.h: New file, from GNU gettext.
72134         * lib/c-strstr.c: New file, from GNU gettext.
72135
72136 2006-08-28  Bruno Haible  <bruno@clisp.org>
72137
72138         * gnulib-tool: Reorder some statements.
72139
72140 2006-08-28  Bruno Haible  <bruno@clisp.org>
72141
72142         * gnulib-tool: New option --makefile-name.
72143         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
72144         $makefile_name.
72145         (func_import): Write $makefile_name to the cache file, and read it from
72146         there unless explicitly specified. Use $makefile_name as file name
72147         instead of Makefile.am. Adjust the recommendations accordingly.
72148
72149 2006-08-28  Bruno Haible  <bruno@clisp.org>
72150
72151         * gnulib-tool (func_verify_module): Check against misapplying patch.
72152
72153 2006-08-28  Bruno Haible  <bruno@clisp.org>
72154
72155         * gnulib-tool (func_relativize, func_relconcat): New functions.
72156         Give an error if --local-dir is given with --update.
72157         Remove trailing slashes from $local_gnulib_dir.
72158         (func_import): Store the relativized $local_gnulib_dir in
72159         gnulib-cache.m4, and read it from there if not specified explicitly.
72160
72161 2006-08-28  Bruno Haible  <bruno@clisp.org>
72162
72163         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
72164         is the current directory. Respect also $local_gnulib_dir.
72165
72166 2006-08-28  Bruno Haible  <bruno@clisp.org>
72167             Simon Josefsson  <jas@extundo.com>
72168
72169         BeOS portability.
72170         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
72171
72172 2006-08-27  Jim Meyering  <jim@meyering.net>
72173
72174         * doc/visibility.texi: Remove duplicate word: "pointer".
72175
72176 2006-08-26  Bruno Haible  <bruno@clisp.org>
72177
72178         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
72179         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
72180         (Makefile.am): Create inttypes.h from inttypes_.h.
72181         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
72182
72183         * modules/imaxabs: New file.
72184
72185         * modules/imaxdiv: New file.
72186
72187 2006-08-26  Bruno Haible  <bruno@clisp.org>
72188
72189         * m4/inttypes.m4: New file.
72190         * m4/_inttypes_h.m4: Remove file.
72191         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
72192         PRI_MACROS_BROKEN.
72193         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
72194
72195         * m4/imaxabs.m4: New file.
72196
72197         * m4/imaxdiv.m4: New file.
72198
72199 2006-08-26  Bruno Haible  <bruno@clisp.org>
72200
72201         * lib/inttypes_.h: New file.
72202         * lib/inttypes.h: Remove file.
72203         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
72204
72205         * lib/imaxabs.c: New file.
72206
72207         * lib/imaxdiv.c: New file.
72208
72209 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
72210
72211         New config-h module, so that "make" output needn't be cluttered
72212         by -DHAVE_CONFIG_H.
72213         * MODULES.html.sh (Support for building libraries and executables):
72214         Add config-h.
72215         * modules/config-h: New file.
72216         * gnulib-tool (nl, sed_transform_lib_file): New vars.
72217         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
72218         the config-h module is used.
72219
72220         New configmake module, so that "make" output needn't be cluttered
72221         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
72222         * MODULES.html.sh (Support for building libraries and executables):
72223         Add configmake.
72224         * modules/configmake: New file.
72225
72226 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
72227
72228         * m4/config-h.m4: New file.
72229
72230 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
72231
72232         * config/srclist.txt: Add elisp-comp.
72233
72234 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
72235
72236         * MODULES.html.sh (Support for building libraries and executables):
72237         Add elisp-comp.
72238         * build-aux/elisp-comp: New file.
72239         * modules/elisp-comp: New file.
72240
72241 2006-08-24  Bruno Haible  <bruno@clisp.org>
72242
72243         * gnulib-tool (func_create_testdir): Use non-default values of
72244         sourcebase and m4base.
72245
72246 2006-08-24  Bruno Haible  <bruno@clisp.org>
72247
72248         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
72249         HTML structure.
72250
72251 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
72252
72253         * modules/openat (Depends-on): Add lchown.
72254
72255 2006-08-23  Bruno Haible  <bruno@clisp.org>
72256
72257         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
72258         of gl_LOCK_EARLY instead of gl_LOCK.
72259
72260 2006-08-23  Bruno Haible  <bruno@clisp.org>
72261
72262         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
72263         on OSF/1 to no.
72264         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
72265
72266 2006-08-23  Bruno Haible  <bruno@clisp.org>
72267
72268         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
72269         as unusable.
72270
72271         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
72272         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
72273         (gl_LOCK): New macro.
72274
72275 2006-08-22  Simon Josefsson  <jas@extundo.com>
72276
72277         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
72278         to md5 module.
72279
72280 2006-08-22  Simon Josefsson  <jas@extundo.com>
72281
72282         * MODULES.html.sh: Add "Support for maintaining and release
72283         projects".
72284
72285         * build-aux/gnupload: New file, from coreutils.
72286
72287 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
72288
72289         Avoid the need for AC_LIBSOURCES in m4 macros.
72290         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
72291         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
72292         * modules/check-version (EXTRA_DIST): Add check-version.h.
72293         * modules/crc (EXTRA_DIST): Add crc.h.
72294         * modules/des (EXTRA_DIST): Add des.h.
72295         * modules/gc (EXTRA_DIST): Add gc.h.
72296         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
72297         * modules/getline (EXTRA_DIST): Add getline.h.
72298         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
72299         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
72300         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
72301         * modules/md2 (EXTRA_DIST): Add md2.h.
72302         * modules/md4 (EXTRA_DIST): Add md4.h.
72303         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
72304         * modules/read-file (EXTRA_DIST): Add read-file.h.
72305         * modules/readline (EXTRA_DIST): Add readline.h.
72306         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
72307         rijndael-api-fst.h.
72308
72309 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
72310
72311         * m4/rijndael.m4 (gl_ARCFOUR):
72312         * m4/arctwo.m4 (gl_ARCTWO):
72313         * m4/check-version.m4 (gl_CHECK_VERSION):
72314         * m4/crc.m4 (gl_CRC):
72315         * m4/des.m4 (gl_DES):
72316         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
72317         * m4/gc.m4 (gl_GC):
72318         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
72319         * m4/getline.m4 (gl_FUNC_GETLINE):
72320         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
72321         * m4/hmac-md5.m4 (gl_HMAC_MD5):
72322         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
72323         * m4/md2.m4 (gl_MD2):
72324         * m4/md4.m4 (gl_MD4):
72325         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
72326         * m4/read-file.m4 (gl_FUNC_READ_FILE):
72327         * m4/readline.m4 (gl_FUNC_READLINE):
72328         * m4/rijndael.m4 (gl_RIJNDAEL):
72329         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
72330         to get the necessary .h files and whatnot.
72331
72332 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
72333
72334         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
72335         gnulib rather than the other way around.
72336         * config/srclistvars.sh (COREUTILS): Remove.
72337
72338 2006-08-22  Jim Meyering  <jim@meyering.net>
72339
72340         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
72341
72342         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
72343
72344 2006-08-22  Eric Blake  <ebb9@byu.net>
72345
72346         * modules/regexprops-generic: New file.
72347         * MODULES.html.sh (Support for building documentation): List it.
72348
72349 2006-08-22  Eric Blake  <ebb9@byu.net>
72350
72351         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
72352         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
72353         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
72354         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
72355
72356 2006-08-22  Bruno Haible  <bruno@clisp.org>
72357
72358         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
72359         and lib_LTLIBRARIES like the other lib_* variables.
72360
72361 2006-08-22  Bruno Haible  <bruno@clisp.org>
72362
72363         * build-aux/x-to-1.in: New file, from GNU gettext.
72364
72365 2006-08-22  Bruno Haible  <bruno@clisp.org>
72366
72367         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
72368         <utmpx.h> exists.
72369
72370 2006-08-22  Bruno Haible  <bruno@clisp.org>
72371
72372         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
72373         <utmpx.h> exists.
72374
72375 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
72376
72377         BeOS portability.
72378         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
72379         exist.
72380         Problem reported by Bruno Haible.
72381
72382 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
72383
72384         Avoid the need for AC_LIBSOURCES in m4 macros.
72385         * modules/acl (EXTRA_DIST): Add acl.h.
72386         * modules/argmatch (Files): Add m4/argmatch.m4.
72387         (configure.ac): Add gl_ARGMATCH.
72388         (EXTRA_DIST): Renamed from lib_SOURCES, for
72389         consistency with the other modules.  Remove argmatch.c.
72390         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
72391         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
72392         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
72393         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
72394         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
72395         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
72396         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
72397         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
72398         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
72399         * modules/closeout (EXTRA_DIST): Add closeout.h.
72400         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
72401         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
72402         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
72403         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
72404         dirname.h; remove basename.c and stripslash.c.
72405         * modules/exclude (EXTRA_DIST): Add exclude.h.
72406         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
72407         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
72408         * modules/file-type (EXTRA_DIST): Add file-type.h.
72409         * modules/filemode (EXTRA_DIST): Add filemode.h.
72410         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
72411         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
72412         * modules/fpending (EXTRA_DIST): Add __fpending.h.
72413         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
72414         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
72415         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
72416         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
72417         * modules/getdate (EXTRA_DIST): Add getdate.c.
72418         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
72419         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
72420         * modules/getpass (EXTRA_DIST): Add getpass.h.
72421         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
72422         * modules/group-member (EXTRA_DIST): Add group-member.h.
72423         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
72424         * modules/hash (EXTRA_DIST): Add hash.h.
72425         * modules/human (EXTRA_DIST): Add human.h.
72426         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
72427         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
72428         * modules/lchown (EXTRA_DIST): Add lchown.h.
72429         * modules/long-options (EXTRA_DIST): Add long-options.h.
72430         * modules/lstat (EXTRA_DIST): Add lstat.h.
72431         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
72432         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
72433         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
72434         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
72435         * modules/memxor (EXTRA_DIST): Add memxor.h.
72436         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
72437         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
72438         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
72439         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
72440         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
72441         * modules/physmem (EXTRA_DIST): Add physmem.h.
72442         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
72443         * modules/posixver (EXTRA_DIST): Add posixver.h.
72444         * modules/quote (EXTRA_DIST): Add quote.h.
72445         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
72446         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
72447         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
72448         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
72449         regex_internal.h regexec.c.
72450         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
72451         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
72452         * modules/same (EXTRA_DIST): Add same.h.
72453         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
72454         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
72455         * modules/savedir (EXTRA_DIST): Add savedir.h.
72456         * modules/sha1 (EXTRA_DIST): Add sha1.h.
72457         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
72458         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
72459         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
72460         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
72461         * modules/strdup (EXTRA_DIST): Add strdup.h.
72462         * modules/strftime (EXTRA_DIST): Add strftime.h.
72463         * modules/strndup (EXTRA_DIST): Add strndup.h.
72464         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
72465         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
72466         * modules/time_r (EXTRA_DIST): Add time_r.h.
72467         * modules/timespec (EXTRA_DIST): Add timespec.h.
72468         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
72469         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
72470         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
72471         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
72472         * modules/userspec (EXTRA_DIST): Add userspec.h.
72473         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
72474         * modules/utimens (EXTRA_DIST): Add utimens.h.
72475         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
72476         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
72477         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
72478         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
72479         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
72480         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
72481         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
72482         * modules/yesno (EXTRA_DIST): Add yesno.h.
72483
72484 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
72485
72486         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
72487
72488         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
72489         * m4/dev-ino.m4, same-inode.m4: Remove.
72490
72491         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
72492         * m4/acl.m4 (AC_FUNC_ACL):
72493         * m4/backupfile.m4 (gl_BACKUPFILE):
72494         * m4/c-strtod.m4 (gl_C99_STRTOLD):
72495         * m4/canon-host.m4 (gl_CANON_HOST):
72496         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
72497         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
72498         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
72499         * m4/cloexec.m4 (gl_CLOEXEC):
72500         * m4/close-stream.m4 (gl_CLOSE_STREAM):
72501         * m4/closeout.m4 (gl_CLOSEOUT):
72502         * m4/dirfd.m4 (gl_FUNC_DIRFD):
72503         * m4/dirname.m4 (gl_DIRNAME):
72504         * m4/exclude.m4 (gl_EXCLUDE):
72505         * m4/exitfail.m4 (gl_EXITFAIL):
72506         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
72507         * m4/file-type.m4 (gl_FILE_TYPE):
72508         * m4/filemode.m4 (gl_FILEMODE):
72509         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
72510         * m4/fpending.m4 (gl_FUNC_FPENDING):
72511         * m4/fprintftime.m4 (gl_FPRINTFTIME):
72512         * m4/fts.m4 (gl_FUNC_FTS):
72513         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
72514         * m4/getdate.m4 (gl_GETDATE):
72515         * m4/gethrxtime.m4 (gl_GETHRXTIME):
72516         * m4/getpagesize.m4 (gl_GETPAGESIZE):
72517         * m4/getpass.m4 (gl_FUNC_GETPASS):
72518         * m4/gettime.m4 (gl_GETTIME):
72519         * m4/getugroups.m4 (gl_GETUGROUPS):
72520         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
72521         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
72522         * m4/hard-locale.m4 (gl_HARD_LOCALE):
72523         * m4/hash.m4 (gl_HASH):
72524         * m4/idcache.m4 (gl_IDCACHE):
72525         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
72526         * m4/lchown.m4 (gl_FUNC_LCHOWN):
72527         * m4/long-options.m4 (gl_LONG_OPTIONS):
72528         * m4/lstat.m4 (gl_FUNC_LSTAT):
72529         * m4/md5.m4 (gl_MD5):
72530         * m4/memcasecmp.m4 (gl_MEMCASECMP):
72531         * m4/memcoll.m4 (gl_MEMCOLL):
72532         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
72533         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
72534         * m4/memxor.m4 (gl_MEMXOR):
72535         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
72536         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
72537         * m4/modechange.m4 (gl_MODECHANGE):
72538         * m4/mountlist.m4 (gl_MOUNTLIST):
72539         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
72540         * m4/openat.m4 (gl_FUNC_OPENAT):
72541         * m4/pathmax.m4 (gl_PATHMAX):
72542         * m4/physmem.m4 (gl_PHYSMEM):
72543         * m4/posixtm.m4 (gl_POSIXTM):
72544         * m4/posixver.m4 (gl_POSIXVER):
72545         * m4/quote.m4 (gl_QUOTE):
72546         * m4/quotearg.m4 (gl_QUOTEARG):
72547         * m4/readtokens.m4 (gl_READTOKENS):
72548         * m4/readutmp.m4 (gl_READUTMP):
72549         * m4/regex.m4 (gl_REGEX):
72550         * m4/safe-read.m4 (gl_SAFE_READ):
72551         * m4/safe-write.m4 (gl_SAFE_WRITE):
72552         * m4/same.m4 (gl_SAME):
72553         * m4/save-cwd.m4 (gl_SAVE_CWD):
72554         * m4/savedir.m4 (gl_SAVEDIR):
72555         * m4/settime.m4 (gl_SETTIME):
72556         * m4/sha1.m4 (gl_SHA1):
72557         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
72558         * m4/stat-macros.m4 (gl_STAT_MACROS):
72559         * m4/stat-time.m4 (gl_STAT_TIME):
72560         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
72561         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
72562         * m4/strdup.m4 (gl_FUNC_STRDUP):
72563         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
72564         * m4/strndup.m4 (gl_FUNC_STRNDUP):
72565         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
72566         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
72567         * m4/time_r.m4 (gl_TIME_R):
72568         * m4/timespec.m4 (gl_TIMESPEC):
72569         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
72570         * m4/unlinkdir.m4 (gl_UNLINKDIR):
72571         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
72572         * m4/userspec.m4 (gl_USERSPEC):
72573         * m4/utimecmp.m4 (gl_UTIMECMP):
72574         * m4/utimens.m4 (gl_UTIMENS):
72575         * m4/xalloc.m4 (gl_XALLOC):
72576         * m4/xgetcwd.m4 (gl_XGETCWD):
72577         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
72578         * m4/xreadlink.m4 (gl_XREADLINK):
72579         * m4/xstrtod.m4 (gl_XSTRTOD):
72580         * m4/yesno.m4 (gl_YESNO):
72581         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
72582         to get the necessary .h files and whatnot.
72583
72584 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
72585             Bruno Haible  <bruno@clisp.org>
72586
72587         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
72588         /bin/sh understanding of '!' conditional negation.
72589
72590 2006-08-21  Jim Meyering  <jim@meyering.net>
72591
72592         * modules/openat (Depends-on): Really alphabetize.
72593
72594         * modules/acl (Depends-on): Add error and quote.
72595
72596         * check-module (find_included_lib_files): Add at-func.c to the
72597         ok-to-include-more-than-once white list.
72598
72599         * modules/openat (Depends-on): Add lstat.  Alphabetize.
72600
72601 2006-08-21  Bruno Haible  <bruno@clisp.org>
72602
72603         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
72604         Emit a pkgdata_DATA variable only if some snippets add contents to it.
72605         Reported by Martin Lambers <marlam@marlam.de>.
72606
72607 2006-08-21  Bruno Haible  <bruno@clisp.org>
72608
72609         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
72610         specify an installation location, don't emit a noinst_LIBRARIES or
72611         noinst_LTLIBRARIES assignment.
72612
72613 2006-08-21  Bruno Haible  <bruno@clisp.org>
72614
72615         BeOS portability.
72616         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
72617         BeOS has mbrtowc() but no <wctype.h>.
72618
72619 2006-08-21  Bruno Haible  <bruno@clisp.org>
72620
72621         BeOS portability.
72622         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
72623         exist.
72624
72625 2006-08-21  Bruno Haible  <bruno@clisp.org>
72626
72627         BeOS portability.
72628         * lib/mbchar.h: Include <wctype.h> only if it exists.
72629
72630 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
72631
72632         Remove files that are no longer needed by their respective modules.
72633         * m4/obstack.m4: Remove.
72634         * m4/strerror_r.m4: Remove.
72635         * m4/uint32_t.m4: Remove.
72636         * m4/uintptr_t.m4: Remove.
72637         * m4/ullong_max.m4: Remove.
72638         * m4/xstrtoimax.m4: Remove.
72639         * m4/xstrtoumax.m4: Remove.
72640
72641         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
72642         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
72643         dependencies now capture this.
72644
72645         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
72646         Do not use AC_LIBSOURCES, since gnulib modules now do this.
72647         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
72648         * m4/human.m4 (gl_HUMAN): Likewise.
72649         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
72650         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
72651
72652         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
72653
72654         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
72655         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
72656         stdint.
72657         * m4/human.m4 (gl_HUMAN): Likewise.
72658         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
72659         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
72660         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
72661         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
72662         * m4/xstrtol (gl_XSTRTOL): Likewise.
72663
72664         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
72665         AC_TYPE_LONG_LONG_INT.
72666         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
72667         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
72668         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
72669         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
72670
72671         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
72672         on stdbool.
72673
72674         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
72675         (gl_PREREQ_XSTRTOUL): Remove.
72676
72677         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
72678
72679         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
72680         mode.
72681
72682 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
72683
72684         Add and change modules to make it easier for coreutils to use
72685         gnulib-tool.
72686         * modules/backupfile (Files): Remove m4/d-ino.m4.
72687         (Depends-on): Add d-ino.
72688         * modules/cycle-check (Depends-on): Add stdint.
72689         (lib_SOURCES): Add cycle-check.h.
72690         * modules/d-ino: New module.
72691         * modules/d-type: New module.
72692         * modules/error (Files): Remove m4/strerror_r.m4.
72693         * modules/filemode (Files): Add m4/st_dm_mode.m4.
72694         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
72695         m4/inttypes_h.m4, m4/uintmax_t.m4.
72696         (Depends-on): Add stdint.
72697         (lib_SOURCES): Add fsusage.h.
72698         * modules/getcwd (Files): Remove d-ino.m4.
72699         (Depends-on): Add d-ino.
72700         * modules/getndelim2 (Depends-on): Add stdint.
72701         * modules/glob (Files): Remove m4/d-type.m4.
72702         (Depends-on): Add d-type.
72703         * modules/host-os: New module.
72704         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
72705         m4/inttypes_h.m4, m4/uintmax_t.m4.
72706         * Depends-on: Add stdint.
72707         (lib_SOURCES): Add human.h.
72708         * modules/inttostr (Files): Remove m4/intmax_t.m4,
72709         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
72710         m4/uintmax_t.m4, m4/ulonglong.m4.
72711         (Depends-on): Add stdint.
72712         (EXTRA_DIST): Add inttostr.h.
72713         * modules/lchmod: New module.
72714         * modules/link-follow: New module.
72715         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
72716         (Depends-on): Add lchmod.
72717         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
72718         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
72719         (Depends-on): Add stdint.
72720         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
72721         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
72722         (Depends-on): Add stdint.
72723         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
72724         * modules/perl: New module.
72725         * modules/regex (Depends-on): Add stdint.
72726         * modules/rmdir-errno: New module.
72727         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
72728         m4/intmax_t.m4.
72729         (Depends-on): Add stdint.
72730         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
72731         m4/uintmax_t.m4.
72732         (Depends-on): Add stdint.
72733         * modules/unlink-busy: New module.
72734         * modules/utimecmp (Depends-on): Add stdint.
72735         * modules/uptime: New module.
72736         * modules/winsz-ioctl: New module.
72737         * modules/winsz-termios: New module.
72738         * modules/xnanosleep (Depends-on): Add nanosleep.
72739         * modules/ullong_max: Remove.
72740         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
72741         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
72742         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
72743         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
72744         (Depends-on): Add inttypes.
72745         (lib_SOURCES): Add xstrtol.h.
72746         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
72747         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
72748         * MODULES.html.sh: Move 'assert' into the assert section.
72749         Move 'dummy' into the linking section.
72750         Remove ullong_max.
72751         Add section for compatibility checks for POSIX:2001 functions,
72752         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
72753         winsz-ioctl, and winsz-termios into it.
72754         Add lchmod.
72755         Add top-level Misc section and put host-os, perl, and uptime
72756         into it.
72757
72758 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
72759
72760         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
72761         now assume the stdint module.  Do not include inttypes.h.
72762         * lib/fsusage.h: Likewise.
72763         * lib/getndelim2.c: Likewise.
72764         * lib/human.h: Likewise.
72765         * lib/inttostr.h: Likewise.
72766         * lib/obstack.c: Likewise.
72767         * lib/regex_internal.h: Likewise.
72768         * lib/tempname.c: Likewise.
72769         * lib/utimecmp.c: Likewise.
72770         * lib/xstrtol.h: Likewise.
72771
72772         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
72773
72774         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
72775         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
72776         * lib/xtime.h: Likewise.
72777
72778 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
72779
72780         * modules/openat (Files): Add lib/fchmodat.c.
72781         Fixes problem reported by Jay Youngman.
72782
72783 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
72784
72785         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
72786         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
72787
72788 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
72789             Bruno Haible  <bruno@clisp.org>
72790
72791         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
72792         and is a script that invokes bison. Tighten the code. Add comments.
72793
72794 2006-08-18  Jim Meyering  <jim@meyering.net>
72795
72796         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
72797         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
72798         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
72799         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
72800
72801 2006-08-18  Bruno Haible  <bruno@clisp.org>
72802
72803         * modules/bison-i18n: New file.
72804         * MODULES.html.sh (Internationalization functions): Add it.
72805
72806 2006-08-18  Bruno Haible  <bruno@clisp.org>
72807
72808         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
72809         sys/statvfs.h. When getmntinfo was found, check its declaration and
72810         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
72811
72812 2006-08-18  Bruno Haible  <bruno@clisp.org>
72813
72814         * m4/bison-i18n.m4: New file, from bison.
72815
72816 2006-08-18  Bruno Haible  <bruno@clisp.org>
72817
72818         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
72819         (ME_DUMMY): Treat "kernfs" as a dummy.
72820         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
72821
72822 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
72823
72824         Update from coreutils.
72825
72826         2006-08-15  Jim Meyering  <jim@meyering.net>
72827
72828         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
72829
72830         2006-01-17  Jim Meyering  <jim@meyering.net>
72831
72832         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
72833
72834         2006-01-11  Jim Meyering  <jim@meyering.net>
72835
72836         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
72837         Check for the lchmod function.
72838
72839 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
72840
72841         Update from coreutils.
72842
72843         * lib/__fpending.h: Add copyright notice.
72844         * lib/fprintftime.h: Likewise.
72845         * lib/savedir.c: Use (C) in copyright notice.
72846         * lib/savedir.h: Likewise.
72847
72848         2006-08-15  Jim Meyering  <jim@meyering.net>
72849
72850         * lib/at-func.c: New file, with the logic of all emulated at-functions.
72851         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
72852         in support of the EXPECTED_ERRNO macro.
72853         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
72854         definitions.  Instead, define the appropriate symbols and include
72855         "at-func.c".
72856         * lib/mkdirat.c (mkdirat): Likewise.
72857         * lib/fchmodat.c (fchmodat): Likewise.
72858         (ENOSYS): Remove definition.
72859         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
72860         it.  Don't include "unistd--.h" -- it wasn't ever used.
72861
72862         2006-01-17  Jim Meyering  <jim@meyering.net>
72863
72864         Rewrite fts.c not to change the current working directory,
72865         by using openat, fstatat, fdopendir, etc..
72866
72867         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
72868         (HAVE_OPENAT_SUPPORT): Define.
72869         [_LIBC] (fchdir): Don't undef or define; no longer used.
72870         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
72871         Now, this `function' always succeeds, and consumes its file descriptor
72872         parameter -- so callers must not close such FDs.  Update callers.
72873         (diropen_fd, opendirat, cwd_advance_fd): New functions.
72874         (diropen): Add parameter, SP.  Adjust all callers.
72875         Implement using diropen_fd, rather than open.
72876         (fts_open): Initialize new member, fts_cwd_fd.
72877         Remove fts_rft-setting code.
72878         (fts_close): Close fts_cwd_fd, if necessary.
72879         (__opendir2): Define in terms of opendir or opendirat,
72880         depending on whether the FST_NOCHDIR flag is set.
72881         (fts_build): Since fts_safe_changedir consumes its FD, and since
72882         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
72883         and close the dup'd file descriptor upon failure.
72884         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
72885         (fts_safe_changedir): Tweak semantics to reflect that this function
72886         now calls cwd_advance_fd and hence consumes its FD argument.
72887         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
72888         [struct FTS] (fts_rft): Remove now-unused member.
72889         [struct FTS] (fts_cycle.state): Improve comment.
72890
72891         * lib/openat.c (openat_needs_fchdir): New function.
72892         * lib/openat.h (openat_needs_fchdir): Declare it.
72893
72894 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
72895
72896         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
72897         Problem and fix reported by Pádraig Brady in
72898         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
72899
72900 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
72901
72902         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
72903
72904 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
72905
72906         * lib/memcoll.c (memcoll): Optimize for the common case where the
72907         arguments are bytewise equal.
72908
72909 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
72910
72911         * doc/regexprops-generic.texi: Add a copyright notice.
72912
72913 2006-08-15  Bruno Haible  <bruno@clisp.org>
72914
72915         * modules/tmpdir (License): Change to LGPL.
72916
72917 2006-08-15  Bruno Haible  <bruno@clisp.org>
72918
72919         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
72920         module.
72921
72922 2006-08-14  Simon Josefsson  <jas@extundo.com>
72923
72924         * config/srclist.txt: Add gnupload.
72925
72926 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
72927
72928         Change copyright notice from LGPL 2 to GPL 2, since that's the
72929         standard form used in the gnulib repository.
72930         * tests/test-lock.c: Likewise.
72931         * tests/test-stdint.c: Likewise.
72932         * tests/test-tls.c: Likewise.
72933
72934         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
72935         prelude-manager.  User shorter URLs for GNU projects, without '?'.
72936         Add copyright notice.
72937
72938         * check-module: Add copyright notice.  Output a copyright
72939         notice if "--version" is specified.
72940         * modules/COPYING: New file.
72941         * tests/test-getaddrinfo.c: Add copyright notice.
72942         * tests/test-verify.c: Likewise.
72943
72944 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
72945
72946         Change copyright notice from LGPL 2 to GPL 2, since that's the
72947         standard form used in the gnulib repository.
72948         * lib/lock.c: LGPL -> GPL.
72949         * lib/lock.h: Likewise.
72950         * lib/strnlen1.c: Likewise.
72951         * lib/strnlen1.h: Likewise.
72952         * lib/tls.c: Likewise.
72953         * lib/tls.h: Likewise.
72954         * lib/tmpdir.c: Likewise.
72955
72956         * lib/TODO: Remove; this belongs only in coreutils.
72957
72958 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
72959
72960         Add copyright notices to long-enough files that lack them, since
72961         otherwise the files aren't clearly free.  Use the same notice that
72962         getdate.texi already uses.
72963         * doc/alloca-opt.texi: Add copyright notice.
72964         * doc/alloca.texi: Likewise.
72965         * doc/ctime.texi: Likewise.
72966         * doc/functions.texi: Likewise.
72967         * doc/gcd.texi: Likewise.
72968         * doc/gnulib-tool.texi: Likewise.
72969         * doc/inet_ntoa.texi: Likewise.
72970         * doc/visibility.texi: Likewise.
72971
72972         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
72973         * doc/quote.texi: Add copyright notice.
72974
72975         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
72976         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
72977         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
72978         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
72979         is now obsolete, and give a pointer to the Sun list.
72980         Add copyright notice.
72981
72982 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
72983
72984         * config/srclistvars.sh: Add copyright notice.
72985
72986 2006-08-14  Eric Blake  <ebb9@byu.net>
72987
72988         Import the following change from libc:
72989
72990         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
72991
72992         Upstream bug 2997.
72993         * lib/misc/error.c: Add space between program name and message if file
72994         name is missing.
72995
72996 2006-08-12  Karl Berry  <karl@gnu.org>
72997
72998         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
72999         remove, these originate in gnulib now.
73000
73001 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73002
73003         * doc/Makefile (standards.info standards.html standards.dvi):
73004         Also depend on make-stds.texi.
73005
73006 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
73007
73008         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
73009         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
73010
73011         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
73012         in wchar_t.  Problem reported by Eric Blake.
73013
73014         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
73015         LEN is smaller than SIZE.  Suggested by Bruno Haible.
73016         Also, help the compiler to keep LEN in a register.
73017
73018 2006-08-11  Eric Blake  <ebb9@byu.net>
73019
73020         * users.txt: Sort.  Add tar.
73021
73022 2006-08-11  Bruno Haible  <bruno@clisp.org>
73023
73024         * users.txt: New file.
73025
73026 2006-08-11  Bruno Haible  <bruno@clisp.org>
73027
73028         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
73029         before <wchar.h>. Needed for OSF/1 and BSD/OS.
73030
73031 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
73032
73033         * modules/snprintf (Depends-on): Remove minmax.
73034         (Maintainer): Add self and Bruno.
73035
73036 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
73037
73038         * lib/.cppi-disable: Add snprintf.h, socket_.h.
73039         * lib/snprintf.c: Include <errno.h> and <limits.h>.
73040         (EOVERFLOW): Define if the system does not.
73041         Do not include "minmax.h"; it wasn't used.
73042         (snprintf): Don't assume size_t promotes to an unsigned type.
73043         Fix bug when generated string was too long for the buffer: the
73044         buffer's contents are supposed to be the initial prefix of the
73045         output.  Don't assume vasnprintf returns EOVERFLOW if the size
73046         exceeds INT_MAX; do the check ourselves.
73047
73048         Import the following changes from libc:
73049
73050         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
73051
73052         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
73053         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
73054         set wc to the byte which couldn't be converted.
73055         (re_string_reconstruct): Don't clear valid_raw_len before calling
73056         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
73057         tip_context using re_string_context_at.
73058
73059         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
73060
73061         * lib/posix/regex.h: g++ still cannot handled [restrict].
73062
73063         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
73064
73065         * lib/posix/regex.h: Remove special handling for VMS.
73066
73067 2006-08-10  Jim Meyering  <jim@meyering.net>
73068
73069         * modules/same-inode: New module.
73070         * modules/dev-ino: New module.
73071         * modules/cycle-check: Depend on these modules, rather than simply
73072         including their .h files.
73073         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
73074         required via m4/cycle-check.m4.
73075         * modules/same: Depend on new same-inode module, rather than
73076         including same-inode.h.
73077         * modules/chdir-safer: New file.
73078
73079         * modules/chown (Depends-on): Add stat-macros.
73080
73081 2006-08-10  Jim Meyering  <jim@meyering.net>
73082
73083         * m4/cycle-check.m4: New file.
73084         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
73085         * m4/dev-ino.m4, m4/same-inode.m4: New files.
73086
73087 2006-08-10  Eric Blake  <ebb9@byu.net>
73088
73089         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
73090         in from original proposal.
73091
73092 2006-08-10  Eric Blake  <ebb9@byu.net>
73093         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
73094
73095         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
73096         namespace.
73097
73098 2006-08-10  Bruno Haible  <bruno@clisp.org>
73099
73100         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
73101         as well.
73102
73103 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
73104
73105         Sync from coreutils.
73106
73107         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
73108
73109         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
73110         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
73111
73112 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
73113
73114         * modules/restrict: Remove; no longer needed now that we assume
73115         Autoconf 2.59 or later.
73116         * MODULES.html.sh: Remove 'restrict'.
73117         * modules/argp (Depends-on): Remove 'restrict'.
73118         * modules/base64 (Depends-on): Likewise.
73119         * modules/gc (Depends-on): Likewise.
73120         * modules/getaddrinfo (Depends-on): Likewise.
73121         * modules/glob (Depends-on): Likewise.
73122         * modules/inet_ntop (Depends-on): Likewise.
73123         * modules/inet_pton (Depends-on): Likewise.
73124         * modules/memxor (Depends-on): Likewise.
73125         * modules/regex (Depends-on): Likewise.
73126         * modules/strtok_r (Depends-on): Likewise.
73127         * modules/time_r (Depends-on): Likewise.
73128
73129 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
73130
73131         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
73132         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
73133         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
73134         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
73135         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
73136         * m4/memxor.m4 (gl_MEMXOR): Likewise.
73137         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
73138         gl_C_RESTRICT replaced by AC_C_RESTRICT.
73139
73140         Merge from coreutils.
73141         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
73142         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
73143         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
73144         * m4/time_r.m4 (gl_TIME_R): Likewise.
73145
73146 2006-08-09  Karl Berry  <karl@gnu.org>
73147
73148         * config/srclist.txt: no more gettext-tools, per Bruno.
73149
73150 2006-08-08  Eric Blake  <ebb9@byu.net>
73151
73152         * modules/verror: New module.
73153         * MODULES.html.sh: Document it.
73154
73155 2006-08-08  Eric Blake  <ebb9@byu.net>
73156
73157         * lib/verror.h, lib/verror.c: New files.
73158
73159 2006-08-08  Eric Blake  <ebb9@byu.net>
73160
73161         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
73162         verror_at_line output complies with GNU Coding Standards even when
73163         file is NULL.
73164
73165 2006-08-07  Bruno Haible  <bruno@clisp.org>
73166
73167         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
73168         versions of AIX.
73169         Reported by Ralf Wildenhues.
73170
73171 2006-08-07  Bruno Haible  <bruno@clisp.org>
73172
73173         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
73174         in an AC_DEFUN. Needed so that the autoconf snippets can use
73175         AC_REQUIRE.
73176
73177 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73178
73179         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
73180         Initialize pkgdata_DATA.
73181         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
73182         overriding it.
73183
73184 2006-08-06  Eric Blake  <ebb9@byu.net>
73185
73186         * lib/error.h: Fold in some upstream changes from glibc.
73187         * lib/error.c: Likewise.
73188
73189 2006-08-04  Bruno Haible  <bruno@clisp.org>
73190
73191         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
73192         Make the mostlyclean-local rule depend on mostlyclean-generic.
73193         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
73194
73195 2006-07-31  Bruno Haible  <bruno@clisp.org>
73196
73197         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
73198         <stdlib.h>, <string.h>.
73199
73200 2006-07-30  Bruno Haible  <bruno@clisp.org>
73201
73202         * modules/readlink (License): Change to LGPL.
73203
73204 2006-07-30  Bruno Haible  <bruno@clisp.org>
73205
73206         * modules/javaversion (Makefile.am): Distribute javaversion.java and
73207         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
73208         set PKGDATADIR to point to it.
73209
73210 2006-07-30  Bruno Haible  <bruno@clisp.org>
73211
73212         * modules/csharpexec (configure.ac): Comment out macro invocation.
73213         * modules/javaexec (configure.ac): Likewise.
73214         * modules/javacomp-script (configure.ac): Likewise.
73215
73216         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
73217
73218 2006-07-30  Bruno Haible  <bruno@clisp.org>
73219
73220         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
73221         linked-list.
73222
73223 2006-07-30  Bruno Haible  <bruno@clisp.org>
73224
73225         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
73226
73227 2006-07-30  Bruno Haible  <bruno@clisp.org>
73228
73229         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
73230         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
73231         get removed.
73232
73233 2006-07-29  Bruno Haible  <bruno@clisp.org>
73234
73235         Make it possible for gnulib-tool to work with locally modified or
73236         augmented gnulib repositories.
73237         * gnulib-tool (func_usage): Document --local-dir option.
73238         (local_gnulib_dir): New variable.
73239         Handle --local-dir option.
73240         (func_lookup_file): New function.
73241         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
73242         (func_get_description, func_get_filelist, func_get_description,
73243         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
73244         func_get_automake_snippet, func_get_include_directive,
73245         func_get_license, func_get_maintainer): Use func_lookup_file.
73246         (func_import, func_create_testdir): Use func_lookup_file.
73247
73248 2006-07-29  Bruno Haible  <bruno@clisp.org>
73249
73250         * modules/setenv (Depends-on): Add unistd.
73251
73252 2006-07-29  Bruno Haible  <bruno@clisp.org>
73253
73254         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
73255
73256 2006-07-29  Bruno Haible  <bruno@clisp.org>
73257
73258         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
73259
73260 2006-07-29  Bruno Haible  <bruno@clisp.org>
73261
73262         * gnulib-tool (import, update): If there is no Makefile.am, look at
73263         aclocal.m4, instead of bailing out.
73264
73265 2006-07-29  Bruno Haible  <bruno@clisp.org>
73266
73267         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
73268         Categorize the options by when they are useful.
73269
73270 2006-07-29  Bruno Haible  <bruno@clisp.org>
73271
73272         * gnulib-tool (func_usage): Document option --no-libtool.
73273         Handle option --no-libtool.
73274         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
73275         for changed semantics of $libtool variable.
73276         (func_import): Likewise. If libtool is not used, show this through
73277         an option --no-libtool.
73278         (func_create_testdir): Update.
73279
73280 2006-07-29  Bruno Haible  <bruno@clisp.org>
73281
73282         * gnulib-tool (func_import): Extend error message about missing
73283         --doc-base.
73284
73285 2006-07-29  Bruno Haible  <bruno@clisp.org>
73286
73287         * gnulib-tool (func_import): Don't create the $docbase directory if
73288         there is no file to store there.
73289
73290 2006-07-29  Bruno Haible  <bruno@clisp.org>
73291
73292         * gnulib-tool (autoconf_minversion): If a --dir option is given and
73293         relevant, look for configure.ac there, not in the current directory.
73294         Also use a simple search for AC_PREREQ, not "autoconf --trace".
73295
73296 2006-07-29  Bruno Haible  <bruno@clisp.org>
73297
73298         * gnulib-tool (SORT): New variable.
73299         (func_usage): Undocument --assume-autoconf option.
73300         Remove --assume-autoconf option handling.
73301         (autoconf_minversion): Determine from the contents of configure.ac.
73302         (func_import): Remove autoconf_minversion handling.
73303         Suggested by Eric Blake.
73304
73305 2006-07-29  Bruno Haible  <bruno@clisp.org>
73306
73307         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
73308
73309 2006-07-29  Bruno Haible  <bruno@clisp.org>
73310
73311         * config/srclist.txt (*setenv.[ch]): Remove rules.
73312
73313 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
73314
73315         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
73316
73317 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
73318
73319         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
73320         arpa/inet.h.
73321
73322 2006-07-28  Simon Josefsson  <jas@extundo.com>
73323
73324         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
73325         * modules/inet_pton (Depends-on): Likewise.
73326
73327 2006-07-28  Simon Josefsson  <jas@extundo.com>
73328
73329         * m4/netinet_in_h.m4: New file.
73330
73331 2006-07-28  Simon Josefsson  <jas@extundo.com>
73332
73333         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
73334         #include's.
73335
73336 2006-07-28  Simon Josefsson  <jas@extundo.com>
73337
73338         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
73339         #include's.
73340
73341 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
73342
73343         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
73344         setgid on directories only if they set these bits.
73345         * lib/modechange.h: Remove obsolete comment about masks.
73346
73347 2006-07-28  Eric Blake  <ebb9@byu.net>
73348
73349         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
73350         macro expansion.
73351
73352 2006-07-28  Bruno Haible  <bruno@clisp.org>
73353
73354         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
73355
73356 2006-07-28  Bruno Haible  <bruno@clisp.org>
73357
73358         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
73359
73360 2006-07-28  Bruno Haible  <bruno@clisp.org>
73361
73362         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
73363         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
73364         Define fallbacks.
73365         Avoids link error on FreeBSD 4.x.
73366         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
73367
73368         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
73369         encoding.
73370         * lib/mbswidth.c (iswcntrl): Likewise.
73371
73372 2006-07-27  Bruno Haible  <bruno@clisp.org>
73373
73374         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
73375         test.
73376
73377 2006-07-27  Bruno Haible  <bruno@clisp.org>
73378
73379         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
73380         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
73381         defined.
73382
73383 2006-07-26  Eric Blake  <ebb9@byu.net>
73384
73385         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
73386
73387 2006-07-26  Eric Blake  <ebb9@byu.net>
73388
73389         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
73390         like mingw that lack mkstemp.
73391         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
73392         avoid compilation warning on mingw.
73393
73394 2006-07-26  Bruno Haible  <bruno@clisp.org>
73395
73396         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
73397         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
73398         INT_FAST*_MIN, INTPTR_MIN.
73399
73400 2006-07-25  Bruno Haible  <bruno@clisp.org>
73401
73402         * modules/version-etc (Depends-on): Add stdarg.
73403
73404 2006-07-25  Bruno Haible  <bruno@clisp.org>
73405
73406         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
73407         complex commands.
73408
73409 2006-07-25  Bruno Haible  <bruno@clisp.org>
73410
73411         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
73412         defined in <stdarg.h> or config.h.
73413
73414 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
73415
73416         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
73417         (gl_STDIO_SAFER): Remove.
73418
73419 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
73420
73421         * MODULES.html.sh (File stream based Input/Output):
73422         Add fopen-safer, tmpfile-safer; remove stdio-safer.
73423         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
73424         * modules/fopen-safer, modules/tmpfile-safer: New files.
73425         * modules/stdio-safer: Remove.
73426
73427 2006-07-24  Bruno Haible  <bruno@clisp.org>
73428
73429         * modules/tmpdir: New file.
73430         * MODULES.html.sh (File system functions): Add it.
73431
73432 2006-07-24  Bruno Haible  <bruno@clisp.org>
73433
73434         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
73435         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
73436
73437 2006-07-24  Bruno Haible  <bruno@clisp.org>
73438
73439         * modules/clean-temp: New file.
73440
73441 2006-07-24  Bruno Haible  <bruno@clisp.org>
73442
73443         * m4/tmpdir.m4: New file, from GNU gettext.
73444
73445 2006-07-24  Bruno Haible  <bruno@clisp.org>
73446
73447         * lib/tmpdir.h: New file, from GNU gettext.
73448         * lib/tmpdir.c: New file, from GNU gettext.
73449
73450 2006-07-24  Bruno Haible  <bruno@clisp.org>
73451
73452         * lib/clean-temp.h: New file, from GNU gettext.
73453         * lib/clean-temp.c: New file, from GNU gettext.
73454
73455 2006-07-23  Eric Blake  <ebb9@byu.net>
73456
73457         * modules/stdio-safer (Files): Add tmpfile-safer.c.
73458         (Depends-on): Add binary-io.
73459
73460 2006-07-23  Eric Blake  <ebb9@byu.net>
73461
73462         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
73463
73464 2006-07-23  Eric Blake  <ebb9@byu.net>
73465
73466         * lib/tmpfile-safer.c: New file.
73467         * lib/stdio-safer.h (fopen_safer): Add prototype.
73468         * lib/stdio--.h (tmpfile): Make safer.
73469
73470 2006-07-23  Bruno Haible  <bruno@clisp.org>
73471
73472         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
73473         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
73474         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
73475         gl_linked_remove_at): Use it.
73476
73477 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
73478         and Simon Josefsson <jas@extundo.com>
73479
73480         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
73481
73482         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
73483
73484 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
73485
73486         * modules/close-stream: New file.
73487         * modules/closeout (Description): Make it clear that it exits
73488         with a diagnostic on error.
73489         (Depends-on): Add close-stream.  Remove fpending, stdbool.
73490         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
73491
73492 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
73493
73494         * m4/close-stream.m4: New file.
73495
73496 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
73497
73498         * lib/close-stream.c, lib/close-stream.h: New files.
73499
73500 2006-07-22  Bruno Haible  <bruno@clisp.org>
73501
73502         Merge from GNU gettext 0.15.
73503
73504         2006-05-01  Bruno Haible  <bruno@clisp.org>
73505
73506                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
73507
73508         2006-07-22  Bruno Haible  <bruno@clisp.org>
73509
73510                 * modules/javaversion: New file.
73511                 * MODULES.html.sh (Java): Add javaversion.
73512
73513         2006-03-12  Bruno Haible  <bruno@clisp.org>
73514
73515                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
73516
73517         2005-12-04  Bruno Haible  <bruno@clisp.org>
73518
73519                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
73520                 (untested).
73521
73522         2006-06-21  Bruno Haible  <bruno@clisp.org>
73523
73524                 Avoid warnings from recent versions of mcs.
73525                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
73526                 -o, -L, -r any more. Use options documented since mcs-1.0
73527                 instead. Similarly for -g.
73528
73529         2005-12-04  Bruno Haible  <bruno@clisp.org>
73530
73531                 * build-aux/csharpcomp.sh.in: Suffix for resources is
73532                 .resources, not .resource.
73533
73534         2005-07-09  Bruno Haible  <bruno@clisp.org>
73535
73536                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
73537                 add a .dll suffix.
73538                 Reported by Mark Junker <mjscod@gmx.de>.
73539
73540         2006-07-22  Bruno Haible  <bruno@clisp.org>
73541
73542                 * modules/gettext: Upgrade to gettext-0.15.
73543                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
73544                 m4/visibility.m4.
73545                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
73546
73547 2006-07-22  Bruno Haible  <bruno@clisp.org>
73548
73549         Merge from GNU gettext 0.15.
73550
73551         2006-03-25  Bruno Haible  <bruno@clisp.org>
73552
73553                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
73554
73555         2006-07-21  Bruno Haible  <bruno@clisp.org>
73556
73557                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
73558                 "1.1".
73559
73560         2006-05-09  Bruno Haible  <bruno@clisp.org>
73561
73562                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
73563                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
73564                 for the conftestver execution.
73565
73566         2006-05-01  Bruno Haible  <bruno@clisp.org>
73567
73568                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
73569                 optional target-version argument. Verify that the compiler
73570                 groks source of the specified source-version, or add -source
73571                 option as necessary. Verify that the compiler produces
73572                 bytecode in the specified target-version, or add -target and
73573                 -source options as necessary. Make the result of the test
73574                 available as variable CONF_JAVAC. Also log error output in
73575                 config.log.
73576
73577         2006-03-11  Bruno Haible  <bruno@clisp.org>
73578
73579                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
73580
73581         2006-05-09  Bruno Haible  <bruno@clisp.org>
73582
73583                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
73584                 CLASSPATH_SEPARATOR to a semicolon.
73585
73586         2006-03-12  Bruno Haible  <bruno@clisp.org>
73587
73588                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
73589                 available as variable CONF_JAVA, for subsequent autoconf
73590                 tests. Also log error output in config.log.
73591
73592         2006-07-19  Bruno Haible  <bruno@clisp.org>
73593
73594                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
73595                 that getline works on glibc2 systems. Needed to avoid trouble
73596                 in relocatable.c.
73597                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
73598
73599         2005-12-04  Bruno Haible  <bruno@clisp.org>
73600
73601                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
73602                 launcher (untested).
73603
73604         2005-12-04  Bruno Haible  <bruno@clisp.org>
73605
73606                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
73607
73608         2006-07-22  Bruno Haible  <bruno@clisp.org>
73609
73610                 * gettext.m4: Update from GNU gettext-0.15.
73611                 * nls.m4: Likewise.
73612                 * po.m4: Likewise.
73613                 * inttypes-pri.m4: Likewise.
73614                 * inttypes-h.m4: Renamed from inttypes.m4.
73615                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
73616
73617 2006-07-22  Bruno Haible  <bruno@clisp.org>
73618
73619         Merge from GNU gettext 0.15.
73620
73621         2005-07-05  Bruno Haible  <bruno@clisp.org>
73622
73623                 * printf-args.c (printf_fetchargs): Work around broken
73624                 definition of wint_t on mingw.
73625
73626         2005-02-12  Bruno Haible  <bruno@clisp.org>
73627
73628                 * xallocsa.h: Add extern "C" for C++.
73629
73630         2006-05-17  Bruno Haible  <bruno@clisp.org>
73631
73632                 Cygwin portability.
73633                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
73634
73635         2006-04-30  Bruno Haible  <bruno@clisp.org>
73636
73637                 * progreloc.c: Include <mach-o/dyld.h> if available.
73638                 (find_executable): Use _NSGetExecutablePath when possible.
73639
73640         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
73641
73642                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
73643                 function.
73644
73645         2005-12-29  Bruno Haible  <bruno@clisp.org>
73646
73647                 * progreloc.c (set_program_name_and_installdir): Fix
73648                 compilation error.
73649
73650         2005-12-04  Bruno Haible  <bruno@clisp.org>
73651
73652                 Cygwin portability.
73653                 * progreloc.c: Include <windows.h> also on Cygwin.
73654                 (find_executable): Add support for Cygwin.
73655                 (set_program_name_and_installdir): Handle also platforms with
73656                 nonempty EXEEXT.
73657
73658         2006-07-11  Bruno Haible  <bruno@clisp.org>
73659
73660                 * javacomp.c: Fix a comment.
73661                 Reported by Jim Meyering.
73662
73663         2006-04-30  Bruno Haible  <bruno@clisp.org>
73664
73665                 * javacomp.h (compile_java_class): Add source_version,
73666                 target_version arguments.
73667                 * javacomp.c: Rewritten to choose only a compiler that
73668                 respects the specified source_version and target_version.
73669
73670         2006-06-27  Bruno Haible  <bruno@clisp.org>
73671
73672                 Assume correct S_ISDIR macro.
73673                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
73674
73675         2006-07-22  Bruno Haible  <bruno@clisp.org>
73676
73677                 * javaversion.h: New file, from GNU gettext.
73678                 * javaversion.c: New file, from GNU gettext.
73679                 * javaversion.java: New file, from GNU gettext.
73680                 * javaversion.class: New file, from GNU gettext.
73681
73682         2006-05-17  Bruno Haible  <bruno@clisp.org>
73683
73684                 Cygwin portability.
73685                 * javaexec.c (execute_java_class): Test for jview program
73686                 also on Cygwin.
73687
73688         2006-04-09  Bruno Haible  <bruno@clisp.org>
73689
73690                 * fatal-signal.c: Don't include string.h.
73691                 (at_fatal_signal): Use a copying loop instead of memcpy.
73692
73693         2005-12-04  Bruno Haible  <bruno@clisp.org>
73694
73695                 * csharpexec.c: Add support for 'clix' launcher (untested).
73696                 (execute_csharp_using_sscli): New function.
73697                 (execute_csharp_program): Call it.
73698
73699         2006-06-21  Bruno Haible  <bruno@clisp.org>
73700
73701                 Avoid warnings from recent versions of mcs.
73702                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
73703                 -o, -L, -r any more. Use options documented since mcs-1.0
73704                 instead. Similarly for -g.
73705
73706         2005-07-09  Bruno Haible  <bruno@clisp.org>
73707
73708                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
73709                 add a .dll suffix.
73710                 Reported by Mark Junker <mjscod@gmx.de>.
73711
73712         2006-06-17  Bruno Haible  <bruno@clisp.org>
73713
73714                 * config.charset: Update for NetBSD 3.0.
73715
73716         2006-05-17  Bruno Haible  <bruno@clisp.org>
73717
73718                 Cygwin portability.
73719                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
73720
73721         2006-05-16  Bruno Haible  <bruno@clisp.org>
73722
73723                 * localcharset.c [CYGWIN]: Include <windows.h>.
73724                 (get_charset_aliases): For Cygwin, return the same CPxxx
73725                 aliases list as under WIN32.
73726                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
73727                 the environment variables. Fall back to GetACP().
73728
73729         2006-04-05  Bruno Haible  <bruno@clisp.org>
73730
73731                 * config.charset: Update Juan Manuel Guerrero's address.
73732
73733         2005-02-12  Bruno Haible  <bruno@clisp.org>
73734
73735                 * allocsa.h: Add extern "C" for C++.
73736
73737         2005-02-10  Bruno Haible  <bruno@clisp.org>
73738
73739                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
73740                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
73741
73742         2006-07-22  Bruno Haible  <bruno@clisp.org>
73743
73744                 * gettext.h: Update to GNU gettext-0.15.
73745
73746 2006-07-22  Bruno Haible  <bruno@clisp.org>
73747
73748         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
73749         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
73750         lib-prefix.m4, longdouble.m4, ssize_t.m4.
73751
73752 2006-07-21  Eric Blake  <ebb9@byu.net>
73753
73754         * modules/stdlib-safer: New file.
73755         * MODULES.html.sh (File stream based Input/Output): Add
73756         stdlib-safer.
73757
73758 2006-07-21  Eric Blake  <ebb9@byu.net>
73759
73760         * lib/stdlib-safer.h: New file from coreutils, required by
73761         stdlib--.h.
73762
73763 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
73764
73765         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
73766
73767 2006-07-20  Bruno Haible  <bruno@clisp.org>
73768
73769         * gnulib-tool: Recognize new option --assume-autoconf.
73770         (autoconf_minversion): New variable.
73771         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
73772
73773 2006-07-20  Bruno Haible  <bruno@clisp.org>
73774
73775         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
73776
73777 2006-07-19  Derek R. Price  <derek@ximbiot.com>
73778
73779         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
73780         Reindent and repaginate.
73781
73782 2006-07-19  Derek Price  <derek@ximbiot.com>
73783
73784         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
73785         Correct grammar.
73786
73787 2006-07-17  Bruno Haible  <bruno@clisp.org>
73788
73789         * modules/list: New file.
73790         * modules/array-list: New file.
73791         * modules/carray-list, modules/carray-list-tests: New files.
73792         * modules/linked-list, modules/linked-list-tests: New files.
73793         * modules/avltree-list, modules/avltree-list-tests: New files.
73794         * modules/rbtree-list, modules/rbtree-list-tests: New files.
73795         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
73796         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
73797         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
73798         * modules/oset: New file.
73799         * modules/array-oset: New file.
73800         * modules/avltree-oset, modules/avltree-oset-tests: New files.
73801         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
73802         * tests/test-carray_list.c: New file.
73803         * tests/test-linked_list.c: New file.
73804         * tests/test-avltree_list.c: New file.
73805         * tests/test-rbtree_list.c: New file.
73806         * tests/test-linkedhash_list.c: New file.
73807         * tests/test-avltreehash_list.c: New file.
73808         * tests/test-rbtreehash_list.c: New file.
73809         * tests/test-avltree_oset.c: New file.
73810         * tests/test-rbtree_oset.c: New file.
73811         * MODULES.html.sh (Container data structures): New section.
73812
73813 2006-07-17  Bruno Haible  <bruno@clisp.org>
73814
73815         * m4/gl_list.m4: New file.
73816
73817 2006-07-17  Bruno Haible  <bruno@clisp.org>
73818
73819         * lib/gl_list.h: New file.
73820         * lib/gl_list.c: New file.
73821         * lib/gl_array_list.h: New file.
73822         * lib/gl_array_list.c: New file.
73823         * lib/gl_carray_list.h: New file.
73824         * lib/gl_carray_list.c: New file.
73825         * lib/gl_linked_list.h: New file.
73826         * lib/gl_linked_list.c: New file.
73827         * lib/gl_anylinked_list1.h: New file.
73828         * lib/gl_anylinked_list2.h: New file.
73829         * lib/gl_avltree_list.h: New file.
73830         * lib/gl_avltree_list.c: New file.
73831         * lib/gl_anyavltree_list1.h: New file.
73832         * lib/gl_anyavltree_list2.h: New file.
73833         * lib/gl_rbtree_list.h: New file.
73834         * lib/gl_rbtree_list.c: New file.
73835         * lib/gl_anyrbtree_list1.h: New file.
73836         * lib/gl_anyrbtree_list2.h: New file.
73837         * lib/gl_anytree_list1.h: New file.
73838         * lib/gl_anytree_list2.h: New file.
73839         * lib/gl_linkedhash_list.h: New file.
73840         * lib/gl_linkedhash_list.c: New file.
73841         * lib/gl_anyhash_list1.h: New file.
73842         * lib/gl_anyhash_list2.h: New file.
73843         * lib/gl_avltreehash_list.h: New file.
73844         * lib/gl_avltreehash_list.c: New file.
73845         * lib/gl_rbtreehash_list.h: New file.
73846         * lib/gl_rbtreehash_list.c: New file.
73847         * lib/gl_anytreehash_list1.h: New file.
73848         * lib/gl_anytreehash_list2.h: New file.
73849
73850         * lib/gl_oset.h: New file.
73851         * lib/gl_oset.c: New file.
73852         * lib/gl_array_oset.h: New file.
73853         * lib/gl_array_oset.c: New file.
73854         * lib/gl_avltree_oset.h: New file.
73855         * lib/gl_avltree_oset.c: New file.
73856         * lib/gl_rbtree_oset.h: New file.
73857         * lib/gl_rbtree_oset.c: New file.
73858         * lib/gl_anytree_oset.h: New file.
73859
73860 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
73861
73862         * m4/mkancesdirs.m4: New file.
73863         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
73864         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
73865         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
73866         it.
73867
73868 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
73869
73870         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
73871         * lib/mkancesdirs.h: New files.
73872         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
73873         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
73874         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
73875         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
73876         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
73877         callers changed.  Revamp internals significantly, by not
73878         attempting to create directories that are temporarily more
73879         permissive than the final results.  Do not attempt to use
73880         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
73881         This removes some race conditions, fixes some bugs, and simplifies
73882         things.  Use new dirchownmod function to do owner and mode changes.
73883         * lib/mkdir-p.h: Likewise.
73884         * lib/modechange.c (octal_to_mode): New function.
73885         (struct mode_change): New member mentioned.
73886         (make_node_op_equals): New arg mentioned.  All callers changed.
73887         (mode_compile): Keep track of which mode bits the user has explicitly
73888         mentioned.
73889         (mode_adjust): New arg DIR, so that we implement the X op correctly.
73890         New arg PMODE_BITS, to keep track of which mode bits the user
73891         mentioned; it treats S_ISUID and S_ISGID speciall.
73892         All callers changed.
73893         * lib/modechange.h: Likewise.
73894
73895 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
73896
73897         * MODULES.html.sh: Add mkancestors.
73898         * modules/mkancesdirs: New module.
73899         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
73900         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
73901         The chdir-safer and afs files are now orphans; I'll remove them
73902         unless someone speaks up.
73903         Add lib/dirchownmod.c, lib/dirchownmod.h.
73904         (Depends-on): Remove alloca, chown, save-cwd, dirname.
73905         Add lchown, mkancesdirs.
73906         (Maintainer): Add self.
73907
73908 2006-07-15  Karl Berry  <karl@gnu.org>
73909
73910         * gnulib-tool: help message wording/arrangement.
73911
73912 2006-07-14  Simon Josefsson  <jas@extundo.com>
73913
73914         * doc/gnulib.texi (Libtool and Windows): New section.
73915
73916 2006-07-12  Simon Josefsson  <jas@extundo.com>
73917
73918         * modules/gendocs (License): Fix license, approved by Karl.
73919
73920 2006-07-12  Eric Blake  <ebb9@byu.net>
73921
73922         * MODULES.html.sh: Add gendocs.
73923
73924 2006-07-11  Eric Blake  <ebb9@byu.net>
73925
73926         * modules/fdl: New module, to install doc/fdl.texi.
73927         * MODULES.html.sh: Add new section for documentation modules.
73928         * gnulib-tool: Avoid space-tab.
73929         (--doc-base): New option, to manage files from doc.
73930
73931 2006-07-11  Eric Blake  <ebb9@byu.net>
73932
73933         * m4/absolute-header.m4: Fix comments to match recent change.
73934
73935 2006-07-11  Eric Blake  <ebb9@byu.net>
73936
73937         * gnulib-tool: List --doc-base before --tests-base.
73938
73939 2006-07-11  Derek R. Price  <derek@ximbiot.com>
73940
73941         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
73942
73943 2006-07-11  Bruno Haible  <bruno@clisp.org>
73944
73945         * README: Mention where to put documentation.
73946
73947 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73948
73949         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
73950
73951 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
73952
73953         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
73954         to stdint.m4.
73955
73956 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
73957
73958         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
73959         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
73960         "no/such/file/stdint.h" when there is no such file, so that
73961         the resulting C code can be parsed by dodgy compilers.
73962         Problems reported by Bob Proulx.
73963
73964 2006-07-10  Derek R. Price  <derek@ximbiot.com>
73965
73966         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
73967         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
73968         macros into the GNU _D_EXACT_NAMLEN.
73969         * lib/savedir.c:  Likewise.
73970         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
73971
73972 2006-07-10  Derek R. Price  <derek@ximbiot.com>
73973         and Paul Eggert  <eggert@cs.ucla.edu>
73974
73975         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
73976         * m4/savedir.m4:
73977         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
73978         macros into the GNU _D_EXACT_NAMLEN.
73979
73980 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
73981
73982         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
73983         around the absolute name, to work around a problem with the HP-UX
73984         11.23 native C compiler, reported by Bob Proulx.
73985
73986 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
73987
73988         * doc/maintain.texi, make-stds.texi: Sync from
73989         <http://savannah.gnu.org/projects/gnustandards>.
73990
73991 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
73992
73993         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
73994
73995 2006-07-09  Jim Meyering  <jim@meyering.net>
73996
73997         * m4/glob.m4: Remove a doubled word in a comment.
73998
73999 2006-07-09  Jim Meyering  <jim@meyering.net>
74000
74001         * lib/argp-pv.c: Remove a doubled word in a comment.
74002         * lib/check-version.c (check_version): Likewise.
74003         * lib/javacomp.c (compile_java_class): Likewise.
74004
74005 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
74006
74007         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
74008         for the benefit of people using Autoconf 2.60.  If you want to
74009         support older Autoconf versions you can copy m4/onceonly_2_57.m4
74010         (or m4/onceonly.m4, if pre-2.57) manually.
74011
74012 2006-07-08  Jim Meyering  <jim@meyering.net>
74013
74014         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
74015         comment.
74016         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
74017         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
74018         comment.
74019
74020 2006-07-08  Jim Meyering  <jim@meyering.net>
74021
74022         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
74023
74024 2006-07-07  Simon Josefsson  <jas@extundo.com>
74025
74026         * tests/test-crc.c: Change expected crc value, the test vector
74027         were probably computed using the old broken crc.c?
74028
74029 2006-07-06  Simon Josefsson  <jas@extundo.com>
74030
74031         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
74032         now the canonical place for the M4 file).
74033
74034         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
74035         from the sys_socket dependency now.
74036
74037         * modules/inet_pton (Files): Ditto.
74038
74039         * modules/inet_ntop (Files): Ditto.
74040
74041 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
74042
74043         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
74044         not gl_PREREQ_GETUSERSHELL.
74045
74046 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74047
74048         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
74049         with only one argument, for Autoconf 2.60.
74050         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
74051         expand to nothing, so add a shell command to avoid syntax error.
74052         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
74053
74054 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74055
74056         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
74057
74058 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
74059
74060         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
74061         no longer needed.  Check for isblank decl.
74062         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
74063         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
74064         of existence.
74065
74066 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
74067
74068         * lib/getloadavg.c: Use __VMS, not VMS.
74069         * lib/getopt.c: Likewise.
74070         * lib/getpagesize.h: Likewise.
74071         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
74072         and probably does not work.
74073
74074 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
74075
74076         * lib/.cppi-disable: Add wcwidth.
74077         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
74078         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
74079         (ISGRAPH): Remove.  All uses changed to isgraph.
74080         (FOLD) [!defined _LIBC]: Remove special case.
74081         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
74082         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
74083         HAVE_ISBLANK.
74084         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
74085         case.
74086
74087 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
74088
74089         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
74090         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
74091         brackets.  Other minor changes to suppress some compiler
74092         warnings.
74093
74094 2006-07-06  Derek R. Price  <derek@ximbiot.com>
74095         and Paul Eggert  <eggert@cs.ucla.edu>
74096
74097         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
74098         of invoking obsolescent AC_HEADER_DIRENT macro.
74099         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
74100         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
74101         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
74102         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
74103         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
74104         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
74105         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
74106         * m4/readdir.m4: Remove; no longer needed.
74107
74108 2006-07-06  Derek R. Price  <derek@ximbiot.com>
74109         and Paul Eggert  <eggert@cs.ucla.edu>
74110
74111         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
74112         Don't worry about this obsolete case any more.
74113         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
74114         directories.
74115         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
74116         worry about this obsolete case any more.
74117         * lib/fts.c: Likewise.
74118         * lib/getcwd.c: Likewise.
74119         * lib/glob.h: Likewise.
74120         * lib/savedir.c: Likewise.
74121
74122 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
74123
74124         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
74125         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
74126         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
74127         needed.
74128         All uses removed.
74129         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
74130         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
74131         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
74132         needed.
74133         * m4/getdate.m4 (gl_GETDATE): Likewise.
74134         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
74135         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
74136         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
74137         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
74138         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
74139         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
74140         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
74141         needed.
74142
74143 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
74144
74145         * lib/memcasecmp.c: Include <limits.h>.
74146         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
74147         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
74148         Don't assume isdigit succeeds only on '0' through '9'.
74149
74150 2006-07-05  Eric Blake  <ebb9@byu.net>
74151
74152         * modules/getaddrinfo (Depends-on): Add snprintf.
74153
74154 2006-07-05  Eric Blake  <ebb9@byu.net>
74155
74156         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
74157         to avoid 'header present but could not be compiled' on cygwin.
74158
74159 2006-07-05  Eric Blake  <ebb9@byu.net>
74160
74161         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
74162         missing from netdb.h.
74163         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
74164
74165 2006-07-05  Derek R. Price  <derek@ximbiot.com>
74166
74167         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
74168         no longer needed.
74169         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
74170         * m4/getdate.m4 (gl_GETDATE): Likewise.
74171         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
74172         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
74173         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
74174         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
74175         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
74176
74177 2006-07-05  Derek R. Price  <derek@ximbiot.com>
74178
74179         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
74180         All uses of is_space replaced by isspace.
74181         * lib/exit.h: Don't talk about STDC_HEADERS.
74182         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
74183         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
74184         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
74185         replaced by isprint etc.
74186         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
74187         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
74188         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
74189         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
74190         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
74191         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
74192
74193 2006-07-05  Bruno Haible  <bruno@clisp.org>
74194
74195         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
74196         the function exists, before testing against AIX.
74197         Reported by Martin Lambers <marlam@marlam.de>.
74198
74199 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
74200
74201         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
74202         From Mark D. Baushke.
74203
74204 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
74205
74206         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
74207         to the absolute name, not just one, to bypass Sun C 5.8's
74208         "warning: #include of /usr/include/... may be non-portable".
74209
74210 2006-07-04  Eric Blake  <ebb9@byu.net>
74211
74212         * modules/dirname-tests: New test module.
74213         * tests/test-dirname.c: New file, replacing dirname.c
74214         TEST_DIRNAME section that was recently deleted.
74215
74216 2006-07-04  Bruno Haible  <bruno@clisp.org>
74217
74218         Assume ANSI C header files and <ctype.h> functions.
74219         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
74220         (mbsnwidth): Use isprint, iscntrl instead.
74221
74222 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
74223
74224         Merge from coreutils.
74225         * MODULES.html.sh: Add xstrtold.
74226         * modules/xstrtold: New file.
74227         * modules/cycle-check (Files): Add lib/same-inode.h.
74228         * modules/dirname (Files): Add m4/double-slash-root.m4.
74229         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
74230         * modules/mkdir-p (Files): Add lib/same-inode.h.
74231         * modules/same (Files): Add lib/same-inode.h.
74232
74233 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
74234
74235         * m4/absolute-header.m4: Renamed from full-header-path.m4.
74236         This is to keep the terminology clean; POSIX talks about
74237         "absolute pathnames", not "full pathnames", but the GNU
74238         Coding Standards say to use "path" for something else;
74239         so use "absolute" to keep both sides happy.
74240         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
74241         Set gl_absolute_header, not gl_full_header_path.
74242         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
74243         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
74244         All uses changed.
74245
74246         Merge from coreutils.
74247
74248         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
74249
74250         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
74251         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
74252         want to require the building of c-strtod.o.
74253         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
74254         needs -lm directly.
74255         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
74256
74257         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
74258
74259         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
74260         --as-needed option if available.  Problem reported by Albert Chin in
74261         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
74262         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
74263         cc merely issues a bunch of annoying warnings for --as-needed
74264         (this problem was reported by Bob Proulx).  Also, try linking with
74265         -lm to detect a bug in binutils 2.16 (this problem was reported
74266         by Ralf Wildenhues).
74267
74268         2006-06-18  Jim Meyering  <jim@meyering.net>
74269
74270         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
74271         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
74272         macro.
74273         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
74274         also check for glibc-2.4's abort-inducing bug.
74275
74276         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
74277         Low-probability clean-up should be to use rmdir to get rid of
74278         the just-created directory, not unlink.
74279
74280         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
74281         configure fail, and request a bug report to inform us about it.
74282         Add a comment that, barring reports to the contrary, in 2007 we'll
74283         assume ftruncate is universally available.
74284
74285         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
74286
74287         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
74288
74289         2006-03-12  Jim Meyering  <jim@meyering.net>
74290
74291         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
74292         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
74293         * m4/same.m4 (gl_SAME): Likewise.
74294         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
74295
74296         2006-03-11  Eric Blake  <ebb9@byu.net>
74297
74298         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
74299         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
74300         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
74301         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
74302
74303 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
74304
74305         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
74306         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
74307         reported by Mark D. Baushke, one in
74308         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
74309
74310         Merge from coreutils.
74311
74312         * lib/.cppi-disable: Add stdint_.h.
74313         * lib/.cvsignore: Add stdint.h.
74314
74315         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
74316
74317         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
74318         both double and long double versions.
74319         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
74320         * lib/xstrtold.c: New file.
74321         * lib/xstrtod.h (xstrtold): New decl.
74322
74323         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
74324
74325         * lib/filemode.c (setst): Remove.
74326         (strmode): Rewrite to avoid setst.  This makes the code shorter,
74327         (arguably) clearer, and the generated code is a bit smaller on my
74328         Debian GNU/Linux stable x86 host.
74329
74330         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
74331
74332         * lib/filemode.c: Include "filemode.h" first, to test the interface.
74333         Assume that filemode.h includes sys/types.h and sys/stat.h.
74334         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
74335         (ftypelet): Reorder to put common cases first, for efficiency.
74336         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
74337         to do 'M'.
74338         (strmode): Renamed from mode_string, and now stores 12 bytes instead
74339         of 10, for compatibility with FreeBSD.  All callers changed.
74340         (filemodestring): Now stores 12 bytes instead of 10, and sets file
74341         types that can't be deduced solely from st_mode.  First arg is now a
74342         const pointer.
74343         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
74344         (strmode): Renamed from mode_string.
74345         (filemodestring): New decl.
74346         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
74347         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
74348         needed.
74349         (S_ISPORT, S_ISWHT): New macros, if not already defined.
74350
74351         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
74352
74353         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
74354         fsusage.h now does that.  Include fsusage.h first, to test interface.
74355         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
74356         at most one method (the old code could have generated decls that
74357         didn't conform to C89, not that this was ever exercised).
74358         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
74359
74360         2006-03-19  Jim Meyering  <jim@meyering.net>
74361
74362         Work even in a chroot where d_ino values for entries in "/"
74363         don't match the stat.st_ino values for the same names.
74364         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
74365         number, iterate through all entries again, using lstat instead.
74366         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
74367         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
74368
74369         * lib/getcwd.c (__getcwd): Clarify a comment.
74370         Use memcpy in place of a call to strcpy.
74371
74372         2006-03-12  Jim Meyering  <jim@meyering.net>
74373
74374         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
74375         matches that of the current directory (which we're about to chdir ".."
74376         out of), then save the dev-ino of the parent, instead.
74377
74378         * lib/same-inode.h (SAME_INODE): New file/macro.
74379         * lib/chdir-safer.c (SAME_INODE): Remove definition.
74380         Include "same-inode.h", instead.
74381         * lib/same.c: Likewise.
74382         * lib/cycle-check.h: Include "same-inode.h".
74383         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
74384         * lib/cycle-check.c (SAME_INODE): Remove definition.
74385         * lib/root-dev-ino.h: Include "same-inode.h".
74386
74387         2006-03-11  Eric Blake  <ebb9@byu.net>
74388
74389         * lib/same.c (same_name): s/base_name/last_component/
74390         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
74391         * lib/filenamecat.c (file_name_concat): Likewise.
74392
74393         2006-03-11  Eric Blake  <ebb9@byu.net>,
74394                     Paul Eggert  <eggert@cs.ucla.edu>
74395
74396         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
74397         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
74398         drive prefix.
74399         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
74400         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
74401         (last_component): New method.
74402         * lib/dirname.c (dir_len): Determine when drive letters need a
74403         subsequent slash.  Preserve // when it is special.
74404         (dir_name): Don't append dot when drive letter is absolute.
74405         [TEST_DIRNAME]: Move into a full-blown gnulib test.
74406         * lib/basename.c (base_name): New semantics - malloc the result.
74407         Preserve // when it is special.  Preserve relative files that look
74408         like drive letters.
74409         (base_len): Preserve // when it is special.
74410         (last_component): New method, similar to old base_name semantics.
74411         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
74412         base_name.  Strip redundant slashes from ///.
74413
74414 2006-07-03  Jim Meyering  <jim@meyering.net>
74415
74416         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
74417         macro is used before the first cycle_check call.
74418
74419 2006-07-03  Eric Blake  <ebb9@byu.net>
74420
74421         * modules/dirname (Depends-on): Add xstrndup.
74422
74423 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
74424
74425         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
74426         test cases, so that config.log is a bit easier to follow.
74427
74428 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
74429
74430         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
74431         both are 64 bits, since this seems to be the tradition, and this
74432         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
74433         we ever run into a host that prefers long long to long in this
74434         case, we'll need another configure-time test.  Problem reported by
74435         Jim Meyering.
74436
74437 2006-07-02  Eric Blake  <ebb9@byu.net>
74438
74439         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
74440
74441 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
74442
74443         * modules/inttypes (Depends-on): No longer depends on stdint.
74444         * modules/stdint (Description): Say more about assumptions.
74445         Say that the fast types might differ.  Say macros are used.
74446         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
74447         (Makefile.am): Revise list of substituted symbols to match
74448         new stdint.m4.
74449         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
74450         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
74451         * tests/test-stdint.c (verify_same_types)
74452         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
74453         the code conforms to C99/C89.
74454         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
74455         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
74456
74457 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
74458
74459         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
74460         but fix a bug, by requiring at least 64 bits.
74461         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
74462         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
74463         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
74464         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
74465
74466         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
74467         changes.  Make 2.59 a prerequisite.  Check and substitute for
74468         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
74469         inttypes.h.  Do not use special include files; just use the
74470         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
74471         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
74472         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
74473         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
74474         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
74475         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
74476         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
74477         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
74478         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
74479         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
74480         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
74481         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
74482         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
74483         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
74484         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
74485         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
74486         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
74487         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
74488         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
74489         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
74490         WINT_MAX.  Check for C99 conformance more strictly, by detecting
74491         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
74492         not check for things that C99 does not require, e.g., int8_t.  If
74493         a test isn't needed unless <stdint.h> isn't working, and is
74494         unlikely to be needed for any other reason, then don't do it
74495         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
74496         size_t, since we assume C89 freestanding at least.  Do not check
74497         for sig_atomic_t, wchar_t, or wint_t, since the code now does
74498         the right thing even if the types are not defined.  Instead use:
74499         (gl_STDINT_TYPE_PROPERTIES): New macro.
74500         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
74501         testing whether <sys/types.h> clashes, as Autoconf does this for
74502         us now.  All uses removed.
74503         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
74504         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
74505         (gl_CHECK_TYPE_SAME):
74506         Remove; no longer needed.
74507         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
74508         exists, since we'll return 0 anyway in that case.
74509         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
74510
74511 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
74512
74513         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
74514         possible collision with system files.
74515         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
74516         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
74517         WCHAR_MIN and WCHAR_MAX in this case.
74518         (<stddef.h>): Do not include; no longer needed.
74519         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
74520         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
74521         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
74522         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
74523         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
74524         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
74525         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
74526         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
74527         !defined(__c99))]: Include in this case too, since it's harmless
74528         now.
74529         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
74530         dangerous to do so.
74531         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
74532         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
74533         (_STDINT_MIN, _STDINT_MAX): New macros.
74534         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
74535         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
74536         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
74537         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
74538         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
74539         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
74540         macros, not typedefs; this simplifies things quite a bit.
74541         Use long int for all types narrower than int64_t.
74542         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
74543         Define in terms of long long int or int64_t or long int,
74544         not int64_t or int32_t.  This saves some compile-time testing.
74545         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
74546         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
74547         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
74548         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
74549         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
74550         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
74551         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
74552         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
74553         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
74554         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
74555         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
74556         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
74557         undef any previous version and define our own version, for
74558         simplicity and consistency with the new macros for types.
74559         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
74560         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
74561         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
74562         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
74563         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
74564         @WINT_T_SUFFIX@ to keep things simple here.
74565         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
74566         Simplify by assuming typical 8/16/32/64 host, since we're
74567         already doing that elsewhere anyway.
74568         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
74569         and assume long long int is 64 bits if available.  This
74570         speeds up 'configure'.
74571
74572 2006-07-01  Eric Blake  <ebb9@byu.net>
74573
74574         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
74575         Reported by Andreas Buening.
74576
74577 2006-07-01  Eric Blake  <ebb9@byu.net>
74578
74579         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
74580
74581 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
74582
74583         * lib/getaddrinfo.c: fixed typo
74584
74585 2006-06-29  Jim Meyering  <jim@meyering.net>
74586
74587         * modules/strftime (Maintainer): Add my name, since with the
74588         FPRINTFTIME changes strftime.c has forked from glibc.
74589
74590 2006-06-29  Eric Blake  <ebb9@byu.net>
74591
74592         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
74593
74594 2006-06-29  Eric Blake  <ebb9@byu.net>
74595
74596         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
74597
74598 2006-06-29  Eric Blake  <ebb9@byu.net>
74599
74600         * lib/stat_.h: New file.
74601
74602 2006-06-29  Eric Blake  <ebb9@byu.net>
74603
74604         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
74605         unused static function.
74606
74607 2006-06-29  Eric Blake  <ebb9@byu.net>
74608
74609         * doc/functions.texi (Function Portability): Document missing lstat
74610         on mingw.
74611
74612 2006-06-29  Eric Blake  <ebb9@byu.net>
74613
74614         * MODULES.html.sh: Add sys_stat.
74615         * modules/sys_stat: New module.
74616         * modules/mkstemp (Depends-on): Add sys_stat.
74617
74618 2006-06-29  Derek R. Price  <derek@ximbiot.com>
74619
74620         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
74621
74622 2006-06-29  Derek R. Price  <derek@ximbiot.com>
74623
74624         * m4/c-bs-a.m4: Removed.
74625
74626 2006-06-29  Derek R. Price  <derek@ximbiot.com>
74627
74628         * lib/strftime.c: Assume strftime() exists.
74629
74630 2006-06-29  Derek Price  <derek@ximbiot.com>
74631
74632         * modules/c-bs-a: Removed - \a is C89.
74633         * MODULES.html.sh: Remove c-bs-a.
74634
74635 2006-06-29  Bruno Haible  <bruno@clisp.org>
74636
74637         * modules/wcwidth (License): Change to LGPL.
74638
74639 2006-06-28  Simon Josefsson  <jas@extundo.com>
74640
74641         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
74642         on _WIN32.
74643
74644         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
74645         getnameinfo.
74646
74647 2006-06-28  Simon Josefsson  <jas@extundo.com>
74648
74649         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
74650
74651 2006-06-28  Simon Josefsson  <jas@extundo.com>
74652
74653         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
74654         functions there.  It will succeed on Windows XP, but on Windows
74655         2000 and (presumably) earlier, it will fail, and use the internal
74656         re-implementation.
74657         (use_win32_p): New function.
74658         (getaddrinfo): Use strtoul on servname, to support numeric ports.
74659         Support AI_NUMERICSERV to disable getservbyname.
74660         (getnameinfo): New function, only supports
74661         NI_NUMERICHOST|NI_NUMERICSERV for now.
74662
74663         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
74664         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
74665         getnameinfo.
74666
74667 2006-06-28  Eric Blake  <ebb9@byu.net>
74668
74669         * modules/wcwidth: New file.
74670         * modules/mbchar (Depends-on): Add wcwidth.
74671         * modules/mbswidth (Depends-on): Add wcwidth.
74672         * MODULES.html.sh: Add wcwidth.
74673
74674 2006-06-28  Eric Blake  <ebb9@byu.net>
74675
74676         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
74677         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
74678
74679 2006-06-28  Eric Blake  <ebb9@byu.net>
74680
74681         * lib/xvasprintf.h: Fix comments.
74682
74683 2006-06-28  Eric Blake  <ebb9@byu.net>
74684
74685         * lib/mbchar.h (wcwidth): Include wcwidth.h.
74686         * lib/mbswidth.c (wcwidth): Move from here...
74687         * lib/wcwidth.h: ...to this new file.
74688
74689 2006-06-28  Derek R. Price  <derek@ximbiot.com>
74690
74691         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
74692
74693         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
74694         it's obsolete.
74695         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
74696
74697 2006-06-28  Derek R. Price  <derek@ximbiot.com>
74698
74699         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
74700         Autoconf 2.60 says this stuff was obsolete.
74701
74702 2006-06-28  Bruno Haible  <bruno@clisp.org>
74703
74704         * modules/wcwidth (Files): Add m4/wchar_t.m4.
74705
74706 2006-06-28  Bruno Haible  <bruno@clisp.org>
74707
74708         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
74709         gt_TYPE_WCHAR_T.
74710
74711 2006-06-28  Bruno Haible  <bruno@clisp.org>
74712
74713         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
74714         declaration for wcwidth.
74715         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
74716
74717 2006-06-28  Bruno Haible  <bruno@clisp.org>
74718
74719         * lib/mkdtemp.c [MINGW]: Include <io.h>.
74720         (mkdir): Define using _mkdir.
74721
74722 2006-06-28  Bruno Haible  <bruno@clisp.org>
74723
74724         * lib/getaddrinfo.h: Fix POSIX URL.
74725         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
74726         _WIN32.
74727         (use_win32_p): Make static.
74728         (getaddrinfo): Reject service name if it is empty or does not consist
74729         solely of decimal digits, or if its value is > 65535.
74730         (getnameinfo): Remove useless casts.
74731
74732 2006-06-27  Simon Josefsson  <jas@extundo.com>
74733
74734         * modules/sys_select: New file, suggested by Bruno Haible, Paul
74735         Eggert and Martin Lambers.
74736
74737 2006-06-27  Simon Josefsson  <jas@extundo.com>
74738
74739         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
74740         Eggert and Martin Lambers.
74741
74742 2006-06-27  Bruno Haible  <bruno@clisp.org>
74743
74744         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
74745         result to 0, not to empty.
74746         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
74747
74748 2006-06-27  Bruno Haible  <bruno@clisp.org>
74749
74750         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
74751
74752 2006-06-26  Simon Josefsson  <jas@extundo.com>
74753
74754         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
74755         present.
74756
74757 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
74758
74759         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
74760         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
74761         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
74762
74763 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
74764
74765         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
74766
74767 2006-06-26  Bruno Haible  <bruno@clisp.org>
74768
74769         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
74770
74771 2006-06-26  Bruno Haible  <bruno@clisp.org>
74772
74773         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
74774
74775 2006-06-26  Bruno Haible  <bruno@clisp.org>
74776
74777         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
74778         SGI C compiler in pre-C99 mode.
74779         Suggested by Mark D. Baushke and Larry Jones.
74780
74781 2006-06-26  Bruno Haible  <bruno@clisp.org>
74782
74783         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
74784         WCHAR_MAX.
74785         Reported by Mark D. Baushke and Larry Jones.
74786
74787 2006-06-26  Bruno Haible  <bruno@clisp.org>
74788
74789         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
74790         in pre-C99 mode.
74791         Suggested by Mark D. Baushke and Larry Jones.
74792
74793 2006-06-23  Simon Josefsson  <jas@extundo.com>
74794             Bruno Haible  <bruno@clisp.org>
74795
74796         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
74797         Emit mostlyclean-local rule.
74798         (func_emit_tests_Makefile_am): Likewise.
74799         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
74800
74801 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
74802
74803         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
74804
74805 2006-06-23  Bruno Haible  <bruno@clisp.org>
74806
74807         * tests/test-stdint.c: Update to match ISO C 99 Technical
74808         Corrigendum 1.
74809
74810 2006-06-23  Bruno Haible  <bruno@clisp.org>
74811
74812         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
74813
74814 2006-06-23  Bruno Haible  <bruno@clisp.org>
74815
74816         * lib/stdint_.h: Treat IRIX like OpenBSD.
74817
74818 2006-06-23  Bruno Haible  <bruno@clisp.org>
74819
74820         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
74821         ISO C 99 Technical Corrigendum 1.
74822
74823 2006-06-22  Simon Josefsson  <jas@extundo.com>
74824
74825         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
74826         MinGW.
74827
74828 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
74829
74830         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
74831         needed.  Some compiler complained about some of them.  Problem reported
74832         by Larry Jones in
74833         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
74834
74835 2006-06-21  Simon Josefsson  <jas@extundo.com>
74836
74837         * tests/test-getaddrinfo.c: New file.
74838
74839         * modules/getaddrinfo-tests: New file.
74840
74841         * MODULES.html.sh: Add inet_pton.
74842
74843         * modules/inet_pton: New file.
74844
74845 2006-06-21  Simon Josefsson  <jas@extundo.com>
74846
74847         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
74848         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
74849         of using the (limited) gnulib implementation on Windows XP.
74850
74851         * m4/inet_pton.m4: New file.
74852
74853 2006-06-21  Simon Josefsson  <jas@extundo.com>
74854
74855         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
74856         variable.
74857
74858         * lib/socket_.h: Don't define WINVER.
74859
74860         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
74861         slightly modified to work in gnulib.
74862
74863 2006-06-21  Simon Josefsson  <jas@extundo.com>
74864
74865         * doc/gnulib.texi (Windows sockets): Add.
74866
74867 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
74868
74869         * lib/read-file.c (fread_file): Start with buffer allocation of
74870         0 bytes rather than 1 byte; this simplifies the code.
74871         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
74872         code to free buffer and save/restore errno.
74873         (internal_read_file): Remove unused local.
74874
74875 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
74876
74877         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
74878         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
74879         Problem reported by Denis Excoffier in
74880         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
74881
74882 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
74883
74884         * modules/sys_socket, modules/socklen: Include sys/types since
74885         FreeBSD 4.x's sys/socket.h needs it.
74886
74887 2006-06-19  Simon Josefsson  <jas@extundo.com>
74888
74889         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
74890
74891 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
74892
74893         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
74894
74895 2006-06-19  Bruno Haible  <bruno@clisp.org>
74896
74897         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
74898         and FULL_PATH_INTTYPES_H in angle brackets.
74899         Reported by Mark D. Baushke <mdb@gnu.org>.
74900
74901 2006-06-17  Eric Blake  <ebb9@byu.net>
74902
74903         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
74904         errno.
74905
74906 2006-06-17  Bruno Haible  <bruno@clisp.org>
74907
74908         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
74909         <sys/inttypes.h>.
74910
74911 2006-06-17  Bruno Haible  <bruno@clisp.org>
74912
74913         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
74914         whether errno is declared. Assume <errno.h> declares errno.
74915
74916 2006-06-17  Bruno Haible  <bruno@clisp.org>
74917
74918         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
74919
74920 2006-06-17  Bruno Haible  <bruno@clisp.org>
74921
74922         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
74923         problem on Solaris 2.5.1.
74924
74925 2006-06-16  Eric Blake  <ebb9@byu.net>
74926
74927         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
74928         * lib/unicodeio.c [!defined errno]: Likewise.
74929         * lib/strtol.c [!defined errno]: Likewise.
74930         * lib/strtod.c [!defined errno]: Likewise.
74931
74932 2006-06-15  Eric Blake  <ebb9@byu.net>
74933
74934         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
74935
74936 2006-06-15  Eric Blake  <ebb9@byu.net>
74937
74938         * config/srclist.txt (ssize_t.m4): Lose sync.
74939
74940 2006-06-15  Bruno Haible  <bruno@clisp.org>
74941
74942         * modules/stdint (Files): Include m4/full-header-path.m4,
74943         m4/size_max.m4, m4/wchar_t.m4.
74944         (Makefile.am): Many more substitutions.
74945         * modules/stdint-tests: New file.
74946         * tests/test-stdint.c: New file.
74947
74948 2006-06-15  Bruno Haible  <bruno@clisp.org>
74949
74950         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
74951         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
74952         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
74953         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
74954         gl_CHECK_TYPE_SAME): New macros.
74955
74956 2006-06-15  Bruno Haible  <bruno@clisp.org>
74957
74958         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
74959
74960 2006-06-15  Bruno Haible  <bruno@clisp.org>
74961
74962         * lib/stdint_.h: Rewritten to be fully auto-configured.
74963         Fixes bug on HP-UX/IA64.
74964
74965 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
74966
74967         * lib/getdate.y (__attribute__): Don't define if already defined.
74968         Problem reported by Larry Jones.
74969         * lib/utimens.c (__attribute__): Likewise.
74970
74971 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
74972
74973         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
74974         reported by Andreas Schwab.
74975
74976 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74977             Bruno Haible  <bruno@clisp.org>
74978
74979         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
74980         check for the declaration of strnlen and a run test that exposes the
74981         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
74982         rpl_strndup.
74983
74984 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74985             Bruno Haible  <bruno@clisp.org>
74986
74987         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
74988
74989 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74990
74991         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
74992         compile test, for Tru64 4.0D.
74993
74994 2006-05-28  Karl Berry  <karl@gnu.org>
74995
74996         * config/srclist.txt (printf-args.c): lose sync.
74997
74998 2006-05-26  Martin Lambers  <marlam@marlam.de>
74999
75000         * lib/getpass.c: Updates the test for the native W32 API, and adds
75001         missing includes, thus fixing compilation warnings.
75002
75003 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
75004
75005         * lib/exclude.c (exclude_fnmatch): New function.
75006         (excluded_file_name): Call exclude_fnmatch.
75007         * lib/exclude.h (excluded_file_name): New prototype
75008
75009 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
75010
75011         * lib/tempname.c (small_open, large_open): New macros.
75012         (__open, __open64) [!_LIBC]: Remove.
75013         (__gen_tempname): Use small_open and large_open instead of __open
75014         and __open64.  This fixes a portability bug on HP-UX 11.11i
75015         reported by Simon Wing-Tang in
75016         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
75017
75018 2006-05-24  Bruno Haible  <bruno@clisp.org>
75019
75020         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
75021         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
75022         Reported by Thorsten Maerz <torte@netztorte.de> via
75023         Aaron Stone <aaron@serendipity.cx>.
75024
75025 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
75026
75027         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
75028         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
75029         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
75030         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
75031         not really conditional on the cache.
75032         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
75033
75034 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
75035
75036         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
75037         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
75038         (my_usleep): Don't mishandle maximum value.
75039
75040 2006-05-19  Jim Meyering  <jim@meyering.net>
75041
75042         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
75043
75044 2006-05-17  Bruno Haible  <bruno@clisp.org>
75045
75046         Cygwin portability.
75047         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
75048
75049 2006-05-17  Bruno Haible  <bruno@clisp.org>
75050
75051         * lib/stdint_.h: Fix recognition of Cygwin.
75052
75053 2006-05-15  Bruno Haible  <bruno@clisp.org>
75054
75055         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
75056         on libtool patch by Ralf Wildenhues.
75057
75058 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
75059
75060         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
75061         test for C99 conformance; (bool) 0.5 is an integer constant
75062         expression, but (bool) -0.5 is not.  Problem reported by Fedor
75063         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
75064
75065 2006-05-11  Simon Josefsson  <jas@extundo.com>
75066
75067         * m4/xvasprintf.m4: Fix obvious typo.
75068
75069 2006-05-11  Jim Meyering  <jim@meyering.net>
75070
75071         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
75072         James Lemley.
75073
75074 2006-05-10  Simon Josefsson  <jas@extundo.com>
75075
75076         * lib/md4.c: Typo fix, update copyright years.
75077         (K1, K2): Don't use L because it turn computations into 64-bit on
75078         64-bit platforms.
75079
75080 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
75081
75082         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
75083         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
75084         unwanted sign propagation, e.g., on hosts with 64-bit int.
75085         There still are some problems with reeelly weird theoretical hosts
75086         (e.g., 33-bit int) but it's not worth worrying about now.
75087         * lib/sha1.c (rol): Likewise.
75088         (K1, K2, K3, K4): Remove unnecessary L suffix.
75089
75090 2006-05-10  Bruno Haible  <bruno@clisp.org>
75091
75092         * lib/des.c: Cast to avoid warnings.
75093
75094 2006-05-09  Bruno Haible  <bruno@clisp.org>
75095
75096         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
75097         (Depends-on): Depend also on xsize, stdarg.
75098         (configure.ac): Add gl_XVASPRINTF.
75099
75100 2006-05-09  Bruno Haible  <bruno@clisp.org>
75101
75102         * m4/xvasprintf.m4: New file.
75103
75104 2006-05-09  Bruno Haible  <bruno@clisp.org>
75105
75106         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
75107         (EOVERFLOW): Define fallback value.
75108         (xstrcat): New function.
75109         (xvasprintf): Recognize the special case of a string concatenation.
75110
75111 2006-05-08  Eric Blake  <ebb9@byu.net>
75112
75113         * gnulib-tool (func_version): Base copyright year on CVS date.
75114         (func_emit_copyright_notice): New function.
75115         (func_emit_lib_Makefile_am): Use it.
75116         (func_emit_tests_Makefile_am): Likewise.
75117         (func_import): Likewise.
75118
75119 2006-05-08  Bruno Haible  <bruno@clisp.org>
75120
75121         * modules/stdarg: New file.
75122         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
75123
75124 2006-05-08  Bruno Haible  <bruno@clisp.org>
75125
75126         * m4/stdarg.m4: New file, from GNU gettext.
75127
75128 2006-05-08  Bruno Haible  <bruno@clisp.org>
75129
75130         * config/srclist.txt (build-aux/config.rpath): different from latest
75131         release.
75132
75133 2006-05-08  Bruno Haible  <bruno@clisp.org>
75134
75135         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
75136
75137 2006-05-05  Jim Meyering  <jim@meyering.net>
75138
75139         * m4/warning.m4: New file, derived from bison's file by the same name.
75140
75141 2006-05-03  Bruno Haible  <bruno@clisp.org>
75142
75143         * lib/stdint_.h: Shorter URL.
75144         * lib/inttypes.h: Likewise.
75145
75146 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
75147
75148         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
75149
75150 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
75151
75152         * lib/verify.h: Document the internals better.  Most of this change
75153         was written by Bruno Haible.
75154
75155 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
75156
75157         * doc/verify.texi: New file, partly based on a proposal by
75158         Bruno Haible.
75159
75160 2006-05-02  Bruno Haible  <bruno@clisp.org>
75161
75162         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
75163         test from here...
75164         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
75165
75166 2006-04-29  Bruno Haible  <bruno@clisp.org>
75167
75168         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
75169         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
75170
75171 2006-04-29  Bruno Haible  <bruno@clisp.org>
75172
75173         * gnulib-tool: Make --update option actually work.
75174
75175 2006-04-29  Bruno Haible  <bruno@clisp.org>
75176
75177         * doc/gcd.texi: New file.
75178         * doc/gnulib.texi: Include it.
75179
75180 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
75181
75182         * lib/getdate.y (get_date): When adding relative date, start with the
75183         initial time, not with the result of the first mktime call.
75184
75185 2006-04-25  Bruno Haible  <bruno@clisp.org>
75186
75187         * gnulib-tool (func_import): Output the include directives in three
75188         blocks, sorted separately.
75189         Reported by Ben Pfaff <blp@cs.stanford.edu>.
75190
75191 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
75192
75193         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
75194         to define main with arguments, for C++.  Reported by Eric Blake.
75195         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
75196         Prefer 'int main ()' to 'int main (void)', for C++.
75197         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
75198         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
75199         for 'main', for C99 and C++.
75200
75201 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
75202
75203         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
75204         Don't assume that exit status -1 is valid.
75205         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
75206         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
75207         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
75208         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
75209         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
75210         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
75211         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
75212         functions can be used without declaring them, or that you can
75213         exit with status -1.
75214         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
75215
75216 2006-04-24  Karl Berry  <karl@gnu.org>
75217
75218         * config/srclist.txt (longdouble.m4): sync lost.
75219
75220 2006-04-24  Eric Blake  <ebb9@byu.net>
75221
75222         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
75223
75224 2006-04-24  Bruno Haible  <bruno@clisp.org>
75225
75226         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
75227         poll() implementation in AIX.
75228         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
75229
75230 2006-04-24  Bruno Haible  <bruno@clisp.org>
75231
75232         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
75233         assigned exactly once.
75234
75235 2006-04-23  Claudio Fontana  <claudio@gnu.org>
75236             Bruno Haible  <bruno@clisp.org>
75237
75238         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
75239         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
75240         for AM_CPPFLAGS.
75241
75242 2006-04-23  Bruno Haible  <bruno@clisp.org>
75243
75244         * modules/copy-file: Depend on unistd.
75245         * modules/execute: Likewise.
75246         * modules/fatal-signal: Likewise.
75247         * modules/findprog: Likewise.
75248         * modules/mkdtemp : Likewise.
75249         * modules/pipe: Likewise.
75250         * modules/wait-process: Likewise.
75251
75252 2006-04-23  Bruno Haible  <bruno@clisp.org>
75253
75254         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
75255         condition was already detected.
75256         Reported by Ben Pfaff <blp@cs.stanford.edu>.
75257
75258 2006-04-23  Bruno Haible  <bruno@clisp.org>
75259
75260         * lib/copy-file.c: Include <unistd.h> unconditionally.
75261         * lib/execute.c: Likewise.
75262         * lib/fatal-signal.c: Likewise.
75263         * lib/findprog.c: Likewise.
75264         * lib/mkdtemp.c: Likewise.
75265         * lib/pipe.h: Likewise.
75266         * lib/pipe.c: Likewise.
75267         * lib/wait-process.h: Likewise.
75268
75269 2006-04-23  Bruno Haible  <bruno@clisp.org>
75270
75271         * gnulib-tool (func_usage): Fix --import description. Document
75272         --update.
75273         (func_import): Create temporary file in a temporary directory, if
75274         --dry-run is specified. Silence errors from 'grep' when there are no
75275         m4 files in $m4dir.
75276         (func_create_testdir): Silence errors from 'grep' when there are no
75277         m4 files in $m4dir.
75278         Reported by Karl Berry <karl@freefriends.org>.
75279
75280 2006-04-20  Bruno Haible  <bruno@clisp.org>
75281
75282         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
75283         one argument, so that the code will be portable to Autoconf 2.60.
75284         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
75285         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
75286         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
75287
75288 2006-04-19  Derek Price  <derek@ximbiot.com>
75289             Eric Blake  <ebb9@byu.net>
75290
75291         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
75292         rather than "/full/path.h".  Update comment to match.  Shorten &
75293         generalize m4_translit call via AS_TR_CPP.
75294
75295 2006-04-19  Derek Price  <derek@ximbiot.com>
75296             Eric Blake  <ebb9@byu.net>
75297
75298         * lib/inttypes.h: Correct grammar in comment.
75299
75300 2006-04-18  Derek Price  <derek@ximbiot.com>
75301             Paul Eggert  <eggert@cs.ucla.edu>
75302
75303         * modules/inttypes: New file.
75304         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
75305
75306 2006-04-18  Derek Price  <derek@ximbiot.com>
75307             Paul Eggert  <eggert@cs.ucla.edu>
75308
75309         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
75310         New files.
75311
75312 2006-04-18  Derek Price  <derek@ximbiot.com>
75313             Paul Eggert  <eggert@cs.ucla.edu>
75314
75315         * lib/inttypes.h: New file.
75316         * lib/strtoimax.c: Assume <inttypes.h>.
75317
75318 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
75319
75320         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
75321         isn't mounted.  Problem reported by Kir Kolyshkin.
75322
75323 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
75324
75325         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
75326         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
75327         Derek R. Price.
75328         * lib/regex.h (RE_DUP_MAX): Update comment to match current
75329         implementation.
75330
75331 2006-04-12  Eric Blake  <ebb9@byu.net>
75332
75333         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
75334         is now done automatically by the corresponding Autoconf macro.
75335
75336 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
75337
75338         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
75339         time_r.h.
75340
75341 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
75342
75343         Merge regex changes from libc, removing some of our
75344         POSIX-conformance changes that were rejected and redoing them in a
75345         less-intrusive way.
75346
75347         * lib/regcomp.c (re_compile_internal, init_dfa):
75348         Length arg is now size_t, not Idx.  All uses changed.
75349         (peek_token): Forward decl now says internal_function.
75350         (__re_error_msgid, __re_error_msgid_idx):
75351         Now static rather than extern with attribute_hidden.
75352         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
75353         For some reason libc prefers K&R style defns for external functions.
75354         (regerror) [!defined _LIBC]: Likewise.
75355         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
75356         (seek_collating_symbol_entry, lookup_collation_sequence_value):
75357         (build_range_exp, build_collating_symbol):
75358         Use K&R-style defn.
75359         (re_compile_fastmap): Use '\0' to memset, not 0.
75360         (utf8_sb_map): Make the calculations more obvious.
75361         (init_dfa, parse_bracket_exp, build_charclass_op):
75362         Call calloc and cast result, as glibc does.
75363         (init_word_char, fetch_token, peek_token, peek_token_bracket):
75364         (build_range_exp, build_collating_symbol):
75365         Now internal functions.
75366
75367         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
75368
75369         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
75370         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
75371         Don't depend on VMS; depend on __VMS instead, for POSIX
75372         namespace cleanness.
75373         (regoff_t): Define to ssize_t, not long int.
75374
75375         Remove the REG_ macros named below.  Instead, make the old names
75376         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
75377         __USE_GNU_REGEX.
75378         (REG_BACKSLASH_ESCAPE_IN_LISTS):
75379         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
75380         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
75381         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
75382         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
75383         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
75384         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
75385         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
75386         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
75387         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
75388         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
75389         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
75390         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
75391         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
75392         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
75393         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
75394         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
75395         (REG_NREGS):
75396         Remove.  All uses replaced by the old RE_* names.
75397         (RE_BACKSLASH_ESCAPE_IN_LISTS):
75398         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
75399         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
75400         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
75401         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
75402         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
75403         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
75404         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
75405         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
75406         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
75407         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
75408         Don't bother having these macros be independent of each others'
75409         values, since they no longer exist in the POSIX name space.
75410
75411         Rename the following member names back to their old names,
75412         unless !__USE_GNU_REGEX.  All uses changed back.
75413         (buffer): Renamed from re_buffer.
75414         (allocated): Renamed from re_allocated.
75415         (used): Renamed from re_used.
75416         (syntax): Renamed from re_syntax.
75417         (fastmap): Renamed from re_fastmap.
75418         (translate): Renamed from re_translate.
75419         (can_be_null): Renamed from re_can_be_null.
75420         (regs_allocated): Renamed from re_regs_allocated.
75421         (fastmap_accurate): Renamed from re_fastmap_accurate.
75422         (no_sub): Renamed from re_no_sub.
75423         (not_bol): Renamed from re_not_bol.
75424         (not_eol): Renamed from re_not_eol.
75425         (newline_anchor): Renamed from re_newline_anchor.
75426         (num_regs): Renamed from rm_num_regs.
75427         (start): Renamed from rm_start.
75428         (end): Renamed from rm_end.
75429
75430         (free_state): Move up a bit.
75431
75432         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
75433         #define to be empty.
75434         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
75435         when that is what is intended.
75436         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
75437         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
75438         (MAX): New macro.
75439         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
75440         All uses changed back to re_malloc, etc.  It's now the caller's
75441         responsibility to check for overflow; all callers changed.
75442         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
75443         (re_x2nrealloc): Remove.
75444         (free_state): Remove decl.
75445
75446         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
75447         (re_set_registers, re_exec):
75448         Use K&R-style defn.
75449
75450         2006-01-31  Roland McGrath  <roland@redhat.com>
75451
75452         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
75453         Reported by Mike Frysinger <vapier@gentoo.org>.
75454
75455         2006-01-15  Andreas Jaeger  <aj@suse.de>
75456
75457         [BZ #1950]
75458         * lib/regex_internal.c (re_string_reconstruct): Adjust for
75459         build_wcs_upper_buffer change.
75460         (build_wcs_upper_buffer): Change return type.
75461
75462         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
75463
75464         * lib/regex_internal.h: Include <stdint.h> if available.
75465
75466         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
75467
75468         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
75469
75470         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
75471
75472         * lib/regcomp.c: Adjust for changed secondary hash function.
75473
75474         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
75475
75476         * lib/regex.h: Pretty printing.
75477         Clean up namespace a bit.
75478
75479         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
75480
75481         * lib/regexec.c (update_cur_sifted_state, check_arrival,
75482         check_arrival_add_next_nodes): Avoid using uninitialized variable.
75483
75484         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
75485                     Ulrich Drepper  <drepper@redhat.com>
75486
75487         [BZ #1302]
75488         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
75489         changed.
75490         (bitset_word_t): Renamed from bitset_word.  All uses changed.
75491
75492         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
75493
75494         [BZ #281]
75495         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
75496         * lib/regcomp.c: Remove unnecessary uses of
75497         unsigned RE_TRANSLATE_TYPE.
75498         * lib/regex_internal.h: Likewise.
75499         * lib/regex_internal.c: Likewise.
75500         * lib/regexec.c: Likewise.
75501         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
75502
75503         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
75504
75505         * lib/regexec.c (find_recover_state): Remove unnecessary
75506         initialization.
75507         (transit_state_bkref): Make DFA a const pointer.
75508         (get_subexp): Likewise.
75509         (check_arrival): Likewise.
75510         (update_cur_sifted_state): Likewise.
75511         (re_search_internal): Likewise.
75512         (prune_impossible_nodes): Likewise.
75513         (acquire_init_state_context): Likewise.
75514         (proceed_next_node): Likewise.
75515         (set_regs): Likewise.
75516         (free_fail_stack_return): Likewise.
75517         (check_arrival_expand_ecl): Mark DFA parameter as const.
75518         (check_arrival_expand_ecl_sub): Likewise.
75519         (check_subexp_limits): Likewise.
75520         (sub_epsilon_src_nodes):  Likewise.
75521         (add_epsilon_src_nodes):  Likewise.
75522         (merge_state_array): Likewise.
75523         (update_regs): Likewise.
75524         (build_trtable): Likewise.
75525         (sift_states_backward): Mark MCTX parameter as const.
75526         (build_sifted_states): Likewise.
75527         (update_cur_sifted_state): Likewise.
75528         (sift_states_mkref): Likewise.
75529         (check_arrival_expand_ecl): Mark eclosure as const.
75530         (check_dst_limits_calc_pos_1): Likewise.
75531         * lib/regex_internal.h (re_match_context_t): Make dfa a const
75532         pointer.
75533
75534         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
75535
75536         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
75537         (transit_state_sb): Likewise.
75538         (transit_state_mb): Likewise.
75539         (sift_states_iter_mb): Likewise.
75540         (check_arrival_add_next_nodes): Likewise.
75541         (check_node_accept_bytes): Change first parameter to pointer-to-const.
75542         [_LIBC] (re_search_2_stub): Use mempcpy.
75543
75544         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
75545         mbrtowc for very simple UTF-8 case.
75546
75547         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
75548         a pointer-to-const.
75549         (re_acquire_state_context): Likewise.
75550         * lib/regex_internal.h: Adjust prototypes.
75551
75552         * lib/regex.c: Prevent using C++ compilers.
75553
75554         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
75555         (re_acquire_state_context): Likewise.
75556
75557 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
75558
75559         * modules/regex (Depends-on): Add ssize_t.
75560
75561 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
75562
75563         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
75564         translation table.
75565
75566 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
75567
75568         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
75569
75570 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
75571             Bruno Haible  <bruno@clisp.org>
75572
75573         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
75574         <sys/types.h> and <inttypes.h>.
75575
75576 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75577
75578         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
75579         `__error_t_defined', so argp.h will not typedef the former.
75580
75581 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
75582
75583         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
75584         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
75585         glibc names.  Even if glibc is changed to conform to POSIX, the
75586         traditional names will be available anyway, since regex depends on
75587         the extensions module.  Also, fix a longstanding typo in the
75588         implementation of Spencer ERE test #75 from grep 2.3.  Problems
75589         reported by Emanuele Giaquinta.  Also, change sense of cached
75590         variable, so that the message makes sense.
75591
75592 2006-03-24  Simon Josefsson  <jas@extundo.com>
75593
75594         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
75595         including some doc fixes.
75596         (base64_encode_alloc): Fix +1 bug on allocation failures.
75597
75598 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75599
75600         * lib/base64.c (base64_encode): Do not read past end of array with
75601         unsanitized input on systems with CHAR_BIT > 8.
75602
75603 2006-03-24  Eric Blake  <ebb9@byu.net>
75604
75605         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
75606
75607 2006-03-22  Karl Berry  <karl@gnu.org>
75608
75609         * config/srclist.txt (*setenv.[ch]): get from coreutils.
75610         * config/srclistvars.sh (COREUTILS): new var.
75611
75612 2006-03-17  Jim Meyering  <jim@meyering.net>
75613
75614         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
75615         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
75616
75617 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
75618
75619         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
75620         no longer needs it.  Instead, check that regoff_t is as least
75621         as wide as ptrdiff_t.
75622
75623         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
75624         so that our regex.h stays compatible with the installed regex.
75625         This is helpful for installers who configure --without-included-regex.
75626         Problem reported by Emanuele Giaquinta.
75627
75628 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
75629
75630         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
75631         Typedef to long int, not to off_, as POSIX will likely change
75632         in that direction.
75633
75634 2006-03-15  Eric Blake  <ebb9@byu.net>
75635
75636         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
75637
75638 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
75639
75640         * lib/argp-help.c (validate_uparams): Fix typo
75641         * lib/argp-parse.c (argp_default_options): Consistently begin help
75642         messages with a lowercase letter.
75643
75644 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
75645
75646         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
75647         overrun buffers and shouldn't be used (much as gets shouldn't be
75648         used).
75649         * lib/time_r.c (asctime_r, ctime_r): Likewise.
75650
75651 2006-03-08  Simon Josefsson  <jas@extundo.com>
75652
75653         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
75654         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
75655
75656 2006-03-08  Simon Josefsson  <jas@extundo.com>
75657
75658         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
75659         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
75660
75661 2006-03-08  Simon Josefsson  <jas@extundo.com>
75662
75663         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
75664         signal that configure disabled the device.
75665
75666 2006-03-08  Simon Josefsson  <jas@extundo.com>
75667
75668         * build-aux/maint.mk: Fix refresh-po, to handle no translated
75669         languages.
75670
75671 2006-03-07  Simon Josefsson  <jas@extundo.com>
75672
75673         * modules/getopt (Depends-on): Add unistd.
75674
75675         * modules/unistd: New file.
75676
75677 2006-03-07  Simon Josefsson  <jas@extundo.com>
75678
75679         * modules/gc-random: New file.
75680
75681 2006-03-07  Simon Josefsson  <jas@extundo.com>
75682
75683         * m4/unistd_h.m4: New file.
75684
75685 2006-03-07  Simon Josefsson  <jas@extundo.com>
75686
75687         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
75688         test to be side-effect free by storing the result in the cache
75689         variable gl_cv_lib_readline, and moving the assignment of
75690         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
75691         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
75692
75693 2006-03-07  Simon Josefsson  <jas@extundo.com>
75694
75695         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
75696         error on missing devices (the functions will return an error).
75697
75698         * m4/gc.m4: Move random stuff to gc-random.m4
75699
75700 2006-03-07  Simon Josefsson  <jas@extundo.com>
75701
75702         * lib/unistd_.h: New file.
75703
75704 2006-03-07  Simon Josefsson  <jas@extundo.com>
75705
75706         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
75707
75708 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
75709
75710         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
75711         Problem reported by Juan Manuel Guerrero.
75712
75713 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
75714
75715         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
75716         the unistd module.
75717         * lib/getlogin_r.c: Likewise.
75718         * lib/getlogin_r.h: Likewise.
75719         * lib/glob.c: Likewise.
75720         * lib/pagealign_alloc.c: Likewise.
75721         * lib/unistd_.h: Remove; no longer needed.
75722
75723 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
75724
75725         * MODULES.html.sh (Support for systems lacking POSIX:2001):
75726         Add unistd.
75727         * modules/c-stack (Depends-on): Add unistd.
75728         * modules/getlogin_r: Likewise.
75729         * modules/glob: Likewise.
75730         * modules/pagealign_alloc: Likewise.
75731         * modules/unistd (Files): Remove lib/unistd_.h.
75732         (EXTRA_DIST): Remove.
75733         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
75734         need unistd_.h.
75735         (MOSTLYCLEANFILES): Remove unistd.h-t.
75736
75737 2006-03-03  Simon Josefsson  <jas@extundo.com>
75738
75739         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
75740
75741 2006-03-03  Simon Josefsson  <jas@extundo.com>
75742
75743         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
75744         libidn and bison.
75745
75746 2006-03-03  Simon Josefsson  <jas@extundo.com>
75747
75748         * build-aux/maint.mk: Add indent target.
75749
75750 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
75751
75752         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
75753         our replacement poll.h in any case, to avoid a differing
75754         declaration from a system header.  Seen on AIX.
75755
75756 2006-03-01  Simon Josefsson  <jas@extundo.com>
75757
75758         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
75759         <kasal@ucw.cz>.
75760
75761 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
75762
75763         * modules/gettime (Depends-on): Add extensions module.
75764         * modules/nanosleep (Depends-on): Likewise.
75765         * modules/settime (Depends-on): Likewise.
75766
75767 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
75768
75769         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
75770         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
75771         pedantically.
75772         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
75773         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
75774
75775         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
75776         not "==".  Reported by Ralf Wildenhues.
75777
75778 2006-03-01  Karl Berry  <karl@gnu.org>
75779
75780         * doc/Copyright/request-*: new files, synced from gnuorg.
75781
75782 2006-03-01  Karl Berry  <karl@gnu.org>
75783
75784         * config/srclist.txt (Copyright/*): new entries.
75785
75786 2006-02-28  Simon Josefsson  <jas@extundo.com>
75787
75788         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
75789
75790 2006-02-27  Simon Josefsson  <jas@extundo.com>
75791
75792         * lib/base64.h: Indent #define's.  From Jim Meyering
75793         <jim@meyering.net>.
75794
75795 2006-02-27  Jim Meyering  <jim@meyering.net>
75796
75797         Revert the change of 2006-02-24, so these files can continue
75798         to be sync'd from gettext.
75799         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
75800         of `config.h'.
75801
75802 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
75803
75804         * modules/intprops: New file.
75805         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
75806         Add intprops.
75807         * modules/getloadavg (Files): Remove lib/intprops.h.
75808         (Depends-on): Add intprops.
75809         * modules/human: Likewise.
75810         * modules/inttostr: Likewise.
75811         * modules/openat: Likewise.
75812         * modules/sig2str: Likewise.
75813         * modules/userspec: Likewise.
75814         * modules/utimecmp: Likewise.
75815         * modules/xnanosleep: Likewise.
75816         * modules/xstrtol: Likewise.
75817
75818 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
75819
75820         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
75821         * modules/lock-tests (TESTS): Use $(EXEEXT).
75822         * modules/tls-tests: Likewise.
75823         * modules/argp-tests: Likewise.
75824         (check_PROGRAMS): New var, replacing...
75825         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
75826
75827 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75828
75829         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
75830         `config.h'.
75831
75832 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
75833
75834         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
75835
75836 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75837
75838         Sync from coreutils.
75839         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
75840         gl_CHDIR_SAFER.
75841
75842 2006-02-22  Jim Meyering  <jim@meyering.net>
75843
75844         Sync from coreutils.
75845         * m4/chdir-safer.m4: New file.
75846
75847 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
75848
75849         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
75850         AT_FDCWD exceeds INT_MAX.
75851         * lib/openat.h (AT_FDCWD): Likewise.
75852
75853 2006-02-17  Eric Blake  <address@hidden>
75854
75855         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
75856
75857 2006-02-16  Simon Josefsson  <jas@extundo.com>
75858
75859         * modules/getaddrinfo (Depends-on): Add sys_socket.
75860
75861 2006-02-15  Simon Josefsson  <jas@extundo.com>
75862
75863         * build-aux/maint.mk: Add dsyntax-check rule.
75864
75865 2006-02-15  Eric Blake  <ebb9@byu.net>
75866
75867         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
75868         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
75869         'present but cannot compile' warnings on cygwin.
75870         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
75871         use ws2tcpip.h if sys/socket.h works.
75872         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
75873         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
75874
75875 2006-02-14  Simon Josefsson  <jas@extundo.com>
75876
75877         * modules/maintainer-makefile (Files): Rename.
75878
75879         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
75880         and (the local) Makefile.cfg to maint-cfg.mk.
75881
75882         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
75883         to the latter.
75884
75885         * modules/maintainer-makefile: New module.
75886
75887         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
75888         severaly stripped to make it possible to build it up from scratch
75889         with reliable tests.
75890
75891         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
75892         fixes to permit overriding the default actions when configure and
75893         makefile are not available.
75894
75895 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
75896
75897         Sync from coreutils.
75898         * modules/lstat (Depends-on): Don't depend on xalloc.
75899         (License): Change from GPL to LGPL, since this is now simply a
75900         replacement for a libc function.
75901
75902 2006-02-14  Jim Meyering  <jim@meyering.net>
75903
75904         Sync from coreutils.
75905
75906         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
75907         failure on deficient systems, and simplify gnulib lgpl dependencies.
75908         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
75909         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
75910
75911         * lib/xalloc-die.c: Remove unused definition of N_.
75912
75913 2006-02-14  Jim Meyering  <jim@meyering.net>
75914
75915         Sync from coreutils.
75916         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
75917         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
75918         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
75919         double-quote uses of that variable, to accommodate the rare case in
75920         which getmntent is available in none of the libraries checked.  This
75921         happens at least on FreeBSD 5.0.
75922
75923 2006-02-13  Simon Josefsson  <jas@extundo.com>
75924
75925         * gnulib-tool (Usage): Fix --import, from
75926         karl@freefriends.org (Karl Berry).
75927
75928 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
75929
75930         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
75931
75932 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
75933
75934         * lib/argp-namefrob.h: Restore changes accidentally lost during the
75935         "autoupdate" on 2005-12-12.
75936
75937 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
75938
75939         * modules/closeout (Depends-on): Remove atexit.
75940
75941 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
75942
75943         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
75944         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
75945
75946 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
75947
75948         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
75949         __EXTENSIONS__ if this causes compilation to fail.  Problem
75950         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
75951         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
75952
75953 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
75954
75955         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
75956         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
75957         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
75958         All uses changed.
75959
75960 2006-01-26  Simon Josefsson  <jas@extundo.com>
75961
75962         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
75963         prototype is visible on mingw32.
75964
75965         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
75966         for mingw32.
75967
75968         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
75969         mingw32).
75970
75971 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
75972
75973         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
75974         attempt to open for write; this always fails, at least on POSIX
75975         hosts.  This reinstates the 2006-01-09 change, which was
75976         inadvertently removed.
75977
75978 2006-01-26  Bruno Haible  <bruno@clisp.org>
75979
75980         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
75981         Reported by Paul Eggert.
75982
75983 2006-01-26  Bruno Haible  <bruno@clisp.org>
75984             Paul Eggert  <eggert@cs.ucla.edu>
75985
75986         * lib/stdbool_.h (_Bool)
75987         [(! (defined __cplusplus || defined __BEOS__)
75988           && !defined __GNUC__
75989           && !(defined __HP_cc || defined __xlc__
75990                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
75991                || defined __sgi))]:
75992         #define to signed char in these cases too; this simplifies
75993         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
75994         etc., separately) and makes it more conservative.
75995
75996 2006-01-25  Simon Josefsson  <jas@extundo.com>
75997
75998         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
75999         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
76000         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
76001
76002 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
76003
76004         * lib/argp-namefrob.h: Bugfix. Remove stray #
76005
76006 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
76007
76008         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
76009         so that we test the test.
76010         Check for yet another HP-UX cc bug involving *bool |= bool.
76011
76012 2006-01-25  Karl Berry  <karl@gnu.org>
76013
76014         * config/srclist.txt (vasnprintf.c): sync lost.
76015
76016 2006-01-25  Jim Meyering  <jim@meyering.net>
76017
76018         Sync from the stable (b5) branch of coreutils:
76019
76020         * lib/fts.c (fts_children): Don't let close() clobber errno from
76021         failed fchdir().
76022
76023         * lib/fts.c (fts_stat): When following a symlink-to-directory,
76024         don't necessarily interpret stat-fails+lstat-succeeds as indicating
76025         a dangling symlink.  That can also happen at least for ELOOP.
76026         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
76027         FYI, this bug predates the inclusion of fts.c in coreutils.
76028
76029         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
76030         in their own block, so pre-c99 compilers don't object.
76031
76032         Avoid the double-free (first in fts_read, second in fts_close) that
76033         would occur when an `active' directory is made inaccessible (e.g.,
76034         via chmod a-x) during a traversal.
76035         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
76036         before returning.  Reproduce this failure by
76037         mkdir -p a/b; cd a; chmod a-x . b
76038         Reported by Stavros Passas.
76039
76040 2006-01-25  Jim Meyering  <jim@meyering.net>
76041
76042         * lib/fileblocks.c: Remove more useless parentheses.
76043         * lib/readutmp.h: Likewise.
76044
76045 2006-01-25  Bruno Haible  <bruno@clisp.org>
76046
76047         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
76048         warnings.
76049         Reported by Paul Eggert.
76050
76051 2006-01-25  Bruno Haible  <bruno@clisp.org>
76052
76053         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
76054         rid of a trap command. For Solaris sh.
76055         Reported by Mark D. Baushke <mdb@gnu.org>.
76056
76057 2006-01-24  Simon Josefsson  <jas@extundo.com>
76058
76059         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
76060         Bruno.
76061
76062 2006-01-24  Karl Berry  <karl@gnu.org>
76063
76064         * config/srclist.txt (argp-namefrob.h): sync lost.
76065
76066 2006-01-24  Jim Meyering  <jim@meyering.net>
76067
76068         * modules/openat (Files): Add lib/intprops.h.
76069         From Mark D. Baushke.
76070
76071 2006-01-24  Jim Meyering  <jim@meyering.net>
76072
76073         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
76074         Reported by Mark D. Baushke.
76075
76076 2006-01-24  Jim Meyering  <jim@meyering.net>
76077
76078         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
76079
76080 2006-01-24  Bruno Haible  <bruno@clisp.org>
76081
76082         * modules/strnlen (Maintainer): Change from glibc to all.
76083
76084 2006-01-24  Bruno Haible  <bruno@clisp.org>
76085
76086         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
76087         Patch by Paul Eggert.
76088
76089 2006-01-24  Bruno Haible  <bruno@clisp.org>
76090
76091         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
76092         already has it.
76093         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
76094         2005-11-26.
76095
76096         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
76097         'signed char' to avoid problems with the built-in _Bool type.
76098         Reported by Paul Eggert on 2005-11-26.
76099
76100 2006-01-24  Bruno Haible  <bruno@clisp.org>
76101
76102         * gnulib-tool (func_import): Avoid constructing complicated sed
76103         expressions inside backquote.
76104         Report and solution by Mark D. Baushke <mdb@gnu.org>.
76105
76106 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
76107
76108         These changes imported from libc.
76109         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
76110         test and two separate function calls.
76111         * lib/strndup.c (__strndup): Add libc_hidden_def.
76112
76113 2006-01-23  Simon Josefsson  <jas@extundo.com>
76114
76115         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
76116         Remove the test_*_SOURCES variable: automake infers it by default.
76117         * modules/tls-tests: Likewise.
76118
76119 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
76120
76121         Work around porting bugs reported by Dieter in
76122         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
76123         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
76124         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
76125         Include "getopt.h" first, to check interface.
76126         (getenv): Declare only if defined HAVE_DECL_GETENV &&
76127         !HAVE_DECL_GETENV.
76128         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
76129         (__strndup): Revert to K&R-style function dfns, the glibc style.
76130         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
76131         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
76132         Include strnlen.h first, to get prototype properly.
76133         (strnlen): Renamed from __strnlen.
76134         Remove weak alias.
76135
76136 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
76137
76138         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
76139
76140 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
76141
76142         * config/srclist.txt: Adjust to reflect glibc reorganization.
76143         This affects only comments.
76144
76145 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
76146
76147          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
76148          Reported by Bruce Korb <bkorb@gnu.org>.
76149
76150 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
76151
76152         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
76153         to pacify gcc -Wswitch-default.
76154
76155 2006-01-22  Bruno Haible  <bruno@clisp.org>
76156
76157         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
76158         temporary buffer for sprintf, take into account the precision also
76159         for 'd', 'i', 'u', 'o', 'x', 'X'.
76160
76161 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
76162
76163         * modules/argp-tests: New module
76164         * tests/test-argp.c: New file
76165         * tests/test-argp-2.sh: New file
76166
76167 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
76168
76169         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
76170         (__argp_base_name): Removed
76171         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
76172         typo.
76173         (__argp_base_name): Provide macro definition or extern declaration
76174         depending on the configuration
76175
76176 2006-01-20  Simon Josefsson  <jas@extundo.com>
76177
76178         * modules/inet_ntop (Depends-on): Depend on sys_socket.
76179
76180 2006-01-20  Simon Josefsson  <jas@extundo.com>
76181
76182         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
76183
76184 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
76185
76186         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
76187         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
76188         Suggested by Bruno Haible.
76189
76190 2006-01-20  Karl Berry  <karl@gnu.org>
76191
76192         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
76193         until changes propagate, I guess.
76194
76195 2006-01-19  Simon Josefsson  <jas@extundo.com>
76196
76197         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
76198
76199 2006-01-19  Simon Josefsson  <jas@extundo.com>
76200
76201         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
76202
76203 2006-01-19  Simon Josefsson  <jas@extundo.com>
76204
76205         * gnulib-tool: Set check_PROGRAMS.
76206
76207         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
76208         modules/des-tests, modules/gc-arcfour-tests,
76209         modules/gc-arctwo-tests, modules/gc-des-tests,
76210         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
76211         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
76212         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
76213         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
76214         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
76215         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
76216         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
76217         test_*_SOURCES.
76218
76219 2006-01-18  Simon Josefsson  <jas@extundo.com>
76220
76221         * modules/socklen (Depends-on): Depend on sys_socket.
76222
76223 2006-01-18  Simon Josefsson  <jas@extundo.com>
76224
76225         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
76226         modules/des-tests, modules/gc-arcfour-tests,
76227         modules/gc-arctwo-tests, modules/gc-des-tests,
76228         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
76229         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
76230         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
76231         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
76232         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
76233         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
76234         $(EXEEXT) to automake TESTS variable, for mingw32.
76235
76236 2006-01-17  Simon Josefsson  <jas@extundo.com>
76237
76238         * modules/socklen (Include): Need sys/socket.h.
76239
76240 2006-01-17  Bruno Haible  <bruno@clisp.org>
76241
76242         * modules/ssize_t (Include): Add <sys/types.h>.
76243
76244 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
76245
76246         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
76247         it's not portable and it doesn't work with cross-compiles.
76248         Problem reported by Bruno Haible.  Fix missing-$ typo in
76249         'test "gl_cv_ignore_unused_libraries" ...' that prevented
76250         -zignore from being used with Sun's C compiler.
76251
76252 2006-01-12  Simon Josefsson  <jas@extundo.com>
76253
76254         * lib/base64.c: Fix warning, reported by Bruno Haible
76255         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
76256
76257 2006-01-12  Bruno Haible  <bruno@clisp.org>
76258
76259         * modules/ldd: New file.
76260         * build-aux/ldd.sh.in: New file.
76261         * MODULES.html.sh (Support for building libraries and executables): Add
76262         ldd.
76263
76264 2006-01-12  Bruno Haible  <bruno@clisp.org>
76265
76266         * m4/ldd.m4: New file.
76267
76268 2006-01-12  Bruno Haible  <bruno@clisp.org>
76269
76270         * gnulib-tool (func_import, func_create_testdir): Don't go into an
76271         endless loop while replacing $auxdir with build-aux.
76272
76273 2006-01-11  Simon Josefsson  <jas@extundo.com>
76274
76275         * lib/stdint_.h (SIZE_MAX): Add missing (.
76276
76277 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
76278
76279         Sync from coreutils.
76280         * lib/md5.c: Fix commentary typos.
76281         (alignof, UNALIGNED_P): No need for a GCC-specific version.
76282         * lib/md5.h (__attribute__): Remove; unused.
76283         * lib/sha1.c: Fix commentary to match md5 better.
76284         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
76285         so that we don't need to worry about alignment.  All uses changed.
76286         This merges the 2005-10-28 md5 change into sha1.
76287
76288 2006-01-11  Jim Meyering  <jim@meyering.net>
76289
76290         Sync from coreutils.
76291         * lib/md5.c (OP): Fix spacing.
76292
76293 2006-01-11  Bruno Haible  <bruno@clisp.org>
76294
76295         Ensure automatic ordering between gl_LOCK and gl_ARGP.
76296         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
76297         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
76298
76299 2006-01-11  Bruno Haible  <bruno@clisp.org>
76300
76301         Ensure automatic ordering between gl_LOCK and gl_ARGP.
76302         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
76303         the "early" section as well.
76304
76305 2006-01-11  Bruno Haible  <bruno@clisp.org>
76306
76307         Avoid "ar: no archive members specified" error on MacOS X.
76308         * gnulib-tool (func_modules_add_dummy): New function.
76309         (func_import, func_create_testdir): Invoke it.
76310
76311 2006-01-11  Bruno Haible  <bruno@clisp.org>
76312
76313         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
76314         with $auxdir in AC_CONFIG_FILES statements.
76315
76316 2006-01-11  Bruno Haible  <bruno@clisp.org>
76317
76318         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
76319         Initialize also noinst_HEADERS to empty.
76320
76321 2006-01-11  Bruno Haible  <bruno@clisp.org>
76322
76323         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
76324         variables.
76325         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
76326         autoreconf.
76327
76328 2006-01-11  Bruno Haible  <bruno@clisp.org>
76329
76330         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
76331         overridable by the user.
76332         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
76333
76334 2006-01-10  Simon Josefsson  <jas@extundo.com>
76335
76336         * modules/sys_socket: New file.
76337
76338 2006-01-10  Simon Josefsson  <jas@extundo.com>
76339
76340         * m4/sys_socket_h.m4: New file.
76341
76342 2006-01-10  Simon Josefsson  <jas@extundo.com>
76343
76344         * lib/socket_.h: New file.
76345
76346 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
76347
76348         * modules/readutmp (Maintainer): Add myself.
76349
76350 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
76351
76352         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
76353         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
76354         People who are still concerned with buggy memcmp implementations
76355         can invoke gl_FUNC_MEMCMP themselves.
76356
76357 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
76358
76359         * lib/regex_internal.h (BITSET_WORD_BITS):
76360         Work around a bug in 64-bit PGC (before version 6.1-2), where the
76361         preprocessor mishandles large unsigned values as if they were signed.
76362         Problem reported by Claudio Fontana in
76363         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
76364
76365 2006-01-10  Jim Meyering  <jim@meyering.net>
76366
76367         Avoid the double-free (first in fts_read, second in fts_close) that
76368         would occur when an `active' directory is made inaccessible (e.g.,
76369         via chmod a-x) during a traversal.
76370         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
76371         before returning.  Reproduce this failure by
76372         mkdir -p a/b; cd a; chmod a-x . b
76373         Reported by Stavros Passas.
76374
76375         Sync from coreutils.
76376         * lib/sha1.c: Tweak grammar in a comment.
76377
76378 2006-01-10  Jim Meyering  <jim@meyering.net>
76379
76380         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
76381         Patch by Joerg Sonnenberger.
76382
76383 2006-01-10  Bruno Haible  <bruno@clisp.org>
76384
76385         * modules/readutmp: Depend on module free.
76386         * modules/strtok_r: Depend on module restrict.
76387
76388 2006-01-10  Bruno Haible  <bruno@clisp.org>
76389
76390         * modules/gettext (configure.ac): Add an invocation of
76391         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
76392
76393 2006-01-10  Bruno Haible  <bruno@clisp.org>
76394
76395         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
76396         Reported by Werner Lemberg <wl@gnu.org>.
76397
76398 2006-01-10  Bruno Haible  <bruno@clisp.org>
76399
76400         * lib/localcharset.c: Update from GNU gettext.
76401
76402 2006-01-10  Bruno Haible  <bruno@clisp.org>
76403
76404         * lib/argp.h (__const): Remove macro. Use const instead.
76405         * lib/argp-fmtstream.h (__const): Likewise.
76406         * lib/glob_.h (__const): Remove macro.
76407         * lib/glob-libc.h: Use const instead of __const.
76408
76409 2006-01-10  Bruno Haible  <bruno@clisp.org>
76410
76411         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
76412         variable.
76413         Needed to avoid an automake error regarding the 'gettext' module.
76414
76415 2006-01-09  Simon Josefsson  <jas@extundo.com>
76416
76417         * modules/inet_ntop (Depends-on): Add restrict.
76418
76419 2006-01-09  Simon Josefsson  <jas@extundo.com>
76420
76421         * modules/gc-rijndael-tests (License): Put under LGPL.
76422
76423         * modules/gc-des-tests (License): Likewise.
76424
76425         * modules/gc-arcfour-tests (License): Likewise.
76426
76427         * modules/gc-arctwo-tests (License): Likewise.
76428
76429         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
76430
76431         * modules/gc-hmac-sha1-tests (Files): Likewise.
76432
76433         * modules/gc-hmac-md5-tests (License): Likewise.
76434
76435         * modules/gc-sha1-tests (License): Likewise.
76436
76437         * modules/gc-md5-tests (License): Likewise.
76438
76439         * modules/gc-md4-tests (License): Likewise.
76440
76441         * modules/gc-md2-tests (License): Likewise.
76442
76443         * modules/gc-tests (License): Likewise.
76444
76445         * modules/des-tests (License): Likewise.
76446
76447         * modules/md4-tests (License): Likewise.
76448
76449         * modules/md2-tests (License): Likewise.
76450
76451 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
76452
76453         Sync from coreutils:
76454
76455         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
76456         * modules/lib-ignore: New file.
76457         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
76458         chdir-safer.m4, lchmod.m4.
76459         * modules/openat: Add mkdirat.c, openat-priv.h.
76460
76461 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
76462
76463         Sync from coreutils.
76464         * m4/lib-ignore.m4: New file.
76465         * m4/lchmod.m4: New file.
76466
76467 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
76468
76469         Sync from coreutils.
76470         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
76471         for write access: POSIX says that must fail.
76472         * lib/fts.c (diropen): Likewise.
76473         * lib/save-cwd.c (save_cwd): Likewise.
76474         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
76475         well, for minor improvements on hosts that lack O_DIRECTORY.
76476         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
76477         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
76478         Fall back on chown if open failed with EACCES.
76479
76480         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
76481         Report an error at compile-time if only a 1-second nominal clock
76482         resolution is found.
76483
76484         * lib/lchmod.h: New file.
76485         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
76486         (make_dir_parents): Use lchown rather than chown, and
76487         lchmod rather than chmod.
76488
76489         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
76490         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
76491         "proc" reported by n0dalus.
76492
76493         * lib/mountlist.c: Include <limits.h>.
76494         (dev_from_mount_options)
76495         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
76496         New function.  It no longer assumes "dev=" has the System V meaning
76497         on Linux (since it doesn't).  It also parses "dev=" more carefully.
76498         (read_file_system_list)
76499         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
76500         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
76501         dev= in that case.
76502
76503         * lib/posixtm.h (PDS_PRE_2000): New macro.
76504         * lib/posixtm.c (year): Arg is now syntax_bits rather than
76505         allow_century.  All usages changed.  Reject dates outside the range
76506         1969-1999 if PDS_PRE_2000 is used.
76507
76508 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
76509
76510         Sync from coreutils.
76511         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
76512         (Time of day items): Mention the possibility of leap seconds.
76513         Problem reported by Dr. David Alan Gilbert.
76514
76515 2006-01-09  Jim Meyering  <jim@meyering.net>
76516
76517         Sync from coreutils.
76518
76519         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
76520
76521         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
76522
76523         * lib/modechange.c (mode_compile): Reject an invalid mode string
76524         that starts with an octal digit.  From Andreas Gruenbacher.
76525
76526         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
76527         and dup to open_safer and dup_safer, respectively.
76528         (openat_permissive): Fix typo in comment.
76529
76530         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
76531         "gettext.h"; either no longer needed or are guaranteed by openat.h.
76532         (_): Remove; no longer needed.
76533         (openat): Renamed from rpl_openat; no need for rpl_openat
76534         since openat.h renames openat for us.
76535         Replace most of the body with a call to openat_permissive,
76536         to avoid duplicate code.
76537         Port to (probably hypothetical) environments were mode_t is
76538         wider than int.
76539         (openat_permissive): Require mode arg, so that we can check
76540         types better.  Put it just after flags.  Change cwd failure
76541         indicator from pointer-to-bool to pointer-to-errno-value.
76542         All callers changed.
76543         Invoke openat_save_fail and/or openat_restore_fail if
76544         cwd_errno is null, so that openat can call us.
76545         (openat_permissive, fdopendir, fstatat, unlinkat):
76546         Simplify errno handling to avoid some duplicate code,
76547         as it's OK to set errno on success.
76548         * lib/openat.h: Revamp code so that function macros depend on
76549         __OPENAT_PREFIX only, not also on AT_FDCWD.
76550         (openat_ro): Remove.  Caller changed to use openat_permissive.
76551         (openat_permissive): Now a macro, if not a function.
76552         (openat_restore_fail, openat_save_fail): Now always functions,
76553         since mkdirat needs them even if __OPENAT_PREFIX is defined.
76554
76555         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
76556         and openat.c.
76557         * lib/mkdirat.c: Include openat-priv.h.
76558         Remove definitions of macros defined therein.
76559         * lib/openat.c: Likewise.
76560
76561         * lib/mkdirat.c (mkdirat): New file and function.
76562         * lib/openat.h (mkdirat): Declare.
76563
76564         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
76565
76566         * lib/openat.h (openat_permissive): Declare.
76567         (openat_ro): Define.
76568
76569         * lib/openat.c (EXPECTED_ERRNO): New macro.
76570         (openat_permissive): New function -- used in remove.c rewrite.
76571         (all functions): Set errno just before returning, only if there
76572         was an actual failure.
76573         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
76574
76575         Emulate openat-family functions using Linux's procfs, if possible.
76576         Idea and some code based on Ulrich Drepper's glibc changes.
76577
76578         * lib/openat.c: (BUILD_PROC_NAME): New macro.
76579         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
76580         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
76581         before falling back on save_cwd and restore_cwd.
76582         (fdopendir, fstatat, unlinkat): Likewise.
76583
76584         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
76585         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
76586
76587         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
76588         as second argument to va_arg.  Otherwise, some versions of gcc
76589         warn that `if this code is reached, the program will abort'.
76590
76591 2006-01-09  Jim Meyering  <jim@meyering.net>
76592
76593         Sync from coreutils.
76594         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
76595         Require openat-priv.h.
76596
76597 2006-01-09  Bruno Haible  <bruno@clisp.org>
76598
76599         * modules/strnlen (Include): Use strnlen.h.
76600
76601 2006-01-09  Bruno Haible  <bruno@clisp.org>
76602
76603         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
76604
76605 2006-01-09  Bruno Haible  <bruno@clisp.org>
76606
76607         * lib/sysexit_.h (EX_OK): New macro.
76608         Suggested by Martin Lambers <marlam@marlam.de>.
76609
76610 2006-01-09  Bruno Haible  <bruno@clisp.org>
76611
76612         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
76613         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
76614
76615 2006-01-09  Bruno Haible  <bruno@clisp.org>
76616
76617         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
76618         numbers.
76619
76620 2006-01-09  Bruno Haible  <bruno@clisp.org>
76621
76622         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
76623         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
76624         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
76625         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
76626
76627 2006-01-09  Bruno Haible  <bruno@clisp.org>
76628
76629         * build-aux/javacomp.sh.in: New file, moved from lib/.
76630         * modules/javacomp-script (Files): Update.
76631         (configure.ac): Add AC_CONFIG_FILES invocation.
76632         (EXTRA_DIST): Remove variable.
76633
76634         * build-aux/javaexec.sh.in: New file, moved from lib/.
76635         * modules/javaexec (Files): Update.
76636         (configure.ac): Add AC_CONFIG_FILES invocation.
76637         (EXTRA_DIST): Remove javaexec.sh.in.
76638
76639         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
76640         * modules/csharpcomp-script (Files): Update.
76641         (configure.ac): Add AC_CONFIG_FILES invocation.
76642         (EXTRA_DIST): Remove variable.
76643
76644         * build-aux/csharpexec.sh.in: New file, moved from lib/.
76645         * modules/csharpexec (Files): Update.
76646         (configure.ac): Add AC_CONFIG_FILES invocation.
76647         (EXTRA_DIST): Remove csharpexec.sh.in.
76648
76649 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
76650
76651         Sync from coreutils.
76652
76653         Add POSIX ACL support
76654         * lib/acl.h (copy_acl, set_acl): Add declarations.
76655         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
76656         systems other than Linux.
76657         (chmod_or_fchmod): New function: use fchmod when possible,
76658         and chmod otherwise.
76659         (file_has_acl): Add a POSIX ACL implementation, with a
76660         Linux-specific subcase.
76661         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
76662         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
76663         acls are unsupported.
76664         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
76665         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
76666         are unsupported.
76667
76668 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
76669
76670         Sync from coreutils.
76671         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
76672
76673 2006-01-07  Bruno Haible  <bruno@clisp.org>
76674
76675         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
76676         gl_EARLY.
76677
76678 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
76679
76680         * lib/strftime.c (tzname): Don't declare if it is already #defined.
76681         Problem reported for Mingw by Mark Junker.
76682
76683 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
76684
76685         * README: Gnulib normally doesn't generate a tarball.
76686
76687 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
76688
76689         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
76690         long int, not int, for nanosecond counts, so that people who are
76691         used to POSIX struct timespec won't be surprised.  Reported by Jim
76692         Meyering.
76693
76694 2005-12-28  Bruno Haible  <bruno@clisp.org>
76695
76696         * build-aux/config.rpath: Update from GNU gettext.
76697
76698 2005-12-16  Jim Meyering  <jim@meyering.net>
76699
76700         * modules/fprintftime: New module.
76701         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
76702
76703 2005-12-16  Jim Meyering  <jim@meyering.net>
76704
76705         * m4/fprintftime.m4: New file.
76706
76707 2005-12-16  Jim Meyering  <jim@meyering.net>
76708
76709         * lib/fprintftime.c, lib/fprintftime.h: New files.
76710
76711 2005-12-15  Simon Josefsson  <jas@extundo.com>
76712
76713         * modules/socklen (configure.ac): Fix M4 macro name, to align with
76714         new m4/socklen.m4.
76715
76716 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
76717
76718         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
76719         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
76720
76721 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
76722
76723         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
76724         * lib/argp-help.c (fill_in_uparams): Check if the constructed
76725         struct uparams is valid. Fall back to the default values if it is
76726         not.
76727
76728 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
76729
76730         * modules/argp (Files): Add argp-pin.c
76731         (Depends-on): dirname
76732         (lib_SOURCES): Add argp-pin.c
76733
76734 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
76735
76736         * m4/argp.m4:  Check if program_invocation_name and
76737         program_invocation_short_name are declared and define appropriate
76738         macros if they are not.
76739
76740 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
76741
76742         * lib/argp-help.c (__argp_base_name): New function
76743         (__argp_short_program_name): Rewrite using __argp_base_name
76744         * lib/argp-namefrob.h: Define program_invocation_name and
76745         program_invocation_short_name if requested
76746         (__argp_base_name): Add prototype
76747         * lib/argp-parse.c (argp_def): Use gettext wrappers
76748         (argp_default_parser): Use __argp_base_name
76749         * lib/argp-pin.c: New file. Defines program_invocation_name and
76750         program_invocation_short_name on systems that lack them.
76751
76752 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
76753
76754         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
76755         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
76756         porting problem reported by Georg Schwarz in
76757         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
76758
76759 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
76760
76761         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
76762         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
76763         porting problem reported by Georg Schwarz in
76764         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
76765
76766 2005-12-05  Bruno Haible  <bruno@clisp.org>
76767
76768         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
76769         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
76770         Reported by Mark Junker <mjscod@gmx.de>.
76771
76772 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
76773
76774         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
76775         Use implementation from Albert Chin, with some
76776         comments/corrections by Stepan Kasal and myself.
76777
76778 2005-12-02  Bruno Haible  <bruno@clisp.org>
76779
76780         * gnulib-tool (func_import): Accept GPLed build tool modules when
76781         --lgpl is given.
76782         * modules/csharpcomp-script: New file.
76783         * modules/csharpcomp: Depend on it.
76784         * modules/javacomp-script: New file.
76785         * modules/javacomp: Depend on it.
76786         Suggested by Simon Josefsson.
76787
76788 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
76789
76790         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
76791         statement, to work around an HP-UX 10.20 compiler bug reported by
76792         Peter O'Gorman.
76793
76794 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
76795
76796         * modules/savedir (Depends-on): Add openat.
76797
76798 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
76799
76800         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
76801         (uintmax_t) [defined uintmax_t]: Do not declare.
76802         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
76803         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
76804         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
76805         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
76806         sake of portability to weird hosts that C allows (though we don't
76807         know of any practical examples).
76808
76809         * lib/savedir.h (fdsavedir): New decl.
76810         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
76811         contains most of the former guts of savedir.
76812         (savedir): Use savedirstream.
76813         Include "openat.h".
76814
76815 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
76816
76817         * modules/obstack (Files): Add m4/ulonglong.m4.
76818         Problem reported by Davide Angelocola.
76819
76820 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
76821
76822         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
76823         coreutils no longer futzes with rounding modes.
76824
76825 2005-11-14  Jim Meyering  <jim@meyering.net>
76826
76827         * lib/mkstemp-safer.c: Include <config.h>, required for possible
76828         replacement of mkstemp.
76829
76830 2005-11-10  Simon Josefsson  <jas@extundo.com>
76831
76832         * lib/readline.c: Remove EOL.
76833
76834 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
76835
76836         * modules/gethrxtime (Depends-on): Add gettime.
76837
76838 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
76839
76840         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
76841         or gettimeofday; no longer needed.
76842
76843 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
76844
76845         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
76846         time business.
76847         (gethrxtime) [! (HAVE_NANOUPTIME
76848         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
76849         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
76850         our own approximation.
76851
76852 2005-11-08  Eric Blake  <ebb9@byu.net>
76853
76854         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
76855
76856 2005-11-08  Eric Blake  <ebb9@byu.net>
76857
76858         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
76859
76860 2005-11-04  Bruno Haible  <bruno@clisp.org>
76861
76862         * gnulib-tool: Implement --update mode.
76863
76864 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
76865
76866         Fix porting problem reported by Theodoros V. Kalamatianos.
76867         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
76868         Don't assume that futimes failing means we must fail.
76869
76870 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
76871
76872         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
76873         variables to suggest the intended function of the PATH_MAX check.
76874
76875 2005-10-30  Kean Johnston  <jkj@sco.com>
76876
76877         Trivial changes to support SCO systems.
76878         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
76879         as PATH_MAX.
76880         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
76881         where __ptr is null when no I/O is pending.
76882
76883 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
76884
76885         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
76886         leave errno alone.  Problem reported by Dmitry V. Levin.
76887
76888 2005-10-28  Simon Josefsson  <jas@extundo.com>
76889
76890         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
76891         Test more.
76892
76893         * tests/test-gc-md2.c, tests/test-md2.c: New files.
76894
76895         * modules/md2, modules/md2-tests: New files.
76896
76897 2005-10-28  Simon Josefsson  <jas@extundo.com>
76898
76899         * m4/inet_ntop.m4: More tests.
76900
76901         * m4/gc-md2.m4, md2.m4: New file.
76902
76903 2005-10-28  Simon Josefsson  <jas@extundo.com>
76904
76905         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
76906         "restrict" keywords, as per POSIX.  Protect the function
76907         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
76908         Don't use K&R prototypes.  Check the sprintf return values.
76909         Re-define EAFNOSUPPORT if not present.  Indent.
76910
76911         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
76912         suggested by Bruno Haible <bruno@clisp.org>.
76913
76914         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
76915
76916         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
76917
76918         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
76919         libgcrypt).
76920
76921         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
76922
76923         * lib/md2.h, lib/md2.c: New files.
76924
76925 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
76926
76927         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
76928         errno alone.  Problem reported by Frederic Jolliton.
76929
76930 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
76931
76932         * modules/verify (License): Change from GPL to LGPL.  This is a
76933         tiny module and there are apparently near-equivalents that are
76934         under the BSD license.
76935
76936 2005-10-24  Simon Josefsson  <jas@extundo.com>
76937
76938         * modules/sha1: Relicense to LGPL.
76939
76940 2005-10-24  Simon Josefsson  <jas@extundo.com>
76941
76942         * lib/md4.h: Shrink buffer size, now that we changed the type.
76943
76944 2005-10-23  Simon Josefsson  <jas@extundo.com>
76945
76946         * gnulib-tool (func_import): Fix --tests-base.
76947
76948 2005-10-22  Simon Josefsson  <jas@extundo.com>
76949
76950         * modules/arcfour (Depends-on): Need stdint.
76951
76952 2005-10-22  Simon Josefsson  <jas@extundo.com>
76953
76954         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
76955         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
76956
76957 2005-10-22  Simon Josefsson  <jas@extundo.com>
76958
76959         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
76960         suggested by Bruno Haible <bruno@clisp.org>.
76961
76962 2005-10-22  Simon Josefsson  <jas@extundo.com>
76963
76964         * lib/crc.h: Include stddef.h, for size_t.
76965
76966 2005-10-22  Simon Josefsson  <jas@extundo.com>
76967
76968         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
76969         arcfour_context struct (simplify test vector testing in GNU
76970         Shishi).
76971
76972 2005-10-21  Simon Josefsson  <jas@extundo.com>
76973
76974         * modules/des, modules/des-tests: New files.
76975
76976         * modules/gc-des, modules/gc-des-tests: New files.
76977
76978         * tests/test-des.c, tests/test-gc-des.c: New file.
76979
76980 2005-10-21  Simon Josefsson  <jas@extundo.com>
76981
76982         * modules/arctwo, modules/arctwo-tests: New files.
76983
76984         * tests/test-arctwo.c: New file.
76985
76986         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
76987
76988         * tests/test-gc-arctwo.c: New file.
76989
76990 2005-10-21  Simon Josefsson  <jas@extundo.com>
76991
76992         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
76993         Bruno Haible <bruno@clisp.org>.
76994
76995         * m4/gc-des.m4: New file.
76996
76997 2005-10-21  Simon Josefsson  <jas@extundo.com>
76998
76999         * m4/arctwo.m4: New file.
77000
77001         * m4/gc-arctwo.m4: New file.
77002
77003 2005-10-21  Simon Josefsson  <jas@extundo.com>
77004
77005         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
77006         block.
77007
77008 2005-10-21  Simon Josefsson  <jas@extundo.com>
77009
77010         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
77011         <bruno@clisp.org>.
77012
77013         * lib/hmac-sha1.c (hmac_sha1): Likewise.
77014
77015         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
77016         Bruno Haible <bruno@clisp.org>.
77017
77018         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
77019         <bruno@clisp.org>.
77020
77021 2005-10-21  Simon Josefsson  <jas@extundo.com>
77022
77023         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
77024
77025 2005-10-21  Simon Josefsson  <jas@extundo.com>
77026
77027         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
77028
77029 2005-10-21  Simon Josefsson  <jas@extundo.com>
77030
77031         * lib/des.h, lib/des.c: New files.
77032
77033         * lib/gc-gnulib.c: Support DES.c
77034
77035 2005-10-21  Simon Josefsson  <jas@extundo.com>
77036
77037         * lib/arctwo.h, lib/arctwo.c: New files.
77038
77039         * lib/gc-gnulib.c: Support ARCTWO.
77040
77041 2005-10-21  Simon Josefsson  <jas@extundo.com>
77042
77043         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
77044         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
77045
77046 2005-10-21  Simon Josefsson  <jas@extundo.com>
77047
77048         * gnulib-tool (func_import, func_create_testdir): Define automake
77049         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
77050         Makefile.am snippet),
77051         suggested by Bruno Haible <bruno@clisp.org>.
77052
77053         * modules/gc (Makefile.am): Use it.
77054
77055 2005-10-21  Bruno Haible  <bruno@clisp.org>
77056
77057         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
77058         patch.
77059
77060 2005-10-19  Simon Josefsson  <jas@extundo.com>
77061
77062         * tests/test-gc-rijndael.c: New file.
77063
77064         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
77065
77066 2005-10-19  Simon Josefsson  <jas@extundo.com>
77067
77068         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
77069         interface too.
77070
77071 2005-10-19  Simon Josefsson  <jas@extundo.com>
77072
77073         * tests/test-gc-arcfour.c: New file.
77074
77075         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
77076
77077 2005-10-19  Simon Josefsson  <jas@extundo.com>
77078
77079         * modules/gc-md4, modules/gc-md4-tests: New file.
77080
77081         * tests/test-gc-md4.c: New file.
77082
77083 2005-10-19  Simon Josefsson  <jas@extundo.com>
77084
77085         * m4/gc-md4.m4: New file.
77086
77087 2005-10-19  Simon Josefsson  <jas@extundo.com>
77088
77089         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
77090         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
77091         <kasal@ucw.cz>.
77092
77093 2005-10-19  Simon Josefsson  <jas@extundo.com>
77094
77095         * m4/gc-arcfour.m4: New file.
77096
77097         * m4/gc-rijndael.m4: New file.
77098
77099 2005-10-19  Simon Josefsson  <jas@extundo.com>
77100
77101         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
77102
77103 2005-10-19  Simon Josefsson  <jas@extundo.com>
77104
77105         * lib/gc-gnulib.c: Support ARCFOUR.
77106
77107 2005-10-19  Simon Josefsson  <jas@extundo.com>
77108
77109         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
77110         support.
77111
77112         * lib/gc.h: Add ECB enum type.
77113
77114         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
77115
77116 2005-10-18  Simon Josefsson  <jas@extundo.com>
77117
77118         * tests/test-md5.c: New file.
77119
77120         * modules/md5-tests: New file.
77121
77122 2005-10-18  Simon Josefsson  <jas@extundo.com>
77123
77124         * tests/test-md4.c: New file.
77125
77126         * modules/md4, modules/md4-tests: New files.
77127
77128 2005-10-18  Simon Josefsson  <jas@extundo.com>
77129
77130         * m4/md4.m4: New file.
77131
77132 2005-10-18  Simon Josefsson  <jas@extundo.com>
77133
77134         * lib/md4.h, lib/md4.c: New files, based on md5.?.
77135
77136 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
77137
77138         * gnulib-tool (func_create_testdir): Omit the second check whether
77139         BUILT_SOURCES in nonempty.
77140
77141 2005-10-17  Simon Josefsson  <jas@extundo.com>
77142
77143         * tests/test-rijndael.c: New file.
77144
77145 2005-10-17  Simon Josefsson  <jas@extundo.com>
77146
77147         * modules/sha1: Depend on stdint instead of md5.
77148
77149         * modules/md5: Depend on stdint, remove uint32_t.
77150
77151 2005-10-17  Simon Josefsson  <jas@extundo.com>
77152
77153         * modules/gc-sha1-tests: New file.
77154
77155         * tests/test-gc-sha1.c: New file.
77156
77157 2005-10-17  Simon Josefsson  <jas@extundo.com>
77158
77159         * m4/md5.m4: Remove call to uint32_t.m4.
77160
77161 2005-10-17  Simon Josefsson  <jas@extundo.com>
77162
77163         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
77164
77165         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
77166         md5.h.
77167
77168         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
77169
77170         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
77171
77172 2005-10-17  Simon Josefsson  <jas@extundo.com>
77173
77174         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
77175
77176 2005-10-17  Simon Josefsson  <jas@extundo.com>
77177
77178         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
77179
77180 2005-10-17  Simon Josefsson  <jas@extundo.com>
77181
77182         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
77183
77184         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
77185
77186 2005-10-17  Bruno Haible  <bruno@clisp.org>
77187
77188         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
77189         that it can also be used in a test.
77190
77191 2005-10-16  Bruno Haible  <bruno@clisp.org>
77192
77193         * gnulib-tool (func_emit_tests_Makefile_am): Also define
77194         TESTS_ENVIRONMENT, so that individual tests can augment it.
77195
77196         * gnulib-tool (func_create_testdir): Use an intermediate target for
77197         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
77198         macros, like $(ALLOCA_H), which cannot be passed through the command
77199         line.
77200
77201 2005-10-15  Simon Josefsson  <jas@extundo.com>
77202
77203         * modules/rijndael-tests: New file.
77204
77205         * modules/rijndael: New file.
77206
77207 2005-10-15  Simon Josefsson  <jas@extundo.com>
77208
77209         * m4/rijndael.m4: New file.
77210
77211 2005-10-15  Simon Josefsson  <jas@extundo.com>
77212
77213         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
77214
77215         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
77216
77217 2005-10-14  Simon Josefsson  <jas@extundo.com>
77218
77219         * tests/test-arcfour.c: New file.
77220
77221         * modules/arcfour, modules/arcfour-tests: New files.
77222
77223 2005-10-14  Simon Josefsson  <jas@extundo.com>
77224
77225         * m4/arcfour.m4: New file.
77226
77227 2005-10-14  Simon Josefsson  <jas@extundo.com>
77228
77229         * lib/arcfour.h, lib/arcfour.c: New files.
77230
77231 2005-10-14  Roland McGrath  <roland@redhat.com>
77232
77233         Import from libc.  [BZ #1331]
77234         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
77235         macro argument.
77236         Reported by Matej Vela <vela@debian.org>.
77237
77238 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
77239
77240         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
77241         include <wchar.h>; no longer needed.
77242
77243 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
77244
77245         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
77246
77247 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
77248         and  Ulrich Drepper  <drepper@redhat.com>
77249
77250         Import from libc.
77251         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
77252         instead of inline stream orientation test and two separate
77253         function calls.  Pay no attention to USE_IN_LIBIO.
77254
77255 2005-10-13  Simon Josefsson  <jas@extundo.com>
77256
77257         * modules/gc-hmac-md5-tests: New file.
77258
77259         * tests/test-gc-hmac-sha1.c: New file.
77260
77261         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
77262
77263         * modules/gc-hmac-md5-tests: New file.
77264
77265         * tests/test-gc-md5.c: New file.
77266
77267         * modules/gc-md5-tests: New file.
77268
77269 2005-10-13  Simon Josefsson  <jas@extundo.com>
77270
77271         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
77272         Move memory allocation outside of loop.
77273
77274 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
77275
77276         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
77277         intermediate directory is in a read-only file system.  Problem
77278         reported by Eric Blake.
77279
77280 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
77281
77282         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
77283
77284 2005-10-12  Simon Josefsson  <jas@extundo.com>
77285
77286         * tests/test-hmac-sha1.c: New file.
77287
77288         * modules/hmac-sha1-tests: New file.
77289
77290         * modules/hmac-sha1: New file.
77291
77292 2005-10-12  Simon Josefsson  <jas@extundo.com>
77293
77294         * modules/gc-sha1: New file.
77295
77296 2005-10-12  Simon Josefsson  <jas@extundo.com>
77297
77298         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
77299
77300         * tests/test-gc-pbkdf2-sha1.c: New file.
77301
77302 2005-10-12  Simon Josefsson  <jas@extundo.com>
77303
77304         * modules/gc-md5, modules/gc-hmac-md5: New files.
77305
77306         * modules/gc (Files): Remove md5, memxor and hmac files.
77307
77308 2005-10-12  Simon Josefsson  <jas@extundo.com>
77309
77310         * m4/gc-pbkdf2-sha1.m4: New file.
77311
77312         * m4/gc-hmac-sha1.m4: New file.
77313
77314         * m4/gc-sha1: New file.
77315
77316         * m4/hmac-sha1.m4: New file.
77317
77318 2005-10-12  Simon Josefsson  <jas@extundo.com>
77319
77320         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
77321
77322         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
77323
77324 2005-10-12  Simon Josefsson  <jas@extundo.com>
77325
77326         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
77327         suggested by Bruno Haible <bruno@clisp.org>.
77328
77329 2005-10-12  Simon Josefsson  <jas@extundo.com>
77330
77331         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
77332
77333 2005-10-12  Simon Josefsson  <jas@extundo.com>
77334
77335         * lib/gc-pbkdf2-sha1.c: New file.
77336
77337         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
77338
77339 2005-10-12  Simon Josefsson  <jas@extundo.com>
77340
77341         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
77342
77343         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
77344
77345 2005-10-12  Simon Josefsson  <jas@extundo.com>
77346
77347         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
77348         GC_USE_HMAC_MD5, respectively.
77349
77350         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
77351         (gc_md5): Fix typo.
77352
77353         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
77354
77355         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
77356
77357         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
77358
77359 2005-10-12  Bruno Haible  <bruno@clisp.org>
77360
77361         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
77362         Reported by Stepan Kasal <kasal@ucw.cz>.
77363
77364 2005-10-11  Simon Josefsson  <jas@extundo.com>
77365
77366         * tests/test-crc.c: New file.
77367
77368         * modules/crc, modules/crc-tests: New files.
77369
77370 2005-10-11  Simon Josefsson  <jas@extundo.com>
77371
77372         * m4/crc.m4: New file.
77373
77374 2005-10-11  Simon Josefsson  <jas@extundo.com>
77375
77376         * lib/gc.h: Add gc_hash and gc_hash_buffer.
77377
77378         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
77379
77380         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
77381
77382 2005-10-11  Simon Josefsson  <jas@extundo.com>
77383
77384         * lib/crc.h, lib/crc.c: New files.
77385
77386         * lib/gc.h (gc_hash_buffer): Add doc.
77387
77388 2005-10-11  Bruno Haible  <bruno@clisp.org>
77389
77390         * modules/c-strcasestr: New file.
77391         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
77392
77393 2005-10-11  Bruno Haible  <bruno@clisp.org>
77394
77395         * modules/c-strcase: New file.
77396         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
77397
77398 2005-10-11  Bruno Haible  <bruno@clisp.org>
77399
77400         * lib/strcasecmp.c: Include limits.h.
77401         (strcasecmp): Avoid integer overflow on exotic platforms.
77402         * lib/strncasecmp.c: Include limits.h.
77403         (strncasecmp): Avoid integer overflow on exotic platforms.
77404         Reported by Paul Eggert.
77405
77406 2005-10-11  Bruno Haible  <bruno@clisp.org>
77407
77408         * lib/c-strcasestr.h: New file, from GNU gettext.
77409         * lib/c-strcasestr.c: New file, from GNU gettext.
77410
77411 2005-10-11  Bruno Haible  <bruno@clisp.org>
77412
77413         * lib/c-strcase.h: New file, from GNU gettext.
77414         * lib/c-strcasecmp.c: New file, from GNU gettext.
77415         * lib/c-strncasecmp.c: New file, from GNU gettext.
77416
77417 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
77418
77419         * modules/mempcpy (License): GPL -> LGPL.
77420         * modules/strchrnul (License): Likewise.
77421         * modules/sysexits (License): Likewise.
77422
77423 2005-10-08  Simon Josefsson  <jas@extundo.com>
77424
77425         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
77426
77427 2005-10-07  Simon Josefsson  <jas@extundo.com>
77428
77429         * m4/memxor.m4: Remove gl_C_RESTRICT call.
77430
77431 2005-10-06  Simon Josefsson  <jas@extundo.com>
77432
77433         * tests/test-hmac-md5.c: New file.
77434
77435         * modules/hmac-md5-tests: New file.
77436
77437         * modules/hmac-md5: New file.
77438
77439 2005-10-06  Simon Josefsson  <jas@extundo.com>
77440
77441         * m4/hmac-md5.m4: New file.
77442
77443         * m4/memxor.m4: Require gl_C_RESTRICT.
77444
77445 2005-10-06  Simon Josefsson  <jas@extundo.com>
77446
77447         * lib/memxor.c (memxor): Avoid casts and warnings.
77448
77449 2005-10-06  Simon Josefsson  <jas@extundo.com>
77450
77451         * lib/hmac-md5.c: New file.
77452
77453         * lib/hmac.h: New file.
77454
77455 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
77456
77457         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
77458         promotes to int, not unsigned int, to catch the AIX 5.3
77459         compiler bug.
77460
77461 2005-10-05  Simon Josefsson  <jas@extundo.com>
77462
77463         * modules/memxor: New file.
77464
77465         * modules/iconv (Files): Move config.rpath to havelib, it is used
77466         there.
77467
77468         * modules/havelib (Files): Add config.rpath.
77469
77470 2005-10-05  Simon Josefsson  <jas@extundo.com>
77471
77472         * m4/memxor.m4: New file.
77473
77474 2005-10-05  Simon Josefsson  <jas@extundo.com>
77475
77476         * lib/memxor.c (memxor): Fix compiler error.
77477
77478         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
77479         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
77480
77481         * lib/memxor.h, lib/memxor.c: New files.
77482
77483         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
77484         we assume all systems have it, suggested by Jim Meyering
77485         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
77486         any systems lack sys/socket.h; mingw32 is known to lack it, but we
77487         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
77488         same reasons.
77489
77490 2005-10-05  Simon Josefsson  <jas@extundo.com>
77491
77492         * config/srclist.txt: Add glibc bug 1423 for md5.h.
77493
77494 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
77495
77496         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
77497         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
77498         needed, since the source code now assumes these .h files.
77499
77500 2005-10-05  Derek Price  <derek@ximbiot.com>
77501
77502         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
77503
77504 2005-10-05  Bruno Haible  <bruno@clisp.org>
77505
77506         * modules/stdint (License): Change to LGPL.
77507
77508 2005-10-04  Simon Josefsson  <jas@extundo.com>
77509
77510         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
77511         D. Baushke" <mdb@gnu.org>.
77512
77513 2005-10-04  Bruno Haible  <bruno@clisp.org>
77514
77515         * lib/verify.h (verify_true): Provide alternative definition for C++.
77516
77517 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
77518
77519         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
77520         (SSIZE_MAX): New macro, if not already defined.
77521         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
77522         than 2 GiB.
77523
77524 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
77525
77526         Sync from coreutils.
77527         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
77528         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
77529         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
77530         ULLONG_MAX doesn't work with 2.7.2.1.
77531
77532 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
77533
77534         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
77535         From Ben Pfaff.
77536
77537         * modules/exclude (Depends-on): Depend on verify.
77538         * modules/strtoimax (Depends-on): Likewise.
77539         * modules/utimecmp (Depends-on): Likewise.
77540
77541 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
77542
77543         * lib/exclude.c: Include verify.h.
77544         (verify): Remove.  All callers changed to use verify.h's version.
77545         * lib/strtoimax.c: Likewise.
77546         * lib/utimecmp.c: Likewis.e
77547
77548         Sync from coreutils.
77549         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
77550         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
77551         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
77552         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
77553         bother returning ENOSYS if settimeofday or stime fails; just let
77554         them return whatever errno they want to return.
77555         * lib/utimens.c: Include unistd.h, for dup2.
77556         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
77557         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
77558
77559 2005-10-02  Jim Meyering  <jim@meyering.net>
77560
77561         Sync from coreutils.
77562         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
77563         from glibc-2.2.5 that fails for read-only files.
77564
77565 2005-10-02  Jim Meyering  <jim@meyering.net>
77566
77567         Sync from coreutils.
77568         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
77569         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
77570         `#if HAVE_CONFIG_H'.
77571         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
77572         Remove AT_FDCWD test.
77573         Do not consume the fd unless successful.
77574         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
77575         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
77576         block, so that we don't even try to compile it if settimeofday is
77577         available.  This works around a compilation failure on OSF1 V5.1,
77578         due to stime requiring a `long int*' while tv_sec is `int'.
77579
77580 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
77581
77582         Sync from coreutils.
77583         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
77584         against `yes', rather than just testing for nonempty.
77585
77586 2005-10-01  Simon Josefsson  <jas@extundo.com>
77587
77588         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
77589         and Darwin.
77590
77591         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
77592         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
77593         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
77594         freeaddrinfo and gai_strerror are declared by the POSIX headers.
77595         Check if struct addrinfo is declared.
77596
77597 2005-10-01  Simon Josefsson  <jas@extundo.com>
77598
77599         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
77600         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
77601         AI_* and EAI_* definitions.  Protect function declarations.
77602
77603 2005-10-01  Jim Meyering  <jim@meyering.net>
77604
77605         Sync from coreutils.
77606
77607         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
77608         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
77609         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
77610         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
77611         in the inet and nsl libraries.  Required on Solaris 5.7.
77612
77613 2005-10-01  Jim Meyering  <jim@meyering.net>
77614
77615         Sync from coreutils.
77616         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
77617         in the inet and nsl libraries.  Required on Solaris 5.7.
77618
77619 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
77620
77621         * lib/getdelim.c (getdelim): Remove unused variables.
77622
77623 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
77624
77625         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
77626         so that the code works even with ancient cpp.  Portability problem
77627         with GCC 2.7.2.1 reported by Thomas M.Ott.
77628
77629 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
77630
77631         * modules/regex (Depends-on): Add strcase.
77632
77633         * modules/gethostname (Licence): Change from GPL to LGPL, since
77634         gethostname.c is a trivial implementation of a standard library
77635         function.
77636         * modules/poll (License): Change from GPL to LGPL, since it's
77637         derived from LGPL code.
77638
77639 2005-09-27  Jim Meyering  <jim@meyering.net>
77640
77641         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
77642         HAVE_CONFIG_H.
77643
77644         * lib/intprops.h (signed_type_or_expr__): Define.
77645         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
77646         for unsigned types.
77647
77648 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
77649
77650         * lib/verify.h (verify_expr): Remove, replacing with:
77651         (verify_true): New macro that returns true instead of void.
77652         (verify_type__): Remove.
77653         (verify): Use verify_true rather than verify_type__.
77654
77655 2005-09-26  Bruno Haible  <bruno@clisp.org>
77656
77657         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
77658         is necessary.
77659         (lib_SOURCES): Remove mbchar.c.
77660         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
77661         (Files): Add m4/mbrtowc.m4.
77662         * modules/mbiter: Likewise.
77663         * modules/mbuiter: Likewise.
77664
77665 2005-09-26  Bruno Haible  <bruno@clisp.org>
77666
77667         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
77668         compile mbchar.c if they are not both present.
77669         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
77670         * m4/mbiter.m4 (gl_MBITER): Likewise.
77671         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
77672         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
77673         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
77674
77675 2005-09-25  Jim Meyering  <jim@meyering.net>
77676
77677         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
77678         also uses socklen_t.
77679
77680 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
77681
77682         * lib/utimens.c (ENOSYS): Define if not already defined.
77683         (futimens): Support having a null PATH if the file descriptor
77684         is nonnegative.
77685
77686         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
77687         Remove.
77688         (__attribute): Define to empty unless GCC 3.1 or later.
77689         This works around a core dump on OpenBSD 3.4, which has GCC
77690         2.95.3, which dumps core when given __attribute__(()).  It also
77691         simplifies other tests, since we really don't want to bother with
77692         worrying about which ancient version of GCC supported what.
77693         Original problem reported by Yoann Vandoorselaere, with part of
77694         the fix suggested by Derek Price.
77695
77696 2005-09-24  Jim Meyering  <jim@meyering.net>
77697
77698         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
77699         so we can once again use a positive bitfield width of 1 -- now we
77700         don't have to explain why we were using a bitfield width of 2.
77701
77702 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
77703
77704         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
77705         and similarly for the other external symbols.  Problem reported
77706         by James Gallager.
77707
77708         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
77709         bug reported by Jim Meyering.
77710
77711         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
77712         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
77713         not needed, since socklen is a prerequisite module.
77714
77715 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
77716
77717         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
77718         Problem reported by Eric Blake.
77719         (getaddrinfo): Initialize se so that it's not garbage.
77720         Redo internal storage allocation so that it doesn't make unportable
77721         assumptions about alignment.
77722         Fix a memory leak.
77723
77724         * lib/utimens.c (futimens): Use futimesat if available.
77725         Prefer it to futimes since it doesn't have the futimes bug.
77726
77727         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
77728         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
77729         Instead, declare a function that returns a pointer to an array,
77730         and use verify_type__ to declare the size of the array.
77731         Problem and germ of a solution reported by Bruno Haible.
77732         (verify_type__): Use 2, not 1, for bitfield size, to avoid
77733         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
77734
77735 2005-09-23  Jim Meyering  <jim@meyering.net>
77736
77737         Sync from coreutils.
77738         Correct build failure (socklen_t not defined) on at least
77739         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
77740         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
77741
77742 2005-09-23  Jim Meyering  <jim@meyering.net>
77743
77744         * modules/getaddrinfo (Depends-on): Add socklen.
77745
77746 2005-09-23  Bruno Haible  <bruno@clisp.org>
77747
77748         * tests/test-verify.c: New file.
77749
77750 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
77751
77752         Sync from coreutils.
77753
77754         * modules/argmatch (Depends-on): Add verify.
77755         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
77756         unistd-safer.
77757         * modules/save-cwd (Depends-on): Likewise.
77758
77759         * modules/openat (Files): Add lib/openat-die.c.
77760         (Depends-on): Remove error, exitfail.
77761         Add dirname.
77762
77763         * modules/verify: New file.
77764         * MODULES.html.sh (Diagnostics <assert.h>): New section,
77765         with "verify" module.
77766
77767 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
77768
77769         Sync from coreutils.
77770
77771         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
77772         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
77773         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
77774         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
77775         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
77776         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
77777         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
77778         Don't bother checking for string.h, stdlib.h, unistd.h.
77779         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
77780         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
77781         module's job.
77782         * m4/jm-macros.m4 (gl_MACROS): Likewise.
77783         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
77784
77785         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
77786         (gl_GETDATE): Use it.
77787
77788         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
77789
77790 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
77791
77792         Sync from coreutils.
77793
77794         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
77795         stat-time.h.
77796         * lib/argmatch.h: Include verify.h
77797         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
77798         (ARGMATCH_ASSERT): Remove; unused.
77799         * lib/canonicalize.c: Assume STDC_HEADERS.
77800         * lib/exclude.c: Include "strcase.h".
77801         * lib/regex_internal.h [!defined _LIBC]: Likewise.
77802         * lib/getusershell.c: Include stdio--.h rather than stdio.h
77803         and stdio-safer.h.
77804         (getusershell): Call fopen, not fopen_safer.
77805         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
77806         Do not include unistd-safer.h.
77807         (save_cwd): Don't call fd_safer; no longer needed
77808         now that we include fcntl--.h.
77809
77810         * lib/getdate.y (relative_time): New type.
77811         (RELATIVE_TIME_0): New constant.
77812         (parser_control): Use relative_time instead of doing it ourselves.
77813         (%union): Add new relative_time rel member.
77814         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
77815         Now typeless.
77816         (relunit, relunit_snumber): Now of type rel.
77817         (zone, rel, relunit, get_date): Adjust to above changes.
77818
77819         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
77820         Do not include unistd-safer.h.
77821         (getloadavg): Don't call fd_safer; no longer needed
77822         now that we include fcntl--.h.
77823
77824         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
77825         (make_dir_parents): Treat ENOSYS like EEXIST.
77826
77827         Improve quality of diagnostics on restore_cwd failure.
77828         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
77829         (make_dir_parents): Last arg is now int * (for errno), not bool *.
77830         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
77831         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
77832         each time through the loop.  Do not diagnose restore_cwd failure;
77833         that is the caller's job (and perhaps the caller does not care).
77834
77835         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
77836         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
77837         If the file already exists but is not a directory, don't bother
77838         to try to make its parents.
77839         Close potential file descriptor leak if we can't chdir("/") (!).
77840         Don't always return true if chdir($PWD) fails; return true only
77841         if the requested action was done successfully (except for the
77842         chdir($PWD)).
77843         Don't log final directory unless we actually made it.
77844         Refactor to avoid duplicate code to fix up permissions.
77845         Don't attempt to fix up parent permissions if chdir($PWD) fails.
77846
77847         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
77848         to make it a bit faster and (I hope) clearer.
77849         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
77850         Fix bug in formats like %2N.
77851
77852         * lib/verify.h: New file.
77853
77854 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
77855
77856         Sync from coreutils.
77857         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
77858
77859 2005-09-22  Jim Meyering  <jim@meyering.net>
77860
77861         Sync from coreutils.
77862
77863         * m4/lstat.m4 (gl_FUNC_LSTAT):
77864         Use AC_LIBSOURCES to require lstat.c and lstat.h.
77865         Remove obsolete comment.
77866         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
77867         * m4/xstrtod.m4: Likewise.
77868
77869         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
77870
77871 2005-09-22  Jim Meyering  <jim@meyering.net>
77872
77873         Sync from coreutils.
77874
77875         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
77876
77877         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
77878         the .tm_year member, since otherwise gcc-4.0 would now warn about
77879         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
77880
77881         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
77882         order to avoid an unsuppressible warning from gcc on 64-bit systems.
77883
77884         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
77885         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
77886         when run in a time zone for which daylight savings time is in effect
77887         for the starting date.
77888
77889         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
77890         stop us from restricting permissions of just-created absolute-named
77891         directories.
77892         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
77893         to restore initial working directory.
77894         * lib/mkdir-p.c (make_dir_parents): New parameter:
77895         different_working_dir, to tell caller if/when we change the working
77896         directory and are unable to return to the initial one.
77897         * lib/mkdir-p.h (make_dir_parents): Update prototype.
77898         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
77899         `return false'.  This fixes a bug introduced on 2004-07-30.
77900
77901         * lib/openat.c (fdopendir): Be sure to close the supplied
77902         file descriptor before returning.  This makes our replacement
77903         implementation a little closer to Solaris's, where fdopendir
77904         ties the file descriptor to the returned DIR* pointer.
77905         * lib/openat.c (unlinkat): New function.
77906         * lib/openat.h (unlinkat): Add prototype.
77907         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
77908         (openat_restore_fail): Rename from openat_restore_die.
77909         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
77910
77911         Provide an alternative to exiting immediately upon save_cwd or
77912         restore_cwd failure.  Now, an application can arrange e.g.,
77913         to perform a longjump in that case.
77914         * lib/openat.c: Include dirname.h.
77915         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
77916         (rpl_openat, fdopendir, fstatat): Call openat_save_die
77917         and openat_restore_die rather than calling error directly.
77918         Don't include "error.h" or "exitfail.h"; they're no longer needed.
77919
77920         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
77921         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
77922         define.
77923
77924         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
77925         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
77926                             int utc, int nanoseconds);
77927         Background:
77928         date should not have to allocate a megabyte of virtual memory to
77929         handle a format argument like +%1048575T.  When implemented with
77930         strftime, it must allocate such a buffer, use strftime to fill it
77931         in, print it, then free it.
77932         With fprintftime, it simply prints everything and exits.
77933         With no need for memory allocation, that's one fewer way to fail.
77934         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
77935         optional field width, not before, so we accept %9:z, not %:9z.
77936         (my_strftime): Be sure to use L_('x') for literals.
77937
77938         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
77939         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
77940         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
77941         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
77942         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
77943         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
77944         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
77945         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
77946         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
77947         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
77948         * lib/xgethostname.c, lib/xreadlink.c:
77949         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
77950
77951         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
77952         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
77953         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
77954         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
77955         and don't include <sys/file.h>).
77956
77957 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
77958
77959         Sync from coreutils.
77960
77961         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
77962         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
77963         [!LDAV_DONE]: Avoid unused variable warning.
77964
77965 2005-09-21  Bruno Haible  <bruno@clisp.org>
77966
77967         * lib/unicodeio.h (unicode_to_mb): New declaration.
77968
77969 2005-09-20  Derek Price  <derek@ximbiot.com>
77970
77971         * lib/getaddrinfo.c: Don't include <netdb.h> included from
77972         getaddrinfo.h.
77973
77974 2005-09-20  Bruno Haible  <bruno@clisp.org>
77975
77976         * gnulib-tool: Remove trailing slashes from the values specified for
77977         --source-base, --m4-base, --tests-base, --aux-dir.
77978         Suggested by Simon Josefsson <jas@extundo.com>.
77979
77980 2005-09-20  Bruno Haible  <bruno@clisp.org>
77981
77982         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
77983         func_modules_to_filelist, func_import, func_create_testdir): Make all
77984         sorting results locale-independent, so that gnulib-cache.m4 doesn't
77985         change when gnulib-tool is invoked in a different locale.
77986
77987 2005-09-19  Simon Josefsson  <jas@extundo.com>
77988
77989         * m4/socklen.m4: Fix typo.
77990
77991 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77992
77993         Use a consistent style for including <config.h>.
77994         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
77995         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
77996         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
77997         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
77998         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
77999         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
78000         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
78001         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
78002         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
78003         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
78004         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
78005         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
78006         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
78007         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
78008         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
78009         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
78010         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
78011         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
78012         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
78013         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
78014         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
78015         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
78016         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
78017         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
78018         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
78019         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
78020         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
78021         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
78022         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
78023         lib/xstrtoumax.c, lib/yesno.c:
78024         Standardize inclusion of config.h.
78025         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
78026         lib/inttostr.h:  Removed inclusion of config.h from header files.
78027         * lib/inttostr.c:  Adjusted in-tree users.
78028         * lib/timespec.h: Remove superfluous warning to include config.h.
78029         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
78030         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
78031         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
78032         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
78033         config.h with HAVE_CONFIG_H.
78034
78035 2005-09-19  Jim Meyering  <jim@meyering.net>
78036
78037         * modules/pathmax (License): Change to LGPL.
78038
78039 2005-09-19  Derek Price  <derek@ximbiot.com>
78040
78041         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
78042
78043 2005-09-19  Bruno Haible  <bruno@clisp.org>
78044
78045         * gnulib-tool (import): Provide default for --tests-base.
78046
78047 2005-09-19  Bruno Haible  <bruno@clisp.org>
78048
78049         * doc/quote.texi: New file, extracted from gnulib.texi.
78050         * doc/ctime.texi: New file, extracted from gnulib.texi.
78051         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
78052         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
78053         * doc/gnulib.texi: Include them.
78054
78055 2005-09-18  Bruno Haible  <bruno@clisp.org>
78056
78057         Portability fix.
78058         * gnulib-tool (func_readlink): New function.
78059         (func_ln_if_changed): Use it.
78060
78061 2005-09-18  Bruno Haible  <bruno@clisp.org>
78062
78063         * gnulib-tool: Support --with-tests also with --import.
78064         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
78065         (func_import): Use variables $testsbase and $inctests. Emit a
78066         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
78067         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
78068         SUBDIRS += $testsdir.
78069         (func_create_testdir): Update.
78070
78071 2005-09-18  Bruno Haible  <bruno@clisp.org>
78072
78073         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
78074         instead of $dry_run.
78075         (func_cp_if_changed, func_mv_if_changed): Remove functions.
78076         (func_ln_if_changed): Don't handle dry-run here.
78077         (func_import): In dry-run mode, detect more precisely which actions
78078         would be performed, and don't use "...ing" verbs.
78079
78080 2005-09-18  Bruno Haible  <bruno@clisp.org>
78081
78082         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
78083         (func_import): Use join on two temporary files instead of three nested
78084         loops, in order to determine which files are new or old.
78085
78086 2005-09-18  Bruno Haible  <bruno@clisp.org>
78087
78088         * gnulib-tool (func_import): Comment out code that spits out the
78089         new files with --dry-run.
78090
78091 2005-09-18  Bruno Haible  <bruno@clisp.org>
78092
78093         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
78094
78095 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
78096
78097         * lib/stat-time.h: New file.
78098         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
78099         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
78100         in a different way.
78101         (timespec_cmp): New function.
78102         * lib/utimecmp.c: Include stat-time.h.
78103         (SYSCALL_RESOLUTION): Depend on whether various struct stat
78104         members exist, not on the obsolescent ST_MTIM_NSEC.
78105         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
78106
78107 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
78108
78109         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
78110
78111 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
78112
78113         * MODULES.html.sh (File system functions): Add stat-time.
78114         * modules/stat-time: New file.
78115         * modules/timespec (Files): Remove m4/st_mtim.m4; this
78116         is now done in a different way, by the stat-time module.
78117         * modules/utimecmp (Depends-on): Add stat-time.
78118
78119 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
78120
78121         * m4/st_mtim.m4: Remove.  Superseded by...
78122         * m4/stat-time.m4: New file.
78123         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
78124         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
78125
78126 2005-09-15  Derek Price  <derek@ximbiot.com>
78127
78128         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
78129
78130 2005-09-15  Derek Price  <derek@ximbiot.com>
78131
78132         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
78133         * lib/regex_internal.c: Ditto, using this...
78134         (__GNUC_PREREQ): ...new macro.
78135         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
78136         using...
78137         (__GNUC_PREREQ): ...this new macro.
78138
78139         * lib/strstr.h: Include string.h. Define strstr as a macro here.
78140
78141 2005-09-15  Derek Price  <derek@ximbiot.com>
78142             Paul Eggert  <eggert@cs.ucla.edu>
78143
78144         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
78145         changes, consolidating in...
78146         * lib/regex_internal.h: ...this file.
78147
78148 2005-09-13  Jim Meyering  <jim@meyering.net>
78149
78150         * lib/canon-host.c: Filter through gnu indent and reword comments
78151         slightly.
78152         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
78153
78154 2005-09-13  Derek Price  <derek@ximbiot.com>
78155
78156         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
78157         failure.
78158         Reported by Jim Meyering  <jim@meyering.net>.
78159
78160 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
78161
78162         * lib/base64.c: Typo.
78163         (base64_encode): Put b64str in initialized data section.
78164
78165 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
78166
78167         Merge glibc and coreutils changes into gnulib, plus a few
78168         extra fixes.
78169         * lib/md5.c: Use #error rather than a string.
78170         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
78171         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
78172         (__attribute__): Define to empty for non recent-GCC.
78173         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
78174         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
78175         Renamed from their non-__ counterparts, with new macros replacing
78176         them if not _LIBC.  Add __THROW attribute.
78177         (rol): Remove.
78178         (struct md5_ctx): Align buffer if using GCC.
78179         * lib/sha1.h (struct sha1_ctx): Likewise.
78180         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
78181         The old name was backwards.
78182         (NOTSWAP): Remove; not used.
78183         (rol): New macro, moved here from md5.h.
78184         (sha1_process_block): Remove a FIXME that doesn't make sense.
78185
78186 2005-09-12  Derek Price  <derek@ximbiot.com>
78187
78188         Return usable errors from canon-host.
78189         * lib/canon-host.h: New file.
78190         * lib/canon-host.c (canon_host): Wrap...
78191         (canon_host_r): ...this new function, which now relies exclusively on
78192         getaddrinfo.
78193         (ch_strerror): New function.
78194         (last_cherror): New global.
78195         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
78196         interface.
78197         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
78198         void *.
78199         (freeaddrinfo): Free ai->ai_canonname when set.
78200
78201 2005-09-12  Derek Price  <derek@ximbiot.com>
78202
78203         Make canon-host require getaddrinfo.
78204         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
78205         AC_LIBSOURCE canon-host.h.  Call...
78206         (gl_PREREQ_CANON_HOST): ...this new function, which requires
78207         gl_GETADDRINFO.
78208         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
78209
78210 2005-09-12  Derek Price  <derek@ximbiot.com>
78211
78212         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
78213         LGPL.
78214         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
78215
78216 2005-09-12  Derek Price  <derek@ximbiot.com>
78217
78218         * lib/gai_strerror.c: Include config.h when available.  Include
78219         getaddrinfo.h before other headers to test interface.
78220         Reported by Larry Jones <lawrence.jones@ugs.com>.
78221
78222 2005-09-12  Derek Price  <derek@ximbiot.com>
78223             Paul Eggert  <eggert@cs.ucla.edu>
78224
78225         * modules/glob (Files): Add glob-libc.h.
78226
78227 2005-09-12  Derek Price  <derek@ximbiot.com>
78228             Paul Eggert  <eggert@cs.ucla.edu>
78229
78230         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
78231         glob_.h, glob-libc.h.
78232         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
78233
78234 2005-09-12  Derek Price  <derek@ximbiot.com>
78235             Paul Eggert  <eggert@cs.ucla.edu>
78236
78237         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
78238         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
78239         protecting things that should be done only in gnulib contexts.
78240         * lib/glob_.h: New file, containing only the glob things needed for
78241         gnulib.
78242         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
78243         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
78244         (glob, globfree, glob_pattern_p): Now defined simply in terms of
78245         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
78246         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
78247         and to respect the namespace rules better.
78248
78249 2005-09-08  Simon Josefsson  <jas@extundo.com>
78250
78251         * modules/socklen: New file.
78252
78253 2005-09-08  Simon Josefsson  <jas@extundo.com>
78254
78255         * m4/socklen.m4: New file.
78256
78257 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
78258
78259         * modules/utimens (Files): Add m4/utimbuf.m4, since
78260         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
78261         Reported by Sergey Poznyakoff.
78262
78263 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
78264
78265         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
78266         definitions, since that's the preferred style in glibc.
78267         Fix a minor spacing issue, and update copyright notice to match
78268         glibc's.
78269
78270 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
78271
78272         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
78273
78274 2005-09-06  Simon Josefsson  <jas@extundo.com>
78275
78276         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
78277         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
78278
78279 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
78280
78281         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
78282         warning.
78283
78284 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
78285
78286         * config/srclist.txt: Add glibc bug 1302.
78287
78288 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
78289
78290         Change bitset word type from unsigned int to unsigned long int,
78291         as this has better performance on typical 64-bit hosts.
78292         Port bitset code to hosts with unusual word sizes.
78293         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
78294         (build_collating_symbol):
78295         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
78296         argument is a bitset.  This is merely a style issue, but it makes
78297         it clearer that an entire array is expected.
78298         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
78299         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
78300         Port to the case where bitset_word is not the same as unsigned int.
78301         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
78302         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
78303         Likewise.
78304         * lib/regexec.c (check_dst_limits_calc_pos_1,
78305         check_subexp_matching_top):
78306         (build_trtable, group_nodes_into_DFAstates):
78307         Likewise.
78308         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
78309         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
78310         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
78311         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
78312         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
78313         * lib/regcomp.c (optimize_subexps, lower_subexp):
78314         Work even if bitset_word has holes in its bitwise representation.
78315         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
78316         * lib/regexec.c (check_dst_limits_calc_pos_1,
78317         check_subexp_matching_top):
78318         Likewise.
78319         * lib/regex_internal.c (re_string_reconstruct):
78320         Don't assume UCHAR_MAX == 255.
78321         * lib/regex_internal.h (bitset_set_all): Likewise.
78322         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
78323         All uses changed.
78324         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
78325         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
78326         All uses changed.
78327         (BITSET_WORD_MAX): New macro.
78328         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
78329         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
78330         (bitset_empty, bitset_copy):
78331         Prefer sizeof (bitset) to multiplying it out ourselves.
78332         (bitset_not_merge): Remove; unused.
78333         (bitset_contain): Return bool, not unsigned int with one bit on.
78334         All callers changed.
78335         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
78336         alignment than re_node_set; do this by defining a new internal
78337         type struct dests_alloc and using it to allocate memory.
78338
78339 2005-09-05  Bruno Haible  <bruno@clisp.org>
78340
78341         * gnulib-tool (func_import): Fix comparison in handling of symbolic
78342         links.
78343
78344 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
78345
78346         * modules/size_max (Makefile.am): Add size_max.h
78347
78348 2005-09-04  Derek Price  <derek@ximbiot.com>
78349
78350         * gnulib-tool (func_import): Fix reversed $symbolic logic.
78351
78352 2005-09-03  Simon Josefsson  <jas@extundo.com>
78353
78354         * gnulib-tool: Fix typo.
78355
78356 2005-09-03  Simon Josefsson  <jas@extundo.com>
78357
78358         * config/srclist.txt: Add glibc bug 1293.
78359
78360 2005-09-03  Derek Price  <derek@ximbiot.com>
78361
78362         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
78363         From Larry Jones <lawrence.jones@ugs.com>.
78364
78365 2005-09-02  Simon Josefsson  <jas@extundo.com>
78366
78367         * modules/socklen: New file.
78368
78369 2005-09-02  Simon Josefsson  <jas@extundo.com>
78370
78371         * modules/havelib: New module.
78372
78373         * modules/gettext, modules/iconv, modules/lock, modules/readline:
78374         Use havelib.
78375
78376 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
78377
78378         Check for arithmetic overflow when calculating sizes, to prevent
78379         some buffer-overflow issues.  These patches are conservative, in the
78380         sense that when I couldn't determine whether an overflow was possible,
78381         I inserted a run-time check.
78382         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
78383         macros.
78384         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
78385         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
78386         (re_xnrealloc, re_x2nrealloc): New inline functions.
78387         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
78388         parse_bracket_exp):
78389         (build_equiv_class, build_charclass): Check for arithmetic overflow
78390         in size expression calculations.
78391         * lib/regex_internal.c (re_string_realloc_buffers):
78392         (build_wcs_upper_buffer, re_node_set_add_intersect):
78393         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
78394         (re_dfa_add_node, register_state): Likewise.
78395         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
78396         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
78397         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
78398         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
78399
78400 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
78401
78402         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
78403         m4/ulonglong.m4.  Problem reported by Martin Lambers.
78404
78405 2005-09-02  Bruno Haible  <bruno@clisp.org>
78406
78407         Support for lib vs. lib64 distinction on biarch platforms.
78408         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
78409         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
78410         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
78411
78412 2005-09-02  Bruno Haible  <bruno@clisp.org>
78413
78414         * gnulib-tool (import): In the other first-use case, provide defaults
78415         as well.
78416
78417 2005-09-02  Bruno Haible  <bruno@clisp.org>
78418
78419         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
78420         patches not yet found in the latest gettext release.
78421
78422 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
78423
78424         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
78425         to avoid a collision with bits/local_lim.h in glibc.
78426         All uses changed.  Problem reported by Dmitry V. Levin in
78427         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
78428
78429         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
78430         bugs in int versus size_t comparisons.
78431         (re_string_context_at): Fix bug where the code assumed that
78432         Idx is signed.
78433
78434         Use bool where appropriate.
78435         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
78436         All callers changed.
78437         (calc_eclosure_iter): Likewise, for ROOT arg.
78438         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
78439         (build_charclass_op): Likewise, for NON_MATCH arg.
78440         * lib/regex_internal.c (re_string_allocate, re_string_construct):
78441         (re_string_construct_common): Likewise, for ICASE arg.
78442         * lib/regexec.c (re_search_2_stub, re_search_stub):
78443         Likewise, for RET_LEN arg.
78444         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
78445         (set_regs): Likewise, for FL_BACKTRACK arg.
78446         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
78447         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
78448         (calc_eclosure_iter, parse_bracket_exp):
78449         Use bool for internal variables that are booleans.
78450         * lib/regexec.c (re_search_internal, check_matching,
78451         proceed_next_node):
78452         (set_regs, build_sifted_states, sift_states_bkref):
78453         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
78454         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
78455         (find_collation_sequence_value):
78456         Likewise.
78457         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
78458         (re_node_set_compare):
78459         Return bool, not int. All callers changed.
78460         * lib/regexec.c (check_halt_node_context, check_dst_limits):
78461         (build_trtable, check_node_accept): Likewise.
78462         * lib/regex_internal.h: Include stdbool.h.
78463
78464         Fix bugs uncovered when converting to bool.
78465         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
78466         failure instead of charging ahead blindly.
78467         * lib/regex_internal.c (register_state): Likewise.
78468         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
78469         for freeing internal storage.
78470         (group_nodes_into_DFA_states): Use unsigned int, not int, for
78471         bitset pieces used as boolean, to avoid undefined behavior
78472         on hosts that do int overflow checking.
78473
78474 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
78475
78476         * config/srclist.txt: Add glibc bugs 1285-1287.
78477
78478 2005-09-01  Jim Meyering  <jim@meyering.net>
78479
78480         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
78481         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
78482         Require gl_STAT_MACROS, too.
78483
78484 2005-09-01  Bruno Haible  <bruno@clisp.org>
78485
78486         * gnulib-tool (import): In the first-use case, provide defaults.
78487
78488 2005-09-01  Bruno Haible  <bruno@clisp.org>
78489
78490         * gnulib-tool (func_import): Remove the .tmp files.
78491
78492 2005-09-01  Bruno Haible  <bruno@clisp.org>
78493
78494         * gnulib-tool (func_import): Fix handling of symbolic links.
78495
78496 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
78497
78498         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
78499         old glibc regex code mishandles strings longer than 2**31 bytes.
78500         This patch fixes this when the regex code is used in gnulib
78501         (i.e., outside glibc).
78502
78503         This patch should not affect the use of the regex code inside
78504         glibc.  No doubt this problem also needs to be handled for glibc
78505         as well, but the result will be an incompatible change to the
78506         glibc ABI, and the old ABI will have to be supported too.  That
78507         can be the the subject for another patch.
78508
78509         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
78510         governing whether the rest of this patch is active.  By default,
78511         the macro is disabled and the patch has no effect.
78512         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
78513         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
78514         (struct re_pattern_buffer, re_search, re_search_2, re_match):
78515         (re_match_2, re_set_registers): Use the new types.
78516         * lib/regex_internal.h (Idx, re_hashval_t): New types.
78517         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
78518         New macros.
78519         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
78520         (re_string_context_at, bin_tree_t, re_dfastate_t):
78521         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
78522         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
78523         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
78524         (re_string_char_size_at, re_string_wchar_at):
78525         (re_string_elem_size_at):
78526         Use the new types and macros to port to 64-bit hosts.
78527         Use unsigned types for internal values, so that the code
78528         mostly works even for arrays larger than SSIZE_MAX.
78529         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
78530         (search_duplicated_node, calc_eclosure_iter, fetch_number):
78531         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
78532         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
78533         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
78534         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
78535         (calc_inveclosure, parse_dup_op, build_range_exp):
78536         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
78537         (fetch_number, create_token_tree, mark_opt_subexp):
78538         Likewise.
78539         * lib/regex_internal.c (re_string_construct_common,
78540         create_ci_newstate):
78541         (create_cd_newstate, re_string_allocate, re_string_construct):
78542         (re_string_realloc_buffers, build_wcs_upper_buffer):
78543         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
78544         (re_string_reconstruct, re_string_peek_byte_case):
78545         (re_string_fetch_byte_case, re_string_context_at):
78546         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
78547         (re_node_set_init_copy, re_node_set_add_intersect):
78548         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
78549         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
78550         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
78551         (re_acquire_state, re_acquire_state_context, register_state):
78552         Likewise.
78553         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
78554         search_cur_bkref_entry):
78555         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
78556         (re_search_internal, re_search_2_stub, re_search_stub)
78557         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
78558         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
78559         (update_cur_sifted_state, check_dst_limits):
78560         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
78561         (check_subexp_limits, sift_states_bkref, merge_state_array):
78562         (check_subexp_matching_top, get_subexp, get_subexp_sub):
78563         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
78564         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
78565         (expand_bkref_cache, check_node_accept_bytes):
78566         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
78567         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
78568         (acquire_init_state_context, check_halt_node_context):
78569         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
78570         (sift_states_backward, clean_state_log_if_needed):
78571         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
78572         (find_recover_state, transit_state_sb, transit_state_mb):
78573         (transit_state_bkref, build_trtable, match_ctx_clean):
78574         Likewise.
78575         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
78576         to work around an assumption that REG_MISSING is negative.
78577
78578         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
78579         (seek_collating_symbol_entry) [defined _LIBC]:
78580         (lookup_collation_sequence_value) [defined _LIBC]:
78581         (build_range_exp, build_collating_symbol) [defined _LIBC]:
78582         Use prototypes rather than old-style function definitions.
78583         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
78584         (transit_state_sb) [0]:
78585         (find_collation_sequence_value) [defined _LIBC]: Likewise.
78586
78587         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
78588         rm_eo.
78589
78590         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
78591         (optimize_subexps, lower_subexp):
78592         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
78593         since the signed shift might overflow.  Use 1u<<31 instead.
78594         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
78595         Likewise.
78596         * lib/regexec.c (check_dst_limits_calc_pos_1,
78597         check_subexp_matching_top): Likewise.
78598
78599         * lib/regcomp.c (optimize_subexps, lower_subexp):
78600         Use CHAR_BIT rather than 8, for clarity.
78601         * lib/regexec.c (check_dst_limits_calc_pos_1):
78602         (check_subexp_matching_top): Likewise.
78603         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
78604         have to worry about portability issues when shifting it left.
78605         Remove no-longer-needed test for table_size > 0.
78606         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
78607         in a word, as the resulting behavior is undefined.
78608         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
78609         in one case, a <= should have been an <, and in another case the
78610         whole test was missing.
78611         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
78612         the standard name CHAR_BIT.
78613         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
78614         this is not true on one's complement and signed-magnitude hosts.
78615
78616         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
78617         next_last_offset.
78618         (struct re_dfa_t): Remove unused member states_alloc.
78619         * lib/regcomp.c (init_dfa): Don't initialize unused members.
78620
78621 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
78622
78623         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
78624         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
78625         and large-file glibc and in 32-bit large-file Solaris.
78626
78627 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
78628
78629         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
78630         lengths fit in regoff_t; this isn't true if regoff_t is the same
78631         width as size_t.
78632         * lib/regex.c (re_search_internal): 5th arg is LAST_START
78633         (= START + RANGE) instead of RANGE.  This avoids overflow
78634         problems when regoff_t is the same width as size_t.
78635         All callers changed.
78636         (re_search_2_stub): Check for overflow when adding the
78637         sizes of the two strings.
78638         (re_search_stub): Check for overflow when adding START
78639         to RANGE; if it occurs, substitute the extreme value.
78640
78641 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
78642
78643         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
78644
78645 2005-08-31  Jim Meyering  <jim@meyering.net>
78646
78647         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
78648         a pointer-to-const.
78649         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
78650         (register_state): Likewise.
78651         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
78652         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
78653         (group_nodes_into_DFAstates): Likewise.
78654
78655 2005-08-31  Jim Meyering  <jim@meyering.net>
78656
78657         * check-module: Add a FIXME comment.
78658
78659 2005-08-31  Eric Blake  <ebb9@byu.net>
78660
78661         * modules/unistd-safer (Files): Add unistd--.h.
78662         * modules/stdio-safer (Files): Add stdio--.h.
78663
78664 2005-08-31  Derek Price  <derek@ximbiot.com>
78665
78666         * lib/getdelim.c (getdelim): Return EOF on EOF.
78667         Reported by Larry Jones <lawrence.jones@ugs.com>.
78668
78669 2005-08-31  Bruno Haible  <bruno@clisp.org>
78670
78671         Avoid unnecessary diffs in the generated lib/Makefile.am.
78672         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
78673         the generated files.
78674         (func_import): Don't set cmd.
78675
78676 2005-08-31  Bruno Haible  <bruno@clisp.org>
78677
78678         * lib/strstr.c: Include <stddef.h>, for NULL.
78679         * lib/strcasestr.c: Likewise.
78680         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
78681
78682 2005-08-31  Bruno Haible  <bruno@clisp.org>
78683
78684         * gnulib-tool: New option --macro-prefix.
78685         (func_import): Use macro_prefix.
78686         (import): Handle option --macro-prefix.
78687
78688 2005-08-31  Bruno Haible  <bruno@clisp.org>
78689
78690         * gnulib-tool (import): Rename most ac_* variables to cached_*.
78691         Also use new variables cached_lgpl, cached_libtool.
78692
78693 2005-08-31  Bruno Haible  <bruno@clisp.org>
78694
78695         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
78696         always instantiating them.
78697
78698 2005-08-31  Bruno Haible  <bruno@clisp.org>
78699
78700         * gnulib-tool (func_import): Read the previous cached settings
78701         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
78702         earlier added by gnulib but are now dropped. Warn when a gnulib file
78703         overwrites a non-gnulib file.
78704
78705 2005-08-31  Bruno Haible  <bruno@clisp.org>
78706
78707         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
78708         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
78709         projects that don't keep autogenerated files in CVS. Put into
78710         actioncmd only the specified modules, not the transitive closure.
78711
78712 2005-08-31  Bruno Haible  <bruno@clisp.org>
78713
78714         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
78715         Create directories that shall be filled.
78716         (import): Don't look for gl_* macros in configure.ac. Recurse across
78717         all directories containing a gnulib-cache.m4 files, if meaningful.
78718
78719 2005-08-31  Bruno Haible  <bruno@clisp.org>
78720
78721         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
78722         (import): Set seen_libtool when we see gl_LIBTOOL.
78723
78724 2005-08-31  Bruno Haible  <bruno@clisp.org>
78725
78726         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
78727         declaration macro definitions from generated gnulib.m4.
78728
78729 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
78730
78731         * lib/iconvme.h: Add prototype for iconv_alloc.
78732
78733 2005-08-29  Simon Josefsson  <jas@extundo.com>
78734
78735         * lib/iconvme.c: Fix errno.
78736
78737 2005-08-29  Bruno Haible  <bruno@clisp.org>
78738
78739         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
78740         that it works when the directory contains spaces.
78741
78742 2005-08-29  Bruno Haible  <bruno@clisp.org>
78743
78744         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
78745
78746 2005-08-29  Bruno Haible  <bruno@clisp.org>
78747
78748         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
78749         Emit more advice.
78750
78751 2005-08-29  Bruno Haible  <bruno@clisp.org>
78752         and Stepan Kasal  <kasal@ucw.cz>
78753
78754         * check-module: If more parameters are given, check each of them
78755         separately; add more exceptions, as noted by Jim Meyering.
78756         (check_module): New procedure.
78757         (%exempt_header): Now contains all exceptions.
78758
78759 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
78760
78761         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
78762
78763 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
78764
78765         * lib/iconvme.c: Split iconv_string into iconv_alloc.
78766
78767 2005-08-28  Bruno Haible  <bruno@clisp.org>
78768
78769         * m4/gnulib-tool.m4: New file.
78770
78771 2005-08-27  Jim Meyering  <jim@meyering.net>
78772
78773         * modules/unistd-safer (Files): Add pipe-safer.c.
78774         * modules/fcntl-safer (Files): Add creat-safer.c.
78775
78776 2005-08-27  Jim Meyering  <jim@meyering.net>
78777
78778         * m4/stdlib-safer.m4: New file.  From coreutils.
78779         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
78780         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
78781         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
78782         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
78783         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
78784
78785 2005-08-27  Jim Meyering  <jim@meyering.net>
78786
78787         * lib/fopen-safer.c: Merge minor changes from coreutils.
78788         * lib/dup-safer.c: Likewise.
78789         * lib/fd-safer.c: Likewise.
78790
78791         Merge from coreutils.
78792         * lib/stdio--.h: New file.
78793         * lib/stdlib--.h: New file.
78794         * lib/mkstemp-safer.c: New file.
78795
78796         GNU tar needs these.
78797         * lib/pipe-safer.c: New file.
78798         * lib/creat-safer.c: New file.
78799         * lib/fcntl--.h (creat): Define to creat_safer.
78800         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
78801         * lib/unistd--.h (pipe): Define to pipe_safer.
78802         * lib/unistd-safer.h: Declare pipe_safer.
78803
78804 2005-08-26  Simon Josefsson  <jas@extundo.com>
78805
78806         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
78807         Haible <bruno@clisp.org>.
78808
78809 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
78810
78811         * lib/regex_internal.h: Remove all references to
78812         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
78813         or better.
78814         (bitset_not, bitset_merge, bitset_not_merge):
78815         (bitset_mask, re_string_allocate, re_string_construct):
78816         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
78817         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
78818         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
78819         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
78820         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
78821         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
78822         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
78823         (re_acquire_state_context):
78824         Remove unnecessary forward decls.
78825         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
78826         Put __attribute at function definition,
78827         now that the function decl has been removed.
78828         * lib/regex_internal.c (re_string_peek_byte_case):
78829         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
78830         Likewise.
78831
78832 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
78833
78834         * m4/regex.m4: Add AC_PREREQ(2.50).
78835         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
78836
78837 2005-08-25  Simon Josefsson  <jas@extundo.com>
78838
78839         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
78840         __fsetlocking.
78841
78842 2005-08-25  Simon Josefsson  <jas@extundo.com>
78843
78844         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
78845         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
78846         GLIBC specific code.
78847
78848 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
78849
78850         Make regex safe for g++.  This fixes one real bug (an "err"
78851         that should have been "*err").  g++ problem reported by
78852         Sam Steingold.
78853         * lib/regex_internal.h (re_calloc): New macro, consistent with
78854         re_malloc etc.  All callers of calloc changed to use re_calloc.
78855         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
78856         not int.  All callers changed.
78857         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
78858         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
78859         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
78860         (find_recover_state): Change "err" to "*err"; this fixes what
78861         appears to be a real bug.
78862         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
78863         versus int.
78864
78865 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
78866
78867         * modules/regex (Depends-on): Add malloc, since the code
78868         assumes that !malloc(0) means failure.
78869
78870 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
78871
78872         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
78873
78874         alloca modernization/simplification for regex.
78875         * lib/regex.c: Remove portability cruft for alloca.  This no longer
78876         needs to be at the start of the file, and can be moved into
78877         regex_internal.h and simplified.
78878         * lib/regex_internal.h: Include <alloca.h>.
78879         (__libc_use_alloca) [!defined _LIBC]: New macro.
78880         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
78881         now works outside glibc.
78882
78883 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
78884
78885         * config/srclist.txt: Add glibc bugs 1241, 1245.
78886
78887 2005-08-25  Jim Meyering  <jim@meyering.net>
78888
78889         * lib/open-safer.c: Include <config.h>.
78890         Otherwise, we'd lose LARGEFILE support in any file using
78891         e.g. "fcntl--.h"
78892
78893 2005-08-25  Bruno Haible  <bruno@clisp.org>
78894
78895         * m4/minmax.m4: Require autoconf 2.52.
78896         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
78897         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
78898         alternatives of translit over the alphabet.
78899         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
78900
78901 2005-08-24  Simon Josefsson  <jas@extundo.com>
78902
78903         * tests/test-getpass.c: New file.
78904
78905 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
78906
78907         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
78908         for GNU regex features.
78909
78910 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
78911
78912         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
78913         * lib/regex.h (regerror): Likewise.
78914
78915         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
78916         requires this.  (The code never needed it.)
78917
78918         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
78919         All uses of recently-renamed identifiers changed to use the new,
78920         POSIX-compliant names.  The code will build and run just fine
78921         without these changes, but it's better to eat our own dog food
78922         and use the standard-conforming names.
78923
78924         * lib/regex.h: Fix a multitude of POSIX name space violations.
78925         These changes have an effect only for programs that define
78926         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
78927         do not change anything for programs compiled in the normal way.
78928         Also, there is no effect on the ABI.
78929
78930         (_REGEX_SOURCE): New macro.
78931         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
78932         defined and _GNU_SOURCE is not; this fixes a name space violation.
78933
78934         Rename the following macros to obey POSIX requirements.
78935         The old names are still visible as macros if _REGEX_SOURCE is defined.
78936         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
78937         RE_BACKSLASH_ESCAPE_IN_LISTS.
78938         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
78939         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
78940         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
78941         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
78942         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
78943         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
78944         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
78945         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
78946         (REG_INTERVALS): renamed from RE_INTERVALS.
78947         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
78948         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
78949         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
78950         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
78951         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
78952         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
78953         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
78954         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
78955         RE_UNMATCHED_RIGHT_PAREN_ORD.
78956         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
78957         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
78958         (REG_DEBUG): renamed from RE_DEBUG.
78959         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
78960         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
78961         unusual, since we can't clash with the POSIX REG_ICASE.
78962         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
78963         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
78964         (REG_NO_SUB): renamed from RE_NO_SUB.
78965         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
78966         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
78967         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
78968         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
78969         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
78970         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
78971         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
78972         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
78973         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
78974         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
78975         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
78976         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
78977         RE_SYNTAX_POSIX_MINIMAL_BASIC.
78978         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
78979         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
78980         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
78981         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
78982         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
78983         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
78984         (REG_FIXED): Renamed from REGS_FIXED.
78985         (REG_NREGS): Renamed from RE_NREGS.
78986
78987         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
78988         of other REG_* macros, since POSIX says the user is allowed to
78989         #undef these macros selectively.
78990
78991         (reg_errcode_t): Update comment stating what other tables need
78992         to be consistent.
78993
78994         Rename the following enum values to obey POSIX requirements.
78995         The old names are still visible as macros.
78996         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
78997         is not defined, since GNU is supposed to be a superset of POSIX as
78998         much as possible, and since we want reg_errcode_t to be a signed
78999         type for implementation consistency.
79000         (_REG_NOERROR): Renamed from REG_NOERROR.
79001         (_REG_NOMATCH): Renamed from REG_NOMATCH.
79002         (_REG_BADPAT): Renamed from REG_BADPAT.
79003         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
79004         (_REG_ECTYPE): Renamed from REG_ECTYPE.
79005         (_REG_EESCAPE): Renamed from REG_EESCAPE.
79006         (_REG_ESUBREG): Renamed from REG_ESUBREG.
79007         (_REG_EBRACK): Renamed from REG_EBRACK.
79008         (_REG_EPAREN): Renamed from REG_EPAREN.
79009         (_REG_EBRACE): Renamed from REG_EBRACE.
79010         (_REG_BADBR): Renamed from REG_BADBR.
79011         (_REG_ERANGE): Renamed from REG_ERANGE.
79012         (_REG_ESPACE): Renamed from REG_ESPACE.
79013         (_REG_BADRPT): Renamed from REG_BADRPT.
79014         (_REG_EEND): Renamed from REG_EEND.
79015         (_REG_ESIZE): Renamed from REG_ESIZE.
79016         (_REG_ERPAREN): Renamed from REG_ERPAREN.
79017         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
79018         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
79019         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
79020         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
79021
79022         (_REG_RE_NAME, _REG_RM_NAME): New macros.
79023         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
79024         changed.  But support the old name if the new one is not defined
79025         and if _REGEX_SOURCE.
79026
79027         Change the following member names in struct re_pattern_buffer.
79028         The old names are still supported if !_REGEX_SOURCE.
79029         The new names are always supported, regardless of _REGEX_SOURCE.
79030         (re_buffer): Renamed from buffer.
79031         (re_allocated): Renamed from allocated.
79032         (re_used): Renamed from used.
79033         (re_syntax): Renamed from syntax.
79034         (re_fastmap): Renamed from fastmap.
79035         (re_translate): Renamed from translate.
79036         (re_can_be_null): Renamed from can_be_null.
79037         (re_regs_allocated): Renamed from regs_allocated.
79038         (re_fastmap_accurate): Renamed from fastmap_accurate.
79039         (re_no_sub): Renamed from no_sub.
79040         (re_not_bol): Renamed from not_bol.
79041         (re_not_eol): Renamed from not_eol.
79042         (re_newline_anchor): Renamed from newline_anchor.
79043
79044         Change the following member names in struct re_registers.
79045         The old names are still supported if !_REGEX_SOURCE.
79046         The new names are always supported, regardless of _REGEX_SOURCE.
79047         (rm_num_regs): Renamed from num_regs.
79048         (rm_start): Renamed from start.
79049         (rm_end): Renamed from end.
79050
79051         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
79052         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
79053         Prepend __ to parameter names.
79054
79055         Undo yesterday's changes.
79056
79057 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
79058
79059         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
79060         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
79061         lib/regex.c.
79062
79063 2005-08-24  Jim Meyering  <jim@meyering.net>
79064
79065         Sync from coreutils.
79066         * m4/fcntl-safer.m4: New file.
79067
79068         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
79069         and object files for this module.
79070
79071 2005-08-24  Jim Meyering  <jim@meyering.net>
79072
79073         Sync from coreutils.
79074         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
79075
79076 2005-08-24  Jim Meyering  <jim@meyering.net>
79077
79078         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
79079         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
79080
79081 2005-08-24  Jim Meyering  <jim@meyering.net>
79082
79083         * modules/fcntl-safer: New module.
79084         * modules/fts (Depends-on): Add fcntl-safer.
79085         * MODULES.html.sh (File descriptor based Input/Output):
79086         Add fcntl-safer.
79087
79088 2005-08-24  Bruno Haible  <bruno@clisp.org>
79089
79090         Support for unit test modules.
79091         * modules/README: Mention tests modules.
79092         * modules/TEMPLATE-TESTS: New file.
79093         * gnulib-tool: New options --extract-tests-module, --with-tests and
79094         --tests-base (unused for the moment).
79095         (testsbase, inctests): New variables.
79096         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
79097         (func_verify_module): Exclude TEMPLATE-TESTS.
79098         (func_verify_nontests_module, func_verify_tests_module): New functions.
79099         (func_get_dependencies): Add implicit dependency for tests modules.
79100         (func_get_tests_module): New function.
79101         (func_modules_transitive_closure): When --with-tests was specified,
79102         include the unit tests as well, unless explicitly avoided.
79103         (func_emit_lib_Makefile_am): Ignore the tests modules here.
79104         (func_emit_tests_Makefile_am): New function.
79105         (func_create_testdir): When --with-tests was specified, emit a
79106         tests/ directory.
79107         * MODULES.html.sh (Future developments): Update.
79108
79109 2005-08-24  Bruno Haible  <bruno@clisp.org>
79110
79111         * modules/tls-tests: New file.
79112         * tests/test-tls.c: New file, from GNU gettext.
79113
79114 2005-08-24  Bruno Haible  <bruno@clisp.org>
79115
79116         * modules/lock-tests: New file.
79117         * tests/test-lock.c: New file, from GNU gettext.
79118
79119 2005-08-24  Bruno Haible  <bruno@clisp.org>
79120
79121         * lib/lock.h: Add multiple inclusion guard.
79122         * lib/tls.h: Add multiple inclusion guard.
79123
79124 2005-08-24  Bruno Haible  <bruno@clisp.org>
79125
79126         * gnulib-tool: Add support for the --aux-dir option to
79127         --create-testdir, --create-megatestdir, --test, --megatest.
79128         (func_create_testdir, func_create_megatestdir): Optionally emit a
79129         AC_CONFIG_AUX_DIR directive.
79130         (create-testdir, create-megatestdir, test, megatest): Provide a
79131         default value for $auxdir.
79132
79133 2005-08-24  Bruno Haible  <bruno@clisp.org>
79134
79135         * gnulib-tool (import): Use compound statement instead of subshell
79136         where possible.
79137
79138 2005-08-24  Bruno Haible  <bruno@clisp.org>
79139
79140         * gnulib-tool (import): Change --aux-dir default to "build-aux".
79141
79142 2005-08-24  Bruno Haible  <bruno@clisp.org>
79143
79144         * gnulib-tool (func_version): Update.
79145
79146 2005-08-24  Bruno Haible  <bruno@clisp.org>
79147
79148         * gnulib-tool (func_import, func_create_testdir,
79149         func_create_megatestdir): Quote all autoconf macro arguments.
79150
79151 2005-08-24  Bruno Haible  <bruno@clisp.org>
79152
79153         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
79154         option --force, because --force causes the aclocal.m4 of each
79155         subdirectory to be newer than the corresponding config.h.in.
79156
79157 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
79158
79159         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
79160         All contents moved to gl_REGEX.
79161         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
79162         assume that it does.
79163
79164 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
79165
79166         * lib/regex.h (REG_NOSYS)
79167         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
79168         Define, since POSIX requires it as of 2001.
79169         (_REG_ENOSYS)
79170         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
79171         New private symbol, used to keep the enum signed in all cases.
79172         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
79173         Youngman in
79174         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
79175
79176         * lib/regex_internal.c (re_string_skip_chars, register_state):
79177         (calc_state_hash):
79178         Remove forward decls; no longer needed now that we use prototypes.
79179         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
79180         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
79181         (clean_state_log_if_needed): Likewise.
79182
79183 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
79184
79185         * config/srclist.txt: Add glibc bugs 1231-1233.
79186
79187 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
79188
79189         Fix problems reported by Sam Steingold in
79190         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
79191         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
79192         assumed that reg_errcode_t is a signed type, which is not
79193         necessarily true if _XOPEN_SOURCE is not defined.
79194         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
79195         since some compilers warn about it otherwise.
79196
79197 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
79198
79199         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
79200         (init_word_char, create_initial_state, duplicate_node_closure):
79201         (fetch_token, peek_token_bracket, build_range_exp):
79202         (build_collating_symbol): Remove forward decls; no longer needed
79203         now that we use prototypes.
79204
79205         * lib/regcomp.c:
79206         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
79207         (re_compile_fastmap_iter, regcomp, regerror, regfree):
79208         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
79209         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
79210         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
79211         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
79212         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
79213         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
79214         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
79215         (build_range_exp, build_collating_symbol, parse_bracket_exp):
79216         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
79217         (build_charclass, build_charclass_op, fetch_number, create_tree):
79218         (create_token_tree, mark_opt_subexp, duplicate_tree):
79219         Use prototypes rather than old-style definitions.
79220
79221         * lib/regex_internal.c:
79222         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
79223         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
79224         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
79225         (re_string_reconstruct, re_string_peek_byte_case):
79226         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
79227         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
79228         (re_node_set_init_copy, re_node_set_add_intersect):
79229         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
79230         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
79231         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
79232         (re_acquire_state, re_acquire_state_context, register_state):
79233         (create_ci_newstate, create_cd_newstate, free_state):
79234         Likewise.
79235         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
79236         re_search_2):
79237         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
79238         (re_search_internal, prune_impossible_nodes):
79239         (acquire_init_state_context, check_matching, static):
79240         (check_halt_node_context, check_halt_state_context, proceed_next_node):
79241         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
79242         (update_regs, sift_states_backward, build_sifted_states):
79243         (clean_state_log_if_needed, merge_state_array):
79244         (update_cur_sifted_state, add_epsilon_src_nodes):
79245         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
79246         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
79247         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
79248         (find_recover_state, check_subexp_matching_top, transit_state_mb):
79249         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
79250         (check_arrival, check_arrival_add_next_nodes):
79251         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
79252         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
79253         (check_node_accept_bytes, check_node_accept, extend_buffers):
79254         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
79255         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
79256         (sift_ctx_init):
79257         Likewise.
79258
79259         * lib/regex_internal.h:
79260         (re_string_allocate, re_string_construct, re_string_reconstruct):
79261         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
79262         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
79263         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
79264         (re_string_context_at, re_string_peek_byte_case):
79265         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
79266         is defined, since we now use prototypes always.
79267
79268         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
79269         C89 or better.  All uses removed.
79270
79271 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
79272
79273         * config/srclist.txt: Add glibc bugs 1220-1227.
79274
79275 2005-08-20  Jim Meyering  <jim@meyering.net>
79276
79277         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
79278         of unused local, dfa.
79279
79280 2005-08-20  Bruno Haible  <bruno@clisp.org>
79281
79282         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
79283
79284 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
79285
79286         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
79287         (re_node_set_insert_last, re_dfa_add_node):
79288         Rename local variables to avoid GCC shadowing warnings.
79289
79290 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
79291
79292         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
79293         [defined lint]: Suppress bogus uninitialized-variable warnings.
79294
79295         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
79296         and let the caller return REG_ESPACE if out of space.  This
79297         removes an uninitialied-variable warning with GCC 4.0.1, and also
79298         avoids taking the address of a local variable.  All callers
79299         changed.
79300
79301 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
79302
79303         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
79304         $LIBCSRC/posix/regexec.c.
79305         Add glibc bug 1217 for regcomp.c.
79306
79307 2005-08-19  Jim Meyering  <jim@meyering.net>
79308
79309         * lib/regexec.c (proceed_next_node): Redo local variables to
79310         avoid GCC shadowing warnings.
79311
79312 2005-08-18  Bruno Haible  <bruno@clisp.org>
79313
79314         * lib/strstr.c (strstr): Fix return value in multibyte case.
79315         * lib/strcasestr.c (strcasestr): Likewise.
79316
79317 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
79318
79319         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
79320
79321 2005-08-17  Jim Meyering  <jim@meyering.net>
79322
79323         Make the %s format (seconds since the epoch) work for a negative
79324         number and when used with a zero-padded field width, e.g. %015s.
79325
79326         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
79327         label so that it precedes the code to set `digits'.  Otherwise,
79328         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
79329         print `00-22'.  Now, it prints `-0022', as it should.
79330
79331 2005-08-17  Bruno Haible  <bruno@clisp.org>
79332
79333         * modules/strstr (Files): Add m4/mbrtowc.m4.
79334         (Depends-on): Add mbuiter.
79335
79336 2005-08-17  Bruno Haible  <bruno@clisp.org>
79337
79338         * modules/strcasestr: New file.
79339         * MODULES.html.sh (String handling, based on ANSI C 89): Add
79340         strcasestr.
79341
79342 2005-08-17  Bruno Haible  <bruno@clisp.org>
79343
79344         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
79345
79346 2005-08-17  Bruno Haible  <bruno@clisp.org>
79347
79348         * modules/mbuiter: New file.
79349         * MODULES.html.sh (Extended multibyte and wide character utilities):
79350         Add mbuiter.
79351
79352 2005-08-17  Bruno Haible  <bruno@clisp.org>
79353
79354         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
79355         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
79356
79357 2005-08-17  Bruno Haible  <bruno@clisp.org>
79358
79359         * m4/strcasestr.m4: New file.
79360
79361 2005-08-17  Bruno Haible  <bruno@clisp.org>
79362
79363         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
79364         * lib/strstr.c: Completely rewritten, with multibyte locale support.
79365
79366 2005-08-17  Bruno Haible  <bruno@clisp.org>
79367
79368         * lib/strcasestr.h: New file.
79369         * lib/strcasestr.c: New file.
79370
79371 2005-08-17  Bruno Haible  <bruno@clisp.org>
79372
79373         * lib/strcasecmp.c: Use mbuiter.h.
79374
79375 2005-08-17  Bruno Haible  <bruno@clisp.org>
79376
79377         * lib/mbuiter.h: New file.
79378
79379 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
79380
79381         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
79382         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
79383         and gl_GETOPT are both invoked via different paths (as happens
79384         with GNU tar CVS because it uses both argp and getopt), the former
79385         wins.
79386
79387 2005-08-16  Bruno Haible  <bruno@clisp.org>
79388
79389         * modules/tls: New file.
79390         * MODULES.html.sh (Multithreading): Add tls.
79391
79392 2005-08-16  Bruno Haible  <bruno@clisp.org>
79393
79394         * modules/strnlen1: New file.
79395         * MODULES.html.sh (String handling): Add strnlen1.
79396
79397 2005-08-16  Bruno Haible  <bruno@clisp.org>
79398
79399         * modules/strcase (Files): Add m4/mbrtowc.m4.
79400         (Depends-on): Add strnlen1, mbchar.
79401
79402 2005-08-16  Bruno Haible  <bruno@clisp.org>
79403
79404         * modules/mbiter: New file.
79405         * MODULES.html.sh (Extended multibyte and wide character utilities):
79406         Add mbiter.
79407
79408 2005-08-16  Bruno Haible  <bruno@clisp.org>
79409
79410         * modules/mbfile: New file.
79411         * MODULES.html.sh (Extended multibyte and wide character utilities):
79412         Add mbfile.
79413
79414 2005-08-16  Bruno Haible  <bruno@clisp.org>
79415
79416         * modules/mbchar: New file.
79417         * MODULES.html.sh (Extended multibyte and wide character utilities):
79418         New section.
79419
79420 2005-08-16  Bruno Haible  <bruno@clisp.org>
79421
79422         * m4/tls.m4: New file, from GNU gettext.
79423
79424 2005-08-16  Bruno Haible  <bruno@clisp.org>
79425
79426         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
79427         always.
79428         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
79429
79430 2005-08-16  Bruno Haible  <bruno@clisp.org>
79431
79432         * m4/mbiter.m4: New file.
79433
79434 2005-08-16  Bruno Haible  <bruno@clisp.org>
79435
79436         * m4/mbfile.m4: New file.
79437
79438 2005-08-16  Bruno Haible  <bruno@clisp.org>
79439
79440         * m4/mbchar.m4: New file.
79441
79442 2005-08-16  Bruno Haible  <bruno@clisp.org>
79443
79444         * lib/tls.h: New file, from GNU gettext.
79445         * lib/tls.c: New file, from GNU gettext.
79446
79447 2005-08-16  Bruno Haible  <bruno@clisp.org>
79448
79449         * lib/strnlen1.h: New file.
79450         * lib/strnlen1.c: New file.
79451
79452 2005-08-16  Bruno Haible  <bruno@clisp.org>
79453
79454         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
79455         (mbi_init): Update.
79456         (mbi_avail, mbi_advance): Let the iteration end before the terminating
79457         NUL byte, not after it.
79458
79459 2005-08-16  Bruno Haible  <bruno@clisp.org>
79460
79461         * lib/strcase.h (strcasecmp): Add note in comments.
79462         * lib/strncasecmp.c: Use code from strcasecmp.c.
79463         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
79464         (strcasecmp): Work correctly in multibyte locales.
79465
79466 2005-08-16  Bruno Haible  <bruno@clisp.org>
79467
79468         * lib/mbiter.h: New file.
79469
79470 2005-08-16  Bruno Haible  <bruno@clisp.org>
79471
79472         * lib/mbfile.h: New file.
79473
79474 2005-08-16  Bruno Haible  <bruno@clisp.org>
79475
79476         * lib/mbchar.h: New file.
79477         * lib/mbchar.c: New file.
79478
79479 2005-08-16  Bruno Haible  <bruno@clisp.org>
79480
79481         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
79482         the valid ones. Makes the comparison operations transitive:
79483         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
79484         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
79485
79486 2005-08-15  Simon Josefsson  <jas@extundo.com>
79487
79488         * modules/ssize_t (License): Change to 'unlimited'.
79489
79490         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
79491
79492 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
79493
79494         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
79495         Add comments for each pending glibc patch.
79496
79497 2005-08-15  Bruno Haible  <bruno@clisp.org>
79498
79499         * lib/regex.h (__restrict_arr): Don't define to __restrict if
79500         __cplusplus is defined.
79501
79502 2005-08-14  Jim Meyering  <jim@meyering.net>
79503
79504         Sync from coreutils.
79505
79506         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
79507         Use the hash-table-based cycle-detection code not just when
79508         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
79509         Reported by James Youngman in
79510         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
79511         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
79512         FTS_TIGHT_CYCLE_CHECK.
79513         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
79514         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
79515         once again.
79516         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
79517         * lib/fts.c (fd_safer): Remove decl.
79518         Include fcntl--.h rather than unistd-safer.h
79519         (fts_safe_changedir): Don't call fd_safer; no longer needed
79520         now that we include fcntl--.h.
79521
79522 2005-08-12  Simon Josefsson  <jas@extundo.com>
79523
79524         * modules/getndelim2: Use ssize_t module.
79525         * modules/getnline: Likewise.
79526         * modules/safe-read: Likewise.
79527         * modules/xreadlink: Likewise.
79528
79529         * modules/ssize_t: New file.
79530
79531 2005-08-12  Simon Josefsson  <jas@extundo.com>
79532
79533         * m4/readline.m4: Look for termcap, curses or ncurses if required.
79534
79535 2005-08-12  Simon Josefsson  <jas@extundo.com>
79536
79537         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
79538         ssize_t.
79539
79540 2005-08-12  Simon Josefsson  <jas@extundo.com>
79541
79542         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
79543         readline, getdelim and check_version.
79544         (Support for systems lacking ISO C 99: Sizes of integer types):
79545         Add size_max.
79546
79547 2005-08-12  Bruno Haible  <bruno@clisp.org>
79548
79549         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
79550
79551 2005-08-11  Simon Josefsson  <jas@extundo.com>
79552
79553         * modules/readline: New file.
79554
79555         * modules/strnlen (Files): Add strnlen.h.
79556
79557 2005-08-11  Simon Josefsson  <jas@extundo.com>
79558
79559         * m4/readline.m4: New file.
79560
79561 2005-08-11  Simon Josefsson  <jas@extundo.com>
79562
79563         * lib/readline.h, readline.c: New file.
79564
79565 2005-08-11  Simon Josefsson  <jas@extundo.com>
79566
79567         * doc/gnulib.texi (Initial import, Finishing touches): Mention
79568         gl_AVOID.
79569
79570 2005-08-11  Bruno Haible  <bruno@clisp.org>
79571
79572         * lib/strnlen.h (strnlen): Change parameter name to match comment.
79573
79574 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
79575
79576         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
79577
79578 2005-08-10  Simon Josefsson  <jas@extundo.com>
79579
79580         * tests/test-iconvme.c: New file.
79581
79582 2005-08-10  Simon Josefsson  <jas@extundo.com>
79583
79584         * m4/strnlen.m4: New file.
79585
79586         * m4/strndup.m4: Don't check for strnlen declaration, done in
79587         strnlen.m4.
79588
79589 2005-08-10  Simon Josefsson  <jas@extundo.com>
79590
79591         * lib/strndup.c: Use strnlen.h.
79592
79593         * lib/strnlen.h: New file.
79594
79595 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
79596
79597         * README: Typos.
79598
79599 2005-08-02  Simon Josefsson  <jas@extundo.com>
79600
79601         * modules/readline: New file.
79602
79603 2005-08-02  Simon Josefsson  <jas@extundo.com>
79604
79605         * modules/getdelim: New file.
79606
79607         * modules/getline: Rewrite, don't use getndelim2.
79608
79609 2005-08-02  Simon Josefsson  <jas@extundo.com>
79610
79611         * m4/getline.m4: Separate out getdelim stuff into separate module.
79612
79613         * m4/getdelim.m4: New file.
79614
79615 2005-08-02  Simon Josefsson  <jas@extundo.com>
79616
79617         * lib/getline.h, getline.c: Rewrite.
79618
79619         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
79620
79621 2005-07-31  Bruno Haible  <bruno@clisp.org>
79622
79623         * lib/lock.h (gl_lock_initializer): New macro.
79624         (gl_lock_define_initialized): Use it.
79625         (gl_rwlock_initializer): New macro.
79626         (gl_rwlock_define_initialized): Use it.
79627         (gl_recursive_lock_initializer): New macro.
79628         (gl_recursive_lock_define_initialized): Use it.
79629
79630 2005-07-30  Karl Berry  <karl@gnu.org>
79631
79632         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
79633         Report from Ben Pfaff, regarding getopt.
79634
79635 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
79636
79637         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
79638         normal way.
79639         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
79640         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
79641         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
79642         (gl_GETOPT): Use the new macros.  Most of the implementation
79643         is moved to the new macros.  This is for programs like Emacs
79644         that don't want all the functionality of gl_GETOPT.
79645
79646 2005-07-26  Bruno Haible  <bruno@clisp.org>
79647
79648         * m4/lock.m4: Update from GNU gettext.
79649
79650 2005-07-26  Bruno Haible  <bruno@clisp.org>
79651
79652         * lib/lock.h: Update from GNU gettext.
79653         * lib/lock.c: Update from GNU gettext.
79654
79655 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
79656
79657         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
79658         obsolescent AC_TRY_RUN.  Include the default includes files, for
79659         'exit'.
79660
79661 2005-07-24  Bruno Haible  <bruno@clisp.org>
79662
79663         * modules/visibility: New file.
79664         * MODULES.html.sh (Misc): Add visibility.
79665
79666 2005-07-24  Bruno Haible  <bruno@clisp.org>
79667
79668         * m4/visibility.m4: New file.
79669
79670 2005-07-24  Bruno Haible  <bruno@clisp.org>
79671
79672         * doc/visibility.texi: New file.
79673
79674 2005-07-22  Bruno Haible  <bruno@clisp.org>
79675
79676         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
79677         $(ALLOCA_H), redundant through BUILT_SOURCES.
79678         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
79679         redundant through BUILT_SOURCES.
79680         * modules/byteswap (Makefile.am): Remove explicit dependency on
79681         $(BYTESWAP_H), redundant through BUILT_SOURCES.
79682         * modules/fnmatch (Makefile.am): Remove explicit dependency on
79683         $(FNMATCH_H), redundant through BUILT_SOURCES.
79684         * modules/getopt (Makefile.am): Remove explicit dependency on
79685         $(GETOPT_H), redundant through BUILT_SOURCES.
79686         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
79687         redundant through BUILT_SOURCES.
79688         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
79689         redundant through BUILT_SOURCES.
79690         * modules/stdbool (Makefile.am): Remove explicit dependency on
79691         $(STDBOOL_H), redundant through BUILT_SOURCES.
79692         * modules/stdint (Makefile.am): Remove explicit dependency on
79693         $(STDINT_H), redundant through BUILT_SOURCES.
79694         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
79695         Remove explicit dependency on $(SYSEXITS_H).
79696         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
79697
79698 2005-07-18  Simon Josefsson  <jas@extundo.com>
79699
79700         * lib/check-version.c (check_version): Accept identical versions too.
79701
79702 2005-07-18  Bruno Haible  <bruno@clisp.org>
79703
79704         * modules/lock: New file.
79705         * MODULES.html.sh (Multithreading): New section.
79706
79707 2005-07-18  Bruno Haible  <bruno@clisp.org>
79708
79709         * m4/lock.m4: New file, from GNU gettext.
79710
79711 2005-07-18  Bruno Haible  <bruno@clisp.org>
79712
79713         * lib/lock.h: New file, from GNU gettext.
79714         * lib/lock.c: New file, from GNU gettext.
79715
79716 2005-07-18  Bruno Haible  <bruno@clisp.org>
79717
79718         * lib/lock.h (gl_once_t): New type.
79719         (gl_once_define, gl_once): New macros.
79720         * lib/lock.c (fresh_once): New variable.
79721         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
79722         functions.
79723
79724 2005-07-16  Simon Josefsson  <jas@extundo.com>
79725
79726         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
79727         workaround, suggested by Bruno.
79728
79729 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
79730
79731         * modules/xalloc (Depends-on): Add xalloc-die.
79732         * modules/xvasprintf (Depends-on): Add xalloc-die.
79733
79734 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
79735
79736         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
79737         with a minor change.
79738
79739 2005-07-15  Bruno Haible  <bruno@clisp.org>
79740
79741         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
79742         When using lib/poll.c, define poll as rpl_poll.
79743
79744 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
79745
79746         * modules/argp (Depends-on): Remove unlocked-io.
79747
79748 2005-07-14  Derek Price  <derek@ximbiot.com>
79749
79750         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
79751         for glob symlink bug.
79752
79753 2005-07-14  Bruno Haible  <bruno@clisp.org>
79754
79755         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
79756         Instead, test for *_unlocked function declarations directly.
79757
79758 2005-07-11  Simon Josefsson  <jas@extundo.com>
79759
79760         * modules/size_max: New file.
79761
79762         * modules/xsize: Depend on size_max module for size_max.m4.
79763
79764 2005-07-11  Simon Josefsson  <jas@extundo.com>
79765
79766         * lib/size_max.h: New file.
79767
79768 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
79769
79770         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
79771         copyright symbol and the year.
79772         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
79773         (version_etc_va): Use parameterized copyright notice.
79774         Reword to conform to the current GNU coding standards.
79775
79776 2005-07-11  Karl Berry  <karl@gnu.org>
79777
79778         * doc/gnulib.texi (Quoting): new node.
79779         (Initial import): more info, from Patrice.
79780
79781 2005-07-11  Bruno Haible  <bruno@clisp.org>
79782
79783         * gnulib-tool (func_usage): Document option --avoid.
79784         (Command line options): Handle --avoid.
79785         (func_acceptable): New function.
79786         (func_modules_transitive_closure): Use it.
79787
79788 2005-07-11  Bruno Haible  <bruno@clisp.org>
79789
79790         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
79791         Reported by Jim Meyering.
79792
79793 2005-07-10  Bruno Haible  <bruno@clisp.org>
79794
79795         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
79796         Needed when size_t is smaller than 'unsigned int'.
79797         Reported by Paul Eggert.
79798
79799 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
79800
79801         * modules/argp (Depends-on): Add unlocked-io
79802
79803 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
79804
79805         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
79806         block of defines.
79807
79808 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
79809
79810         * config/srclist.txt: Comment out regcomp.c, since we have a porting
79811         fix now.
79812
79813 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
79814         and Paul Eggert  <eggert@cs.ucla.edu>
79815
79816         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
79817         in wint_t, not wchar_t.  Remove now-unnecessary cast.
79818
79819 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
79820
79821         * modules/regex (Files): Add lib/regex_internal.c,
79822         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
79823         (Depends-on): Add extensions.
79824         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
79825
79826 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
79827
79828         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
79829         pathconf.
79830         * m4/same.m4 (gl_SAME): Likewise.
79831         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
79832
79833         * m4/regex.m4: Adjust to new libc regex implementation.
79834         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
79835         all the .c and .h parts of (the new) regex.
79836         Quote the m4 stuff better.
79837         Check for RE_ICASE bug of old gnulib.
79838         Check for REG_STARTEND of recent libc.
79839         Rename local variables from jm_* to gl_*.
79840         Quote operand of "test -f".
79841         Say "recent enough" version of libc, not "version 2".
79842         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
79843         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
79844         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
79845         Remove check for btowc, isascii.
79846         Require AM_LANGINFO_CODESET.
79847
79848 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
79849
79850         * lib/regex.c, regex.h: Sync from libc.
79851         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
79852         * lib/regexec.c:
79853         New files, synced from libc, except that regex_internal.h
79854         currently has a small porting fix.
79855
79856 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
79857
79858         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
79859         regex_internal.c, regexec.c.
79860         Add regex_internal.h too, but as a comment, since the libc version
79861         is currently broken in gnulib mode.
79862
79863 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
79864
79865         Support programs like Emacs that use gnulib but not gettext.
79866         * MODULES.html.sh (Internationalization functions): Add gettext-h.
79867         * modules/gettext-h: New file.
79868         * modules/gettext (Files): Remove lib/gettext.h.
79869         (Depends-on): Add gettext-h.
79870         (Makefile.am): Remove lib_SOURCES.
79871         * modules/argmatch, modules/c-stack, modules/closeout:
79872         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
79873         * modules/execute, modules/file-type, modules/getaddrinfo:
79874         * modules/getopt, modules/human, modules/javacomp:
79875         * modules/javaexec, modules/mkdir-p, modules/obstack:
79876         * modules/openat, modules/pagealign_alloc, modules/pipe:
79877         * modules/quotearg, modules/regex, modules/rpmatch:
79878         * modules/unicodeio, modules/userspec, modules/version-etc:
79879         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
79880         * modules/xsetenv:
79881         Depend on gettext-h, not gettext.
79882
79883 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
79884
79885         * gnulib-tool (func_import): Add support for 'public domain' license.
79886         * modules/alloca, modules/atexit, modules/memmove:
79887         Now public domain, not GPL.
79888         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
79889         * modules/realloc, modules/strerror, modules/strtod:
79890         Now LGPL, not GPL.
79891
79892 2005-07-05  Bruno Haible  <bruno@clisp.org>
79893
79894         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
79895         autoconf CVS. Needed for mingw.
79896
79897 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
79898
79899         Remove the dependency of the strftime module on the tzset module.
79900         * modules/strftime (Depends-on): Remove dependency on tzset.
79901
79902 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
79903
79904         Remove the dependency of the strftime module on the tzset module.
79905         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
79906         gl_FUNC_TZSET_CLOBBER.
79907
79908 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
79909
79910         Remove the dependency of the strftime module on the tzset module.
79911         * lib/strftime.c (my_strftime)
79912         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
79913         Copy the input structure, to work around some of the bug with
79914         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
79915         Solaris releases, you should also use the tzset module, but we won't
79916         require it as a dependency any more since we don't want LGPLed code
79917         to depend on GPLed code.
79918
79919 2005-07-02  Jim Meyering  <jim@meyering.net>
79920
79921         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
79922         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
79923         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
79924         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
79925
79926 2005-07-02  Jim Meyering  <jim@meyering.net>
79927
79928         * lib/backupfile.c (backup_args): Change a `0' to NULL.
79929
79930 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
79931
79932         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
79933         declares only 'struct timespec;' (!).
79934
79935 2005-07-01  Jim Meyering  <jim@meyering.net>
79936
79937         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
79938         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
79939         * lib/save-cwd.c, tempname.c:
79940         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
79941         and don't include <sys/file.h>).
79942
79943 2005-06-29  Jim Meyering  <jim@meyering.net>
79944
79945         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
79946         type name.  Use the variable name instead.
79947         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
79948         Likewise.
79949
79950 2005-06-28  Simon Josefsson  <jas@extundo.com>
79951
79952         * modules/check-version (Files): Add check-version.m4.
79953
79954 2005-06-28  Simon Josefsson  <jas@extundo.com>
79955
79956         * m4/check-version.m4: New file, suggested by Jim Meyering
79957         <jim@meyering.net>.
79958
79959 2005-06-28  Simon Josefsson  <jas@extundo.com>
79960
79961         * lib/check-version.h, lib/check-version.c: New files.
79962
79963 2005-06-28  Simon Josefsson  <jas@extundo.com>
79964
79965         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
79966         collision with global variable.  Better indentation.  Don't
79967         increment buffer pointer beyond buffer end.  Based on comments
79968         from Paul Eggert <eggert@cs.ucla.edu>.
79969
79970         * lib/base64.h: Indent.
79971
79972 2005-06-28  Simon Josefsson  <jas@extundo.com>
79973
79974         * doc/gnulib.texi (Library version handling): New section.
79975
79976 2005-06-28  Jim Meyering  <jim@meyering.net>
79977
79978         * check-module (find_included_lib_files): Hard-code another
79979         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
79980         but modules/fts-lgpl (correctly) does not list those files.
79981
79982         * modules/canonicalize (Files): Add lib/pathmax.h.
79983
79984 2005-06-25  Simon Josefsson  <jas@extundo.com>
79985
79986         * modules/check-version: New file.
79987
79988 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
79989
79990         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
79991         initializer of struct addrinfo, as an indication that we don't
79992         care how many members the structure has.
79993
79994 2005-06-24  Derek Price  <derek@ximbiot.com>
79995         and Bruno Haible  <bruno@clisp.org>
79996
79997         Remove stat module & update lstat.
79998         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
79999         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
80000         * m4/stat.m4: Remove this file.
80001
80002 2005-06-24  Derek Price  <derek@ximbiot.com>
80003         and Bruno Haible  <bruno@clisp.org>
80004
80005         Remove stat module & update lstat.
80006         * lib/stat.c: Remove this file...
80007         (slash_aware_lstat): ...moving this content and its support...
80008         * lib/lstat.c (rpl_lstat): ...into here.
80009         * lib/lstat.h: New file.
80010
80011 2005-06-24  Derek Price  <derek@ximbiot.com>
80012         and Bruno Haible  <bruno@clisp.org>
80013
80014         Remove stat module & update lstat.
80015         * config/srclist.txt (libc sources): Remove stat.
80016
80017 2005-06-24  Derek Price  <derek@ximbiot.com>
80018         and Bruno Haible  <bruno@clisp.org>
80019
80020         Remove stat module & update lstat.
80021         * MODULES.html.sh (stat): Remove.
80022         * MODULES.html: Regenerated.
80023         * modules/lstat (Description): Correct function name.
80024         (Files): Add "lstat.h".
80025         (Depends-on): Remove stat, add xalloc, stat-macros.
80026         * modules/stat: Remove this file.
80027         (Include): Add "lstat.h", remove <sys/stat.h>.
80028
80029 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
80030
80031         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
80032         (ranged_convert): Don't save conversion in a temporary struct.
80033         This causes a warning with GCC 4.0.0, and anyway in the typical
80034         case it's not worth the extra 100 bytes or so of code.
80035         (ranged_convert, __mktime_internal): When calling a function via a
80036         pointer P, use P () rather than (*P) (), as we now assume C89 or
80037         better.
80038
80039 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
80040
80041         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
80042         "who -r" failed to give output.  Problem reported by Tim Waugh.
80043
80044         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
80045         (xcalloc): Use it to avoid needless tests.
80046         Problem reported by Jim Meyering.
80047
80048 2005-06-20  Derek Price  <derek@ximbiot.com>
80049
80050         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
80051         unnecessary for Autoconfs > 2.59c.
80052
80053 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
80054
80055         * lib/argp.h (__option_is_short): Check upper limit of
80056         __key. Isprint() requires its argument to have the value
80057         of an unsigned char or EOF.
80058
80059 2005-06-16  Jim Meyering  <jim@meyering.net>
80060
80061         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
80062         when either N or S is zero.
80063
80064 2005-06-16  Derek Price  <derek@ximbiot.com>
80065
80066         * m4/bison.m4: Declare YACC & YFLAGS precious.
80067
80068 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
80069
80070         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
80071         multibyte string or pattern, fall back on unibyte matching.
80072         Problem reported by James Youngman.
80073
80074 2005-06-08  Bruno Haible  <bruno@clisp.org>
80075
80076         * modules/csharpcomp: New file.
80077         * MODULES.html.sh (C#): Add csharpcomp.
80078
80079 2005-06-08  Bruno Haible  <bruno@clisp.org>
80080
80081         * m4/csharpcomp.m4: New file, from GNU gettext.
80082
80083 2005-06-08  Bruno Haible  <bruno@clisp.org>
80084
80085         * lib/csharpcomp.h: New file, from GNU gettext.
80086         * lib/csharpcomp.c: New file, from GNU gettext.
80087         * lib/csharpcomp.sh.in: New file, from GNU gettext.
80088
80089 2005-06-08  Bruno Haible  <bruno@clisp.org>
80090
80091         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
80092         warning on mingw.
80093
80094 2005-06-07  Derek Price  <derek@ximbiot.com>
80095
80096         Sync from CVS.
80097         * lib/glob_.h: Indent nested #ifdef.
80098
80099 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
80100
80101         Sync from coreutils.
80102         Use "file name" when talking about file names, instead of "filename"
80103         or "path", as per the GNU coding standards.
80104         * lib/mkdir-p.c: Renamed from makepath.c.
80105         (make_dir_parents): Renamed from make_path.  All callers changed.
80106         * lib/mkdir-p.h: Likewise.  All includers changed.
80107         * lib/filenamecat.c: Renamed from path-concat.c.
80108         (file_name_concat): Renamed from path_concat.  All callers changed.
80109         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
80110         * lib/filenamecat.h: Likewise.  All includers changed.
80111         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
80112         in comments or local variable names.
80113         * lib/basename.c: Likewise.
80114         * lib/canonicalize.c, canonicalize.h: Likewise.
80115         * lib/dirname.c, dirname.h: Likewise.
80116         * lib/euidaccess.c: Likewise.
80117         * lib/exclude.c: Likewise
80118         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
80119         * lib/fsusage.c, fsuage.h: Likewise.
80120         * lib/fts.c, fts_.h: Likewise.
80121         * lib/getcwd.c: Likewise.
80122         * lib/getloadavg.c: Likewise.
80123         * lib/mkstemp.c: Likewise.
80124         * lib/mountlist.c, mountlist.h: Likewise.
80125         * lib/openat.c, openat.h: Likewise.
80126         * lib/readlink-stub.c: Likewise.
80127         * lib/readutmp.c, readutmp.h: Likewise.
80128         * lib/rename.c: Likewise.
80129         * lib/rmdir.c: Likewise.
80130         * lib/same.c: Likewise.
80131         * lib/savedir.c: Likewise.
80132         * lib/stripslash.c: Likewise.
80133         * lib/tempname.c: Likewise.
80134         * lib/xreadlink.c: Likewise.
80135         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
80136         All uses changed.
80137         * lib/exclude.h: Likewise.
80138
80139         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
80140         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
80141         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
80142         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
80143         * lib/pathmax.h: Include <limits.h> unconditionally, since other
80144         files have been getting away with it for years (MORE/BSD 4.3
80145         is extinct now).
80146         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
80147         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
80148
80149         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
80150         Define to 256, not 255, as per modern POSIX.
80151
80152 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
80153
80154         Sync from coreutils.
80155         Use "file name" when talking about file names, instead of "filename"
80156         or "path", as per the GNU coding standards.
80157         * MODULES.html.sh: mkdir-p renamed from makepath.
80158         filenamecat renamed from path-concat.
80159         * modules/filenamecat: Renamed from modules/path-concat.
80160         (Files): filenamecat.h and filenamecat.c renamed from
80161         path-concat.h and path-concat.c.
80162         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
80163         (Include): filenamecat.h, not path-concat.h.
80164         * modules/mkdir-p: Renamed from modules/makepath.
80165         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
80166         makepath.c.
80167         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
80168         (Include): mkdir-p.h, not makepath.h.
80169
80170 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
80171
80172         Sync from coreutils.
80173         * m4/mkdir-p.m4: Renamed from makepath.m4.
80174         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
80175         Rename files from makepath.c to mkdir-p.c, and from
80176         makepath.h to mkdir-p.h.
80177         * m4/filenamecat.m4: Renamed from path-concat.m4.
80178         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
80179         Rename files from path-concat.c to filenamecat.c,
80180         and from path-concat.h to filenamecat.h.
80181         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
80182         "file name" in local variables or comments.
80183         * m4/rename.m4: Likewise.
80184
80185 2005-06-01  Bruno Haible  <bruno@clisp.org>
80186
80187         * modules/csharpexec: New file.
80188         * MODULES.html.sh (C#): New section.
80189
80190 2005-06-01  Bruno Haible  <bruno@clisp.org>
80191
80192         * m4/csharp.m4: New file, from GNU gettext.
80193         * m4/csharpexec.m4: New file, from GNU gettext.
80194
80195 2005-06-01  Bruno Haible  <bruno@clisp.org>
80196
80197         * lib/csharpexec.h: New file, from GNU gettext.
80198         * lib/csharpexec.c: New file, from GNU gettext.
80199         * lib/csharpexec.sh.in: New file, from GNU gettext.
80200
80201 2005-05-31  Derek Price  <derek@ximbiot.com>
80202             Paul Eggert  <eggert@cs.ucla.edu>
80203
80204         Sync from cvs.
80205         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
80206
80207 2005-05-31  Derek Price  <derek@ximbiot.com>
80208             Paul Eggert  <eggert@cs.ucla.edu>
80209
80210         Sync from cvs.
80211         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
80212
80213 2005-05-29  Derek Price  <derek@ximbiot.com>
80214
80215         * config/srclist.txt (glob_.h, glob.c): Add these files.
80216
80217 2005-05-29  Derek Price  <derek@ximbiot.com>
80218
80219         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
80220         * modules/glob: New file.
80221         * modules/getlogin_r: Add link to POSIX spec in description.
80222
80223 2005-05-29  Derek Price  <derek@ximbiot.com>
80224             Paul Eggert  <eggert@cs.ucla.edu>
80225
80226         * m4/glob.m4: New file.
80227
80228 2005-05-29  Derek Price  <derek@ximbiot.com>
80229             Paul Eggert  <eggert@cs.ucla.edu>
80230
80231         * lib/glob_.h, lib/glob.c: New files.
80232
80233 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
80234
80235         * modules/fts (Files): Remove m4/inttypes-pri.m4.
80236         * modules/fts-lgpl (Depends-on): Remove gettext.
80237
80238 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
80239
80240         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
80241         and don't require gt_INTTYPES_PRI.
80242
80243 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
80244
80245         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
80246
80247         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
80248         the configuration hassle isn't worth it.
80249         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
80250         (LONGEST_MODIFIER, PRIuMAX): Remove.
80251
80252 2005-05-27  Bruno Haible  <bruno@clisp.org>
80253
80254         * lib/getlogin_r.h: Remove second include of <stddef.h>.
80255
80256 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
80257
80258         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
80259         _POSIX_PTHREAD_SEMANTICS for Solaris.
80260
80261 2005-05-25  Derek Price  <derek@ximbiot.com>
80262
80263         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
80264
80265 2005-05-25  Derek Price  <derek@ximbiot.com>
80266             Paul Eggert  <eggert@cs.ucla.edu>
80267
80268         * modules/getlogin_r, m4/getlogin_r.m4: New files.
80269         * lib/getlogin_r.c, getlogin_r.h: New files.
80270
80271 2005-05-25  Bruno Haible  <bruno@clisp.org>
80272             Derek Price  <derek@ximbiot.com>
80273
80274         * lib/getlogin_r.h: Simplify API documentation.
80275
80276 2005-05-23  Derek Price  <derek@ximbiot.com>
80277
80278         * modules/minmax (Files): Add m4/minmax.m4.
80279         (configure.ac): Add gl_MINMAX.
80280
80281 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
80282
80283         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
80284         so that unistd-safer.h (GPL'ed code) need not be included.
80285
80286 2005-05-22  Bruno Haible  <bruno@clisp.org>
80287
80288         * m4/minmax.m4: New file.
80289         Based on a patch by Derek Price <derek@ximbiot.com>.
80290
80291 2005-05-22  Bruno Haible  <bruno@clisp.org>
80292
80293         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
80294         (INT64_MIN): Fix definition.
80295         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
80296
80297         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
80298         NEED_SIGNED_INT_TYPES.
80299
80300         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
80301         HAVE_SYSTEM_INTTYPES.
80302
80303 2005-05-22  Bruno Haible  <bruno@clisp.org>
80304
80305         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
80306         Also include <sys/param.h> if it defines MIN, MAX.
80307         Based on a patch by Derek Price <derek@ximbiot.com>.
80308
80309 2005-05-21  Jim Meyering  <jim@meyering.net>
80310
80311         * modules/fts (Files): Add m4/inttypes-pri.m4.
80312         (Depends-on): Add lstat and remove gettext.  Alphabetize.
80313
80314 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
80315
80316         New fts module.
80317         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
80318         (setup_dir, free_dir): New functions.
80319         (enter_dir, leave_dir): Define trivial
80320         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
80321         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
80322         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
80323         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
80324         Move to fts-cycle.c.
80325         (fts_open): Use setup_dir.
80326         (fts_close): Use free_dir.
80327         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
80328         This adds a label and some gotos, but the alternatives were messier.
80329         Check for memory allocation failure when entering a dir.
80330         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
80331         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
80332         (FTS): New member fts_cycle, that is a union that contains the
80333         old active_dir_ht and cycle_state.  All uses changed to mention
80334         fts_cycle.ht and fts_cycle.state.
80335         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
80336         fts.c, with the following changes:
80337         (setup_dir, free_dir): New functions.
80338         (enter_dir): Now returns bool.  Return true if successful, false
80339         if memory exhausted.  All callers changed.
80340         Do not bother partly cleaning up on
80341         memory allocation failure; that is free_dir's job.
80342         However, free ad if hash_insert fails, to avoid memory leak.
80343         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
80344         fts->fts_options to see which union member to use.
80345
80346 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
80347
80348         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
80349         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
80350
80351 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
80352
80353         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
80354
80355 2005-05-20  Jim Meyering  <jim@meyering.net>
80356
80357         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
80358         Now a macro, to pacify GCC.
80359
80360 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
80361
80362         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
80363         of -1.
80364
80365 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
80366
80367         * lib/chown.c (rpl_chown): Return -1 on failure.
80368
80369 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
80370
80371         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
80372         Don't check for stddef.h.
80373         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
80374         don't use its results.
80375         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
80376         since we include them unconditionally.  Don't require
80377         AM_STDBOOL_H, since stdbool is a prerequisite.
80378         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
80379         since we assume C89 or better.
80380         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
80381         as we don't use their results.
80382         Don't check for fchdir, memmove, memset, strrchr, as we use
80383         them unconditionally.
80384         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
80385         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
80386
80387 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
80388
80389         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
80390         Include <stddef.h> unconditionally, since we assume C89 now.
80391         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
80392         * lib/fts.c: Include fts_.h first, to check interface.
80393         Do not include intprops.h; no longer needed.
80394         Include cycle-check.h and hash.h, since fts_.h no longer does.
80395         Remove unnecessary casts of closedir to void.
80396         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
80397         decide whether to decrement nlinks.
80398         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
80399         (FTS): Use struct hash_table * instead of Hash_table, so that
80400         we no longer need to include hash.h here.
80401
80402 2005-05-18  Jim Meyering  <jim@meyering.net>
80403
80404         * modules/dirfd (License): Change to LGPL.  Most of the code
80405         is already in the public domain.
80406
80407 2005-05-18  Jim Meyering  <jim@meyering.net>
80408
80409         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
80410         Reported by Yoann Vandoorselaere.
80411
80412 2005-05-17  Jim Meyering  <jim@meyering.net>
80413
80414         * m4/fts.m4: New file, from coreutils.
80415
80416 2005-05-17  Jim Meyering  <jim@meyering.net>
80417
80418         * lib/fts.c, lib/fts_.h: New files, from coreutils.
80419
80420 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
80421
80422         Sync from coreutils.
80423         * m4/unlinkdir.m4: New file.
80424
80425 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
80426
80427         Sync from coreutils.
80428         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
80429         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
80430         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
80431         White space changes only.
80432         * lib/makepath.c (make_path): Port to hosts where leading "//" is
80433         special.
80434         * lib/yesno.c: Include getline.h, not ctype.h.
80435         (yesno): Don't remove leading white space; POSIX doesn't allow it.
80436         Use getline to remove arbitrary restriction on response length.
80437
80438 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
80439
80440         * config/srclist-update: Spell out "Street" in FSF postal
80441         mail address; this is the style the FSF seems to prefer.
80442
80443         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
80444         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
80445         this updates FSF postal mail address.
80446
80447         Sync from coreutils.
80448         * modules/unlinkdir: New file.
80449         * modules/yesno (Depends-on): Add getline.
80450         * MODULES.html.sh (File system functions): Add unlinkdir.
80451
80452 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
80453
80454         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
80455         lib/strsep.h:
80456         Change the initial comment to refer to GPL, not LGPL.
80457         gnulib-tool will change it to LGPL as needed.
80458
80459         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
80460         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
80461         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
80462         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
80463         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
80464         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
80465         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
80466         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
80467         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
80468         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
80469         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
80470         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
80471         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
80472         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
80473         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
80474         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
80475         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
80476         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
80477         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
80478         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
80479         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
80480         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
80481         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
80482         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
80483         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
80484         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
80485         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
80486         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
80487         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
80488         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
80489         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
80490         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
80491         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
80492         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
80493         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
80494         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
80495         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
80496         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
80497         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
80498         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
80499         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
80500         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
80501         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
80502         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
80503         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
80504         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
80505         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
80506         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
80507         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
80508         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
80509         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
80510         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
80511         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
80512         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
80513         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
80514         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
80515         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
80516         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
80517         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
80518         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
80519         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
80520         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
80521         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
80522         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
80523         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
80524         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
80525         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
80526         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
80527         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
80528         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
80529         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
80530         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
80531         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
80532         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
80533         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
80534         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
80535         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
80536         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
80537         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
80538         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
80539         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
80540         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
80541         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
80542         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
80543         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
80544         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
80545         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
80546         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
80547         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
80548         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
80549         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
80550         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
80551         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
80552         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
80553         lib/yesno.c, lib/yesno.h:
80554         Update FSF postal mail address.
80555
80556 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
80557
80558         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
80559         tests/test-memmem.c, tests/test-stpncpy.c:
80560         Update FSF postal mail address.
80561
80562 2005-05-13  Bruno Haible  <bruno@clisp.org>
80563
80564         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
80565         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
80566         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
80567         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
80568         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
80569         Add support for 64-bit integers in the MSVC compiler.
80570
80571 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
80572
80573         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
80574
80575 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
80576
80577         * gnulib-tool (func_import): Sort and uniquify recommended includes.
80578
80579 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
80580
80581         * doc/getdate.texi (General date syntax): Don't say that date
80582         date --iso-8601=ns generates acceptable dates; it doesn't yet.
80583         Problem reported by Nic Ferrier.
80584
80585 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
80586
80587         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
80588         specified in ai_socktype. Fix invalid ai_protocol
80589         check. ai_protocol is usually set to 0 or depending on
80590         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
80591         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
80592         ai_socktype / ai_protocol in the returned addrinfo structure.
80593
80594 2005-05-10  Simon Josefsson  <jas@extundo.com>
80595
80596         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
80597         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
80598
80599 2005-05-10  Karl Berry  <karl@gnu.org>
80600
80601         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
80602         (from http://www.gnu.org/licenses).
80603         * doc/COPYING.LIB: also rename to COPYING.LESSER.
80604         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
80605         fdl.texi suffices.
80606
80607 2005-05-10  Karl Berry  <karl@gnu.org>
80608
80609         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
80610         (COPYING.DOC): remove.
80611
80612         * config/srclist-update: new FSF address.
80613
80614 2005-05-10  Derek Price  <derek@ximbiot.com>
80615
80616         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
80617         possible.
80618
80619 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
80620             Bruno Haible  <bruno@clisp.org>
80621
80622         * modules/inet_ntop: New file.
80623         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
80624         inet_ntop.
80625
80626 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
80627             Bruno Haible  <bruno@clisp.org>
80628
80629         * m4/inet_ntop.m4: New file.
80630
80631 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
80632             Bruno Haible  <bruno@clisp.org>
80633
80634         * lib/inet_ntop.h: New file.
80635         * lib/inet_ntop.c: New file, from glibc with modifications.
80636
80637 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
80638
80639         * modules/time_r (License): Change to LGPL.
80640         * modules/extensions (License): Change to LGPL.  Actually,
80641         the license is more permissive than that, but currently gnulib-tool
80642         doesn't know how to handle more-permissive licenses.
80643
80644         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
80645         Problem reported by Dave Love.
80646
80647 2005-05-08  Jim Meyering  <jim@meyering.net>
80648
80649         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
80650         blank.
80651
80652 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
80653
80654         * modules/argmatch (Depends-on): Add stdbool.
80655         * modules/backupfile (Depends-on): Likewise.
80656         * modules/chdir-long (Depends-on): Likewise.
80657         * modules/closeout (Depends-on): Likewise.
80658         * modules/cycle-check (Depends-on): Likewise.
80659         * modules/dirname (Depends-on): Likewise.
80660         * modules/fnmatch (Depends-on): Likewise.
80661         * modules/fsusage (Depends-on): Likewise.
80662         * modules/fwriteerror (Depends-on): Likewise.
80663         * modules/getcwd (Depends-on): Likewise.
80664         * modules/getloadavg (Depends-on): Likewise.
80665         * modules/hard-locale (Depends-on): Likewise.
80666         * modules/makepath (Depends-on): Likewise.
80667         * modules/mountlist (Depends-on): Likewise.
80668         * modules/nanosleep (Depends-on): Likewise.
80669         * modules/posixtm (Depends-on): Likewise.
80670         * modules/quotearg (Depends-on): Likewise.
80671         * modules/readtokens (Depends-on): Likewise.
80672         * modules/readtokens0 (Depends-on): Likewise.
80673         * modules/readutmp (Depends-on): Likewise.
80674         * modules/save-cwd (Depends-on): Likewise.
80675         * modules/strftime (Depends-on): Likewise.
80676         * modules/userspec (Depends-on): Likewise.
80677         * modules/utimecmp (Depends-on): Likewise.
80678         * modules/xgetcwd (Depends-on): Likewise.
80679         * modules/xnanosleep (Depends-on): Likewise.
80680         * modules/xstrtod (Depends-on): Likewise.
80681         * modules/yesno (Depends-on): Likewise.
80682
80683 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
80684
80685         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
80686         needless checks.
80687
80688 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
80689
80690         Merge from coreutils.  Among other things,
80691         add bulletproofing for cases where stdin, stdout, or stderr are closed.
80692         * lib/fd-safer.c: New file.
80693         * lib/fcntl-safer.h, open-safer.c: Remove.
80694         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
80695         * lib/dup-safer.c: Include unistd-safer.h first.
80696         Don't include errno.h.
80697         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
80698         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
80699         * lib/file-type.c: Rely on file-type.h change.
80700         * lib/getloadavg.c: Include unistd-safer.h.
80701         (getloadavg): Use safer open.
80702         * lib/getusershell.c: Include "stdio-safer.h".
80703         (getusershell): Use safer fopen.
80704         * lib/long-options.c (long_options): Use NULL rather than 0.
80705         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
80706         'free'.
80707         * lib/modechange.c: Likewise.
80708         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
80709         (MODE_DONE): New constant.
80710         (struct mode_change): Remove 'next' member.
80711         (make_node_op_equals): New function; like the old one of the
80712         same name, except it allocates an array.
80713         (mode_compile, mode_create_from_ref): Use it.
80714         (mode_compile): Allocate result as an array, not a linked list.
80715         Parse octal string ourself, so that we catch mistakes like "+0".
80716         (mode_adjust): Arg is an array, not a linked list.
80717         * lib/modechange.c: Include stat-macros.h, xalloc.h.
80718         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
80719         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
80720         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
80721         Remove.  This is now stat-macros.h's job.
80722         (talloc): Remove.  All callers replaced by xalloc, so that
80723         our invokers don't have to worry about reporting memory failures.
80724         (make_node_op_equals): Remove.
80725         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
80726         New constants.
80727         (struct mode_change): Moved here from modechange.h.
80728         (mode_append_entry): Remove.
80729         (mode_compile): Remove MASKED_OPS arg, since it encouraged
80730         apps to have incorrect behavior.  Use simpler algorithm for head
80731         and tail.  Don't futz with umask; that's now the job of mode_adjust.
80732         Detect more invalid usages rather than having somewhat-random behavior.
80733         Don't insert an "a=" action, as that leads to incorrect behavior.
80734         (mode_compile, mode_create_from_ref): Return NULL on error instead
80735         of an enum, since now there's only one way to have an error.  All
80736         callers changed.
80737         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
80738         at the correct time.  Simplify calculation of "+u" and its ilk.
80739         Don't mishandle "+X".
80740         (mode_free): Remove "register" and localize decls.
80741         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
80742         (struct mode_change): Move to modechange.c; callers don't
80743         need to see this stuff.
80744         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
80745         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
80746         (mode_change, mode_adjust): Reflect the new signatures noted above.
80747         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
80748         that might redefine system include files.
80749         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
80750         (my_usleep): Use NULL rather than (void *) 0.
80751         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
80752         Use siginterrupt to specify that system calls should be interrupted.
80753         (rpl_nanosleep): Move initialization of suspended closer to call of
80754         my_usleep.
80755         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
80756         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
80757         (desirable_utmp_entry): New function.
80758         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
80759         using x2nrealloc, to simplify logic.
80760         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
80761         size calculation.  Do not assume utmp file is a regular file.
80762         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
80763         (READ_UTMP_CHECK_PIDS): New constant.
80764         * lib/save-cwd.c: Include unistd-safer.h.
80765         (save_cwd): Use fd_safer.
80766         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
80767         [!_LIBC] Include "stat-macros.h" instead.
80768         * lib/unistd-safer.h (fd_safer): New decl.
80769
80770 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
80771
80772         * modules/getloadavg (Depends-on): Add unistd-safer.
80773         * modules/getusershell (Depends-on): Add stdio-safer.
80774         * modules/lstat (Depends-on): Remove xalloc.
80775         * modules/mkstemp (Depends-on): Add stat-macros.
80776         * modules/modechange (Depends-on): Remove xstrtol.
80777         Add stat-macros, xalloc.
80778         * modules/save-cwd (Depends-on): Add unistd-safer.
80779         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
80780         * modules/unistd-safer (Files): Add lib/fd-safer.c
80781         (Makefile.am): Remove lib_SOURCES.
80782
80783         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
80784         Remove fcntl-safer; unistd-safer supersedes it.
80785
80786 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
80787
80788         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
80789         AC_HEADER_STAT.
80790         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
80791         (gl_PREREQ_CHOWN): Remove.
80792         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
80793         it.  Don't require AC_HEADER_STAT.
80794         (gl_PREREQ_LSTAT): Remove.
80795         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
80796         Don't require AC_HEADER_STAT.
80797         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
80798         (gl_PREREQ_RMDIR): Remove.
80799         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
80800         mention stat-macros.h or AC_HEADER_STAT, since we'll make
80801         the stat-macros module a prerequisite.
80802         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
80803         * m4/filemode.m4 (gl_FILEMODE): Likewise.
80804         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
80805         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
80806         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
80807         variable names.
80808         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
80809         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
80810         variable prefixes.
80811         * m4/fcntl-safer.m4: Remove.
80812         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
80813         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
80814         Invoke gl_PREREQ_FD_SAFER.
80815         (gl_PREREQ_FD_SAFER): New macro.
80816         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
80817         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
80818         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
80819         Remove duplicate call to AC_LIBOBJ(readutmp).
80820         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
80821
80822         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
80823         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
80824
80825 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
80826
80827         * MODULES.html.sh (Misc): Add byteswap.
80828
80829 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
80830
80831         * modules/getcwd (Depends-on): Add extensions.
80832         * modules/openat (Depends-on): Likewise.
80833
80834 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
80835
80836         * modules/byteswap: New file.
80837
80838 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
80839
80840         * m4/byteswap.m4: New file.
80841
80842 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
80843
80844         * lib/byteswap_.h: New file.
80845
80846 2005-04-25  Karl Berry  <karl@gnu.org>
80847
80848         * m4/gettext.m4: Update from GNU gettext 0.14.4.
80849
80850 2005-04-25  Albert Chin  <china@thewrittenword.com>
80851
80852         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
80853         Toolkit C bug.
80854
80855 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
80856
80857         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
80858         (func_ln_if_changed): Remove forcibly for no error message
80859         in case file does not exist.
80860
80861 2005-04-19  Simon Josefsson  <jas@extundo.com>
80862
80863         * gnulib-tool (Options): Make --symlink mean --symbolic.
80864
80865 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
80866
80867         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
80868
80869 2005-04-16  Simon Josefsson  <jas@extundo.com>
80870
80871         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
80872
80873 2005-04-15  Simon Josefsson  <jas@extundo.com>
80874
80875         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
80876
80877 2005-04-15  Simon Josefsson  <jas@extundo.com>
80878
80879         * gnulib-tool: Rename --symlink to --symbolic.
80880
80881 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
80882
80883         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
80884         symbolic links to files instead of copying/moving.  Add --aux-dir,
80885         specifying directory relative --dir where auxiliary build tools
80886         are placed.
80887
80888 2005-04-14  Bruno Haible  <bruno@clisp.org>
80889
80890         * modules/allocsa (License): Change to LGPL.
80891         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
80892
80893 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
80894
80895         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
80896         that "UTC +1 second" continues to work.  Problem reported
80897         by Dmitry V. Levin.
80898         (relunit_snumber): New rule.
80899         (relunit): Use it.
80900
80901 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
80902
80903         * lib/getdate.y (universal_time_zone_table): New constant.
80904         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
80905         universal_time_zone_table.
80906         (lookup_zone): Prefer universal_time_zone_table to
80907         local_time_zone_table, so that "GMT" time stamps are allowed in
80908         London during the summer.  Problem reported by Ian Abbott.
80909
80910 2005-04-12  Jim Meyering  <jim@meyering.net>
80911
80912         * lib/human.c (humblock): Set *options even when returning due to
80913         xstrtoumax conversion failure.  Thanks to a used-uninitialized
80914         warning from gcc-4.
80915
80916 2005-04-09  Jim Meyering  <jim@meyering.net>
80917
80918         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
80919         -Wuninitialized: initialize tm0.tm_year.
80920
80921 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
80922
80923         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
80924         count, since there's no maximum.  All uses changed.
80925         Add member dsts_seen.
80926         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
80927         not being INT_MAX.
80928         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
80929         Use pc_rels_seen to decide whther a date is absolute.
80930
80931         * lib/getdate.y (number): Don't overwrite year.
80932         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
80933         check.
80934
80935 2005-04-02  Simon Josefsson  <jas@extundo.com>
80936
80937         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
80938         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
80939
80940 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
80941
80942         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
80943         where no absolute path name can be longer than PATH_MAX.
80944
80945 2005-03-27  Jim Meyering  <jim@meyering.net>
80946
80947         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
80948
80949 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
80950
80951         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
80952         "one's complement" -> "ones' complement" in comment, as per Knuth.
80953         "value of type" -> "type or expression" in comment.
80954         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
80955
80956 2005-03-26  Jim Meyering  <jim@meyering.net>
80957
80958         Comment nits.
80959         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
80960         Correct typos: s/or/of/.
80961
80962 2005-03-26  Jim Meyering  <jim@meyering.net>
80963
80964         * modules/check-include-files: Move to ../ and rename to...
80965         * check-module: ...this.
80966
80967 2005-03-25  Jim Meyering  <jim@meyering.net>
80968
80969         * modules/xvasprintf (Files): Add xalloc.h.
80970
80971 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
80972
80973         * modules/gettext (Files): config/config.rpath ->
80974         build-aux/config.rpath
80975         * modules/iconv (Files): Likewise.
80976         Problem reported by Oskar Liljeblad.
80977
80978 2005-03-23  Jim Meyering  <jim@meyering.net>
80979
80980         * modules/check-include-files: New script to check for
80981         missing dependencies, multiple includes, etc.
80982
80983         * modules/c-strtold (Depends-on): Add xalloc.
80984         * modules/c-strtod (Depends-on): Add xalloc.
80985         * modules/hash (Depends-on): Add xalloc.
80986         (Files): Remove lib/xalloc.h.
80987
80988         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
80989         * modules/userspec (Files): Add lib/inttostr.h.
80990
80991 2005-03-23  Jim Meyering  <jim@meyering.net>
80992
80993         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
80994
80995 2005-03-22  Jim Meyering  <jim@meyering.net>
80996
80997         * modules/stat-macros: New module.
80998         * modules/canonicalize, modules/euidaccess, modules/file-type,
80999         * modules/filemode, modules/lchown, modules/makepath,
81000         * modules/rmdir, modules/stat: Depend on new stat-macros module
81001         rather than listing lib/stat-macros.h manually.
81002         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
81003
81004 2005-03-22  Jim Meyering  <jim@meyering.net>
81005
81006         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
81007
81008 2005-03-22  Bruno Haible  <bruno@clisp.org>
81009
81010         * config/srclist.txt: Replace target directory 'config' with
81011         'build-aux'.
81012         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
81013         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
81014         ../build-aux/.
81015
81016 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
81017
81018         * modules/chdir-long (Depends-on): Add mempcpy.
81019
81020         * modules/acl, modules/backupfile, modules/c-strtod,
81021         modules/c-strtold, modules/canon-host, modules/canonicalize,
81022         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
81023         modules/exclude, modules/exitfail, modules/file-type,
81024         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
81025         modules/getdate, modules/getline, modules/getpagesize,
81026         modules/getpass, modules/getugroups, modules/group-member,
81027         modules/hard-locale, modules/hash, modules/human, modules/idcache,
81028         modules/inttostr, modules/long-options, modules/makepath,
81029         modules/md5, modules/memcasecmp, modules/memcoll,
81030         modules/modechange, modules/mountlist, modules/path-concat,
81031         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
81032         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
81033         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
81034         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
81035         modules/strftime, modules/strndup, modules/strverscmp,
81036         modules/timespec, modules/unlocked-io, modules/userspec,
81037         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
81038         modules/yesno:
81039         Remove lib_SOURCES line from Makefile.am section, as this is now
81040         done automatically by the corresponding Autoconf macro.
81041
81042 2005-03-21  Jim Meyering  <jim@meyering.net>
81043
81044         Changes imported from coreutils.
81045
81046         * lib/cycle-check.c: Don't include xalloc.h.
81047
81048         * lib/path-concat.c: Don't include assert.h.
81049         (path_concat): Remove assertion that would have triggered
81050         for ABASE starting with more than one slash.
81051         Reported by Andreas Schwab.
81052
81053         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
81054         properly when ABASE is an absolute file name.
81055         Correct the description of this function.
81056         Include <assert.h>.
81057         Add an assertion and a test driver.
81058         This fixes a bug introduced on 2004-07-02.
81059         Andreas Schwab reported the resulting failure of cp --parents:
81060         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
81061
81062 2005-03-21  Jim Meyering  <jim@meyering.net>
81063
81064         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
81065         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
81066
81067 2005-03-21  Jim Meyering  <jim@meyering.net>
81068         and  Paul Eggert  <eggert@cs.ucla.edu>
81069
81070         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
81071         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
81072         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
81073         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
81074         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
81075         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
81076         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
81077         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
81078         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
81079         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
81080         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
81081         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
81082         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
81083         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
81084         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
81085         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
81086         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
81087         for these modules.
81088
81089 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
81090
81091         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
81092         (which shouldn't happen), generate nothing instead of returning 0
81093         immediately, so that nstrftime (NULL, ...) doesn't return 0.
81094
81095 2005-03-16  Bruno Haible  <bruno@clisp.org>
81096
81097         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
81098         HAVE_LONGLONG_64BIT.
81099
81100 2005-03-16  Bruno Haible  <bruno@clisp.org>
81101
81102         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
81103         HAVE_LONGLONG_64BIT.
81104
81105 2005-03-16  Bruno Haible  <bruno@clisp.org>
81106
81107         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
81108         HAVE_LONGLONG_64BIT.
81109
81110 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
81111
81112         * lib/strftime.c (my_strftime): Prepend space to format so that we can
81113         reliably distinguish strftime failure from empty output on POSIX
81114         hosts.
81115
81116 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
81117
81118         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
81119         (iconv_string): Don't guess a size-zero buffer, as that might cause
81120         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
81121         result would be 'too large', where 'too large' is (heuristically)
81122         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
81123         overflow concerns.  This will prevent some unwanted malloc failures
81124         when the inputs are very large.
81125
81126 2005-03-15  Karl Berry  <karl@gnu.org>
81127
81128         * config/srclist.txt (config.rpath): from gettext.
81129         * config/config.rpath: update.
81130
81131 2005-03-15  Bruno Haible  <bruno@clisp.org>
81132
81133         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
81134         to 'negate'.
81135
81136         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
81137         variable.
81138
81139         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
81140         results.
81141
81142 2005-03-14  Simon Josefsson  <jas@extundo.com>
81143
81144         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
81145         <fx@gnu.org>.
81146
81147 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
81148
81149         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
81150         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
81151         intprops.h.
81152         * lib/strtol.c: Likewise.
81153
81154 2005-03-14  Jim Meyering  <jim@meyering.net>
81155
81156         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
81157         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
81158         to be nonzero so that we (and caller) can detect the difference
81159         between a valid zero-length expansion and an error return, even
81160         when the underlying strftime fails before writing anything into
81161         that location.
81162
81163 2005-03-14  Bruno Haible  <bruno@clisp.org>
81164
81165         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
81166         Update from GNU gettext 0.14.3.
81167
81168 2005-03-10  Jim Meyering  <jim@meyering.net>
81169
81170         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
81171
81172 2005-03-10  Jim Meyering  <jim@meyering.net>
81173
81174         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
81175         so that this module works on systems without fchdir.
81176
81177 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
81178
81179         Factor int-properties macros into a single file, except for
81180         glibc-related files.
81181         * lib/intprops.h: New file.
81182         * lib/getloadavg.c: Include it instead of limits.h.
81183         (INT_STRLEN_BOUND): Remove.
81184         * lib/human.c: Include intprops.h.
81185         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
81186         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
81187         302/1000.
81188         * lib/inttostr.h: Include intprops.h instead of limits.h.
81189         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
81190         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
81191         for consistency with intprops.h.
81192         (time_t_is_integer, twos_complement_arithmetic): Use them.
81193         * lib/sig2str.h: Include <signal.h>, intprops.h.
81194         (INT_STRLEN_BOUND): Remove.
81195         * lib/strftime.c (TYPE_SIGNED): Remove.
81196         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
81197         * lib/strtol.c: Adjust comments to match intprops.h.
81198         * lib/userspec.c: Include intprops.h.
81199         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
81200         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
81201         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
81202         instead of rolling our own expressions.
81203         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
81204
81205         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
81206         instead of int.
81207         (my_strftime): Do not mishandle years close to INT_MAX, by doing
81208         the right thing even if adding 1900 would overflow.  Similarly
81209         for tm_mon + 1 and tm_yday + 1.
81210         Make %Y always equivalent to %C%y, and similarly for %G and %g.
81211         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
81212         (DO_SIGNED_NUMBER): New macro.
81213         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
81214
81215 2005-03-07  Bruno Haible  <bruno@clisp.org>
81216
81217         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
81218
81219 2005-03-07  Bruno Haible  <bruno@clisp.org>
81220
81221         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
81222
81223 2005-03-04  Derek R. Price  <derek@ximbiot.com>
81224
81225         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
81226         (func_import): Only replace files via --import when they have actually
81227         changed.
81228
81229 2005-03-03  Derek R. Price  <derek@ximbiot.com>
81230
81231         * m4/mmap-anon.m4: New file.
81232         * m4/pagealign_alloc.m4: New file.
81233
81234 2005-03-03  Derek R. Price  <derek@ximbiot.com>
81235             Bruno Haible  <bruno@clisp.org>
81236
81237         * modules/pagealign_alloc: New file.
81238         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
81239
81240 2005-03-03  Derek R. Price  <derek@ximbiot.com>
81241             Bruno Haible  <bruno@clisp.org>
81242
81243         * lib/pagealign_alloc.h: New file.
81244         * lib/pagealign_alloc.c: New file.
81245
81246 2005-03-03  Bruno Haible  <bruno@clisp.org>
81247
81248         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
81249         Use an all-permissive copyright notice, recommended by RMS.
81250
81251 2005-03-02  Bruno Haible  <bruno@clisp.org>
81252
81253         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
81254         of AIX, the replacement has to be done only after <string.h> is
81255         included, therefore not in config.h. stpncpy.h does the replacement,
81256         and stpncpy.c uses it.
81257
81258 2005-03-02  Bruno Haible  <bruno@clisp.org>
81259
81260         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
81261         stpncpy.c uses it.
81262
81263 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
81264
81265         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
81266         The workaround isn't strictly needed for POSIX conformance, and
81267         it's too much of a pain to configure and maintain.  We'll ask
81268         people to fix their kernels instead.
81269         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
81270         (NANOSLEEP_BUG_WORKAROUND): Remove.
81271         (xnanosleep): Remove the workaround.
81272
81273 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
81274
81275         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
81276         Reported by Derek Price.
81277         (Include): Add "timespec.h".
81278
81279         * modules/xnanosleep (Depends-on): Remove gethrxtime.
81280
81281 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
81282
81283         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
81284         to detect nanosleep bug.
81285
81286 2005-03-01  Bruno Haible  <bruno@clisp.org>
81287
81288         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
81289
81290 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
81291
81292         * modules/gethrxtime: New file.
81293         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
81294         (Depends-on): Add gethrxtime.
81295         (configure.ac): Add gl_XNANOSLEEP.
81296         (Makefile.am): Remove lib_SOURCES line.
81297
81298 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
81299
81300         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
81301         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
81302
81303 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
81304
81305         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
81306         * lib/timespec.h (gettime): Return void, since it always
81307         succeeds now.  All uses changed.
81308         * lib/gettime.c (gettime): Likewise.
81309         [HAVE_NANOTIME]: Prefer nanotime.
81310         Assume gettimeofday succeeds, as POSIX requires.
81311         Assime time () succeeds, since other code already does.
81312         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
81313         (timespec_subtract): Remove.
81314         (NANOSLEEP_BUG_WORKAROUND): New constant.
81315         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
81316         things considerably.  Use it only on GNU/Linux hosts, since the
81317         workaround shouldn't be needed elsewhere.
81318
81319 2005-02-24  Bruno Haible  <bruno@clisp.org>
81320
81321         * modules/gettext (Files): Add m4/glibc2.m4.
81322
81323 2005-02-24  Bruno Haible  <bruno@clisp.org>
81324
81325         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
81326         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
81327         * m4/progtest.m4:
81328         Update from GNU gettext 0.14.2.
81329         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
81330
81331 2005-02-24  Bruno Haible  <bruno@clisp.org>
81332
81333         * lib/localcharset.c: Update from GNU gettext 0.14.2.
81334         * lib/config.charset: Update from GNU gettext 0.14.2.
81335
81336 2005-02-24  Bruno Haible  <bruno@clisp.org>
81337
81338         * lib/gettext.h: Update from GNU gettext 0.14.2.
81339
81340 2005-02-23  Simon Josefsson  <jas@extundo.com>
81341
81342         * m4/iconvme.m4: New file.
81343
81344 2005-02-23  Jim Meyering  <jim@meyering.net>
81345
81346         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
81347         change.
81348         Thanks to Bruno Haible for catching it.
81349
81350 2005-02-22  Simon Josefsson  <jas@extundo.com>
81351
81352         * modules/iconvme: New file.
81353
81354         * MODULES.html.sh: Add iconvme.
81355
81356 2005-02-22  Simon Josefsson  <jas@extundo.com>
81357
81358         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
81359
81360 2005-02-22  Simon Josefsson  <jas@extundo.com>
81361
81362         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
81363
81364 2005-02-22  Jim Meyering  <jim@meyering.net>
81365
81366         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
81367         s/ifndef/ifdef/.
81368
81369 2005-02-20  Neil Conway  <neilc@samurai.com>
81370
81371         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
81372         returned by OSX/Darwin if the specified buffer is not large
81373         enough for the hostname.
81374
81375 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
81376
81377         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
81378         pass it to _help, otherwise the latter coredumps trying to
81379         dereference state.root_argp.
81380
81381 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
81382
81383         * modules/chdir-long (Depends-on): Add memrchr.
81384         * modules/memrchr (Files): Add lib/memrchr.h.
81385         (Include): "memrchr.h".
81386
81387 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
81388
81389         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
81390
81391 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
81392
81393         * lib/memrchr.h: New file.
81394         * lib/chdir-long.c: Include it.
81395         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
81396         Don't bother including stddef.h.
81397
81398 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
81399
81400         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
81401         inclusion.
81402         Include <sys/types.h>, for dev_t.
81403         (ME_DUMMY, ME_REMOTE): Move from here....
81404         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
81405         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
81406         Dmitry V. Levin.
81407         Include mountlist.h first, to test the interface.
81408
81409 2005-01-29  Bruno Haible  <bruno@clisp.org>
81410
81411         * lib/progname.c (program_name): Initialize.
81412         Needed when linking statically on MacOS X.
81413
81414 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
81415
81416         Sync from coreutils.
81417         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
81418         (Depends-on): Add c-strtod.
81419         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
81420
81421 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
81422
81423         Sync from coreutils.
81424         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
81425
81426         Remove files that are specific to coreutils.
81427         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
81428
81429 2005-01-28  Bruno Haible  <bruno@clisp.org>
81430
81431         * modules/javacomp: New file.
81432         * MODULES.html.sh (Java): Add javacomp.
81433
81434 2005-01-28  Bruno Haible  <bruno@clisp.org>
81435
81436         * m4/javacomp.m4: New file, from GNU gettext.
81437
81438 2005-01-28  Bruno Haible  <bruno@clisp.org>
81439
81440         * lib/javacomp.sh.in: New file, from GNU gettext.
81441         * lib/javacomp.h: New file, from GNU gettext.
81442         * lib/javacomp.c: New file, from GNU gettext.
81443
81444 2005-01-26  Simon Josefsson  <jas@extundo.com>
81445
81446         * lib/gai_strerror.c: Use GPL in header.
81447
81448 2005-01-26  Bruno Haible  <bruno@clisp.org>
81449
81450         * modules/javaexec: New file.
81451         * MODULES.html.sh (Java): Add javaexec.
81452
81453 2005-01-26  Bruno Haible  <bruno@clisp.org>
81454
81455         * m4/javaexec.m4: New file, from GNU gettext.
81456
81457 2005-01-26  Bruno Haible  <bruno@clisp.org>
81458
81459         * lib/javaexec.sh.in: New file, from GNU gettext.
81460         * lib/javaexec.h: New file, from GNU gettext.
81461         * lib/javaexec.c: New file, from GNU gettext.
81462
81463 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
81464
81465         * modules/lchown (Depends-on): Remove lchown.h
81466
81467 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
81468
81469         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
81470         must be defined if the header file was not found, in order
81471         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
81472
81473 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
81474
81475         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
81476         initializers for struct pentry_state.
81477         (__argp_error): Check return value of __asprintf
81478         (__argp_failure): Translate error message
81479
81480         * lib/argp-parse.c: Removed braces around the expansion of N_()
81481
81482 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
81483
81484         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
81485         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
81486         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
81487         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
81488         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
81489         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
81490         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
81491         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
81492         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
81493         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
81494         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
81495         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
81496         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
81497         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
81498         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
81499         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
81500         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
81501         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
81502         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
81503         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
81504         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
81505         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
81506         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
81507         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
81508         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
81509         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
81510         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
81511         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
81512         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
81513         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
81514         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
81515         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
81516         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
81517         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
81518         xstrtol.m4, xstrtoumax.m4, yesno.m4:
81519         Use an all-permissive copyright notice, recommended by RMS.
81520
81521 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
81522
81523         * modules/chdir-long (Depends-on): Remove mempcpy.
81524
81525 2005-01-21  Jim Meyering  <jim@meyering.net>
81526
81527         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
81528         same value as for Solaris 9.
81529
81530         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
81531         component length.  This included changing the parameter to be
81532         of type `char *' rather than `char const *'.
81533         * lib/chdir-long.h (chdir_long): Update prototype.
81534
81535         * lib/openat.c (fdopendir, fstatat): New functions.
81536         * lib/openat.h: Include headers required for use of DIR and struct
81537         stat.
81538         [AT_SYMLINK_NOFOLLOW]: Define.
81539         (fdopendir, fstatat): Add prototypes.
81540
81541 2005-01-21  Bruno Haible  <bruno@clisp.org>
81542
81543         * modules/classpath: New file.
81544         * MODULES.html.sh (Java): Add classpath.
81545
81546 2005-01-21  Bruno Haible  <bruno@clisp.org>
81547
81548         * lib/classpath.h: New file, from GNU gettext.
81549         * lib/classpath.c: New file, from GNU gettext.
81550
81551 2005-01-20  Simon Josefsson  <jas@extundo.com>
81552
81553         * modules/version-etc-fsf: New file.
81554
81555 2005-01-20  Simon Josefsson  <jas@extundo.com>
81556
81557         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
81558         * lib/version-etc.c: Remove version_etc_copyright.
81559         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
81560         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
81561
81562 2005-01-20  Simon Josefsson  <jas@extundo.com>
81563
81564         * lib/base64.h (isbase64): Add.
81565
81566         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
81567         using a unsigned prototype, don't inline.
81568         (base64_decode): Use it.
81569
81570 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
81571
81572         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
81573         it.
81574
81575 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
81576
81577         * lib/save-cwd.c (save_cwd): Remove code to support the case
81578         where fchdir is missing or flaky.
81579
81580 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
81581
81582         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
81583
81584 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
81585
81586         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
81587         AC_LIBSOURCES now does this.
81588         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
81589         with new ullong_max module.
81590
81591 2005-01-19  Bruno Haible  <bruno@clisp.org>
81592
81593         * modules/sh-quote: New file.
81594         * MODULES.html.sh (Executing programs): Add sh-quote.
81595
81596 2005-01-19  Bruno Haible  <bruno@clisp.org>
81597
81598         * lib/sh-quote.h: New file, from GNU gettext.
81599         * lib/sh-quote.c: New file, from GNU gettext.
81600
81601 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
81602
81603         Merge from coreutils.
81604         * m4/ullong_max.m4: New file.
81605         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
81606         (gl_MACROS): Assume localeconv exists.
81607
81608 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
81609
81610         Merge changes from coreutils, as described below in several
81611         changelogs dated today.
81612
81613         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
81614         (O_DIRECTORY): Remove; not needed here, since "." must be
81615         a directory.  All uses removed.
81616         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
81617         universal on Suns, and we also need to test for IRIX.
81618         Revamp code to use 'if' rather than '#if'.
81619         Avoid unnecessary comparison of cwd->desc to 0.
81620
81621         * lib/utimens.c (futimens): Robustify the previous patch, by checking
81622         for known valid error numbers rather than observed invalid ones.
81623
81624 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
81625
81626         * modules/ullong_max: New file.
81627
81628         * modules/chdir-long, modules/openat: New files.
81629         * modules/save-cwd (Depends-on): Depend on chdir-long.
81630         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
81631
81632 2005-01-18  Jim Meyering  <jim@meyering.net>
81633
81634         Merge from coreutils.
81635         * m4/chdir-long.m4, m4/openat.m4: New files.
81636         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
81637         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
81638         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
81639         is sane and DOES follow symlinks.  Besides, testing 20 different
81640         systems found no broken chown implementations.
81641         Prompted by a change in rsync's copy of this macro.
81642         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
81643
81644         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
81645
81646         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
81647         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
81648         NULL-means-set-to-current-time semantics.
81649         Remove temporary file immediately, rather than waiting
81650         for configure's at-exit trap code to do it.
81651
81652 2005-01-18  Jim Meyering  <jim@meyering.net>
81653
81654         * lib/version-etc.c (version_etc_copyright): Update copyright date.
81655
81656         * lib/utimens.c (futimens): Account for the fact that futimes
81657         can also fail with errno == ENOSYS or errno == ENOENT.
81658         Patch from Dmitry V. Levin.
81659
81660         Change the name of the robust chdir function from chdir to chdir_long.
81661         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
81662         (restore_cwd): Use chdir_long, not chdir.
81663         * lib/chdir-long.c: Renamed from chdir.c.
81664         * lib/chdir-long.h: Renamed from chdir.h.
81665         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
81666         Hurd.
81667
81668 2005-01-18  Bruno Haible  <bruno@clisp.org>
81669
81670         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
81671         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
81672         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
81673         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
81674         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
81675         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
81676         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
81677         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
81678         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
81679         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
81680         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
81681         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
81682         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
81683         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
81684         Use an all-permissive copyright notice, recommended by RMS.
81685
81686 2005-01-18  Bob Proulx  <bob@proulx.com>
81687
81688         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
81689         simplify offsetof() macro construct to avoid compile failure with
81690         native HP-UX 11.0 ANSI C compiler.
81691
81692 2005-01-17  Bruno Haible  <bruno@clisp.org>
81693
81694         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
81695         redundant because stpncpy.m4 takes care of it.
81696
81697 2005-01-17  Bruno Haible  <bruno@clisp.org>
81698
81699         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
81700
81701 2005-01-17  Bruno Haible  <bruno@clisp.org>
81702
81703         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
81704         used.
81705
81706 2005-01-17  Bruno Haible  <bruno@clisp.org>
81707
81708         * lib/fwriteerror.h (fwriteerror): Change specification to include
81709         fclose.
81710         * lib/fwriteerror.c: Include <stdbool.h>.
81711         (fwriteerror): At the end, close the file stream. Record whether
81712         stdout was already closed.
81713
81714 2005-01-17  Bruno Haible  <bruno@clisp.org>
81715
81716         * lib/execute.c (environ): Declare if needed.
81717         * lib/pipe.c (environ): Likewise.
81718         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
81719
81720 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
81721
81722         * modules/argp: Depend on vsnprintf
81723
81724 2005-01-10  Jim Meyering  <jim@meyering.net>
81725
81726         * modules/closeout (Depends-on): Add atexit.
81727
81728 2005-01-06  Bruno Haible  <bruno@clisp.org>
81729
81730         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
81731
81732 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
81733
81734         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
81735         definitions to be after all include files, to avoid collisions.
81736         Problem reported by Bob Proulx.
81737
81738 2005-01-04  Jim Meyering  <jim@meyering.net>
81739
81740         Changes imported from coreutils.
81741         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
81742         as the mkstemp template, use a temporary directory and an
81743         8.3-friendly template to avoid trouble on systems like DJGPP.
81744         Reported by Juan M. Guerrero via Stepan Kasal.
81745         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
81746         close. Remove the temporary directory right away, rather than waiting
81747         for configure's at-exit trap code to do it.
81748         Suggestion from Stepan Kasal.
81749
81750 2005-01-01  Simon Josefsson  <jas@extundo.com>
81751
81752         * gnulib-tool: Print #include directives when --import'ing.
81753
81754 2004-12-28  Simon Josefsson  <jas@extundo.com>
81755
81756         * tests/test-base64.c: Include required header files.  Remove
81757         unused variables.
81758
81759 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
81760
81761         * modules/error (Depends-on): Remove gettext.
81762
81763 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
81764
81765         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
81766         not needed.  This removes a dependency on the gettext module.
81767         [defined _LIBC]: Do not include <libintl.h>; not needed.
81768
81769 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
81770
81771         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
81772         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
81773
81774 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
81775
81776         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
81777         HAVE_DECL_STRTOLD.
81778
81779 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
81780
81781         * modules/getdate (Depends-on): Remove alloca-opt.
81782
81783 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
81784
81785         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
81786
81787 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
81788
81789         * lib/argp-parse.c: Include <stddef.h>.
81790         (alignof, alignto): New macros.
81791         (parser_init): Don't assume that void * is aligned sufficiently
81792         for struct option.
81793
81794         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
81795         need to extend the stack.
81796         (YYINITDEPTH): New macro, so that the initial stack isn't overly
81797         large.
81798
81799 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
81800
81801         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
81802
81803 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
81804
81805         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
81806         (2004-10-24) change.  Apparently this was a false alarm.
81807
81808         * modules/getdate: Depend on alloca-opt, not alloca.
81809
81810 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
81811
81812         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
81813         Remove now-obsolete comment about AIX.
81814         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
81815         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
81816         (YYMAXDEPTH): New macro.
81817
81818 2004-12-18  Simon Josefsson  <jas@extundo.com>
81819
81820         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
81821
81822 2004-12-18  Bruno Haible  <bruno@clisp.org>
81823
81824         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
81825
81826 2004-12-18  Bruno Haible  <bruno@clisp.org>
81827
81828         * lib/fatal-signal.c (fatal_signals): Make non-const.
81829         (init_fatal_signals): New function.
81830         (uninstall_handlers, install_handlers): Ignore signals that were set to
81831         SIG_IGN.
81832         (at_fatal_signal): Call init_fatal_signals.
81833         (init_fatal_signal_set): Likewise. Ignore signals that were set to
81834         SIG_IGN.
81835         Reported by Paul Eggert.
81836
81837 2004-12-18  Bruno Haible  <bruno@clisp.org>
81838
81839         * doc/alloca.texi: New file.
81840         * doc/alloca-opt.texi: New file.
81841
81842 2004-12-17  Jim Meyering  <jim@meyering.net>
81843
81844         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
81845         Otherwise, install-sh could exit with improper exit status when
81846         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
81847
81848 2004-12-16  Simon Josefsson  <jas@extundo.com>
81849
81850         * tests/test-base64.c: Add license.
81851
81852 2004-12-15  Stepan Kasal  <address@hidden>
81853
81854         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
81855
81856 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
81857
81858         * modules/getcwd (Files): Add m4/d-ino.m4.
81859         Suggested by Mark D. Baushke.
81860
81861 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
81862
81863         * lib/getdate.y (textint): New member "negative".
81864         (time_zone_hhmm): New function.
81865         Expect 14 shift-reduce conflicts, not 13.
81866         (o_colon_minutes): New rule.
81867         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
81868         (yylex): Set the "negative" member of signed numbers.
81869
81870 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
81871
81872         * doc/getdate.texi (Time of day items, Time zone items):
81873         Describe new formats +00:00, UTC+00:00.
81874
81875 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
81876
81877         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
81878         spurious "-l"s.  Problem reported by Stepan Kasal.
81879
81880 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
81881
81882         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
81883         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
81884
81885 2004-12-04  Simon Josefsson  <jas@extundo.com>
81886
81887         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
81888         Vandoorselaere <yoann@prelude-ids.org>.
81889
81890 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
81891
81892         Changes imported from coreutils.
81893         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
81894         exist.
81895         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
81896
81897 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
81898
81899         Changes imported from coreutils.
81900         * lib/hard-locale.c: Assume <locale.h> exists.
81901         Include "strdup.h".
81902         (GLIBC_VERSION): New macro.
81903         (hard_locale): Assume setlocale exists.
81904         Rewrite to avoid #ifdef.
81905         Use strdup rather than malloc + strcpy.
81906         * lib/human.c: Assume <locale.h> exists.
81907         (human_readable): Assume localeconv exists.
81908
81909 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
81910
81911         * modules/hard-locale (Depends-on): Add strdup.
81912
81913 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
81914
81915         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
81916         convert T2, not T.  (Imported from libc.)
81917
81918 2004-11-30  Simon Josefsson  <jas@extundo.com>
81919
81920         * modules/restrict (License): Change to LGPL.
81921
81922 2004-11-30  Simon Josefsson  <jas@extundo.com>
81923
81924         * m4/restrict.m4: Add copyright and copying conditions.
81925
81926 2004-11-30  Simon Josefsson  <jas@extundo.com>
81927
81928         * m4/base64.m4: New file.
81929
81930 2004-11-30  Simon Josefsson  <jas@extundo.com>
81931
81932         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
81933         base64.
81934
81935         * tests/test-base64.c: New file.
81936
81937         * modules/base64: New file.
81938
81939 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
81940
81941         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
81942         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
81943
81944         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
81945
81946 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
81947
81948         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
81949         (__getcwd.c): Don't restore errno; glibc doesn't.
81950         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
81951         first, falling back to our code only if its results look suspicious.
81952         Ensure that the resulting buffer is only as large as necessary.
81953
81954         * lib/readutmp.c: Include readutmp.h first.
81955         Include <errno.h>, since readutmp.h no longer does that.
81956         * lib/readutmp.h: Don't include <errno.h>,
81957         <sys/param.h>, <time.h>; not needed to establish interface.
81958         (errno): Remove decl.
81959         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
81960         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
81961         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
81962
81963 2004-11-28  Simon Josefsson  <jas@extundo.com>
81964
81965         * lib/base64.h, base64.c: New file.
81966
81967 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
81968
81969         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
81970
81971 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
81972
81973         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
81974         (Depends-on): Remove pathmax, same.  Add mempcpy.
81975         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
81976         (Makefile.am): Append getcwd.h to lib_SOURCES.
81977         (Include): Add getcwd.h.
81978         (Maintainer): Change from Jim Meyering to "all, glibc",
81979         since getdate now uses intended-for-glibc code.
81980         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
81981         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
81982
81983 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
81984
81985         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
81986         HP's ANSI C compiler.
81987         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
81988         Declaring int functions causes warnings on some modern systems and
81989         shouldn't be needed to compile on ancient ones.
81990         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
81991         defined.
81992
81993         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
81994         with the following changes.
81995         (__set_errno): Parenthesize properly.
81996         Include <stdbool.h>.
81997         (MIN, MAX, MATCHING_INO): New macros.
81998         (__getcwd): Define with prototype, not K&R form.
81999         Use heuristics to allocate default buffer on stack if possible.
82000         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
82001         behavior, and to avoid the PATH_MAX limit when computing
82002         ../../../../...
82003         Use MATCHING_INO to compare inode number to file.
82004         Check for arithmetic overflow in size calculations.
82005         Fix bug in reallocation of dot array that caused getcwd to fail
82006         on directories nested deeper than 75.
82007         Be more careful about saving errno on error.
82008         Do not use realloc; use only free+malloc, as this is a bit
82009         more flexible and avoids a needless copy operation.
82010         Do not inspect st_dev and st_ino for symbolic links; POSIX
82011         doesn't specify the latter.
82012         Check for closedir errors.
82013         Avoid needless casts.
82014         Use "#ifdef weak_alias" around weak_alias, to be like other
82015         glibc code.
82016         The following changes to getcwd.c have effect only when used in
82017         gnulib; they have no effect inside glibc proper.
82018         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
82019         as alloca isn't used.
82020         (alloca, __alloca): Likewise.
82021         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
82022         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
82023         unconditionally, as gnulib assumes C89 or better.
82024         Do not include <sys/param.h>.
82025         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
82026         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
82027         better.
82028         (NULL) [!defined NULL]: Remove; we assume C89 or better.
82029         Include <dirent.h> in a way that is compatible with modern Autoconf.
82030         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
82031         New macros, if not already defined.
82032         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
82033         Use "_LIBC", not "defined _LIBC", for consistency.
82034         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
82035         a mempcpy module.
82036         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
82037         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
82038         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
82039         credit only to Jim Meyering and adjust the copyright dates.
82040         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
82041         <stdlib.h>, <unistd.h>, "pathmax.h".
82042         Instead, include "xgetcwd.h" (first) and "getcwd.h".
82043         (INITIAL_BUFFER_SIZE): Remove.
82044         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
82045
82046 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
82047
82048         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
82049         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
82050         Use the _ONCE methods, for efficiency.
82051         Check for fcntl.h.  In test program, include <errno.h>
82052         and <fcntl.h> if available.  Remove old K&R cruft from
82053         test program.  Check for common errors in GNU/Linux,
82054         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
82055         don't do AC_LIBOBJ, as that's getcwd.m4's job.
82056         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
82057         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
82058         name accordingly.
82059         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
82060         accommodate new getcwd.c.
82061         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
82062         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
82063         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
82064         that's all we need now.
82065
82066 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
82067
82068         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
82069         argp-parse.c depends on getopt internals, that means we should
82070         always use our getopt, to be on the safe side.
82071         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
82072         order not to spoil the result of an eventual previous invocation
82073         of gl_GETOPT_SUBSTITUTE.
82074
82075 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
82076
82077         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
82078         redefinition warnings. To avoid them, include the defines
82079         in `#if !defined __need_getopt ... #endif'. The only place
82080         where __getopt_argv_const is used is in definitions
82081         of getopt_long and getopt_long_only below, which are as well
82082         protected by `#ifndef __need_getopt'.
82083         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
82084         __need_getopt after including <stdio.h> and <unistd.h> These
82085         headers might have defined it.
82086
82087 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
82088
82089         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
82090
82091 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
82092
82093         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
82094         (futimens): New function, which uses futimes if available.
82095         (futimens, utimens): Support timespec==NULL, with same semantics
82096         as utime and utimens.
82097         * lib/utimens.h (futimens): New decl.
82098
82099 2004-11-23  Jim Meyering  <jim@meyering.net>
82100
82101         * lib/getopt_.h: Remove trailing blanks.
82102
82103 2004-11-23  Jim Meyering  <jim@meyering.net>
82104
82105         * lib/__fpending.c: Add comment.
82106
82107 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
82108
82109         * modules/canonicalize (Depends-on): Add xreadlink.
82110         Problem reported by James Youngman.
82111
82112 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
82113
82114         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
82115         New macros.
82116         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
82117         optopt): Use them instead of invoking ## directly; otherwise, the
82118         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
82119
82120 2004-11-19  Bruno Haible  <bruno@clisp.org>
82121
82122         * lib/strtok_r.c: Move comments from here...
82123         * lib/strtok_r.h: ... to here.
82124
82125 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
82126
82127         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
82128         implementations that mishandle size_t overflow.
82129
82130 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
82131
82132         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
82133         might fail.  Problem reported by Yoann Vandoorselaere.
82134         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
82135         implementations that mishandle size_t overflow.
82136
82137 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
82138
82139         * modules/canon-host (Depends-on): Add strdup.
82140
82141 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
82142
82143         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
82144
82145 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
82146
82147         * lib/canon-host.c: Include "strdup.h".
82148         (canon_host): Use getaddrinfo if available, so that IPv6 works.
82149         Use strdup instead of malloc/strcpy to duplicate strings.
82150
82151         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
82152         (human_space_before_unit): New constant.
82153         * lib/human.c (human_readable): Support it.
82154
82155         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
82156         (xgetcwd): Set errno correctly when failing.
82157         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
82158         the failure is actually due to a PATH_MAX problem.
82159
82160         Further getopt changes to make it more likely that glibc will
82161         buy the changes back.
82162         * lib/getopt.c (POSIXLY_CORRECT): New constant.
82163         (getopt): Use it, so to preserve glibc semantic
82164         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
82165         when compiling for libc.
82166         * lib/getopt_.h (__getopt_argv_const): Bring it back.
82167         (getopt_long, getopt_long_only): Use it.
82168
82169         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
82170         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
82171         (getopt): Argv is now char * const *, as per standard.
82172         (_getopt_internal_r, _getopt_internal): Argv is now char **,
82173         not char *__getopt_argv_const *.
82174         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
82175         _getopt_long_only_r): Likewise.
82176         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
82177         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
82178         _getopt_long_r, _getopt_long_only_r): Likewise.
82179         * lib/getopt_.h (__getopt_argv_const): Remove.
82180         (getopt): Argv is now char * const *, as per standard.
82181
82182         * lib/getdate.y (tORDINAL): New token.
82183         (day, relunit): Allow it for relative times.
82184         (relative_time_table): Use tORDINAL for ordinals.
82185
82186 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
82187
82188         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
82189         Document that "second" isn't allowed as an ordinal number.
82190
82191 2004-11-16  Jim Meyering  <jim@meyering.net>
82192
82193         * modules/closeout (Depends-on): Add fpending.
82194
82195 2004-11-15  Jim Meyering  <jim@meyering.net>
82196
82197         * lib/closeout.c: Include "__fpending.h" once again.
82198         Include <stdbool.h>.
82199         (close_stdout): Don't fail just because stdout was closed initially,
82200         since some programs don't write to stdout in the normal course of
82201         operation (other than --version and --help), and we don't want this
82202         function to make e.g. `touch file >&-' fail.
82203         But do fail if it was closed and someone has tried to write to it.
82204         E.g., `printf foo >&-' must fail.
82205
82206 2004-11-13  Jim Meyering  <jim@meyering.net>
82207
82208         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
82209
82210 2004-11-12  Simon Josefsson  <jas@extundo.com>
82211
82212         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
82213         small doc fix is still pending.
82214
82215 2004-11-11  Simon Josefsson  <jas@extundo.com>
82216
82217         * modules/strtok_r: New file.
82218
82219         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
82220         strtok_r.
82221
82222 2004-11-11  Simon Josefsson  <jas@extundo.com>
82223
82224         * m4/strtok_r.m4: New file.
82225
82226         * m4/getopt.m4: Replace opterr.
82227
82228 2004-11-11  Simon Josefsson  <jas@extundo.com>
82229
82230         * lib/strtok_r.h, strtok_r.c: New file.
82231
82232 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
82233
82234         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
82235         of replacing opterr, getopt, etc.  This should handle the
82236         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
82237
82238 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
82239
82240         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
82241         we can stop lying to compilers about the constness of argv when we
82242         are compiled outside glibc.
82243         (getopt, getopt_long, getopt_long_only): Use it.
82244         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
82245         _getopt_internal, getopt): Likewise.
82246         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
82247         _getopt_long_only_r): Likewise.
82248         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
82249         _getopt_long_r, _getopt_long_only_r): Likewise.
82250
82251         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
82252         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
82253         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
82254         the other external symbols.
82255         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
82256         declaration, since the above renaming now works around collisions.
82257
82258 2004-11-11  Jim Meyering  <jim@meyering.net>
82259
82260         * lib/linebreak.c: Remove trailing blanks.
82261         * lib/alloca_.h: Likewise.
82262         * lib/acosl.c: Likewise.
82263         * lib/euidaccess.c: Likewise.
82264         * lib/allocsa.h: Likewise.
82265
82266 2004-11-10  Simon Josefsson  <jas@extundo.com>
82267
82268         * m4/getaddrinfo.m4: New file.
82269
82270 2004-11-10  Simon Josefsson  <jas@extundo.com>
82271
82272         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
82273
82274 2004-11-10  Simon Josefsson  <jas@extundo.com>
82275
82276         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
82277         getaddrinfo.
82278
82279         * modules/getaddrinfo: New file.
82280
82281 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
82282
82283         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
82284
82285 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
82286
82287         * lib/mktime.c (SHR): New macro, which is a portable
82288         substitute for >> that should work even on Crays.
82289         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
82290         Problem reported by Mark D. Baushke in
82291         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
82292         * lib/getdate.y (SHR): Likewise.
82293         (tm_diff): Use it.
82294         * lib/strftime.c (SHR): Likewise.
82295         (tm_diff): Use it.
82296         * lib/quotearg.c (struct quoting_options): Use unsigned int for
82297         quote_these_too, so that right shifts are well defined.  All uses
82298         changed.
82299
82300 2004-11-10  Jim Meyering  <jim@meyering.net>
82301
82302         Ensure that no close failure goes unreported.
82303         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
82304         return early when it seems there's nothing to flush.
82305         Don't include __fpending.h.
82306
82307 2004-11-10  Jim Meyering  <jim@meyering.net>
82308
82309         * modules/closeout (Depends-on): Remove fpending.
82310
82311 2004-11-10  Jim Meyering  <jim@meyering.net>
82312
82313         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
82314
82315 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
82316
82317         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
82318         gl_FUNC_STRFTIME.
82319         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
82320         and AC_REQUIRE when possible, to avoid duplicate checks.
82321         Check for <wchar.h>.
82322
82323 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
82324
82325         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
82326
82327 2004-11-09  Bruno Haible  <bruno@clisp.org>
82328
82329         * m4/sockpfaf.m4: New file.
82330
82331 2004-11-05  Bruno Haible  <bruno@clisp.org>
82332
82333         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
82334         Reported by Mark D. Baushke <mdb@cvshome.org>.
82335
82336 2004-11-04  Bruno Haible  <bruno@clisp.org>
82337
82338         2004-09-11  Bruno Haible  <bruno@clisp.org>
82339                 * allocsa.valgrind: New file.
82340         2004-02-06  Bruno Haible  <bruno@clisp.org>
82341                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
82342                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
82343                 Reported by Christopher Seip <chris.seip@hp.com>.
82344
82345 2004-11-04  Bruno Haible  <bruno@clisp.org>
82346
82347         * modules/allocsa (Files): Add lib/allocsa.valgrind.
82348         (Makefile.am): Distribute it.
82349
82350 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
82351
82352         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
82353         with errno == ERANGE if the buffer is too small.
82354         Problem reported by Mark D. Baushke.
82355
82356 2004-11-03  Albert Chin  <china@thewrittenword.com>
82357             Paul Eggert  <eggert@cs.ucla.edu>
82358
82359         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
82360         equivalent, substitute $ac_type for equivalent type rather than
82361         blindly using uint32_t *always* which won't work if uint32_t is not
82362         available.  Define _UINT32_T to work around typedef of uint32_t if
82363         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
82364         2.5.1.
82365
82366 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
82367
82368         * m4/jm-macros.m4: Sync from coreutils.
82369         (gl_MACROS): Check for mbrlen, for pathchk.
82370         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
82371
82372 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
82373
82374         * lib/xreadlink.c (MAXSIZE): New macro.
82375         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
82376         size does not exceed MAXSIZE.  Avoid cast.
82377         As suggested by Mark D. Baushke in
82378         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
82379         if readlink fails with buffer size just under MAXSIZE, try again
82380         with MAXSIZE.
82381
82382 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
82383
82384         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
82385
82386 2004-11-02  Derek R. Price  <derek@ximbiot.com>
82387         and  Paul Eggert  <eggert@cs.ucla.edu>
82388
82389         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
82390         (get_date): Overparenthesize to avoid GCC warning.
82391
82392 2004-11-02  Bruno Haible  <bruno@clisp.org>
82393
82394         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
82395         returns void.
82396
82397 2004-11-02  Bruno Haible  <bruno@clisp.org>
82398
82399         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
82400         function returns void.
82401
82402 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
82403
82404         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
82405         fflush_unlocked, flockfile, funlockfile, funlockfile,
82406         fputs_unlocked, putc_unlocked.
82407
82408 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
82409
82410         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
82411         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
82412         already declared.
82413
82414 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
82415
82416         * modules/getdate (Files): Add doc/getdate.texi.
82417         (Depends-on): Add setenv, xalloc.
82418
82419 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
82420
82421         * lib/getdate.y: Add support for TZ="foo" within a date string.
82422         Fix some bugs near time_t boundaries.  Reject dates with
82423         out-of-range components, e.g., "Sept 31".
82424         Include <stdlib.h>, "setenv.h", "xalloc.h".
82425         (ISDIGIT_LOCALE): Remove; unused.
82426         Note that the TZ and time functions used here are not reentrant.
82427         (mktime_ok, get_tz): New functions.
82428         (TZBUFSIZE): New constant.
82429         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
82430         This requires that we sometimes generate our own TZ="XXX..." setting.
82431
82432 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
82433
82434         * doc/getdate.texi: New file, from coreutils with modifications for
82435         the new TZ parsing.
82436
82437 2004-10-27  Derek R. Price  <derek@ximbiot.com>
82438
82439         * lib/mktime.c (not_equal_tm): Remove redundant check.
82440
82441 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
82442
82443         * modules/regex (lib_SOURCES): Add regex.c.
82444         Reported by James Youngman in
82445         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
82446
82447 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
82448
82449         * lib/getdate.y: Use Bison 1.875 features, and some minor
82450         code cleanups.  This change does not affect semantics.
82451         Don't include <stdlib.h>; no longer needed.
82452         Don't include unlocked-io.h; only the "#if TEST" code uses
82453         stdio, and performance isn't crucial there.
82454         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
82455         Bison 1.875 features as described below.
82456         All uses of "PC." replaced by "pc->".
82457         (YYSTYPE): Add a forward declaration.
82458         (yylex, yyerror): Use full prototypes in forward decls.
82459         Use "%pure-parser" rather than obsolescent "%pure_parser".
82460         Use %parse-param and %lex-param instead of obsolescent
82461         YYPARSE_PARAM and YYLEX_PARAM.
82462         (meridian_table, month_and_day_table, time_units_table,
82463         relative_time_table, time_zone_table, military_table,
82464         lookup_zone, lookup_word, get_date):
82465         Use NULL instead of 0 where appropriate.
82466         (to_hour): Avoid abort (), to avoid a dependency on
82467         stdlib.h.
82468         (yyerror, yylex): Now accepts parser_control * arg.
82469         (main) [TEST]: Use '\0' rather than 0 for char.
82470
82471 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
82472
82473         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
82474
82475 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
82476
82477         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
82478         It's now the caller's responsibility to handle the case where
82479         !HAVE_GETPAGESIZE && !defined getpagesize.
82480
82481         * lib/mktime.c (leapyear): Arg is long int, not int.
82482
82483 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
82484
82485         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
82486
82487 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
82488
82489         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
82490         missing.  Problem reported by James Youngman.
82491
82492 2004-10-16  Simon Josefsson  <jas@extundo.com>
82493
82494         * gnulib-tool: Fix comments.  Fix parse problem.
82495         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
82496
82497 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
82498
82499         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
82500         implementation of getopt_long.  Problem reported by Alexander Taler in:
82501         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
82502
82503 2004-10-15  Bruno Haible  <bruno@clisp.org>
82504
82505         * gnulib-tool: Untabify. Initialize supplied_libname.
82506         (func_usage): More homogenous output.
82507         (func_modules_transitive_closure, func_modules_to_filelist,
82508         func_emit_lib_Makefile_am): New functions.
82509         (func_import): New function, extracted from big case statement. Use
82510         func_get_license, func_modules_transitive_closure,
82511         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
82512         opt_lgpl. Don't use test -a, as it's not portable.
82513         (func_create_testdir): Use func_modules_transitive_closure,
82514         func_modules_to_filelist, func_emit_lib_Makefile_am.
82515
82516 2004-10-15  Bruno Haible  <bruno@clisp.org>
82517
82518         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
82519
82520 2004-10-15  Bruno Haible  <bruno@clisp.org>
82521
82522         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
82523         the portions belonging to each module.
82524         Suggested by Derek Robert Price <derek@ximbiot.com>.
82525
82526 2004-10-12  Simon Josefsson  <jas@extundo.com>
82527
82528         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
82529         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
82530         to real functions.
82531
82532 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
82533
82534         * modules/vsnprintf: New file.
82535
82536 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
82537
82538         * m4/vsnprintf.m4: New file.
82539
82540 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
82541
82542         * lib/vsnprintf.h: New file.
82543         * lib/vsnprintf.c: New file.
82544
82545 2004-10-11  Bruno Haible  <bruno@clisp.org>
82546
82547         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
82548         vsnprintf.
82549
82550 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
82551
82552         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
82553
82554 2004-10-07  Bruno Haible  <bruno@clisp.org>
82555
82556         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
82557         fits into the provided buffer.
82558
82559 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
82560
82561         * lib/diacrit.c, diacrit.h: Add GPL notice.
82562
82563         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
82564         notice.
82565         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
82566         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
82567         This avoids a potential constant-folding bug.
82568
82569 2004-10-05  Bruno Haible  <bruno@clisp.org>
82570
82571         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
82572         for the declaration of strsep.
82573
82574 2004-10-05  Bruno Haible  <bruno@clisp.org>
82575
82576         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
82577
82578 2004-10-04  Simon Josefsson  <jas@extundo.com>
82579
82580         * modules/memmem: New file.
82581         * tests/test-memmem.c: New file.
82582         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
82583
82584 2004-10-04  Simon Josefsson  <jas@extundo.com>
82585
82586         * m4/memmem.m4: New file.
82587
82588 2004-10-04  Simon Josefsson  <jas@extundo.com>
82589
82590         * lib/memmem.h: New file.
82591         * lib/memmem.c: New file, taken from glibc.
82592
82593 2004-10-04  Simon Josefsson  <jas@extundo.com>
82594
82595         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
82596         '#ifdef USE_UNLOCKED_IO'.
82597
82598 2004-10-04  Simon Josefsson  <jas@extundo.com>
82599
82600         * config/srclist.txt: Add memmem from glibc.
82601
82602 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
82603
82604         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
82605
82606         * modules/argmatch, modules/argp, modules/closeout, modules/error,
82607         modules/exclude, modules/getdate, modules/getline,
82608         modules/getndelim2, modules/getpass, modules/getpass-gnu,
82609         modules/getusershell, modules/linebuffer, modules/md5,
82610         modules/mountlist, modules/posixtm, modules/readtokens,
82611         modules/readutmp, modules/regex, modules/sha1,
82612         modules/version-etc, modules/yesno:
82613         Remove dependency on unlocked-io.
82614
82615 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
82616
82617         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
82618
82619         * m4/unlocked-io.m4: Add copyright notice.
82620         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
82621
82622 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
82623
82624         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
82625         * lib/xmalloc.c (xmemdup): Likewise.
82626         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
82627         XFREE): Remove these long-obsolescent macros.
82628         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
82629         * lib/xstrdup.c: Remove.
82630
82631         * lib/regex.c (re_comp): Cast gettext return value to char *,
82632         Problem reported by Martin Neitzel via Mark D. Baushke.
82633
82634 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
82635
82636         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
82637         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
82638         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
82639         regex.c, sha1.c, version-etc.c, yesno.c:
82640         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
82641         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
82642         the includer's responsibility.
82643
82644         Sync from coreutils.
82645
82646         * lib/modechange.c (mode_compile): Don't decrement a pointer that
82647         points to the start of a string, as the C Standard says the
82648         resulting behavior is undefined.
82649
82650         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
82651         simple -> simple_backups, numbered_existing ->
82652         numbered_existing_backups, numbered -> numbered_backups
82653         to avoid shadowing problems.  All uses changed.
82654         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
82655         * lib/backupfile.c (check_extension, numbered_backup):
82656         Rename locals to avoid shadowing 'basename'.
82657         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
82658         once.
82659
82660         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
82661         * lib/.cvsignore: Add getopt.h.
82662
82663 2004-10-04  Bruno Haible  <bruno@clisp.org>
82664
82665         * modules/README: New file.
82666         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
82667         not a module.
82668
82669 2004-10-02  Jim Meyering  <jim@meyering.net>
82670
82671         * lib/dirfd.h, getpagesize.h: Add copyright notice.
82672
82673 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
82674
82675         * modules/strsep: New file.
82676
82677 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
82678
82679         * m4/strsep.m4: New file.
82680
82681 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
82682
82683         * lib/strsep.h: New file.
82684         * lib/strsep.c: New file.
82685
82686 2004-10-01  Simon Josefsson  <jas@extundo.com>
82687
82688         * lib/snprintf.c (snprintf): Handle size==0.
82689
82690 2004-10-01  Simon Josefsson  <jas@extundo.com>
82691             Bruno Haible  <bruno@clisp.org>
82692
82693         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
82694         (snprintf): Declare 'args'.
82695
82696 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
82697
82698         * lib/snprintf.c: Remove comments as to why each header is needed.
82699
82700 2004-10-01  Bruno Haible  <bruno@clisp.org>
82701
82702         * MODULES.html.sh: Add strsep.
82703
82704 2004-09-30  Simon Josefsson  <jas@extundo.com>
82705
82706         * modules/snprintf: New file.
82707
82708 2004-09-30  Simon Josefsson  <jas@extundo.com>
82709
82710         * m4/snprintf.m4: New file.
82711
82712 2004-09-30  Simon Josefsson  <jas@extundo.com>
82713
82714         * lib/snprintf.h, lib/snprintf.c: New files.
82715
82716 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
82717
82718         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
82719         (hol_entry_help): Never translate an empty string.
82720         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
82721         * lib/argp.h (OPTION_NO_TRANS): New option.
82722
82723 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
82724
82725         * modules/argp (Maintainer): Replace Simon Josefsson
82726         by Sergey Poznyakoff.
82727
82728 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
82729
82730         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
82731         changes merged back into glibc.
82732
82733 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
82734
82735         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
82736
82737 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
82738
82739         * lib/xvasprintf.c: Include xalloc.h.
82740         (xvasprintf): Use xalloc_die, not xmalloc_die.
82741
82742 2004-09-29  Bruno Haible  <bruno@clisp.org>
82743
82744         * modules/alloca-opt: New file, derived from modules/alloca.
82745         * modules/allocsa: Depend on alloca-opt instead of alloca.
82746         * modules/setenv: Likewise.
82747         * modules/vasnprintf: Likewise.
82748         * MODULES.html.sh: Add alloca-opt.
82749
82750 2004-09-28  Simon Josefsson  <jas@extundo.com>
82751
82752         * gnulib-tool: New parameter --lgpl, to asseert that modules are
82753         LGPL, and to replace license template from GPL to LGPL.
82754
82755 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
82756
82757         * modules/dummy: Change license to LGPL.
82758
82759 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
82760
82761         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
82762
82763 2004-09-24  Simon Josefsson  <jas@extundo.com>
82764
82765         * modules/minmax (License): Change from GPL to LGPL.
82766
82767 2004-09-23  Simon Josefsson  <jas@extundo.com>
82768
82769         * gnulib-tool (--import): Typo.
82770
82771 2004-09-23  Simon Josefsson  <jas@extundo.com>
82772
82773         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
82774
82775 2004-09-22  Bruno Haible  <bruno@clisp.org>
82776
82777         * modules/*: Add 'License' field.
82778         * gnulib-tool: Accept --extract-license option.
82779         (func_get_license): New function.
82780
82781 2004-09-21  Bruno Haible  <bruno@clisp.org>
82782
82783         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
82784         Reported by Simon Josefsson.
82785
82786 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
82787
82788         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
82789         gl_AC_TYPE_LONG_LONG.
82790
82791 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
82792
82793         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
82794
82795 2004-09-18  Simon Josefsson  <jas@extundo.com>
82796         and  Paul Eggert  <eggert@cs.ucla.edu>
82797
82798         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
82799         calls with autoreconf.  Define GL_LIB.
82800
82801 2004-09-14  Karl Berry  <karl@gnu.org>
82802
82803         * config/srclist.txt: unsync setenv.c, sigh.
82804
82805 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
82806
82807         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
82808         Problem reported by Bruno Haible in:
82809         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
82810
82811 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
82812
82813         * config/srclist.txt: Comment out argp-pvh.c.
82814
82815 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
82816
82817         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
82818         in case some system header has #define'd it.  Problem reported by
82819         Soeren D. Schulze in
82820         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
82821
82822 2004-09-09  Karl Berry  <karl@gnu.org>
82823
82824         * regex.[ch]: delete from the root.  These were supposed to be
82825                 synced with emacs cvs, but this has not happened for about
82826                 a year, and anyway nothing else uses emacs regex.[ch].
82827                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
82828                 lib/regex[.ch] is untouched.
82829
82830 2004-09-09  Bruno Haible  <bruno@clisp.org>
82831
82832         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
82833
82834 2004-09-09  Bruno Haible  <bruno@clisp.org>
82835
82836         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
82837         modifications.
82838         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
82839
82840 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
82841
82842         * modules/xvasprintf: New file.
82843         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
82844
82845 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
82846
82847         * lib/xvasprintf.h: New file.
82848         * lib/xvasprintf.c: New file.
82849         * lib/xasprintf.c: New file.
82850
82851 2004-09-08  Bruno Haible  <bruno@clisp.org>
82852
82853         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
82854
82855 2004-09-08  Bruno Haible  <bruno@clisp.org>
82856
82857         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
82858         length is > INT_MAX.
82859         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
82860         more.
82861
82862 2004-09-08  Bruno Haible  <bruno@clisp.org>
82863
82864         * lib/stdint_.h: New file, taken from GNU clisp.
82865
82866 2004-09-08  Bruno Haible  <bruno@clisp.org>
82867             Oskar Liljeblad  <oskar@osk.mine.nu>
82868
82869         * modules/stdint: New file.
82870         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
82871
82872 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
82873
82874         Import from coreutils.
82875         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
82876         strings on unbounded length.  alloca's performance benefits aren't
82877         that important here.
82878         (V_STRDUP): Remove.
82879         (parse_with_separator): New function, with most of the internals
82880         of the old parse_user_spec.  Allow user to omit both user and group,
82881         for compatibility with FreeBSD.
82882         Clone only the user name, not the entire spec.
82883         Do not set *uid, *gid unless entirely successful.
82884         Avoid memory leak in some failing cases.
82885         Fix regression for USER.GROUP reported by Dmitry V. Levin in
82886         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
82887         (parse_user_spec): Rewrite to use parse_with_separator.
82888
82889 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
82890
82891         * modules/userspec: Don't depend on alloca.
82892
82893 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
82894
82895         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
82896
82897 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
82898
82899         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
82900         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
82901         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
82902
82903 2004-08-16  Simon Josefsson  <jas@extundo.com>
82904
82905         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
82906         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
82907         Add --dry-run for --import.
82908         Let user provided command line parameters override configure.ac
82909         settings.
82910
82911 2004-08-12  Simon Josefsson  <jas@extundo.com>
82912
82913         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
82914         as discussed with Paul Eggert in threads rooted at
82915         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
82916         and
82917         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
82918         Before, the test was empty, and relied on ELIDE_CODE in source
82919         code.)
82920         (gl_PREREQ_GETOPT): New macro.
82921         (gl_GETOPT): Use them.
82922
82923 2004-08-12  Simon Josefsson  <jas@extundo.com>
82924
82925         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
82926         * lib/getopt_.h: Renamed from getopt.h.
82927
82928 2004-08-12  Simon Josefsson  <jas@extundo.com>
82929
82930         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
82931         Change default library name from libfoo to libgnu.
82932         Now, if you have a configure.ac that says:
82933                 gl_SOURCE_BASE(gl)
82934                 gl_M4_BASE(gl/m4)
82935                 gl_MODULES(error getopt etcetera)
82936                 gl_INIT
82937         you can import all you need by running:
82938                 ../gnulib/gnulib-tool --import
82939
82940         * modules/getopt (Files): Rename getopt.h to getopt_.h.
82941         (Makefile.am): Rewrite, use logic from argz.
82942         (Include): Use <getopt.h> instead of "getopt.h".
82943
82944 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
82945
82946         * modules/argp (Files): Add m4/unlocked-io.m4.
82947         (Depends-on): Add extensions.
82948
82949 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
82950
82951         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
82952         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
82953         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
82954         Check for program_invocation_name, program_invocation_short_name,
82955         flockfile, funlockfile, features.h, _getopt_long_only_r.
82956
82957 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
82958
82959         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
82960         its complicated substitute.
82961         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
82962         and program_invocation_name.
82963         (__argp_basename) [!_LIBC]: Remove; the only use was
82964         replaced by its body.
82965         (__argp_short_program_name): Change condition from
82966         !defined __argp_short_program_name to
82967         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
82968         to match argp-namefrob.h.
82969         (__argp_failure): Don't assume strerror_r returns char *.
82970         * lib/argp-parse.c (N_): Define unconditionally.
82971         (argp_default_options): Fill out initializers with 0 to avoid
82972         gcc warnings.
82973
82974 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
82975
82976         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
82977         getopt1.c.
82978
82979 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
82980
82981         Merge from coreutils.
82982
82983         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
82984
82985         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
82986         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
82987
82988 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
82989
82990         Merge from coreutils.
82991
82992         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
82993         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
82994         for Reliant Unix 5.43.
82995
82996         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
82997         (union fooround): Use uintmax_t, not long int.
82998         The rest is a merge from libc:
82999         [defined _LIBC]: Include <shlib-compat.h>.
83000         (_obstack) [defined _LIBC]: Remove after 2.3.4.
83001
83002         * lib/settime.c (settime): Recode to avoid warning with
83003         Sun Forte C 6U2.
83004
83005         * lib/strverscmp.c: Convert to UTF-8.
83006
83007 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
83008
83009         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
83010         m4/uintmax_t.m4.
83011
83012 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
83013
83014         * modules/xalloc-die: New file.
83015         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
83016
83017         * modules/md5 (Files): Add m4/uint32_t.m4.
83018         * modules/sha1: Renamed from modules/sha.
83019         (Files):
83020         Rename lib/sha.h to lib/sha1.h.
83021         Rename lib/sha.c to lib/sha1.c.
83022         Rename m4/sha.m4 to m4/sha1.m4.
83023         (lib_SOURCES): Likewise.
83024         (configure.ac): Rename gl_SHA to gl_SHA1.
83025         (Include): sha.h -> sha1.h.
83026
83027 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
83028
83029         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
83030         * m4/sha1.m4: Renamed from sha.m4.
83031         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
83032
83033 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
83034
83035         * lib/obstack.h (obstack_empty_p):
83036         Don't assume that chunk->contents is suitably aligned.
83037         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
83038         Likewise. Problem reported by Benno in
83039         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
83040
83041         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
83042         readable.  This could be improved further but it'd take some work.
83043
83044 2004-08-08  Simon Josefsson  <jas@extundo.com>
83045
83046         * modules/xgethostname (Depends-on): Remove exit and error (not
83047         used).
83048
83049         * modules/getpass-gnu: Add getpass.h.
83050         (Depends-on): Add stdbool.
83051         * modules/getpass: Add getpass.h.
83052
83053 2004-08-08  Simon Josefsson  <jas@extundo.com>
83054
83055         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
83056         Check getpass declaration.
83057
83058 2004-08-08  Simon Josefsson  <jas@extundo.com>
83059
83060         * lib/xgethostname.c: Don't include error.h (not used).
83061
83062         * lib/getpass.h: Add.
83063         * lib/getpass.c: Include getpass.h first.
83064
83065 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
83066
83067         * lib/xalloc-die.c: New file.
83068         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
83069         All uses removed.
83070         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
83071         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
83072         xalloc-die.c.
83073         (_, N_, xalloc_die): Move to xalloc-die.c.
83074         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
83075         so that we needn't mess with xalloc_msg_memory_exhausted.
83076
83077         * lib/sha1.h: Renamed from sha.h.
83078         (SHA1_H): Renamed from _SHA_H.
83079         (sha1_ctx): Renamed from sha_ctx.
83080         (sha1_init_ctx): Renamed from sha_init_ctx.
83081         (sha1_process_block): Renamed from sha_process_block.
83082         (sha1_process_bytes): Renamed from sha_process_bytes.
83083         (sha1_finish_ctx): Renamed from sha_finish_ctx.
83084         (sha1_read_ctx): Renamed from sha_read_ctx.
83085         (sha1_stream): Renamed from sha_stream.
83086         (sha1_buffer): Renamed from sha_buffer.
83087         * lib/sha1.c: Likewise; renamed from sha.c.
83088         Do not include <sys/types.h>.
83089         Include <stddef.h> rather than <stdlib.h>.
83090
83091 2004-08-08  Bruno Haible  <bruno@clisp.org>
83092
83093         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
83094         FILESYSTEM_PREFIX_LEN.
83095         * lib/progreloc.c: Likewise.
83096         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
83097
83098 2004-08-06  Simon Josefsson  <jas@extundo.com>
83099
83100         * modules/progname (Depends-on): Don't depend on stdbool.
83101
83102 2004-08-06  Simon Josefsson  <jas@extundo.com>
83103
83104         * modules/getsubopt: New file.
83105         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
83106         getsubopt.
83107
83108 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
83109
83110         More merge from coreutils.
83111
83112         * m4/utimens.m4, m4/utimecmp.m4: New files.
83113         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
83114         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
83115         prereq.m4, sha.m4: Import changes from coreutils.
83116
83117 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
83118
83119         More merge from coreutils.
83120         * modules/raise, modules/readtokens0, modules/utimens:
83121         * modules/utimecmp, module/xnanosleep: New files.
83122         * modules/strftime: Add lib/strftime.h.
83123         Change include from <time.h> to "strftime.h".
83124         * modules/yesno: Add lib/yesno.h.
83125         * modules/backupfile: Remove lib/addext.c.
83126         * modules/euidaccess: Add stat-macros.h.
83127         * modules/canonicalize, modules/euidaccess,
83128         modules/filemode, modules/lchown, modules/makepath,
83129         modules/rmdir, modules/stat: Likewise.
83130
83131 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
83132
83133         Merge from tar.
83134         * lib/argp-help.c (make_hol, hol_append): Don't assume that
83135         SIZE_MAX is a valid preprocessor constant.
83136         (__argp_basename): Change from "#ifndef _LIBC"
83137         to "#ifndef __argp_short_program_name", so that
83138         we don't compile these functions for tar.
83139
83140         More merges from coreutils.
83141         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
83142         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
83143         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
83144         * lib/addext.c: Remove; no longer needed.
83145         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
83146         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
83147         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
83148         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
83149         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
83150         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
83151         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
83152         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
83153         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
83154         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
83155         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
83156         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
83157         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
83158         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
83159         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
83160         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
83161         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
83162         Import changes from coreutils.
83163
83164 2004-08-05  Simon Josefsson  <jas@extundo.com>
83165
83166         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
83167
83168 2004-08-05  Simon Josefsson  <jas@extundo.com>
83169
83170         * m4/getsubopt.m4: New file.
83171
83172 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
83173
83174         Merge from coreutils.
83175
83176         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
83177         * m4/getcwd-path-max.m4: New files.
83178
83179         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
83180         FILESYSTEM_PREFIX_LEN ->
83181         FILE_SYSTEM_PREFIX_LEN.
83182         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
83183         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
83184         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
83185         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
83186
83187         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
83188         prerequisite modules now handle the DOS stuff.
83189         Don't check for unistd.h.
83190
83191 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
83192
83193         Merge from coreutils.
83194
83195         * lib/.gdb-history: Remove; this doesn't belong here.
83196
83197         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
83198         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
83199         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
83200         * lib/getcwd.c: New files.
83201
83202         * lib/dirname.h: Include <stdbool.h>.
83203         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
83204         for consistency with POSIX terminology.  All uses changed.
83205         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
83206         (strip_trailing_slashes): Use bool for booleans.
83207         * lib/stripslash.c (strip_trailing_slashes): Likewise.
83208
83209         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
83210         sometimes returns a positive errno value even when it succeeds.
83211         (print_errno_message) [!LIBC]: Fall back on strerror if
83212         __strerror_r fails.
83213
83214         * lib/path-concat.c (mempcpy): Don't define if a system header defines
83215         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
83216         (longest_relative_suffix): New function.
83217         (path_concat): Use it.  Assume first argument is not NULL.
83218         Port to DOS.  Omit redundant separators.
83219         Report an error instead of returning NULL.
83220         Use mempcpy instead of memcpy.
83221         (xpath_concat): Remove: not declared or used.
83222
83223         * lib/same.h: Include <stdbool.h>
83224         (same_name): Return bool, not int.
83225         * lib/same.c (same_name): Likewise.
83226         (errno): Don't declare; we assume C89 or better now.
83227
83228         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
83229         if not already defined.
83230
83231         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
83232         * lib/dup-safer.c (errno): Likewise.
83233
83234 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
83235
83236         Merge from coreutils.
83237         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
83238         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
83239         * modules/path-concat: Don't depend on strdup.
83240
83241 2004-08-03  Simon Josefsson  <jas@extundo.com>
83242
83243         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
83244         * lib/progname.h: Don't include stdbool.h.
83245
83246 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
83247
83248         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
83249         * MODULES.html.sh (func_all_modules): Remove fatal.
83250
83251 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
83252
83253         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
83254
83255 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
83256
83257         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
83258         working.
83259
83260 2004-08-02  Simon Josefsson  <jas@extundo.com>
83261
83262         * lib/getsubopt.h: New file, with comments from Bruno Haible.
83263         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
83264         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
83265
83266 2004-08-01  Simon Josefsson  <jas@extundo.com>
83267
83268         * lib/xgetdomainname.c: Include stdlib.h, for free().
83269
83270 2004-07-19  Bruno Haible  <bruno@clisp.org>
83271
83272         * MODULES.html.sh (func_all_modules): Add dummy.
83273
83274 2004-07-16  Simon Josefsson  <jas@extundo.com>
83275
83276         * modules/dummy: New file.
83277
83278 2004-07-16  Simon Josefsson  <jas@extundo.com>
83279
83280         * lib/dummy.c: New file.
83281
83282 2004-07-16  Bruno Haible  <bruno@clisp.org>
83283
83284         * lib/backupfile.h: Add extern "C" for C++.
83285         * lib/closeout.h: Likewise.
83286         * lib/copy-file.h: Likewise.
83287         * lib/findprog.h: Likewise.
83288         * lib/full-write.h: Likewise.
83289         * lib/pathname.h: Likewise.
83290         * lib/progname.h: Likewise.
83291         * lib/stpcpy.h: Likewise.
83292         * lib/stpncpy.h: Likewise.
83293         * lib/strcase.h: Likewise.
83294         * lib/strstr.h: Likewise.
83295         * lib/xalloc.h: Likewise.
83296
83297         * lib/mbswidth.h: Add extern "C" for C++.
83298         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
83299
83300 2004-07-13  Robert Millan  <robertmh@gnu.org>
83301
83302         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
83303
83304 2004-07-09  Simon Josefsson  <jas@extundo.com>
83305
83306         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
83307         failed without this.)
83308
83309 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
83310
83311         * modules/chown (Files): Add lib/fchown-stub.c, since
83312         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
83313
83314 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
83315
83316         * lib/fchown-stub.c: New file.
83317
83318 2004-06-24  Jim Meyering  <jim@meyering.net>
83319
83320         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
83321
83322 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
83323
83324         * modules/argz: Omit "#include".
83325
83326         * MODULES.html.sh (func_all_modules): Add calloc, to match
83327         2004-06-01 addition of calloc module.
83328
83329 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
83330
83331         * m4/argz.m4: New file, which is autoupdated from libtool.
83332
83333 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
83334
83335         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
83336         libtool.
83337
83338 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
83339
83340         * config/srclist-update: Don't insist on "USA." before the
83341         close-comment, as libtool omits the period and puts the */ on a
83342         separate line.
83343         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
83344         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
83345
83346 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
83347
83348         * modules/argz: New file.
83349         * MODULES.html.sh (func_all_modules): Add argz.
83350
83351 2004-06-12  Jim Meyering  <jim@meyering.net>
83352         and  Paul Eggert  <eggert@cs.ucla.edu>
83353
83354         * modules/hash (Files): Add lib/xalloc.h.
83355         * modules/pipe (Depends-on): Add wait-process.
83356         * modules/stat (Depends-on): Add xalloc.
83357         * modules/userspec (Files): Add lib/userspec.h.
83358         * modules/xstrto
83359
83360         Upgrade from gettext-0.13.
83361         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
83362         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
83363         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
83364
83365 2004-06-10  Jim Meyering  <jim@meyering.net>
83366
83367         * lib/calloc.c: New file.
83368
83369 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
83370
83371         * lib/getdate.y (yylex): Allow space between sign and number.
83372         Problem reported by Dan Jacobson.
83373
83374 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
83375
83376         Merge from coreutils CVS.
83377
83378         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
83379         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
83380         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
83381         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
83382         xstrtol.m4: Fix copyright date and/or serial number.
83383
83384         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
83385         See if we need an fchown replacement.
83386         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
83387         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
83388         and use the replacement function if we detect either defect.
83389
83390         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
83391         gl_UTIMECMP.
83392
83393 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
83394         and  Jim Meyering  <jim@meyering.net>
83395
83396         Merge from coreutils CVS.
83397
83398         * lib/stat-macros.h: New file, with contents from file-type.h
83399         and coreutils' system.h.
83400         * lib/file-type.c: Include "stat-macros.h".
83401         * lib/file-type.h (file_type): Move all macro definitions to new file,
83402         stat-macros.h.
83403
83404         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
83405         Wrap old code with this conditional.
83406         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
83407         function that does not dereference symlinks.
83408         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
83409
83410         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
83411         dependency problems.
83412         (xreadlink): Accept new arg SIZE, for efficiency.
83413         All decls and uses changed.
83414         * lib/xreadlink.h: Include <stddef.h>, for size_t.
83415
83416         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
83417         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
83418
83419         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
83420         sysexits.h.
83421
83422 2004-06-01  Jim Meyering  <jim@meyering.net>
83423
83424         * m4/calloc.m4: New file.
83425
83426 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
83427
83428         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
83429         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
83430         Also, fix a typo in a diagnostic.
83431
83432 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
83433
83434         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
83435         or AC_FUNC_REALLOC.
83436
83437 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
83438
83439         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
83440         macros to be defined.
83441         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
83442         the allocator returns NULL because the requested size is zero.
83443
83444 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
83445
83446         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
83447         var.  Add comment explaining why libc still defines it.  This
83448         merges the following patch from glibc:
83449         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
83450
83451 2004-05-20  Andreas Schwab  <schwab@suse.de>
83452
83453         * m4/free.m4: Replace free if it not known to work, not the other
83454         way round.
83455
83456 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
83457
83458         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
83459         present in glibc since revision 1.1 of this file.
83460         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
83461         obstack_alignment_mask, obstack_alloc, obstack_base,
83462         obstack_blank, obstack_blank_fast, obstack_chunk_size,
83463         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
83464         obstack_grow0, obstack_init, obstack_int_grow,
83465         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
83466         obstack_next_free, obstack_object_size, obstack_ptr_grow,
83467         obstack_ptr_grow_fast, obstack_room): Remove declarations of
83468         nonexistent functions.
83469
83470 2004-05-18  Karl Berry  <karl@gnu.org>
83471
83472         * config/srclist.txt: break link for vasnprintf.c.
83473
83474 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
83475
83476         Port obstack to the AS/400, where pointers are 16 bytes wide and
83477         you cannot cast an integer to a valid pointer.  This patch is
83478         currently waiting to be integrated into glibc; see
83479         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
83480
83481         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
83482         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
83483         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
83484         (struct obstack): temp member is now a union of a pointer and
83485         an integer, instead of an integer.  All integer uses changed.
83486         This does not affect the physical layout of struct obstack,
83487         except on hosts (like the AS/400) where the size or alignment of
83488         void * is greater than that of ptrdiff_t.
83489         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
83490         __STDC__)]: Store temporary in pointer member of union, not
83491         integer member.
83492         * lib/obstack.c: Include <stddef.h>, for offsetof.
83493         (struct fooalign): Remove; it doesn't need a name.
83494         (union fooround): Change double to long double, and add void *.
83495         (DEFAULT_ALIGNMENT): Use offsetof to compute.
83496         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
83497         not a macro.  Hence the values are always int; so remove all
83498         casts-to-int in uses.
83499
83500 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
83501
83502         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
83503         we can get this patch merged into glibc.
83504
83505 2004-05-17  Derek R. Price  <derek@ximbiot.com>
83506             Paul Eggert  <eggert@cs.ucla.edu>
83507
83508         * m4/argp: Depend on alloca.
83509
83510 2004-05-17  Derek R. Price  <derek@ximbiot.com>
83511             Paul Eggert  <eggert@cs.ucla.edu>
83512
83513         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
83514         freecoding.
83515
83516 2004-05-17  Bruno Haible  <bruno@clisp.org>
83517
83518         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
83519         precision that consists of a '.' followed by an empty digit string.
83520         Patch by Tor Lillqvist <tml@iki.fi>.
83521
83522 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
83523
83524         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
83525         for backward compatibility with older code.  We need our own
83526         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
83527         it under some other name, and our alloca.h will define it.
83528
83529 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
83530             Derek Price  <derek@ximbiot.com>
83531
83532         * lib/alloca.c: Include <alloca.h>, to get our interface.
83533         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
83534         include <alloca.h> first.  Use C89 prototype for alloca; this
83535         requires including <stddef.h> for size_t.  Use extern "C" if C++.
83536         Use #elif for simplicity, since we can assume C89 now.
83537         Don't try to source the system alloca.h since it will not be found
83538         and to prevent recursively including its replacement.
83539         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
83540         * lib/regex.c: Likewise.
83541
83542 2004-05-16  Derek Price  <derek@ximbiot.com>
83543             Paul Eggert  <eggert@cs.ucla.edu>
83544
83545         getline cleanup.  This changes the getndelim2 API: both order of
83546         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
83547         no delimiter).
83548
83549         * lib/getline.c: Don't include stddef.h or stdio.h, since our
83550         interface does that.
83551         (getline): Always use getdelim, so that we don't have two
83552         copies of this code.
83553         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
83554         if available.
83555         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
83556         (GETNDELIM2_MAXIMUM): New macro.
83557         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
83558         instead of the old practice of delim2==0.  All callers changed.
83559         Return -1 on overflow, instead of returning junk.
83560         Do not set *linesize unless allocation succeeds.
83561         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
83562         that we include sys/types.h.
83563         * lib/getnline.h: Likewise.
83564         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
83565         (getndelim2): Reorder arguments.
83566         * lib/getnline.c (getnline, getndelim):
83567         Don't discard the NMAX argument.
83568         (getnline): Invoke getndelim, to avoid code duplication.
83569         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
83570         of (size_t) -1 by callers of the getnline family.
83571
83572 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
83573
83574         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
83575         Check for gettimeofday.
83576         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
83577         Check for settimeofday, stime.
83578
83579 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
83580
83581         * lib/nanosleep.c (suspended): Change its type from int to
83582         sig_atomic_t volatile.
83583         (first_call): Make it private to rpl_nanosleep, and have it
83584         be zero initially as that's a bit faster.
83585         (my_usleep): Round up fractional times instead of truncating them,
83586         as this is the usual meaning for 'sleep'.
83587
83588         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
83589         doesn't work.
83590         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
83591         (ENOSYS): Define if not defined.
83592         (settime): Fall back on stime if it exists and settimeofday fails.
83593         But don't bother with fallbacks if a method fails with errno == EPERM.
83594
83595 2004-05-11  Jim Meyering  <jim@meyering.net>
83596
83597         Prior to this change, the save_cwd caller required read access to the
83598         current directory on most systems (ones with the fchdir function).
83599
83600         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
83601         fails, try write-only, and finally, resort to using xgetcwd.
83602
83603 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
83604
83605         * lib/obstack.c, obstack.h: Import changes from libc.
83606
83607 2004-04-28  Bruno Haible  <bruno@clisp.org>
83608
83609         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
83610         also implicitly appends .exe to executables.
83611         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
83612         accepts Windows pathnames.
83613         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
83614         Treat Cygwin like Windows, since it now accepts Windows pathnames.
83615         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
83616         Treat Cygwin like Windows, since it now accepts Windows pathnames.
83617         Reported by Derek Robert Price <derek@ximbiot.com>.
83618
83619 2004-04-21  Karl Berry  <karl@gnu.org>
83620
83621         * config/srclist.txt (localcharset.c): break sync.
83622
83623 2004-04-20  Paul Eggert  <eggert@twinsun.com>
83624
83625         * m4/host-os.m4: Add a copyright notice.
83626
83627 2004-04-20  Jim Meyering  <jim@meyering.net>
83628
83629         Change UTILS_ to gl_ in AC_DEFINE'd names.
83630         Change utils_- and jm_-prefixed variables, too.
83631         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
83632         UTILS_FUNC_MKDIR_TRAILING_SLASH.
83633         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
83634
83635         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
83636         Don't emit trailing blanks.
83637         Also rename jm_-prefixed variables to have gl_ prefix.
83638
83639         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
83640         Also rename jm_-prefixed variables to have gl_ prefix.
83641
83642         * m4/jm-macros.m4: Reflect the renamings.
83643         * m4/prereq.m4: Likewise.
83644
83645 2004-04-20  Jim Meyering  <jim@meyering.net>
83646
83647         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
83648         memory.
83649
83650 2004-04-20  Jim Meyering  <jim@meyering.net>
83651             Bruno Haible  <bruno@clisp.org>
83652
83653         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
83654         memory when realloc fails.
83655
83656 2004-04-19  Jim Meyering  <jim@meyering.net>
83657
83658         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
83659         now that readutmp.c may call `free (0)'.
83660
83661 2004-04-19  Bruno Haible  <bruno@clisp.org>
83662
83663         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
83664         * m4/inttypes_h.m4: Likewise.
83665         * m4/stdint_h.m4: Likewise.
83666         * m4/intmax_t.m4: Likewise.
83667         * m4/uintmax_t.m4: Likewise.
83668
83669 2004-04-18  Jim Meyering  <jim@meyering.net>
83670
83671         * m4/prereq.m4: Don't forbid jm_ prefix.
83672
83673         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
83674         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
83675         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
83676         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
83677         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
83678         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
83679         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
83680         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
83681         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
83682         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
83683         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
83684         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
83685         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
83686         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
83687         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
83688         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
83689         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
83690         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
83691         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
83692
83693 2004-04-18  Jim Meyering  <jim@meyering.net>
83694
83695         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
83696         failure, don't leak memory and do call END_UTMP_ENT.
83697
83698 2004-04-16  Jim Meyering  <jim@meyering.net>
83699
83700         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
83701         coreutils' stat program.
83702         (gl_PREREQ): Don't require jm_PREREQ_STAT.
83703
83704 2004-04-11  Paul Eggert  <eggert@twinsun.com>
83705
83706         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
83707         C89.
83708         (CHAR_BIT): Remove, since we assume C89.
83709         Include <stdint.h> if available, as per current Autoconf CVS advice.
83710
83711 2004-03-31  Jim Meyering  <jim@meyering.net>
83712
83713         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
83714         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
83715         * m4/xalloc.m4: Likewise.
83716
83717 2004-03-30  Paul Eggert  <eggert@twinsun.com>
83718
83719         Merge from coreutils.
83720
83721         * m4/inttostr.m4: New file.
83722         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
83723         Require AM_STDBOOL_H and gl_TIMESPEC instead.
83724         Require gl_CLOCK_TIME.
83725         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
83726
83727 2004-03-30  Paul Eggert  <eggert@twinsun.com>
83728
83729         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
83730         not bool, to be more consistent with Unix conventions.
83731         Suggested by Bruno Haible.
83732
83733         Merge from coreutils.
83734
83735         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
83736         * lib/umaxtostr.c: New files.
83737
83738         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
83739         the usual <time.h> dance.
83740         (get_date): Change signature to support fractional time stamps.
83741         All callers changed.
83742         * lib/getdate.y: Include "getdate.h" first, as we can now
83743         assume C89 and don't need to worry about 'const'.
83744         Similarly, include "unlocked-io.h" near start, not in middle.
83745         Include <limits.h>.
83746         (textint.value): Use long int rather than int.
83747         (textint.digits): Use size_t rather than int.
83748         (BILLION, LOG10_BILLION): New constants.
83749         (parser_control): New member rel_ns.  Members day_ordinal,
83750         time_zone, month, day, hour, minutes, rel_year, rel_month,
83751         rel_day, rel_hour, rel_minutes, rel_seconds
83752         are now long int, not int.  Member seconds is now struct timespec,
83753         not int.  New member timespec_seen.  Members dates_seen, days_seen,
83754         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
83755         not int.
83756         (%union.intval): Now long int, not int.
83757         New member timespec.
83758         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
83759         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
83760         (spec): Now is a timespec or an item list.
83761         (timespec, items): New nonterminals.
83762         (time, rel, relunit, number, get_date):
83763         Add support for fractional seconds.
83764         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
83765         (gmtime, localtime, mktime): Remove decls; not needed with C89.
83766         (to_hour): First arg is now long int, not int.
83767         (to_year): Returns long int, not int.
83768         Don't treat year -70 like 70.
83769         (tm_diff): Returns long int, not int.
83770         (lookup_word): Use bool instead of int when appropriate.
83771         (yylex): Use size_t for count, not int.
83772         Detect overflow when parsing large integer constants.
83773         Add support for fractions.
83774         (get_date): Make pointers 'const' if possible.
83775         Use more-portable code to detect integer overflow.
83776         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
83777         Don't use ctime; it's not reliable if the year has >4 digits.
83778
83779         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
83780         This is for compatibility with BSD.
83781
83782         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
83783         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
83784         From coreutils' system.h.
83785
83786         * lib/userspec.c: Don't include "posixver.h".
83787         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
83788         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
83789         compatible extension.  Simplify code by removing a boolean int
83790         that was always nonzero if a string was nonnull.
83791
83792 2004-03-30  Jim Meyering  <jim@meyering.net>
83793
83794         Merge from coreutils.
83795
83796         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
83797         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
83798         on some systems one must include <grp.h> before it.
83799         Reported by Christian Krackowizer.
83800
83801 2004-03-30  Jim Meyering  <jim@meyering.net>
83802
83803         Merge from coreutils.
83804
83805         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
83806
83807         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
83808         an empty input stream.
83809
83810         * lib/readtokens.c: Include <stdbool.h>.
83811         (readtoken): Use `size_t' rather than int/long.
83812         All callers adjusted.
83813         Use `bool' rather than `int' where appropriate.
83814         Use memset rather than an explicit loop.
83815         Use x2nrealloc rather than xrealloc.
83816         Allow the use of `\0' as a delimiter.
83817         (readtokens): Likewise.
83818         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
83819
83820 2004-03-30  Jim Meyering  <jim@meyering.net>
83821
83822         * m4/realloc.m4: Remove file, since now it does no more than
83823         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
83824         the `configure.ac' section of module/realloc.
83825         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
83826
83827 2004-03-30  Bruno Haible  <bruno@clisp.org>
83828
83829         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
83830         nonnull.
83831
83832 2004-03-29  Paul Eggert  <eggert@twinsun.com>
83833
83834         Merge changes to getloadavg.c from coreutils and Emacs.
83835
83836         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
83837         Define to an expression, not to the empty string.
83838         Include cloexec.h and xalloc.h.
83839         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
83840         Use set_cloexec_flag rather than rolling our own.
83841         * lib/cloexec.c, lib/cloexec.h: New files.
83842
83843 2004-03-29  Paul Eggert  <eggert@twinsun.com>
83844
83845         * m4/cloexec.m4: New file.
83846
83847 2004-03-18  Paul Eggert  <eggert@twinsun.com>
83848
83849         * lib/getopt.h: Sync with libc CVS.
83850
83851 2004-03-18  Paul Eggert  <eggert@twinsun.com>
83852             Bruno Haible  <bruno@clisp.org>
83853
83854         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
83855         mbswidth.
83856
83857 2004-03-18  Paul Eggert  <eggert@twinsun.com>
83858             Bruno Haible  <bruno@clisp.org>
83859
83860         * lib/mbswidth.h: Include <wchar.h> only if
83861         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
83862         <wchar.h>.
83863         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
83864
83865 2004-03-09  Paul Eggert  <eggert@twinsun.com>
83866
83867         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
83868         Sync with libc CVS.
83869         * lib/getopt_int.h: New file, also synced from libc.
83870
83871 2004-03-09  Paul Eggert  <eggert@twinsun.com>
83872
83873         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
83874         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
83875         Bring back getopt.c, getopt.h, getopt1.c.
83876
83877 2004-03-07  Paul Eggert  <eggert@twinsun.com>
83878
83879         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
83880         All uses changed.  Check for sa_sigaction member; this fixes
83881         a bug first reported by Jason Andrade in
83882         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
83883
83884 2004-03-07  Paul Eggert  <eggert@twinsun.com>
83885
83886         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
83887         '#if' expressions.  Unlike the code it replaces, it does not
83888         depend on (defined _SC_PAGESIZE).  However, it does depend on
83889         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
83890         first reported by Jason Andrade in
83891         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
83892
83893 2004-02-25  Simon Josefsson  <jas@extundo.com>
83894
83895         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
83896
83897 2004-02-25  Simon Josefsson  <jas@extundo.com>
83898
83899         * lib/strdup.h: New file.
83900         * lib/strdup.c: Include it.
83901         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
83902         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
83903
83904 2004-02-23  Karl Berry  <karl@gnu.org>
83905
83906         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
83907         (from fencepost.gnu.org:/gd/gnuorg).
83908
83909 2004-02-23  Karl Berry  <karl@gnu.org>
83910
83911         * config/srclistvars.sh (GNUORG) [karl]: redefine.
83912         * config/srclist.txt: add maintain/standards documents.
83913
83914 2004-02-18  Bruno Haible  <bruno@clisp.org>
83915
83916         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
83917         Reported by Derek Robert Price <derek@ximbiot.com>.
83918
83919 2004-02-16  Karl Berry  <karl@gnu.org>
83920
83921         * config/mkinstalldirs, install-sh: update from automake.
83922
83923 2004-02-06  Karl Berry  <karl@gnu.org>
83924
83925         * m4/po.m4: update from gettext 0.14.1.
83926
83927 2004-02-06  Karl Berry  <karl@gnu.org>
83928
83929         * lib/config.charset: update from gettext 0.14.1.
83930
83931 2004-02-05  Paul Eggert  <eggert@twinsun.com>
83932
83933         Add comments and code, prompted by suggestions from Bruno Haible
83934         for sh-quote.
83935         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
83936         describing the enum quoting_style values.
83937         * lib/quotearg.c (quotearg_alloc): New function.
83938         (quotearg_buffer_restyled): Treat lone { and } as special.
83939         Treat = as special.  Work around bug with older shells
83940         that "see" a '\' that is really the 2nd byte of a multibyte char.
83941         Quote empty string with shell_quoting_style.
83942
83943 2004-02-03  Bruno Haible  <bruno@clisp.org>
83944
83945         * m4/pipe.m4: New file, from GNU gettext.
83946
83947 2004-02-03  Bruno Haible  <bruno@clisp.org>
83948
83949         * lib/pipe.h: New file, from GNU gettext.
83950         * lib/pipe.c: New file, from GNU gettext.
83951
83952 2004-01-27  Bruno Haible  <bruno@clisp.org>
83953
83954         * m4/execute.m4: New file, from GNU gettext.
83955
83956 2004-01-27  Bruno Haible  <bruno@clisp.org>
83957
83958         * lib/execute.h: New file, from GNU gettext.
83959         * lib/execute.c: New file, from GNU gettext.
83960         * lib/w32spawn.h: New file, from GNU gettext.
83961
83962 2004-01-24  Paul Eggert  <eggert@twinsun.com>
83963
83964         Merge from diffutils.
83965
83966         * lib/file-type.c (file_type): Add typed memory objects.
83967         * lib/file-type.h (S_TYPEISTMO): New macro.
83968
83969         * lib/c-stack.h (c_stack_action): Remove argv argument.
83970         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
83971         (die): Don't calculate message unless segv_action returns.
83972         (get_stack_location, min_address_from_argv, max_address_from_argv,
83973         volatile stack_base, volatile_stack_size): Remove.
83974         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
83975         that every segmentation violation is a stack overflow.  (Ouch!)
83976         See Debian bug 136249 (still outstanding) for more info about why
83977         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
83978
83979 2004-01-24  Paul Eggert  <eggert@twinsun.com>
83980
83981         Exit-status fix from coreutils.
83982
83983         Use exit_failure consistently in place of EXIT_FAILURE,
83984         so that program exit statuses are consistent on failure.
83985
83986         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
83987         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
83988         * lib/argmatch.h: Comment fix to match the above.
83989         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
83990         Now a macro referring to exit_failure, instead of a separate
83991         variable.  Include "exitfail.h" to get it.
83992         * lib/xstrtol.h: Include "exitfail.h".
83993         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
83994
83995         * lib/long-options.c (parse_long_options): Use prototype
83996         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
83997         for clarity.
83998
83999 2004-01-21  Jim Meyering  <jim@meyering.net>
84000
84001         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
84002         so as not to conflict with a different-sized __mktime_internal
84003         function in GNU libc.
84004         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
84005         Problem building statically-linked `ls' reported by Michael Brunnbauer.
84006
84007 2004-01-20  Karl Berry  <karl@gnu.org>
84008
84009         * config/config.guess: update from config.
84010
84011         * config/srclistvars.sh: GNUWWWLICENSES for karl.
84012
84013 2004-01-20  Bruno Haible  <bruno@clisp.org>
84014
84015         Safer stack allocation.
84016         * lib/setenv.c: Include allocsa.h.
84017         (alloca): Remove fallback definition.
84018         (freea): Remove macro.
84019         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
84020         instead of freea.
84021
84022 2004-01-20  Bruno Haible  <bruno@clisp.org>
84023
84024         * m4/eealloc.m4: New file, from GNU gettext.
84025
84026 2004-01-20  Bruno Haible  <bruno@clisp.org>
84027
84028         * m4/allocsa.m4: New file, from GNU gettext.
84029
84030 2004-01-20  Bruno Haible  <bruno@clisp.org>
84031
84032         * lib/xallocsa.h: New file, from GNU gettext.
84033         * lib/xallocsa.c: New file, from GNU gettext.
84034
84035 2004-01-20  Bruno Haible  <bruno@clisp.org>
84036
84037         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
84038
84039 2004-01-20  Bruno Haible  <bruno@clisp.org>
84040
84041         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
84042         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
84043         specially.
84044
84045 2004-01-20  Bruno Haible  <bruno@clisp.org>
84046
84047         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
84048         patch.
84049
84050 2004-01-20  Bruno Haible  <bruno@clisp.org>
84051
84052         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
84053
84054 2004-01-20  Bruno Haible  <bruno@clisp.org>
84055
84056         * lib/eealloc.h: New file.
84057
84058 2004-01-20  Bruno Haible  <bruno@clisp.org>
84059
84060         * lib/binary-io.h: Avoid warnings on Cygwin.
84061
84062 2004-01-20  Bruno Haible  <bruno@clisp.org>
84063
84064         * lib/allocsa.h: New file, from GNU gettext.
84065         * lib/allocsa.c: New file, from GNU gettext.
84066
84067 2004-01-18  Karl Berry  <karl@gnu.org>
84068
84069         * doc/gpl.texi, doc/lgpl.texi: new files.
84070
84071 2004-01-18  Karl Berry  <karl@gnu.org>
84072
84073         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
84074         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
84075
84076 2004-01-15  Paul Eggert  <eggert@twinsun.com>
84077
84078         Merge from coreutils.
84079
84080         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
84081         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
84082         (gl_DEFAULT_POSIX2_VERSION): Move
84083         the documentation from 'configure' into 'config.hin',
84084         so that 'configure --help' isn't burdened by it and
84085         we don't have to worry about its formatting there.
84086         Reword the documentation so that it's more succinct
84087         and can be run together into a single paragraph.
84088         * m4/same.m4 (gl_SAME): Check for pathconf.
84089
84090 2004-01-15  Paul Eggert  <eggert@twinsun.com>
84091
84092         Merge from coreutils.
84093
84094         * lib/posixver.c: Include posixver.h.
84095
84096         * lib/same.c: Include <stdbool.h>, <limits.h>.
84097         (_POSIX_NAME_MAX): Define if not defined.
84098         (MIN): New macro.
84099         (same_name): If file names are silently truncated, report
84100         that the file names are the same if they are the same after
84101         the silent truncation.
84102
84103         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
84104         conversion function.
84105         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
84106         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
84107         longer needed.
84108
84109 2004-01-15  Jim Meyering  <jim@meyering.net>
84110
84111         Merge from coreutils.
84112
84113         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
84114         if no library is required.
84115         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
84116         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
84117         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
84118         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
84119         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
84120         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
84121         value, $ac_cv_search_crypt, if it's "none required".
84122         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
84123         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
84124         not gl_FUNC_GETLOADAVG.
84125         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
84126         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
84127
84128 2004-01-15  Jim Meyering  <jim@meyering.net>
84129
84130         Merge from coreutils.
84131
84132         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
84133         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
84134         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
84135
84136         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
84137         optional configure-time default.
84138
84139         * lib/version-etc.c (version_etc_copyright): Update copyright date.
84140
84141         * lib/xreadlink.c (xreadlink): Correct outdated comment.
84142
84143 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
84144
84145         Merge from coreutils.
84146
84147         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
84148         value, $ac_cv_search_nanosleep, if it's "none required".
84149
84150 2004-01-14  Paul Eggert  <eggert@twinsun.com>
84151
84152         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
84153         with like-named macro in fnmatch.c.
84154         (EXT): Use an internal constant instead.
84155
84156         Merge fnmatch patches from glibc.
84157         * lib/fnmatch.c (mbsinit): Remove define.
84158         Add libc_hidden_ver (__fnmatch, fnmatch).
84159         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
84160         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
84161
84162 2004-01-14  Karl Berry  <karl@gnu.org>
84163
84164         * config/install-sh: update from automake.
84165
84166 2004-01-13  Karl Berry  <karl@gnu.org>
84167
84168         * config/install-sh: update from automake.
84169
84170 2004-01-09  Karl Berry  <karl@gnu.org>
84171
84172         * config/install-sh: update from automake.
84173
84174 2004-01-05  Karl Berry  <karl@gnu.org>
84175
84176         * config/config.{sub,guess}: update from config.
84177
84178 2003-12-31  Karl Berry  <karl@gnu.org>
84179
84180         * config/depcomp: update from automake.
84181
84182 2003-12-14  Karl Berry  <karl@gnu.org>
84183
84184         * lib/config.charset: update from gettext-runtime.
84185
84186 2003-12-03  Paul Eggert  <eggert@twinsun.com>
84187
84188         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
84189         Bug reported by Alfred M. Szmidt.
84190
84191 2003-12-03  Bruno Haible  <bruno@clisp.org>
84192
84193         * m4/gettext.m4: Upgrade from gettext-0.13.
84194         * m4/po.m4: Upgrade from gettext-0.13.
84195         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
84196         * m4/intmax.m4: New file, from gettext-0.13.
84197         * m4/printf-posix.m4: New file, from gettext-0.13.
84198
84199 2003-11-29  Karl Berry  <karl@gnu.org>
84200
84201         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
84202
84203 2003-11-25  Paul Eggert  <eggert@twinsun.com>
84204             Bruno Haible  <bruno@clisp.org>
84205
84206         * lib/printf-parse.h: Don't include sys/types.h.
84207         (ARG_NONE): New macro.
84208         (char_directive): Change type of *arg_index fields to size_t.
84209         * lib/printf-parse.c: Don't include sys/types.h.
84210         (SSIZE_MAX): Remove macro.
84211         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
84212         Remove unnecessary overflow check.
84213         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
84214         fields.
84215
84216 2003-11-25  Bruno Haible  <bruno@clisp.org>
84217
84218         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
84219
84220 2003-11-25  Bruno Haible  <bruno@clisp.org>
84221
84222         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
84223         gt_TYPE_SSIZE_T.
84224
84225 2003-11-24  Paul Eggert  <eggert@twinsun.com>
84226
84227         * modules/alloca: Remove dependency on xalloc.
84228
84229 2003-11-24  Paul Eggert  <eggert@twinsun.com>
84230
84231         * lib/alloca.c: Remove dependency on xalloc module.
84232         (xalloc_die): Remove.
84233         (memory_full) [!defined emacs]: New macro.
84234         [!defined emacs]: Don't include xalloc.h.
84235         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
84236         address arithmetic overflows.  Change datatypes a bit to avoid
84237         unnecessary casts.
84238
84239 2003-11-22  Jim Meyering  <jim@meyering.net>
84240
84241         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
84242         s/size/size_t/.
84243
84244 2003-11-21  Karl Berry  <karl@gnu.org>
84245
84246         * config/config.{sub,guess}: update from config.
84247
84248 2003-11-18  Karl Berry  <karl@gnu.org>
84249
84250         * config/config.{sub,guess}: update from config.
84251
84252         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
84253
84254 2003-11-17  Paul Eggert  <eggert@twinsun.com>
84255
84256         * README: Mention that S+T cannot overflow if S is the size of
84257         an existing object and T is sufficiently small.
84258
84259 2003-11-17  Jim Meyering  <jim@meyering.net>
84260
84261         On systems without utime and without a utimes function capable of
84262         dealing with a NULL struct utimbuf* argument, this utime replacement
84263         could -- in unusual circumstances -- leak a file descriptor.
84264         * lib/utime.c: Include <unistd.h> and <errno.h>.
84265         (utime_null): Be sure to close `fd' and to preserve errno.
84266         Reported by Geoff Collyer via Arnold Robbins.
84267
84268 2003-11-17  Bruno Haible  <bruno@clisp.org>
84269
84270         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
84271         (Depends-on): Add xsize.
84272
84273 2003-11-17  Bruno Haible  <bruno@clisp.org>
84274
84275         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
84276
84277 2003-11-17  Bruno Haible  <bruno@clisp.org>
84278
84279         * lib/vasnprintf.c (alloca): Remove fallback definition.
84280         (freea): Remove definition.
84281         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
84282         Reported by Paul Eggert.
84283
84284 2003-11-16  Paul Eggert  <eggert@twinsun.com>
84285             Bruno Haible  <bruno@clisp.org>
84286
84287         Protect against address arithmetic overflow.
84288         * lib/printf-args.h: Include stddef.h.
84289         (arguments): Change type of field 'count' to size_t.
84290         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
84291         'unsigned int' where appropriate.
84292         * lib/printf-parse.h: Include sys/types.h.
84293         (char_directive): Change type of *arg_index fields to ssize_t.
84294         (char_directives): Change type of fields 'count', max_*_length to
84295         size_t.
84296         * lib/printf-parse.c: Include sys/types.h and xsize.h.
84297         (SSIZE_MAX): Define fallback value.
84298         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
84299         instead of 'int' where appropriate. Check a_allocated, d_allocated
84300         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
84301         * lib/vasnprintf.c: Include xsize.h.
84302         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
84303         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
84304         overflow. Avoid wraparound when converting a width or precision from
84305         decimal to binary.
84306
84307 2003-11-16  Bruno Haible  <bruno@clisp.org>
84308
84309         Update from GNU gettext.
84310         * lib/printf-parse.c: Generalize to it can be compiled for wide
84311         strings.
84312         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
84313         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
84314         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
84315         SNPRINTF): New macros.
84316         Don't include <alloca.h> if the file is used inside libintl.
84317         (local_wcslen): New function, for Solaris 2.5.1.
84318         (VASNPRINTF): Use it instead of wcslen.
84319
84320 2003-11-16  Bruno Haible  <bruno@clisp.org>
84321
84322         * lib/xsize.h (xmax): New function.
84323         (xsum, xsum3, xsum4): Declare as "pure" functions.
84324
84325 2003-11-12  Paul Eggert  <eggert@twinsun.com>
84326
84327         * modules/xalloc (Files): Undo latest change, since xalloc.h
84328         no longer needs SIZE_MAX or PTRDIFF_MAX.
84329
84330 2003-11-12  Paul Eggert  <eggert@twinsun.com>
84331
84332         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
84333         gl_PTRDIFF_MAX.
84334
84335 2003-11-12  Paul Eggert  <eggert@twinsun.com>
84336
84337         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
84338         "return", to pacify some unknown compiler.  Problem reported
84339         by Joerg Schilling.
84340
84341 2003-11-12  Paul Eggert  <eggert@twinsun.com>
84342
84343         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
84344         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
84345         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
84346         heuristic is just as accurate as far as we know, and it removes a
84347         dependency on size_max.m4 and ptrdiff_max.m4.
84348
84349 2003-11-11  Bruno Haible  <bruno@clisp.org>
84350
84351         * modules/xsize (Files): Add m4/size_max.m4.
84352         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
84353
84354 2003-11-11  Bruno Haible  <bruno@clisp.org>
84355
84356         * m4/size_max.m4: New file.
84357         * m4/ptrdiff_max.m4: New file.
84358         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
84359         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
84360         (gl_XALLOC): Invoke it.
84361
84362 2003-11-11  Bruno Haible  <bruno@clisp.org>
84363
84364         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
84365         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
84366         defined.
84367
84368 2003-11-10  Paul Eggert  <eggert@twinsun.com>
84369
84370         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
84371         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
84372         rejected some allocations of exactly SIZE_MAX - 2 bytes.
84373         From Bruno Haible.
84374         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
84375         not (size_t) -1, since it's defined here.
84376
84377 2003-11-09  Karl Berry  <karl@gnu.org>
84378
84379         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
84380
84381 2003-11-06  Paul Eggert  <eggert@twinsun.com>
84382
84383         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
84384         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
84385         Reject sizes of exactly SIZE_MAX bytes.
84386         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
84387         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
84388
84389 2003-11-05  Bruno Haible  <bruno@clisp.org>
84390
84391         * lib/xsize.h: Include limits.h, to avoid a possible collision with
84392         SIZE_MAX defined in <limits.h> on Solaris.
84393
84394 2003-11-04  Jim Meyering  <jim@meyering.net>
84395
84396         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
84397         variable names, rather than @VAR@.
84398         * modules/poll: Likewise.
84399
84400 2003-11-04  Bruno Haible  <bruno@clisp.org>
84401
84402         * modules/xsize: New file.
84403         * modules/linebreak: Depend on xsize.
84404         * MODULES.html.sh (func_all_modules): Add xsize.
84405
84406 2003-11-04  Bruno Haible  <bruno@clisp.org>
84407
84408         * m4/xsize.m4: New file.
84409
84410 2003-11-04  Bruno Haible  <bruno@clisp.org>
84411
84412         * lib/xsize.h: New file.
84413         * lib/linebreak.c: Include xsize.h.
84414         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
84415         argument for overflow.
84416         Suggested by Paul Eggert.
84417
84418 2003-11-03  Karl Berry  <karl@gnu.org>
84419
84420         * config/config.{guess,sub}: update from config.
84421
84422 2003-11-03  Jim Meyering  <jim@meyering.net>
84423
84424         * modules/userspec (lib_SOURCES): Add userspec.h.
84425         (Include): Add "userspec.h".
84426         Improve description.
84427
84428 2003-11-03  Jim Meyering  <jim@meyering.net>
84429
84430         * lib/userspec.c: Include "userspec.h".
84431         * lib/userspec.h: New file.
84432
84433 2003-11-03  Bruno Haible  <bruno@clisp.org>
84434
84435         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
84436
84437 2003-11-03  Bruno Haible  <bruno@clisp.org>
84438
84439         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
84440         available, to avoid (extremely rare) race condition.
84441         Suggested by Paul Eggert.
84442
84443 2003-11-02  Karl Berry  <karl@gnu.org>
84444
84445         * config/srclist.txt (vasprintf.c): sync broken, sigh.
84446
84447 2003-10-31  Paul Eggert  <eggert@twinsun.com>
84448
84449         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
84450         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
84451         (read_filesystem_list): Set and use me_type_malloced.
84452         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
84453         whatever the type happens to be), for brevity and consistency.
84454         Check for size calculation overflow on Alphas running OSF/1.
84455
84456 2003-10-31  Jim Meyering  <jim@meyering.net>
84457
84458         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
84459
84460         * lib/linebuffer.c: Include <string.h> for declaration of memset.
84461
84462 2003-10-30  Paul Eggert  <eggert@twinsun.com>
84463             Bruno Haible  <bruno@clisp.org>
84464
84465         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
84466         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
84467
84468 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
84469
84470         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
84471         netbsd*-gnu*.  Suggested by Robert Millan.
84472
84473 2003-10-29  Paul Eggert  <eggert@twinsun.com>
84474
84475         * modules/group-member: Depend on stdbool.
84476
84477 2003-10-29  Paul Eggert  <eggert@twinsun.com>
84478
84479         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
84480
84481 2003-10-29  Paul Eggert  <eggert@twinsun.com>
84482
84483         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
84484         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
84485         after the 'gnu' in these cases.  This fixes some bugs in the
84486         previous change, and is based on suggestions by Robert Millan.
84487
84488 2003-10-29  Paul Eggert  <eggert@twinsun.com>
84489
84490         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
84491         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
84492         no longer needed.
84493         * lib/quotearg.c (quotearg_n_options): Use it.
84494         * lib/group-member.c: Include <stdbool.h>.
84495         (free_group_info): Arg is now const *; don't free arg.
84496         (get_group_info): Now returns bool and accepts struct group_info *,
84497         rather than returning a malloc'ed struct group_info *.
84498         All uses changed.  Check for overflow in internal size calculation.
84499
84500         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
84501         rather than xmalloc/xrealloc.
84502         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
84503         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
84504         conformance bug: the old code used a pointer after freeing the
84505         storage that it addressed.
84506         * lib/hash.c (hash_initialize): Simplify the code by using
84507         xalloc_oversized rather than doing it by hand.
84508         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
84509         the buffer preserved.  Use free and xmalloc instead.
84510         * lib/quotearg.c (quotearg_n_options): Likewise.
84511         Use a simpler test for size overflow.  Don't use xalloc_oversized
84512         because unsigned int might be wider than size_t (!); this suggests
84513         that we should switch from unsigned int to size_t for slot numbers.
84514
84515 2003-10-28  Paul Eggert  <eggert@twinsun.com>
84516
84517         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
84518         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
84519         NetBSD kernels.  Requested by Richard Stallman.
84520
84521 2003-10-27  Paul Eggert  <eggert@twinsun.com>
84522
84523         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
84524         to allocate the returned structure.  Do not allocate a subarray,
84525         as x2nrealloc will do that.
84526         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
84527         instead of xnrealloc.
84528         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
84529
84530 2003-10-27  Bruno Haible  <bruno@clisp.org>
84531
84532         * lib/stdbool_.h: Better support for BeOS.
84533
84534 2003-10-26  Paul Eggert  <eggert@twinsun.com>
84535
84536         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
84537         now uses inline.
84538
84539 2003-10-26  Paul Eggert  <eggert@twinsun.com>
84540
84541         * lib/xalloc.h (xalloc_oversized): New static inline function, for
84542         callers that want to do their own size-overflow checking.  Include
84543         <stdbool.h>, since xalloc_oversized returns bool.
84544         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
84545         to use xalloc_oversized.
84546
84547         Add two functions x2realloc, x2nrealloc, for programs that grow
84548         arrays dynamically by doubling their sizes.
84549         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
84550         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
84551         New functions.
84552
84553         Port to C99 semantics for 'inline' of external functions.
84554         Bug reported by Bruno Haible.
84555         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
84556         with the old contents of xnmalloc.
84557         (xnmalloc, xmalloc): Use it.
84558         (xnrealloc_inline): New static inline function,
84559         with the old contents of xnrealloc.
84560         (xnrealloc, xrealloc): Use it.
84561
84562         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
84563         that.
84564
84565 2003-10-26  Karl Berry  <karl@gnu.org>
84566
84567         * config/srclist.txt (COPYING.DOC): no longer available from
84568         /gd/gnuorg; don't know where the ultimate source is.
84569
84570 2003-10-25  Paul Eggert  <eggert@twinsun.com>
84571
84572         Fix several address-calculation bugs in the hash modules,
84573         plus some minor code cleanup.
84574
84575         * lib/hash.h: Include <stdbool.h>, for bool.
84576         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
84577         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
84578         hash_get_n_entries, hash_get_max_bucket_length,
84579         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
84580         hash_rehash): Use size_t rather than unsigned.
84581         * lib/hash.c (struct hash_table, hash_get_n_buckets,
84582         hash_get_n_buckets_used, hash_get_n_entries,
84583         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
84584         hash_get_entries, hash_do_for_each, hash_string, is_prime,
84585         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
84586         Likewise.
84587         (SIZE_MAX): Define if not defined.
84588         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
84589         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
84590         hash_print):
84591         Use const * when possible.
84592         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
84593         (check_tuning): Fix bug: if tuning parameters were very close to
84594         0 or 1, rounding errors could have caused subscript violations.
84595         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
84596         (hash_initialize): Add 'fail:' label
84597         to free table and return NULL, and use it to simplify code.
84598         Use calloc rather than clearing the storage ourself.
84599         (hash_initialize, hash_rehash): Check for arithmetic overflow in
84600         buffer size calculations.
84601         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
84602         Include <stddef.h>, for size_t.
84603         * lib/hash-pjw.c (hash_pjw): Likewise.
84604         Switch to method described by Bruno Haible.
84605         Include <limits.h>, for CHAR_BIT.
84606         (SIZE_BITS): New macro.
84607
84608 2003-10-23  Paul Eggert  <eggert@twinsun.com>
84609
84610         * m4/getline.m4 (AM_FUNC_GETLINE):
84611         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
84612         hosts.  Problem reported by Derek Robert Price in
84613         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
84614         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
84615         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
84616
84617 2003-10-21  Paul Eggert  <eggert@twinsun.com>
84618
84619         * lib/getndelim2.c (getndelim2): When size calculation overflows,
84620         ceiling the allocation at NMAX bytes rather than silently
84621         discarding input bytes before NMAX is reached.  This makes
84622         a difference only if NMAX exceeds SIZE_MAX / 2.
84623
84624         * lib/obstack.c: Merge from glibc.
84625         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
84626         Add libc_hidden_def (_obstack_newchunk).
84627         (_obstack_free) [! defined _LIBC]: Remove.
84628         [defined _LIBC]: Make a strong alias from obstack_free, rather than
84629         a clone of the function body.
84630         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
84631         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
84632
84633         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
84634         glibc.
84635         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
84636         arg to memcpy.
84637
84638         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
84639         (obstack_ptr_grow_fast, obstack_int_grow_fast):
84640         Don't use lvalue casts, as GCC plans to remove support for them
84641         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
84642         was also present in the non-GCC version, indicating that this
84643         code had always been buggy and had never been widely used.
84644         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
84645         Use the fast variant of each macro, rather than copying the
84646         definiens of the fast variant; that way, we'll be more likely to
84647         catch future bugs in the fast variants.
84648
84649 2003-10-20  Bruno Haible  <bruno@clisp.org>
84650
84651         * modules/wait-process: New file.
84652         * MODULES.html.sh (func_all_modules): Add wait-process.
84653
84654 2003-10-20  Bruno Haible  <bruno@clisp.org>
84655
84656         * m4/wait-process.m4: New file.
84657
84658 2003-10-20  Bruno Haible  <bruno@clisp.org>
84659
84660         * lib/wait-process.h: New file, from GNU gettext.
84661         * lib/wait-process.c: New file, from GNU gettext.
84662
84663 2003-10-19  Jim Meyering  <jim@meyering.net>
84664
84665         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
84666         HPUX 10.20.
84667
84668 2003-10-18  Karl Berry  <karl@gnu.org>
84669
84670         * config/config.guess: update from config.
84671
84672 2003-10-16  Paul Eggert  <eggert@twinsun.com>
84673
84674         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
84675         (getgroups): First arg is int, not size_t.
84676         Don't let 'free' mangle errno.
84677
84678 2003-10-16  Paul Eggert  <eggert@twinsun.com>
84679
84680         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
84681
84682 2003-10-16  Karl Berry  <karl@gnu.org>
84683
84684         * config/config.{guess,sub}: update from config.
84685
84686 2003-10-16  Jim Meyering  <jim@meyering.net>
84687
84688         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
84689         memcpy.
84690
84691 2003-10-15  Paul Eggert  <eggert@twinsun.com>
84692
84693         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
84694         (SIZE_MAX): Remove.
84695         (new_exclude, add_exclude_file): Initial size no longer needs to
84696         be a power of 2.
84697         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
84698         our own address arithmetic overflow checking.
84699
84700         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
84701         (fnmatch): Do not alloca more than 2000 wide characters;
84702         instead, use malloc for large buffers.
84703         Check for address arithmetic overflow, and return -1
84704         with errno set to ENOMEM in that case.
84705         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
84706         (NEW_PATTERN): Do not alloca more than 8000 bytes;
84707         instead, return -1.  Check for address arithmetic overflow.
84708
84709 2003-10-14  Paul Eggert  <eggert@twinsun.com>
84710
84711         Handle invalid suffixes and overflow independently, so that
84712         callers can treat them independently as needed.  Fix some bugs in
84713         suffix handling, e.g., "100k@" was not diagnosed as an invalid
84714         suffix for a human-readable blocksize.  The major caller-visible
84715         change is the addition of a new
84716         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
84717         that both overflow and suffix chars were found.
84718
84719         * lib/human.c (humblock): Don't check separately for invalid suffix
84720         char; that is xstrtoumax's job (now that its bug is fixed).
84721         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
84722         INTMAX_MAX]: New macros.
84723         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
84724         TYPE_MAXIMUM): New macros.
84725         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
84726         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
84727         if overflow occurs, as it's what __strtol does and it's more useful
84728         in practice.
84729         (__xstrtol): If __strtol reports some error other than ERANGE,
84730         reflect it to the caller as LONGINT_INVALID.  If it reports
84731         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
84732         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
84733         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
84734         value.
84735         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
84736         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
84737         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
84738         [defined UINTMAX_MAX]: New macros.
84739
84740 2003-10-14  Bruno Haible  <bruno@clisp.org>
84741
84742         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
84743
84744 2003-10-14  Bruno Haible  <bruno@clisp.org>
84745
84746         * m4/sig_atomic_t: New file, from GNU gettext.
84747         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
84748
84749 2003-10-14  Bruno Haible  <bruno@clisp.org>
84750
84751         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
84752         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
84753         Also use volatile where needed.
84754
84755 2003-10-12  Paul Eggert  <eggert@twinsun.com>
84756
84757         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
84758         Change maintainer from Bruno Haible to 'all'.
84759
84760 2003-10-12  Paul Eggert  <eggert@twinsun.com>
84761
84762         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
84763
84764 2003-10-12  Paul Eggert  <eggert@twinsun.com>
84765
84766         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
84767         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
84768         and define in terms of the other primitives.
84769         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
84770         (SIZE_MAX): Define if not already defined.
84771         (array_size_overflow): New function.
84772         (xalloc_die): Abort instead of exiting if 'error' returns.
84773         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
84774         (xmalloc, xrealloc): Use them.
84775         (xcalloc): Check for address arithmetic overflow.
84776         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
84777         a bit faster than strcpy.
84778
84779 2003-10-10  Simon Josefsson  <jas@extundo.com>
84780
84781         * modules/argp (Depends-on): Add restrict and strcase.
84782
84783 2003-10-10  Simon Josefsson  <jas@extundo.com>
84784
84785         * m4/argp.m4: Add AC_C_INLINE.
84786
84787 2003-10-08  Paul Eggert  <eggert@twinsun.com>
84788
84789         Merge getpass from libc, plus a few fixes.
84790
84791         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
84792         Include <stdbool.h>.
84793         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
84794         __fsetlocking to empty.
84795         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
84796         do include <bits/libc-lock.h>.
84797         Do not include <fcntl.h>; not needed.
84798         [_LIBC]: Include <wchar.h>.
84799         (NOTCANCEL_MODE): New macro.
84800         (flockfile, funlockfile) [_LIBC]: New macros.
84801         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
84802         [!_LIBC]: New macros.
84803         (call_fclose): New function.
84804         (getpass): Use it.  Save tty stream separately; this simplifies the
84805         code and makes it more reliable if stdin happens to equal stdout.
84806         Invoke __fsetlocking on tty.
84807         Handle thread cancellation if needed.
84808         Namespace cleanup (use __tcgetattr, __getline).
84809         Use bool for Booleans.
84810         [USE_IN_LIBIO]: Handle wide streams.
84811         [!_LIBC]: Unconditionally do the fseek, since we don't know what
84812         stream might go where.
84813
84814         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
84815         doesn't have to include <stdio.h> before us.
84816         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
84817         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
84818         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
84819         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
84820         if not declared, so that we can use getpass.c code from libc without
84821         rewriting it.
84822         (flockfile, ftrylockfile, funlockfile): New macros.
84823
84824 2003-10-08  Paul Eggert  <eggert@twinsun.com>
84825
84826         * modules/getpass: Depend on stdbool.
84827
84828 2003-10-08  Paul Eggert  <eggert@twinsun.com>
84829
84830         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
84831
84832 2003-10-07  Karl Berry  <karl@gnu.org>
84833
84834         * config/config.{guess,sub}: update from config.
84835
84836 2003-10-06  Jim Meyering  <jim@meyering.net>
84837             Bruno Haible  <bruno@clisp.org>
84838
84839         This lets translators provide better translations for the
84840         "Written by ..." part of --version output.
84841         * lib/version-etc.h: Include stdarg.h.
84842         (version_etc_copyright): Declare as readonly.
84843         (version_etc): Make this function variadic with a NULL-terminated list
84844         of author name strings.
84845         (version_etc_va): New declaration.
84846         * lib/version-etc.c: Include stdarg.h, stdlib.h.
84847         (version_etc_copyright): Declare as readonly.
84848         (version_etc_va): New function. Provide a different translatable string
84849         for each possible number of authors < 10. Abbreviate when there are 10
84850         authors or more.
84851         (version_etc): Make this function variadic. Call version_etc_va.
84852         Suggestion from Gary V. Vaughan.
84853
84854         * lib/long-options.h (parse_long_options): Change prototype: the
84855         authors string is moved to the end and becomes variadic.
84856         * lib/long-options.c: Include stdarg.h.
84857         (parse_long_options): Make this function variadic, too.
84858         Call version_etc_va, not version_etc.
84859
84860 2003-10-06  Bruno Haible  <bruno@clisp.org>
84861
84862         * modules/version-etc-2: Remove file.
84863         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
84864
84865 2003-10-06  Bruno Haible  <bruno@clisp.org>
84866
84867         * modules/fatal-signal: New file.
84868         * MODULES.html.sh (func_all_modules): Add fatal-signal.
84869
84870 2003-10-06  Bruno Haible  <bruno@clisp.org>
84871
84872         * m4/fatal-signal.m4: New file.
84873         * m4/signalblocking.m4: New file, from GNU gettext.
84874
84875 2003-10-06  Bruno Haible  <bruno@clisp.org>
84876
84877         * lib/version-etc-2.h: Remove file.
84878         * lib/version-etc-2.c: Remove file.
84879
84880 2003-10-06  Bruno Haible  <bruno@clisp.org>
84881
84882         * lib/fatal-signal.h: New file, from GNU gettext.
84883         * lib/fatal-signal.c: New file, from GNU gettext.
84884
84885 2003-10-05  Paul Eggert  <eggert@twinsun.com>
84886
84887         * README: Rework advice for preventing empty .o files.
84888         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
84889         not <sys/types.h>.
84890
84891 2003-10-04  Karl Berry  <karl@gnu.org>
84892
84893         * lib/argp*: update from libc.
84894
84895 2003-10-04  Karl Berry  <karl@gnu.org>
84896
84897         * config/config.{guess,sub}: update from config.
84898
84899 2003-10-02  Bruno Haible  <bruno@clisp.org>
84900
84901         * modules/lchown (Include): Add lchown.h.
84902         * modules/time_r (Include): Use "..." syntax.
84903         * modules/xgetdomainname (Include): Add xgetdomainname.h.
84904
84905 2003-10-01  Simon Josefsson  <jas@extundo.com>
84906
84907         * MODULES.html.sh (func_all_modules): Move gethostname from section
84908         'based on' to section 'lacking' POSIX:2001.
84909
84910 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
84911
84912         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
84913         to output mode on the same stream.
84914
84915 2003-09-29  Paul Eggert  <eggert@twinsun.com>
84916
84917         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
84918         Fix arg typo in previous patch.
84919
84920 2003-09-28  Jim Meyering  <jim@meyering.net>
84921
84922         * lib/error.c: Correct cpp indentation.
84923
84924 2003-09-27  Paul Eggert  <eggert@twinsun.com>
84925
84926         * modules/free: New file.
84927
84928 2003-09-27  Paul Eggert  <eggert@twinsun.com>
84929
84930         * m4/free.m4: New file.
84931
84932 2003-09-27  Paul Eggert  <eggert@twinsun.com>
84933
84934         * lib/minmax.h (MIN, MAX)
84935         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
84936         Omit the special code that used __typeof__, since we worry that
84937         it could be more trouble than it's worth.  See:
84938         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
84939         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
84940
84941         * lib/free.c: New file.
84942
84943 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
84944
84945         Trivial fixes to Makefile.am parts of module listings.
84946         * modules/strstr: Append strstr.h to lib_SOURCES.
84947         * modules/strcase: Likewise, for strcase.h.
84948
84949 2003-09-27  Karl Berry  <karl@gnu.org>
84950
84951         * config/mkinstalldirs: update from automake.
84952
84953 2003-09-26  Paul Eggert  <eggert@twinsun.com>
84954
84955         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
84956         (error_tail): Do not loop, reallocating temporary buffer, since
84957         the output cannot contain more wide characters than the input
84958         contains bytes, the size must be big enough already.  This avoids
84959         one potential size overflow calculation.  Check for size overflow
84960         when calculating temporary buffer size.  Free temporary buffer
84961         when done, if it was allocated with malloc; this plugs a memory
84962         leak.  Remove casts from void * to pointers, that are no longer
84963         needed now that we're assuming C89 or better.
84964
84965         Merge error changes from glibc.
84966
84967         * lib/error.c, error.h: Update copyright notice header to match glibc.
84968         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
84969         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
84970         Disable cancellation while printing error.
84971         * lib/error.h: Prepend __ to parameter names.
84972
84973 2003-09-26  Jim Meyering  <jim@meyering.net>
84974
84975         * lib/error.c (error_tail): Move some declarations
84976         into inner scope where the local variables are used.
84977
84978 2003-09-26  Bruno Haible  <bruno@clisp.org>
84979
84980         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
84981         stpncpy().
84982         Don't define stpncpy through config.h; it's now done through stpncpy.h.
84983
84984 2003-09-26  Bruno Haible  <bruno@clisp.org>
84985
84986         * lib/stpncpy.h (gnu_stpncpy): New declaration.
84987         (stpncpy): Define as alias for gnu_stpncpy.
84988         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
84989
84990 2003-09-25  Simon Josefsson  <jas@extundo.com>
84991
84992         * lib/xgetdomainname.h: New file.
84993         * lib/xgetdomainname.c: New file.
84994
84995 2003-09-25  Simon Josefsson  <jas@extundo.com>
84996             Bruno Haible  <bruno@clisp.org>
84997
84998         * modules/getdomainname: New file.
84999         * modules/xgetdomainname: New file.
85000         * MODULES.html.sh (func_all_modules): Add getdomainname,
85001         xgetdomainname.
85002
85003 2003-09-25  Simon Josefsson  <jas@extundo.com>
85004             Bruno Haible  <bruno@clisp.org>
85005
85006         * m4/getdomainname.m4: New file.
85007
85008 2003-09-25  Simon Josefsson  <jas@extundo.com>
85009             Bruno Haible  <bruno@clisp.org>
85010
85011         * lib/getdomainname.h: New file.
85012         * lib/getdomainname.c: New file.
85013
85014 2003-09-25  Karl Berry  <karl@gnu.org>
85015
85016         * lib/argp-fmtstream.c, argp-help.c: update from libc.
85017
85018 2003-09-25  Karl Berry  <karl@gnu.org>
85019
85020         * config/install-sh: update from automake.
85021
85022 2003-09-25  Bruno Haible  <bruno@clisp.org>
85023
85024         * modules/version-etc-2: New file, from modules/version-etc with
85025         modifications.
85026         * MODULES.html.sh (func_all_modules): Add version-etc-2.
85027
85028 2003-09-25  Bruno Haible  <bruno@clisp.org>
85029
85030         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
85031         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
85032
85033 2003-09-24  Simon Josefsson  <jas@extundo.com>
85034
85035         * modules/xgethostname: Add xgethostname.h.
85036
85037 2003-09-24  Paul Eggert  <eggert@twinsun.com>
85038
85039         * lib/linebuffer.c (freebuffer): Don't free the argument, just
85040         the buffer associated with the argument.  Bug reported by
85041         Simon Josefsson.
85042
85043 2003-09-24  Paul Eggert  <eggert@twinsun.com>
85044
85045         * README: Document assumptions that 'int' is at least 32 bits
85046         wide, that integer arithmetic is 2's complement without overflow,
85047         that there are no holes in integer values, that adding sizes of
85048         two nonoverlapping objects can't overflow, and that all-bits-zero
85049         yields scalar zero.  Fix spelling and capitalization typos.
85050
85051 2003-09-19  Karl Berry  <karl@gnu.org>
85052
85053         * lib/argp.h: update from libc.
85054
85055 2003-09-17  Paul Eggert  <eggert@twinsun.com>
85056
85057         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
85058         to avoid spurious warnings like "AC_RUN_IFELSE was called before
85059         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
85060
85061 2003-09-17  Paul Eggert  <eggert@twinsun.com>
85062
85063         * gnulib-tool: Use "test -h", not "test -L", for portability
85064         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
85065         (tags_regexp): Remove, since \| doesn't conform to POSIX.
85066         (sed_extract_prog): Issue s commands one-by-one, rather than
85067         using \| in one s command.
85068
85069 2003-09-16  Paul Eggert  <eggert@twinsun.com>
85070
85071         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
85072         input error, instead of returning NULL the next time we are called
85073         (and therefore losing track of errno).
85074
85075 2003-09-16  Bruno Haible  <bruno@clisp.org>
85076
85077         * gnulib-tool (func_create_testdir): Warn about duplicated
85078         dependencies.
85079
85080 2003-09-15  Paul Eggert  <eggert@twinsun.com>
85081
85082         * modules/argmatch, modules/fatal, modules/obstack,
85083         modules/xalloc, modules/xgethostname: Sort dependencies by
85084         importance, not alphabetically.
85085
85086 2003-09-15  Paul Eggert  <eggert@twinsun.com>
85087
85088         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
85089         fails, so that the caller gets the proper errno.
85090
85091         * lib/readutmp.c (read_utmp): Likewise.
85092         Check for fstat error.  Close stream and free storage
85093         when failing.
85094
85095 2003-09-14  Karl Berry  <karl@gnu.org>
85096
85097         * config/srclist.txt (strdup.c): disable for c89 changes.
85098
85099 2003-09-14  Jim Meyering  <jim@meyering.net>
85100
85101         * lib/getloadavg.c: Correct cpp indentation.
85102         * lib/strdup.c: Likewise.
85103         * lib/vasnprintf.c: Likewise.
85104
85105 2003-09-14  Bruno Haible  <bruno@clisp.org>
85106
85107         * modules/fwriteerror: New file.
85108         * MODULES.html.sh (func_all_modules): Add fwriteerror.
85109
85110 2003-09-14  Bruno Haible  <bruno@clisp.org>
85111
85112         * lib/fwriteerror.h: New file.
85113         * lib/fwriteerror.c: New file.
85114
85115 2003-09-12  Paul Eggert  <eggert@twinsun.com>
85116
85117         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
85118         modules/xgethostname, modules/xalloc: Depend on exit.
85119
85120 2003-09-12  Paul Eggert  <eggert@twinsun.com>
85121
85122         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
85123
85124         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
85125         and AC_MINIX, too, so that their extensions are available.
85126
85127         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
85128         This macro has been superseded by gl_BACKUPFILE.
85129
85130         More patches to assume C89 or better.
85131
85132         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
85133
85134         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
85135         unconditionally.
85136         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
85137         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
85138         Include <string.h>, <stdlib.h> unconditionally.
85139         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
85140         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
85141         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
85142         headers or for string.h.
85143         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
85144         or strtoul.
85145
85146         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
85147         headers.
85148         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
85149         * m4/userspec.m4 (gl_USERSPEC): Likewise.
85150         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
85151         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
85152         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
85153         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
85154         memcpy, memset.
85155         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
85156         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
85157         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
85158         strtol.
85159         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
85160         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
85161         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
85162         strtoul.
85163
85164 2003-09-12  Paul Eggert  <eggert@twinsun.com>
85165
85166         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
85167         * lib/obstack.c [!defined _LIBC]: Likewise.
85168         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
85169         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
85170         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
85171
85172         More changes to assume C89 or better.
85173
85174         * lib/error.c (error_tail): Assume vprintf.
85175
85176         * lib/argmatch.c (getenv): Remove decl.
85177         * lib/progreloc.c (get_full_program_name): Define via prototype.
85178         * lib/setenv.c (clearenv): Likewise.
85179         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
85180         needed.
85181         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
85182         (malloc, memcpy): Remove decls.
85183         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
85184         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
85185         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
85186         (memcpy): Remove macro.
85187         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
85188         (__P): Remove.  All uses removed.
85189         (PTR): Remove.  All uses changed to void *.
85190         (CHAR_BIT, NULL): Remove.
85191         (spaces, zeros, memset_space, memset_zero)
85192         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
85193         Remove.
85194         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
85195         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
85196         Define with prototype.
85197         Remove now-unnecessary prototype decl.
85198         (extra_args_spec): Assume ANSI C.  All uses changed.
85199         (extra_args_spec_iso): Remove.
85200         (my_strftime, emacs_strftimeu): Define via prototype.
85201         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
85202         unconditionally.
85203         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
85204         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
85205         (strtoul, strtol): Remove decls.
85206         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
85207         LONG_MAX): Remove.
85208         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
85209         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
85210         (LOCALE_PARAM_PROTO): New macro.
85211         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
85212         (INTERNAL (strtol), strtol): Define with a prototype.
85213         (PARAMS): Remove.  All uses removed.
85214         * lib/tempname.c: Include <string.h> unconditionally.
85215         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
85216         * lib/xgethostname.c (main): Define with a prototype.
85217         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
85218         Include <stdlib.h> unconditionally.
85219         (calloc, malloc, realloc, free): Remove decls.
85220         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
85221         Include <stdlib.h> unconditionally.  Sort include file names.
85222         (strtod): Remove.
85223         (xstrtod): Define with a prototype.
85224         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
85225         (strtol, strtoul): Remove decls.
85226
85227 2003-09-11  Paul Eggert  <eggert@twinsun.com>
85228
85229         More patches to assume C89 or better.
85230         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
85231         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
85232         string.h, memchr, STDC_HEADERS.
85233
85234 2003-09-11  Paul Eggert  <eggert@twinsun.com>
85235
85236         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
85237         Include <stdlib.h>, <string.h> unconditionally.
85238         Remove now-unnecessary cast to char *.
85239         * lib/strnlen.c: Include <string.h> unconditionally.
85240         * lib/yesno.c (yesno): Define with a prototype.
85241
85242 2003-09-11  Bruno Haible  <bruno@clisp.org>
85243
85244         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
85245
85246 2003-09-10  Jim Meyering  <jim@meyering.net>
85247
85248         * lib/error.c: Correct indentation of cpp directives.
85249
85250 2003-09-10  Bruno Haible  <bruno@clisp.org>
85251
85252         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
85253         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
85254         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
85255         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
85256         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
85257         <stdlib.h> and <string.h> checks.
85258         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
85259         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
85260
85261 2003-09-10  Bruno Haible  <bruno@clisp.org>
85262
85263         * lib/strcspn.c: Include <string.h> unconditionally.
85264         * lib/strpbrk.c: Include <string.h> unconditionally.
85265         * lib/strstr.c: Include <string.h> unconditionally.
85266         * lib/unicodeio.c: Include <string.h> unconditionally.
85267         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
85268         * lib/unsetenv.c: Likewise.
85269         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
85270         * lib/yesno.c: Include <stdlib.h> unconditionally.
85271         (rpmatch): Add prototype.
85272
85273 2003-09-09  Paul Eggert  <eggert@twinsun.com>
85274
85275         More patches to assume C89 or better.
85276         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
85277         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
85278         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
85279         or for string.h.
85280         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
85281         stdlib.h.
85282         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
85283         C headers.
85284         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
85285         string.h.
85286         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
85287         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
85288         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
85289         or for string.h.
85290         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
85291         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
85292         C headers.
85293         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
85294         memcpy.
85295         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
85296         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
85297         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
85298         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
85299         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
85300         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
85301         string.h, free.
85302         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
85303         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
85304         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
85305         C headers, or for string.h.
85306         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
85307         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
85308         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
85309         headers, memory.h, stdlib.h, string.h, strings.h.
85310         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
85311         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
85312         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
85313         strchr.
85314         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
85315         headers, memory.h, string.h.
85316         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
85317         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
85318         free.
85319         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
85320         headers.
85321         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
85322         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
85323         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
85324         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
85325         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
85326
85327 2003-09-09  Paul Eggert  <eggert@twinsun.com>
85328
85329         More K&R removal.
85330
85331         * lib/acosl.c (main): Use a prototype.
85332         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
85333         tanl.c: Likewise.
85334
85335         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
85336
85337         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
85338         (getopt, etopt_long, getopt_long_only, _getopt_internal)
85339         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
85340         with a prototype.
85341         * lib/getopt.c (const): Remove macro.
85342         Include <string.h> unconditionally.
85343         (my_index): Remove; all uses changed to strchr.
85344         (strlen): Remove decl.
85345         (exchange): Remove forward decl; no longer needed.
85346         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
85347         Define with prototype.
85348         * lib/getopt1.c (const): Remove macro.
85349         (getopt_long, getopt_long_only, main): Define with prototype.
85350
85351         * lib/getugroups.c: Include <string.h> unconditionally.
85352
85353         * lib/getusershell.c: Include <stdlib.h> unconditionally.
85354         (getusershell, setusershell, endusershell, readname, main):
85355         Define with prototypes.
85356
85357         * lib/group-member.c: Include group-member.h first.
85358         Include <stdlib.h> unconditionally.
85359
85360         * lib/hard-locale.c: Include hard-locale.h first.
85361         Include <stdlib.h>, <string.h> unconditionally.
85362
85363         * lib/hash.c (free, malloc): Remove decls.
85364         Include <stdlib.h> unconditionally.
85365
85366         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
85367         (getenv): Do not declare.
85368
85369         * lib/idcache.c: Include <string.h> unconditionally.
85370
85371         * lib/long-options.c: Include long-options.h first, to test interface.
85372         Include <stdlib.h> unconditionally.
85373
85374         * lib/makepath.c: Include makepath.h first, to test interface.
85375         Include <stdlib.h> and <string.h> unconditionally.
85376
85377         * lib/linebuffer.c: Include <stdlib.h>.
85378         (free): Remove decl.
85379
85380         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
85381         stddef.h. rpl_malloc returns void *, not char *.
85382         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
85383         prototype.
85384
85385         * lib/md5.h: Include <limits.h> unconditionally.
85386         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
85387         (__P): Remove; all uses removed.
85388         * lib/md5.c: Include "md5.h" first.
85389         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
85390         md5_buffer, md5_process_bytes, md5_process_block):
85391         Define with prototypes.
85392         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
85393         * lib/sha.c: Include "sha.h" first.
85394         Include <stdlib.h>, <string.h> unconditionally.
85395
85396         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
85397         * lib/memcmp.c (__ptr_t): Likewise.
85398         * lib/memrchr.c (__ptr_t): Likewise.
85399         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
85400         Include <string.h> unconditionally.
85401         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
85402         * lib/memchr.c: Include <stdlib.h> unconditionally.
85403         * lib/memchr.c (LONG_MAX): Remove.
85404         * lib/memrchr.c (LONG_MAX): Likewise.
85405         * lib/memchr.c (__memchr): Define via a prototype.
85406         * lib/memrchr.c (__memrchr): Likewise.
85407         * lib/memcmp.c (__P): Remove, and remove all uses.
85408         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
85409         Remove forward decls; no longer needed.
85410         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
85411         Use types required by C89 in prototype.
85412
85413         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
85414         * lib/savedir.c: Likewise.
85415         * lib/mkdir.c (free): Remove decl.
85416         * lib/rmdir.c (rmdir): Define with a prototype.
85417         * lib/savedir.c: Include savedir.h first, to test interface.
85418
85419         * lib/mktime.c (STDC_HEADERS): Remove.
85420         Include <stdlib.h>, <string.h> unconditionally.
85421
85422         * lib/modechange.c: Include <stdlib.h> unconditionally.
85423         (malloc): Remove decl.
85424
85425         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
85426         (free): Remove decl.
85427
85428         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
85429         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
85430         (This type really should be intptr_t, but that's a C99ism.)
85431         (_obstack_memcpy): Remove: all uses changed to memcpy.
85432         Include <string.h> unconditionally.
85433         (struct obstack): Assume __STDC__ for types of members
85434         chunkfun, freefun, extra_arg.
85435         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
85436         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
85437         obstack_begin, obstack_specify_allocation,
85438         obstack_specify_allocation_with_arg, obstack_chunkfun,
85439         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
85440         Remove unprototyped decls and the macros that use them.
85441         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
85442         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
85443         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
85444         (defined __STDC__ && __STDC__)]:
85445         Remove nonprototyped code.
85446         Include <stdlib.h> unconditionally.
85447         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
85448         _obstack_allocated_p, _obstack_free, obstack_free,
85449         _obstack_memory_used, print_and_abort):
85450         Define using prototypes.
85451         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
85452         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
85453         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
85454         obstack_next_free, obstack_object_size, obstack_room) [0]:
85455         Remove unused, unprototyped code.
85456
85457         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
85458
85459         * lib/physmem.c (physmem_total, physmem_available, main): Define
85460         with prototypes.
85461
85462         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
85463         (main): Define with a prototype.
85464
85465         * lib/posixver.c (getenv): Remove decl.
85466
85467         * lib/putenv.c (malloc): Returns void *, not char *.
85468         Include <string.h> unconditionally.
85469         (strchr, memcpy, NULL): Do not define.
85470
85471         * lib/readtokens.c: Include readtokens.h first, to test interface.
85472         Include <stdlib.h>, <string.h> unconditionally.
85473         (init_tokenbuffer): Define with a prototype.
85474
85475         * lib/regex.c (PARAMS): Remove.  All uses removed.
85476         All uses of _RE_ARGS removed, too.
85477         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
85478         unconditionally.
85479         (bzero): Assume memset exists.
85480         (memcmp, memcpy, NULL): Remove.
85481         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
85482         char, or assignments to local vars of type signed char.
85483         (init_syntax_once, PREFIX(extract_number_and_incr),
85484         PREFIX(print_partial_compiled_pattern),
85485         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
85486         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
85487         PREFIX(regex_grow_registers), PREFIX(regex_compile),
85488         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
85489         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
85490         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
85491         wcs_compile_range, byte_compile_range, truncate_wchar,
85492         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
85493         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
85494         count_mbs_length, wcs_re_match_2_internal,
85495         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
85496         PREFIX(alt_match_null_string_p),
85497         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
85498         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
85499         regfree, PREFIX(extract_number)): Define with prototype.  Remove
85500         now-unnecessary declaration, if any.
85501         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
85502         regcomp, regexec):
85503         Remove now-unnecessary casts among pointer types.
85504         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
85505
85506         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
85507         (free): Remove decl.
85508
85509         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
85510
85511         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
85512         (free): Remove decl.
85513
85514         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
85515         * lib/xgetcwd.c: Likewise.
85516
85517         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
85518         (free): Remove decl.
85519
85520         * lib/strchrnul.c (strchrnul): Define with a prototype.
85521         Fix bug: c_in was not converted to char before searching.
85522
85523         The following changes are not K&R related:
85524
85525         * lib/group-member.h: Include <sys/types.h>, so that this file is
85526         self-contained.
85527         * lib/makepath.h: Likewise.
85528
85529         * lib/getusershell.c (readname, default_index, line_size, readname):
85530         Use size_t, not int, for sizes.
85531         (readname): If the size overflows, report an error instead of
85532         looping forever.
85533
85534 2003-09-09  Paul Eggert  <eggert@twinsun.com>
85535
85536         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
85537         libc.
85538
85539 2003-09-09  Paul Eggert  <eggert@twinsun.com>
85540
85541         * README: New section: portability guidelines.
85542
85543 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
85544
85545         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
85546         C89 spec.
85547
85548 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
85549
85550         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
85551
85552 2003-09-08  Paul Eggert  <eggert@twinsun.com>
85553
85554         Assume C89 or better; remove K&R cruft.
85555         A few of these changes were first proposed by Derek Robert Price
85556         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
85557
85558         * lib/addext.c: Include <string.h> unconditionally.
85559         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
85560         Don't declare getenv or malloc.
85561
85562         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
85563         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
85564         (NULL): Remove.
85565         (find_stack_direction, alloca): Use prototypes.
85566
85567         * lib/atexit.c (atexit): Define using a prototype.
85568
85569         * lib/basename.c, dirname.c, stripslash.c:
85570         Include <string.h> unconditionally.
85571
85572         * lib/bcopy.c: Include <stddef.h>.
85573         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
85574
85575         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
85576
85577         * lib/error.h (error, error_at_line, error_print_progname)
85578         [! (defined (__STDC__) && __STDC__)]: Remove decls.
85579         * lib/error.c: Include error.h first, to check interface.
85580         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
85581         (VA_START): Remove; all uses changeed to va_start.
85582         (exit, strerror): Remove decls.
85583         (error_print_progname): Prototype uncondionally.
85584         Don't include <errno.h>; no longer needed.
85585         (private_strerror): Remove.
85586         (error_tail): Always define.
85587         (error, error_at_line): Assume C89 or better; always use prototypes.
85588         * lib/fatal.c: Include "fatal.h" first, to test interface.
85589         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
85590         (VA_START): Remove; all uses changed to va_start.
85591         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
85592         this case.
85593         (exit): Remove decl.
85594         (fatal): Prototype unconditionally.  Assume va_start works.
85595         Abort at end, to pacify gcc.
85596
85597         * lib/euidaccess.c (main): Define with a prototype.
85598
85599         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
85600
85601         * lib/exitfail.c: Include <stdlib.h> unconditionally.
85602
85603         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
85604         prototypes.
85605         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
85606         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
85607         (getenv): Remove decl.
85608         (fnmatch): Define using a prototype.
85609         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
85610         (FCT): Define using a prototype.
85611
85612         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
85613
85614         * lib/gethostname.c: Include <stddef.h>.
85615         (gethostname): Define with prototype.  Length is size_t, not int.
85616
85617 2003-09-08  Paul Eggert  <eggert@twinsun.com>
85618
85619         Assume C89 or better; remove K&R cruft.
85620         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
85621         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
85622         string.h, getenv, malloc.
85623         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
85624         headers.
85625         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
85626         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
85627         do not check for strerror.
85628         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
85629         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
85630         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
85631         do not check for doprnt or vprintf.
85632         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
85633         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
85634
85635 2003-09-08  Paul Eggert  <eggert@twinsun.com>
85636
85637         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
85638         getversion.c should have been removed then, but was accidentally
85639         preserved.
85640
85641         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
85642         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
85643
85644 2003-09-08  Karl Berry  <karl@gnu.org>
85645
85646         * config/config.sub, config.guess, srclistvars.sh: update from savannah
85647                 config, forget about prep.
85648
85649         * config/depcomp, missing: update from automake.
85650
85651 2003-09-07  Paul Eggert  <eggert@twinsun.com>
85652
85653         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
85654         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
85655
85656 2003-09-07  Paul Eggert  <eggert@twinsun.com>
85657
85658         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
85659         copy_tm_result.  Bug reported by Simon Josefsson in
85660         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
85661
85662 2003-09-06  Paul Eggert  <eggert@twinsun.com>
85663
85664         * m4/time_r.m4: New file.
85665         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
85666         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
85667         is. Check for timegm declaration.
85668         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
85669         Do not check for gmtime_r.
85670         Replace mktime if __mktime_internal does not exist and if mktime
85671         hasn't been replaced already.
85672
85673 2003-09-06  Paul Eggert  <eggert@twinsun.com>
85674
85675         * lib/time_r.c, lib/time_r.h: New files.
85676
85677         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
85678         __localtime_r.
85679         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
85680         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
85681
85682         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
85683         __gmtime_r.
85684         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
85685         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
85686         Include <time_r.h>.
85687
85688         * lib/timegm.c: Switch to glibc implementation, with the following
85689         changes:
85690         [defined HAVE_CONFIG_H]: Include <config.h>.
85691         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
85692         (__mktime_internal) [!defined _LIBC]: New decl.
85693         (__gmtime_r) [!defined _LIBC]: New macro and function.
85694         (timegm): Use a prototype, since gnulib assumes C89.
85695         Do not bother declaring tmp to be const, as it's not really usefu.
85696         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
85697         (timegm): Declare only if HAVE_DECL_TIMEGM.
85698
85699 2003-09-06  Paul Eggert  <eggert@twinsun.com>
85700
85701         * MODULES.html.sh (func_all_modules): Add time_r.
85702         * modules/time_r: New file.
85703         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
85704         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
85705
85706 2003-09-03  Paul Eggert  <eggert@twinsun.com>
85707
85708         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
85709         Bug reported by Lute Kamstra in
85710         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
85711
85712         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
85713         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
85714         course with correspondingly smaller numbers for tomorrow and
85715         yesterday.  From Tadayoshi Funaba.  Originally installed into
85716         sh-utils on 1999-08-07, but the patch got lost (I guess during the
85717         coreutils merge?).
85718
85719 2003-08-31  Simon Josefsson  <jas@extundo.com>
85720
85721         * modules/timegm: New file.
85722         * MODULES.html.sh (func_all_modules): Add timegm.
85723
85724 2003-08-31  Simon Josefsson  <jas@extundo.com>
85725
85726         * m4/timegm.m4: New file.
85727
85728 2003-08-31  Simon Josefsson  <jas@extundo.com>
85729
85730         * lib/timegm.h: New file.
85731         * lib/timegm.c: New file.  Based on
85732         wget-1.8.2/src/http.c:mktime_from_utc.
85733
85734 2003-08-31  Karl Berry  <karl@gnu.org>
85735
85736         * lib/argp.h: update from libc.
85737
85738 2003-08-28  Bruno Haible  <bruno@clisp.org>
85739
85740         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
85741         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
85742         followed by '#define fnmatch fnmatch_posix' gives an error.
85743
85744 2003-08-28  Bruno Haible  <bruno@clisp.org>
85745
85746         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
85747         warning on QNX, which defines O_BINARY to 000000.
85748
85749 2003-08-27  Jim Meyering  <jim@meyering.net>
85750
85751         * m4/mkstemp.m4: Require that the system mkstemp be able to create
85752         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
85753         would fail after 32.  Reported by Danny Levinson.  Details here:
85754         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
85755
85756 2003-08-24  Bruno Haible  <bruno@clisp.org>
85757
85758         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
85759         MSVC7 <stdio.h> is included later.
85760
85761 2003-08-22  Simon Josefsson  <jas@extundo.com>
85762
85763         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
85764
85765 2003-08-20  Karl Berry  <karl@gnu.org>
85766
85767         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
85768
85769 2003-08-20  Bruno Haible  <bruno@clisp.org>
85770
85771         * modules/progname: New file.
85772         * MODULES.html.sh (func_all_modules): Add progname.
85773
85774 2003-08-20  Bruno Haible  <bruno@clisp.org>
85775
85776         * lib/progname.h: New file, from GNU gettext.
85777         * lib/progname.c: New file, from GNU gettext.
85778         * lib/progreloc.c: New file, from GNU gettext.
85779
85780 2003-08-19  Jim Meyering  <jim@meyering.net>
85781
85782         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
85783         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
85784
85785 2003-08-19  Bruno Haible  <bruno@clisp.org>
85786
85787         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
85788         more.
85789
85790 2003-08-19  Bruno Haible  <bruno@clisp.org>
85791
85792         * lib/xstrdup.c: Assume <string.h> exists.
85793
85794 2003-08-18  Paul Eggert  <eggert@twinsun.com>
85795
85796         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
85797         in makefile rules.
85798
85799 2003-08-18  Jim Meyering  <jim@meyering.net>
85800
85801         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
85802         * m4/lib-ld.m4: Likewise.
85803
85804 2003-08-18  Jim Meyering  <jim@meyering.net>
85805
85806         * lib/setenv.h: Indent nested cpp directive.
85807         * lib/vasnprintf.c: Remove trailing blanks.
85808
85809 2003-08-17  Simon Josefsson  <jas@extundo.com>
85810
85811         * modules/xstrndup: New file.
85812         * MODULES.html.sh (func_all_modules): Add xstrndup.
85813
85814 2003-08-17  Simon Josefsson  <jas@extundo.com>
85815
85816         * modules/argp: Fix autoconf macro name. Add more dependencies.
85817
85818 2003-08-17  Simon Josefsson  <jas@extundo.com>
85819
85820         * m4/xstrndup.m4: New file.
85821
85822 2003-08-17  Simon Josefsson  <jas@extundo.com>
85823
85824         * m4/argp.m4: New file.
85825
85826 2003-08-17  Simon Josefsson  <jas@extundo.com>
85827             Bruno Haible  <bruno@clisp.org>
85828
85829         * lib/xstrndup.h: New file.
85830         * lib/xstrndup.c: New file.
85831
85832 2003-08-17  Bruno Haible  <bruno@clisp.org>
85833
85834         * modules/strndup (Files, Include): Add lib/strndup.h.
85835
85836 2003-08-17  Bruno Haible  <bruno@clisp.org>
85837
85838         * modules/euidaccess (Files): Add lib/euidaccess.h.
85839
85840 2003-08-17  Bruno Haible  <bruno@clisp.org>
85841
85842         * lib/strndup.h: New file.
85843
85844 2003-08-17  Bruno Haible  <bruno@clisp.org>
85845
85846         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
85847         like AC_GNU_SOURCE.
85848         * modules/extensions (configure.ac): Comment out the invocation of
85849         gl_USE_SYSTEM_EXTENSIONS.
85850
85851 2003-08-16  Paul Eggert  <eggert@twinsun.com>
85852
85853         Merges from coreutils, etc.
85854         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
85855         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
85856         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
85857         fixing a typo.
85858         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
85859         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
85860
85861 2003-08-16  Paul Eggert  <eggert@twinsun.com>
85862
85863         Document merge from coreutils.
85864         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
85865         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
85866         * modules/utime: Add m4/utimes-null.m4.
85867
85868 2003-08-16  Paul Eggert  <eggert@twinsun.com>
85869
85870         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
85871         space, undoing this 2003-08-12 change:
85872         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
85873
85874 2003-08-16  Paul Eggert  <eggert@twinsun.com>
85875
85876         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
85877         strtoul.c from libc, undoing this 2003-08-12 change:
85878         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
85879
85880 2003-08-16  Jim Meyering  <jim@meyering.net>
85881
85882         Merges from coreutils.
85883         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
85884         prefix.  Adjust cache variables similarly.  Create 500 rather than
85885         just 300 files, to exercise bug on Darwin6.5, too.
85886         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
85887         $missing_dir.
85888         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
85889         AM_SYS_POSIX_TERMIOS.
85890         Reported by mkc@mathdogs.com.
85891         Also change use of $am_cv_sys_posix_termios
85892         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
85893         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
85894         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
85895         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
85896         in /proc/mounts until it finds one with matching device number.  This
85897         is unnecessary when the FILE argument *is* a mount point.  No stat call
85898         is necessary in that case.  So, disable the statvfs-testing code on
85899         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
85900         as RedHat bug# 84846.
85901         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
85902         to 1MB, so as not to render systems with no stack size limit (e.g.,
85903         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
85904         Include <unistd.h>.  On some systems,
85905         it is required for the definition of _SC_PAGESIZE.
85906
85907 2003-08-16  Jim Meyering  <jim@meyering.net>
85908
85909         Merge from coreutils.
85910         * lib/xstrtoimax.c: #else #if -> #elif.
85911         * lib/xstrtoumax.c: Likewise.
85912
85913 2003-08-16  Jim Meyering  <jim@meyering.net>
85914
85915         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
85916         * m4/utimes.m4: Removed.
85917         * m4/utimes-null.m4: Renamed from utimes.m4.
85918
85919         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
85920         to 1MB, so as not to render systems with no stack size limit (e.g.,
85921         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
85922         Include <unistd.h>.  On some systems,
85923         it is required for the definition of _SC_PAGESIZE.
85924
85925 2003-08-16  Jim Meyering  <jim@meyering.net>
85926         and Paul Eggert  <eggert@cs.ucla.edu>
85927
85928         Merges from coreutils, etc.
85929
85930         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
85931         using the latest version from cvs.  This avoids problems with #line
85932         directives using a vendor (Sun) compiler.
85933         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
85934         Don't set GETGROUPS_LIB here; now it's
85935         done via getgroups.m4's wrapper function.
85936         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
85937         rather than just in sh-util/configure.in, so that the
85938         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
85939         same.
85940         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
85941         AC_FUNC_GETLOADAVG where to find getloadavg.c.
85942         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
85943         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
85944         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
85945         Remove code that is now done by the newly-required macros.
85946         Append $(EXEEXT) to DF_PROG.
85947         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
85948         Do not invoke or require the following here,
85949         since prereq.m4 or some gnulib .m4 now does this for us:
85950         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
85951         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
85952         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
85953         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
85954         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
85955         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
85956         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
85957         AC_FUNC_OBSTACK.
85958         Do not replace the following functions, as this is now the job
85959         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
85960         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
85961         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
85962         atexit getpass, strdup, getpagesize.
85963         Replace 'raise'.
85964         Do not check for the following functions, as this is now the job
85965         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
85966         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
85967         setregid.
85968         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
85969         Check for sys/sysctl.h.
85970         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
85971         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
85972         of checking for ssize_t ourselves.
85973
85974         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
85975         Require every macro that gnulib/modules/* suggests for us.
85976         (jm_PREREQ_ADDEXT): New macro.
85977         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
85978         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
85979
85980         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
85981         (gl_PHYSMEM): Use it.
85982         Also check for `table' function.
85983         Check for new headers and functions.
85984         Add check for sys/sysmp.h.
85985         With suggestions from Kaveh Ghazi.
85986         Ignore headers that are present but cannot be compiled.  This
85987         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
85988         C 5.4.
85989
85990 2003-08-15  Paul Eggert  <eggert@twinsun.com>
85991
85992         Document merge from coreutils.
85993         * modules/userspec: Depend on posixver.
85994         * modules/strftime: Depend on tzset.
85995
85996 2003-08-15  Paul Eggert  <eggert@twinsun.com>
85997
85998         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
85999         rather than tab, after '#' in shell-script copyright notices.
86000         Suggested by Bruno Haible.
86001
86002 2003-08-15  Paul Eggert  <eggert@twinsun.com>
86003
86004         * config/srclist-update: Use three spaces, rather than tab, after '#'
86005         in shell-script copyright notices.  Suggested by Bruno Haible.
86006         Remove unnecessary parenthesization in regular expression.
86007
86008 2003-08-15  Jim Meyering  <jim@meyering.net>
86009
86010         Merge from coreutils.
86011         * lib/xgethostname.c: Include <stdlib.h>.
86012         (xghostname): Don't exit for anything other than memory-related
86013         failure; just return NULL.
86014         * lib/userspec.c: Include "posixver.h".
86015         (parse_user_spec): Accept `.' as a separator only
86016         in pre-POSIX-200112 mode.
86017         * lib/strtoimax.c: Use #elif rather than #else #if.
86018         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
86019         Remove function, now that we can rely on a working tzset function.
86020         [!_LIBC]: Ensure that the required autoconf test has been run.
86021         [!defined _NL_CURRENT && HAVE_STRFTIME]:
86022         Use underlying_strftime for %r.
86023         * lib/sha.c: Merge in some clean-up and optimization changes from
86024         glibc.
86025         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
86026         Ensure that it is a multiple of 64.
86027         Rearrange loop exit tests so as to avoid performing an
86028         additional fread after encountering an error or EOF.
86029         * lib/realloc.c: Update copyright date.
86030
86031 2003-08-15  Jim Meyering  <jim@meyering.net>
86032         and Paul Eggert  <eggert@twinsun.com>
86033
86034         Merge from coreutils.
86035         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
86036         member but strut utmpx does not.  Needed for AIX 4.3.3.
86037         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
86038
86039 2003-08-15  Jim Meyering  <jim@meyering.net>
86040         and Paul Eggert  <eggert@cs.ucla.edu>
86041
86042         Merges from coreutils, etc.
86043         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
86044         Require gl_FUNC_TZSET_CLOBBER.
86045         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
86046         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
86047         members.
86048
86049 2003-08-14  Paul Eggert  <eggert@twinsun.com>
86050
86051         Help the merge from coreutils.
86052         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
86053         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
86054         * m4/tzset.m4: Use it too.
86055
86056 2003-08-14  Paul Eggert  <eggert@twinsun.com>
86057
86058         * modules/tzset: New file.
86059
86060 2003-08-14  Jim Meyering  <jim@meyering.net>
86061
86062         Merges from coreutils.
86063         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
86064         variable names, rather than @FNMATCH_H@.
86065         * modules/alloca: Likewise for $(ALLOCA_H).
86066
86067         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
86068         the three copies of the literal target, `fnmatch.h'.
86069         * modules/alloca (alloca.h): Likewise.
86070
86071 2003-08-14  Jim Meyering  <jim@meyering.net>
86072
86073         Merge from coreutils.
86074         * m4/tzset.m4: New file.
86075         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
86076         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
86077         otherwise, AIX 5.1 systems would end up using the latter.
86078         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
86079         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
86080         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
86081         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
86082
86083 2003-08-14  Jim Meyering  <jim@meyering.net>
86084
86085         Merge from coreutils.
86086         * lib/obstack.h: Whitespace changes.
86087         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
86088         and xcalloc return values.
86089         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
86090         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
86091         hang on OSF/1 5.1 for DIR on both local and remote file systems.
86092         Reported by (and fix confirmed by) Nelson H. F. Beebe.
86093         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
86094         error from mntctl.
86095         Use mntctl's return value to drive the entry-processing loop, since
86096         we can't rely on the value of the vmt_length member in the last
86097         entry.  On some systems doing so could result in exhausting
86098         virtual memory.  Based in part on a patch from Mike Jetzer.
86099
86100 2003-08-14  Jim Meyering  <jim@meyering.net>
86101         and Paul Eggert  <eggert@twinsun.com>
86102
86103         Merges from coreutils, plus other fixes.
86104         * lib/physmem.c: Merge in portability changes from gcc/libiberty
86105         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
86106         for credits and details.  Thanks to Kaveh Ghazi for helping
86107         to keep these files in sync.
86108         (ARRAY_SIZE): Define it.
86109         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
86110         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
86111         (memcasecmp): Don't assume size_t fits in unsigned int.
86112         Remove casts and duplicate code.
86113         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
86114         (memcpy): Remove definition.
86115         Merge in some clean-up and optimization changes from glibc.
86116         [BLOCKSIZE]: Move definition to top of file.
86117         Ensure that it is a multiple of 64.
86118         Rearrange loop exit tests so as to avoid performing an
86119         additional fread after encountering an error or EOF.
86120         * lib/md5.h (md5_uintptr): Define.
86121         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
86122         return to the initial working directory.  Preserve errno
86123         for caller.
86124         * lib/idcache.c: Include "xalloc.h".
86125         (xmalloc, xrealloc): Remove decls.
86126         (getuser): Remove casts no longer required in C89.
86127         * lib/human.c: Include stdio.h, for sprintf.
86128         * lib/group-member.c: Include "xalloc.h".
86129         (xmalloc, xrealloc): Remove decls.
86130         (get_group_info): Remove casts no longer required in C89.
86131         * lib/getusershell.c (readname): Remove casts no longer required in
86132         C89.
86133         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
86134         * lib/getline.c: Whitespace fix, from coreutils.
86135
86136 2003-08-13  Paul Eggert  <eggert@twinsun.com>
86137
86138         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
86139         Check for isascii.
86140
86141         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
86142         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
86143         Undo previous (whitespace-only) change.
86144
86145 2003-08-13  Paul Eggert  <eggert@twinsun.com>
86146
86147         * lib/exclude.c: Include <ctype.h>
86148         (IN_CTYPE_DOMAIN): New macro.
86149         (is_space): New fn.
86150         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
86151         and empty lines.
86152
86153         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
86154         Undo previous (whitespace-only) change.
86155
86156 2003-08-13  Paul Eggert  <eggert@twinsun.com>
86157
86158         * config/srclist-update: Change update back to the old behavior,
86159         leaving whitespace alone.  Use one 'sed' command rather than a
86160         pipeline.
86161         (fixlicense): Now a variable, not a function.
86162         (remove_trailing_blanks): Remove.
86163         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
86164         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
86165         Undo previous (whitespace-only) change.
86166
86167 2003-08-12  Paul Eggert  <eggert@twinsun.com>
86168
86169         Merge from coreutils.
86170         * modules/euidaccess: Add lib_SOURCES, include for new
86171         file euidaccess.h
86172
86173 2003-08-12  Paul Eggert  <eggert@twinsun.com>
86174
86175         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
86176         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
86177         Normalize leading white space and remove trailing white space.
86178
86179         Merge from coreutils
86180         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
86181
86182         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
86183         0.12.1.  These files are now being upgraded automatically by
86184         ../config/srclist-update.
86185
86186 2003-08-12  Paul Eggert  <eggert@twinsun.com>
86187
86188         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
86189         Normalize leading white space and remove trailing white space.
86190         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
86191         notice, as per ../config/srclist-update.
86192
86193         Merge from coreutils.
86194         * lib/euidaccess.h: New file.
86195         * lib/euidaccess.c: Include it.
86196         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
86197         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
86198         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
86199
86200 2003-08-12  Paul Eggert  <eggert@twinsun.com>
86201
86202         * config/srclist-update: Add copyright notice.
86203         (remove_id_lines, remove_trailing_blanks): New constants.
86204         (fixfile): Use them to normalize spacing a bit in copied files.
86205         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
86206         Normalize leading white space and remove trailing white space.
86207
86208         * config/texinfo.tex: Sync with texinfo.
86209
86210         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
86211         strtoul.c from libc, to merge coreutils whitespace changes.
86212
86213         * config/srclist.txt: Get the following m4 files from gettext:
86214         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
86215         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
86216         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
86217         wint_t.m4.
86218
86219 2003-08-12  Karl Berry  <karl@gnu.org>
86220
86221         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
86222         been made.
86223
86224 2003-08-11  Paul Eggert  <eggert@twinsun.com>
86225
86226         * modules/gnu-source, m4/gnu-source.m4:
86227         Remove; we're assuming Autoconf 2.54 or later now.
86228         Suggested by Bruno Haible.
86229         * MODULES.html.sh (func_all_modules): Remove gnu-source.
86230
86231 2003-08-11  Bruno Haible  <bruno@clisp.org>
86232
86233         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
86234
86235 2003-08-11  Bruno Haible  <bruno@clisp.org>
86236
86237         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
86238         (vasnprintf): Use it instead of wcslen.
86239
86240 2003-08-11  Bruno Haible  <bruno@clisp.org>
86241
86242         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
86243         value to ensure that _Bool promotes to int. Use #define for _Bool when
86244         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
86245
86246 2003-08-10  Karl Berry  <karl@gnu.org>
86247
86248         * lib/regex.h: update from libc (whitespace fix).
86249
86250 2003-08-09  Paul Eggert  <eggert@twinsun.com>
86251
86252         Merge some files from coreutils.  These changes were
86253         originally made by Jim Meyering.
86254         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
86255         many older Unixes require this.
86256         * lib/alloca.c (alloca): Remove cast to argument of free;
86257         no longer needed in C89.
86258         * lib/alloca_.h, regex.h: Fix white space to match
86259         what GNU indent does.
86260
86261 2003-08-09  Paul Eggert  <eggert@twinsun.com>
86262
86263         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
86264         apparently Emacs's Unicode mode got confused before my 2003-08-05
86265         checkin.
86266
86267 2003-08-08  Paul Eggert  <eggert@twinsun.com>
86268
86269         * m4/extensions.m4: New file.
86270         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
86271         Require gl_USE_SYSTEM_EXTENSIONS.
86272         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
86273         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
86274
86275 2003-08-08  Paul Eggert  <eggert@twinsun.com>
86276
86277         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
86278         * modules/extensions, modules/gnu-source: New files.
86279         * modules/timespec, modules/unlocked-io: Depend on extensions.
86280
86281 2003-08-07  Paul Eggert  <eggert@twinsun.com>
86282
86283         * modules/restrict: New file.
86284         * MODULES.html.sh (func_all_modules): Add restrict.
86285         * modules/regex: Depend on restrict.
86286
86287 2003-08-07  Paul Eggert  <eggert@twinsun.com>
86288
86289         * m4/restrict.m4: New file.
86290         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
86291
86292 2003-08-07  Bruno Haible  <bruno@clisp.org>
86293
86294         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
86295         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
86296
86297 2003-08-07  Bruno Haible  <bruno@clisp.org>
86298
86299         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
86300         makes the module 'getndelim2' compatible with the module 'getline'.
86301
86302 2003-08-05  Paul Eggert  <eggert@twinsun.com>
86303
86304         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
86305         byte with "\201" to avoid glitches when editing that source file
86306         with multi-gnome-terminal.
86307
86308 2003-08-05  Paul Eggert  <eggert@twinsun.com>
86309
86310         * lib/bumpalloc.h: Remove.
86311
86312 2003-08-05  Paul Eggert  <eggert@twinsun.com>
86313
86314         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
86315         * modules/bumpalloc: Remove.
86316
86317 2003-08-04  Paul Eggert  <eggert@twinsun.com>
86318
86319         * lib/getloadavg.c: Change copyright notice and spacing to conform to
86320         GNU coding style.
86321
86322         Merge from coreutils.
86323         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
86324         1. From glibc.
86325         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
86326         from Karl Berry, implemented by Jim Meyering.
86327         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
86328         from Dmitry V. Levin.
86329         Remove anachronistic cast of xrealloc.
86330         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
86331         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
86332         type. Otherwise, it wouldn't compile with at least /bin/cc on
86333         ymp-cray-unicos9.0.2.X.
86334         Combine two mostly-identical uses of alloca into one.
86335         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
86336
86337 2003-08-04  Dave Love  <d.love@dl.ac.uk>
86338
86339         [From Emacs.]
86340
86341         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
86342         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
86343         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
86344         obsolete NLIST_NAME_UNION.
86345         [__GNU__]: Undef BSD and FSCALE.
86346         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
86347
86348 2003-08-03  Paul Eggert  <eggert@twinsun.com>
86349
86350         * lib/stdbool_.h (_Bool): Make it signed char, instead of
86351         an enum type, so that it's guaranteed to promote to int.  See:
86352         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
86353
86354 2003-08-03  Karl Berry  <karl@gnu.org>
86355
86356         * config/depcomp: update from automake.
86357
86358 2003-07-31  Paul Eggert  <eggert@twinsun.com>
86359
86360         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
86361         (strerror): Don't assume that a printable int fits in 14 bytes.
86362
86363 2003-07-31  Bruno Haible  <bruno@clisp.org>
86364
86365         * modules/getpass-gnu: New file.
86366         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
86367
86368 2003-07-31  Bruno Haible  <bruno@clisp.org>
86369
86370         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
86371
86372 2003-07-24  Karl Berry  <karl@gnu.org>
86373
86374         * config/missing: update from automake.
86375
86376 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
86377             Bruno Haible  <bruno@clisp.org>
86378
86379         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
86380         * lib/getline.c (getline, getdelim): Likewise.
86381         Remove _GNU_SOURCE define; now it's defined in config.h through
86382         m4/getline.m4.
86383
86384 2003-07-23  Karl Berry  <karl@gnu.org>
86385
86386         * config/config.sub: update from prep.
86387
86388 2003-07-22  Paul Eggert  <eggert@twinsun.com>
86389
86390         * modules/xalloc (Depends-on): Add exitfail.
86391         * modules/xmemcoll: Likewise.
86392
86393 2003-07-22  Paul Eggert  <eggert@twinsun.com>
86394
86395         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
86396         over-parenthesization in macros.
86397
86398         Sync with coreutils.
86399
86400         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
86401         required by C99.
86402
86403         Use `exit_failure' for xalloc and xmemcoll instead of their own
86404         private exit-failure variables.
86405         * lib/xalloc.h (xalloc_exit_failure): Remove.
86406         * lib/xmalloc.c: Likewise.  Include exitfail.h.
86407         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
86408         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
86409         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
86410         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
86411
86412 2003-07-20  Jim Meyering  <jim@meyering.net>
86413
86414         * modules/closeout (Depends-on): Add exitfail.
86415         Suggestion from Bruno Haible.
86416
86417 2003-07-19  Karl Berry  <karl@gnu.org>
86418
86419         * config/config.sub: update from prep.
86420
86421 2003-07-18  Paul Eggert  <eggert@twinsun.com>
86422
86423         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
86424         Remove.
86425         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
86426         to test that it can stand by itself.  Include "exitfail.h".
86427         Clients should set exit_failure instead.
86428         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
86429
86430 2003-07-18  Bruno Haible  <bruno@clisp.org>
86431
86432         * modules/getndelim2: New file.
86433         * modules/getline: Share files with module getndelim2.
86434         * modules/getnline: Depend on getndelim2 instead of sharing files with
86435         it. Add getnline.c to lib_SOURCES.
86436         * MODULES.html.sh (func_all_modules): Add getndelim2.
86437
86438 2003-07-18  Bruno Haible  <bruno@clisp.org>
86439
86440         * m4/getndelim2.m4: New file.
86441         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
86442         invoke gl_PREREQ_GETNDELIM2.
86443         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
86444         gl_PREREQ_GETNDELIM2.
86445         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
86446         gl_GETNDELIM2.
86447
86448 2003-07-18  Bruno Haible  <bruno@clisp.org>
86449
86450         * lib/getndelim2.h: New file.
86451         * lib/getndelim2.c: Make into a module of its own. Include config.h,
86452         getndelim2.h.
86453         (getndelim2): Make non-static. Change return type to ssize_t.
86454         * lib/getline.h: Change argument names.
86455         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
86456         * lib/getnline.c: Include getndelim2.h.
86457
86458 2003-07-18  Andreas Schwab  <schwab@suse.de>
86459
86460         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
86461
86462 2003-07-17  Karl Berry  <karl@gnu.org>
86463
86464         * config/config.sub: update from prep.
86465
86466 2003-07-17  Bruno Haible  <bruno@clisp.org>
86467
86468         * modules/getnline: New file.
86469         * modules/getline: Add lib/getndelim2.c to source file list.
86470         * MODULES.html.sh (func_all_modules): Add getnline.
86471
86472 2003-07-17  Bruno Haible  <bruno@clisp.org>
86473
86474         * m4/getnline.m4: New file.
86475
86476 2003-07-17  Bruno Haible  <bruno@clisp.org>
86477
86478         * m4/Makefile.am.in: Remove file.
86479         * m4/Makefile.am: Remove file.
86480         * m4/Makefile.in: Remove file.
86481
86482 2003-07-17  Bruno Haible  <bruno@clisp.org>
86483
86484         * lib/getnline.h: New file.
86485         * lib/getnline.c: New file.
86486         * lib/getndelim2.c: New file, extracted from getline.c.
86487         (getndelim2): Renamed from getdelim2, with added nmax argument.
86488         * lib/getline.c: Include getndelim2.c.
86489         (getdelim2): Moved out to getndelim2.c.
86490         (getline, getdelim): Update.
86491
86492 2003-07-17  Bruno Haible  <bruno@clisp.org>
86493
86494         * lib/Makefile.am: Remove file.
86495         * lib/Makefile.in: Remove file.
86496
86497 2003-07-17  Bruno Haible  <bruno@clisp.org>
86498
86499         * configure.in: Remove file.
86500         * Makefile.in: Remove file.
86501
86502 2003-07-17  Bruno Haible  <bruno@clisp.org>
86503
86504         * MODULES.html.sh: Put the </BODY> right before </HTML>.
86505
86506 2003-07-16  Karl Berry  <karl@gnu.org>
86507
86508         * config/srclist-update: was running fixlicense twice, which caused
86509                 texinfo.tex to be nullified for some reason.  Simplify,
86510                 $gplsrc is no longer needed as far as I can see?
86511
86512 2003-07-16  Jim Meyering  <jim@meyering.net>
86513
86514         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
86515
86516 2003-07-15  Paul Eggert  <eggert@twinsun.com>
86517
86518         * config/srclist.txt: Get the following files from gettext-runtime/intl
86519         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
86520         ref-del.sin.  From Bruno Haible.
86521         * config/srclist-update (fixfile): Change grep pattern again, since the
86522         previous fix didn't work (there was another trailing $).  Use
86523         '[$]' to escape the $s.
86524
86525 2003-07-15  Karl Berry  <karl@gnu.org>
86526
86527         * lib/vasnprintf.c: update from gettext.
86528
86529 2003-07-15  Karl Berry  <karl@gnu.org>
86530
86531         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
86532         gets expanded when surrounded by '$'.
86533
86534 2003-07-15  Jim Meyering  <jim@meyering.net>
86535
86536         * modules/save-cwd: Don't depend on error.  From Derek Price.
86537
86538 2003-07-15  Jim Meyering  <jim@meyering.net>
86539
86540         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
86541
86542 2003-07-14  Simon Josefsson  <jas@extundo.com>
86543
86544         * modules/mempcpy: New file.
86545         * MODULES.html.sh (func_all_modules): Add mempcpy.
86546
86547 2003-07-14  Simon Josefsson  <jas@extundo.com>
86548
86549         * m4/mempcpy.m4: New file.
86550
86551 2003-07-14  Simon Josefsson  <jas@extundo.com>
86552
86553         * lib/mempcpy.h: New file.
86554         * lib/mempcpy.c: New file.
86555
86556 2003-07-14  Paul Eggert  <eggert@twinsun.com>
86557
86558         * modules/getdate, modules/posixtm: Depend on mktime.
86559
86560 2003-07-14  Paul Eggert  <eggert@twinsun.com>
86561
86562         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
86563         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
86564         unicodeio.c, unicodeio.h, unlocked-io.h:
86565         Switch from LGPL to GPL.
86566
86567 2003-07-14  Paul Eggert  <eggert@twinsun.com>
86568
86569         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
86570         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
86571         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
86572         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
86573         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
86574         updated automatically by ../config/srclist-update.  This changes
86575         their license from LPGL to GPL.
86576
86577 2003-07-14  Paul Eggert  <eggert@twinsun.com>
86578
86579         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
86580         assumed to refer to the root of the most recent stable gettext version.
86581         * config/srclistvars.sh: Add defaults for eggert.
86582         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
86583         Match "This program" as well as "The program".  This is needed
86584         for gettext.
86585
86586 2003-07-14  Jim Meyering  <jim@meyering.net>
86587
86588         Don't emit diagnostics.  Let callers do that.
86589         * lib/save-cwd.c: Don't include "error.h".
86590         (save_cwd): Don't call error.  Ensure that errno is valid
86591         when returning nonzero.
86592
86593         * lib/save-cwd.h (restore_cwd): Update prototype.
86594         * lib/save-cwd.c (restore_cwd): Remove two parameters.
86595         Simplify.  Don't call error upon failure.  Let callers do that.
86596         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
86597         when auditing is enabled.  But don't bother updating the #if.
86598
86599 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
86600
86601         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
86602         it breaks C++ compilation.
86603         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
86604
86605 2003-07-10  Simon Josefsson  <jas@extundo.com>
86606
86607         * modules/strchrnul (Makefile.am): Add strchrnul.h.
86608
86609 2003-07-10  Jim Meyering  <jim@meyering.net>
86610
86611         * m4/clock_time.m4: Remove trailing blank.
86612         * m4/intmax_t.m4: Likewise.
86613
86614 2003-07-10  Jim Meyering  <jim@meyering.net>
86615
86616         * lib/vasnprintf.c: Remove trailing blanks.
86617         Make cpp indentation consistent.
86618
86619 2003-07-09  Paul Eggert  <eggert@twinsun.com>
86620
86621         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
86622         posixver.c, strftime.c, strnlen.c, strverscmp.c:
86623         Switch from LGPL to GPL.
86624
86625 2003-07-09  Paul Eggert  <eggert@twinsun.com>
86626
86627         * config/srclist.txt: Sort sublists.  Add
86628         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
86629         that differ from gnulib for one reason or another; we'd like this list
86630         to be smaller but for now let's document what we have.
86631
86632 2003-07-08  Paul Eggert  <eggert@twinsun.com>
86633
86634         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
86635         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
86636         and sweeter "eval x=$x".
86637         * config/srclist.txt: Get lib/argp* from glibc.
86638
86639 2003-07-07  Paul Eggert  <eggert@twinsun.com>
86640
86641         * lib/mktime.c: Fix some boundary cases and remove need for floating
86642         point.
86643
86644         Issue a compile-time diagnostic if time_t is floating point, or if
86645         two's complement arithmetic is not in effect, or if arithmetic
86646         right shift does not propagate the sign.  These assumptions were
86647         all in the original code but they weren't checked.
86648
86649         (TIME_T_MIDPOINT, verify): New macros.
86650         (__isleap): Remove; it has integer overflow problems.
86651         (leapyear): New function, without those problems.
86652         (ydhms_tm_diff): Remove; splitting into two parts.
86653         (ydhms_diff): New function, containing the arithmetic part of
86654         the old ydhms_tm_diff function.  Issue a compile-time
86655         diagnostic if we are not using C99 integer division.
86656         Avoid casts when possible.
86657         (guess_time_tm): New function, containing the checking part of
86658         the old ydhms_tm_diff function.  Return the new value, rather than
86659         the difference between it and the old.  Accept a new argument T
86660         so that *T specifies the old value.  Check for overflow in the result.
86661
86662         (__mktime_internal): Use a time_t offset, not a long int offset.
86663         This undoes the 2003-06-04 change, which is no longer needed now
86664         that we have better overflow checking.
86665         (localtime_offset): Likewise.
86666
86667         (__mktime_internal): Avoid harmful overflow on hosts where time_t
86668         and long are 64-bit but int is only 32-bit.
86669         (ydhms_diff): Use long int to store year1 and yday1.
86670         Issue a compile-time diagnostic if long int is not wide enough.
86671
86672         (__mktime_internal): Use long int to store adjusted year and yday.
86673         Use plain C rather than preprocessor commands, if that doesn't
86674         affect efficiency.
86675         Check for overflow (and try to repair) after each probe
86676         rather than checking only at the very end.  This avoids some bugs
86677         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
86678         does not equal GMT offset at maximum time).
86679         Use integer to check for overflow rather than floating point; this
86680         is more portable to non-IEEE hosts, and is a tad faster.
86681         When we detect that we are oscillating between two values,
86682         don't check whether tm_isdst has the requested value, since
86683         we already know the answer.  When tm_isdst has the wrong value,
86684         use a different heuristic to find the right one, based on the
86685         extreme values actually observed in practice in tz2003a,
86686         rather than the (overly optimistic) "previous 3 calendar quarters".
86687
86688         (not_equal_tm, print_tm, check_result): Use "const T" rather than
86689         "T const" to accommodate glibc style.
86690         (check_result): Use less-confusing report format.  "long" -> "long int.
86691         (main): Likewise.
86692         Don't loop if the iteration overflows time_t.
86693         Allow a negative step in the iteration.
86694
86695 2003-07-06  Karl Berry  <karl@gnu.org>
86696
86697         * config/depcomp: update from automake.
86698         * config/config.sub: update from prep.
86699
86700 2003-07-03  Karl Berry  <karl@gnu.org>
86701
86702         * config/config.guess: update from prep.
86703
86704 2003-07-01  Paul Eggert  <eggert@twinsun.com>
86705
86706         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
86707         xreadlink.c now includes it unconditionally.
86708
86709 2003-07-01  Paul Eggert  <eggert@twinsun.com>
86710
86711         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
86712         having it depend on HAVE_SYS_TYPES_H.
86713
86714 2003-07-01  Bruno Haible  <bruno@clisp.org>
86715
86716         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
86717         <sys/types.h> should be sufficient.
86718         Reported by Paul Eggert.
86719
86720 2003-06-26  Karl Berry  <karl@gnu.org>
86721
86722         * config/depcomp: update from automake.
86723
86724 2003-06-26  Bruno Haible  <bruno@clisp.org>
86725
86726         * modules/human: Depend on module stdbool.
86727
86728 2003-06-25  Bruno Haible  <bruno@clisp.org>
86729
86730         * modules/readlink: New file.
86731         * modules/xreadlink: Depend on it.
86732         * MODULES.html.sh (func_all_modules): Add readlink.
86733
86734 2003-06-25  Bruno Haible  <bruno@clisp.org>
86735
86736         * m4/readlink.m4: New file.
86737
86738 2003-06-25  Bruno Haible  <bruno@clisp.org>
86739
86740         * lib/readlink.c: New file.
86741
86742 2003-06-22  Karl Berry  <karl@gnu.org>
86743
86744         * config/srclist.txt: update mkinstalldirs from automake.
86745         * config/mkinstalldirs: update.
86746
86747 2003-06-22  Bruno Haible  <bruno@clisp.org>
86748
86749         Portability to mingw32.
86750         * m4/ssize_t.m4: New file, from GNU gettext.
86751         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
86752         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
86753
86754 2003-06-22  Bruno Haible  <bruno@clisp.org>
86755
86756         * modules/safe-read: Add m4/ssize_t.m4.
86757         * modules/xreadlink: Add m4/ssize_t.m4.
86758
86759 2003-06-20  Bruno Haible  <bruno@clisp.org>
86760
86761         Assume C89, so PARAMS isn't needed.
86762         * lib/unicodeio.h (PARAMS): Remove.
86763         * lib/unicodeio.c: Don't use PARAMS.
86764
86765 2003-06-18  Karl Berry  <karl@gnu.org>
86766
86767         * config/config.{guess,sub}: update from prep.
86768
86769 2003-06-18  Jim Meyering  <jim@meyering.net>
86770
86771         Merge changes from coreutils.
86772         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
86773         Remove explicit declarations of xmalloc and realloc.
86774         Include xalloc.h.
86775         (read_utmp): Remove anachronistic cast of xmalloc.
86776
86777 2003-06-17  Paul Eggert  <eggert@twinsun.com>
86778
86779         Assume C89, so PARAMS isn't needed.
86780         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
86781         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
86782         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
86783         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
86784         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
86785         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
86786         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
86787         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
86788         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
86789         lib/xstrtod.h, lib/xstrtol.h: Likewise.
86790         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
86791         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
86792         no longer needed. Anyway, config.h should always be included before any
86793         other file.
86794
86795 2003-06-11  Simon Josefsson  <jas@extundo.com>
86796
86797         * modules/sysexits: New file.
86798         * MODULES.html.sh (func_all_modules): Add sysexits.
86799
86800 2003-06-11  Simon Josefsson  <jas@extundo.com>
86801
86802         * lib/sysexit_.h: New file.
86803
86804 2003-06-11  Derek Price  <derek@ximbiot.com>
86805
86806         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
86807         necessary.
86808
86809 2003-06-11  Bruno Haible  <bruno@clisp.org>
86810
86811         * m4/sysexits.m4: New file.
86812
86813 2003-06-10  Simon Josefsson  <jas@extundo.com>
86814
86815         * lib/argp.h: New file, from glibc.
86816         * lib/argp-ba.c: New file, from glibc.
86817         * lib/argp-eexst.c: New file, from glibc.
86818         * lib/argp-fmtstream.c: New file, from glibc.
86819         * lib/argp-fmtstream.h: New file, from glibc.
86820         * lib/argp-fs-xinl.c: New file, from glibc.
86821         * lib/argp-help.c: New file, from glibc.
86822         * lib/argp-namefrob.h: New file, from glibc.
86823         * lib/argp-parse.c: New file, from glibc.
86824         * lib/argp-pv.c: New file, from glibc.
86825         * lib/argp-pvh.c: New file, from glibc.
86826         * lib/argp-xinl.c: New file, from glibc.
86827
86828 2003-06-10  Simon Josefsson  <jas@extundo.com>
86829
86830         * modules/strchrnul: New file.
86831
86832 2003-06-10  Simon Josefsson  <jas@extundo.com>
86833
86834         * modules/argp: New file.
86835
86836 2003-06-10  Simon Josefsson  <jas@extundo.com>
86837
86838         * m4/strchrnul.m4: New file.
86839
86840 2003-06-10  Simon Josefsson  <jas@extundo.com>
86841
86842         * lib/strchrnul.h: New file.
86843         * lib/strchrnul.c: New file.
86844
86845 2003-06-10  Bruno Haible  <bruno@clisp.org>
86846
86847         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
86848
86849 2003-06-07  Karl Berry  <karl@gnu.org>
86850
86851         * config/config.{guess,sub}: update from prep.
86852
86853 2003-06-07  Jim Meyering  <jim@meyering.net>
86854
86855         * modules/strtod: Use $(...) notation, not @...@ for
86856         AC_REPLACE'd variables.
86857         * modules/localcharset: Likewise.
86858
86859 2003-06-07  Jim Meyering  <jim@meyering.net>
86860
86861         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
86862         in place of my name in the copyright comment.
86863         Remove definition and uses of __P.
86864
86865         From coreutils.
86866         * lib/stat.c: Don't declare xmalloc explicitly.
86867         Instead, include "xalloc.h".
86868         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
86869         xrealloc, and xcalloc return values.
86870         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
86871         Improve comment.
86872         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
86873
86874 2003-06-07  Bruno Haible  <bruno@clisp.org>
86875
86876         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
86877         avoid AC_CONFIG_LINKS.
86878         * modules/fnmatch (Makefile.am): Use explicit creation rule for
86879         fnmatch.h, to avoid AC_CONFIG_LINKS.
86880         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
86881
86882 2003-06-07  Bruno Haible  <bruno@clisp.org>
86883
86884         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
86885         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
86886         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
86887         directory.
86888         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
86889         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
86890         directory.
86891
86892 2003-06-06  Jim Meyering  <jim@meyering.net>
86893
86894         Merge from coreutils.
86895         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
86896         Consolidate declarations and initializations of *_base* locals.
86897
86898         Merge from coreutils.
86899         This avoids a core dump on systems without GNU putenv,
86900         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
86901         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
86902         (unsetenv): New static function, from GNU libc.
86903         (rpl_putenv): Use it.
86904
86905         * lib/modechange.c: Remove trailing blanks.
86906
86907         Merge from coreutils.
86908         * lib/fsusage.c: Remove declaration of statfs.
86909         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
86910
86911         * lib/posixtm.c: Include <stdbool.h> unconditionally.
86912
86913 2003-06-06  Jim Meyering  <jim@meyering.net>
86914
86915         * lib/stdbool_.h: Renamed from stdbool.h.in.
86916
86917 2003-06-06  Jim Meyering  <jim@meyering.net>
86918             Bruno Haible  <bruno@clisp.org>
86919
86920         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
86921         Adjust Makefile.am snippet not to redirect directly to target.
86922         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
86923
86924 2003-06-05  Paul Eggert  <eggert@twinsun.com>
86925
86926         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
86927         mismatch, look in future quarters as well as past.  This fixes a
86928         bug when processing fall-backwards gaps immediately after a long
86929         period of daylight-saving time.
86930
86931         * lib/mktime.c: Assume freestanding C89 or better.
86932         (HAVE_LIMITS_H): Remove.  Assume it's 1.
86933         (__P): Remove; not used.
86934         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
86935         (mktime, not_equal_tm, print_tm, check_result,
86936         main): Use prototypes.  Use const * where appropriate.
86937         (main): Fix typo in testing code that uncovered by above changes.
86938         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
86939
86940 2003-06-04  Paul Eggert  <eggert@twinsun.com>
86941
86942         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
86943         locale.h, localeconv.  This merges changes from coreutils.
86944
86945         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
86946         It can be removed after the next Autoconf is released.
86947         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
86948         needed.
86949
86950 2003-06-04  Paul Eggert  <eggert@twinsun.com>
86951
86952         * lib/mktime.c: Fix Debian bug 177940
86953         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
86954         (localtime_offset): Now long int, not time_t, because we want it
86955         to be guaranteed to be signed.  All uses changed.
86956         (__mktime_internal): If overflow would occur when adding offset,
86957         don't add it.
86958
86959         Merge 'human' changes from coreutils.  Rewrite to support
86960         locale-specific notations like thousands separators.
86961         * lib/human.c: Simplify authorship notice.
86962         Include human.h immediately after config.h.
86963         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
86964         <limits.h>: Do not include, since human.h does.
86965         (SIZE_MAX, UINTMAX_MAX): New macros.
86966         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
86967         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
86968         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
86969         (power_letter): Renamed from suffixes.
86970         (generate_suffix_backwards): Remove.
86971         (adjust_value): Now takes int style (because of human.h changes)
86972         and long double value (for greater precision on some platforms).
86973         (group_number): New function.
86974         (human_readable): Use it.  Use integer options, not enum.
86975         Put the options before the sizes in the arg list.
86976         Support all the new options.
86977         The old human_readable function has been removed;
86978         use inttostr.h instead.
86979         (human_readable, default_block_size, humblock):
86980         Use uintmax_t, not int, for block sizes.
86981         (human_readable_inexact, block_size_types): Remove.
86982         (block_size_opts): New constant.
86983         (human_options): Renamed from human_block_size, with new signature
86984         that allows block sizes up to UINTMAX_MAX.  All callers changed.
86985         * lib/human.h: Add copyright and authorship notice.
86986         Include <limits.h> and <stdbool.h> unconditionally.
86987         (PARAMS): Remove.  All uses removed.
86988         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
86989         (enum human_inexact_style): Remove tag; now a nameless enum.
86990         (human_floor, human_ceiling, human_round_to_even): Now have
86991         values 2, 0, 1 rather than -1, 1, 0.
86992         (human_group_digits, human_suppress_point_zero, human_autoscale,
86993         human_base_1024, human_SI, human_B): New constants.
86994         (human_readable_inexact, human_block_size): Remove.
86995         (human_readable): Size args are now uintmax_t, not int.
86996         (human_options): New decl.
86997
86998         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
86999         unnecessary now that we assume C89 or better.  This change
87000         imported from coreutils.
87001
87002         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
87003         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
87004         in the 2003-05-30 sync from glibc.
87005
87006         .h files should stand alone, but we shouldn't include <sys/types.h>
87007         if we can get away with just <stddef.h>.
87008
87009         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
87010         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
87011         rather than <sys/types.h>, as we merely need size_t.
87012         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
87013         to get size_t.
87014         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
87015         Include <stdio.h>, to get FILE.
87016         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
87017         memcasecmp.h has included <stddef.h> and all we need is size_t.
87018         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
87019         our interface, instead of including <sys/types.h>
87020
87021 2003-06-04  Paul Eggert  <eggert@twinsun.com>
87022
87023         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
87024         now, as glibc mktime is buggy on non-glibc systems.
87025
87026 2003-06-03  Karl Berry  <karl@gnu.org>
87027
87028         * config/config.sub: update from prep.
87029
87030 2003-06-02  Paul Eggert  <eggert@twinsun.com>
87031
87032         [from coreutils]
87033         Fix some minor time-related bugs with POSIX time arguments.
87034         Some valid time stamps were being rejected (notably -1, and
87035         time stamps before 1900 on 64-bit hosts).  And some invalid
87036         time stamps were being accepted, e.g. September 31.
87037
87038         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
87039         that we can return (time_t) -1 successfully.
87040         * lib/posixtm.c: Likewise.
87041         [HAVE_STDBOOL_H]: Include <stdbool.h>.
87042         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
87043         (t): Remove static var.
87044         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
87045         of static var.  All uses changed.
87046         (year): Do not reject years before 1900; they can occur with
87047         64-bit time_t.
87048         (posix_time_parse): Do not check for out-of-range components;
87049         that is now the caller's responsibility, since our checks were
87050         only approximations.
87051         (posixtime): Use mktime to check for out-of-range components,
87052         since it knows them exactly.
87053         If mktime returns (time_t) -1, check whether an error actually occurred
87054         by invoking localtime on -1.
87055         (main) [TEST_POSIXTIME]: Check for input data errors, and report
87056         posixtime failures better.
87057         Improve the test data (in comments only).
87058
87059 2003-06-02  Karl Berry  <karl@gnu.org>
87060
87061         * config/mkinstalldirs (version): new variable.
87062         (--version): new option.
87063         (usage): improve message.
87064
87065 2003-05-30  Karl Berry  <karl@gnu.org>
87066
87067         * lib/mktime.c: update from libc.
87068
87069 2003-05-30  Bruno Haible  <bruno@clisp.org>
87070
87071         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
87072         * config/config.rpath: Upgrade to gettext-0.12.1.
87073
87074 2003-05-30  Bruno Haible  <bruno@clisp.org>
87075
87076         * m4/gettext.m4: Upgrade to gettext-0.12.1.
87077         * m4/nls.m4: New file, from gettext-0.12.1.
87078         * m4/po.m4: New file, from gettext-0.12.1.
87079         * m4/progtest.m4: Upgrade to gettext-0.12.1.
87080
87081 2003-05-30  Bruno Haible  <bruno@clisp.org>
87082
87083         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
87084         * lib/localcharset.h: Likewise.
87085         * lib/localcharset.c: Likewise.
87086
87087 2003-05-29  Karl Berry  <karl@gnu.org>
87088
87089         * config/config.rpath: update from gettext.
87090
87091 2003-05-28  Paul Eggert  <eggert@twinsun.com>
87092
87093         Assume the headers required for C89 freestanding compilers.
87094         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
87095         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
87096         * m4/human.m4 (gl_HUMAN): Likewise.
87097         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
87098         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
87099         * m4/userspec.m4 (gl_USERSPEC): Likewise.
87100         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
87101         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
87102         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
87103
87104 2003-05-28  Paul Eggert  <eggert@twinsun.com>
87105
87106         Assume the headers required for C89 freestanding compilers.
87107         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
87108         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
87109         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
87110         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
87111         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
87112         define, since <limits.h> is guaranteed to do that.
87113         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
87114         * lib/exclude.c: Include <stdbool.h> unconditionally.
87115         * lib/tempname.c: Include <stddef.h> unconditionally.
87116         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
87117         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
87118         <stddef.h> does that.
87119         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
87120         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
87121         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
87122         needed.
87123         * lib/xstrtol.c: Likewise.
87124         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
87125         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
87126
87127         * lib/addext.c (addext): Use assignment rather than cast, to avoid
87128         warnings on some platforms.
87129
87130         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
87131         arbitrarily.
87132
87133 2003-05-26  Jim Meyering  <jim@meyering.net>
87134
87135         Merge in a change from coreutils:
87136         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
87137         that is guaranteed to be `no'.  Use `no_such_member' to indicate
87138         that condition, rather than `-1' which is slightly misleading.
87139         Change the name of the cache variable to have the gl_ prefix.
87140         Prompted by a patch from Richard Dawe for DJGPP.
87141
87142 2003-05-24  Karl Berry  <karl@gnu.org>
87143
87144         * config/config.guess: update from prep.
87145
87146 2003-05-22  Karl Berry  <karl@gnu.org>
87147
87148         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
87149
87150 2003-05-20  Karl Berry  <karl@gnu.org>
87151
87152         * config/config.guess: update from prep.
87153
87154 2003-05-18  Karl Berry  <karl@gnu.org>
87155
87156         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
87157         might actually be set by the user.
87158
87159         * config/depcomp, install-sh, mdate-sh: update from automake.
87160
87161 2003-05-17  Bruno Haible  <bruno@clisp.org>
87162
87163         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
87164         invalid expansion for AC_EGREP_CPP.
87165         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
87166         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
87167         Suggested by Akim Demaille <akim@epita.fr> in
87168         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
87169
87170 2003-05-12  Jim Meyering  <jim@meyering.net>
87171
87172         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
87173         the space-padded-by-default conversion specifiers, %e, %k, %l.
87174
87175 2003-05-12  Bruno Haible  <bruno@clisp.org>
87176
87177         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
87178         the string is longer than 4 KB.
87179
87180 2003-05-11  Karl Berry  <karl@gnu.org>
87181
87182         * config/config.{guess,sub}: update from prep.
87183
87184 2003-05-09  Bruno Haible  <bruno@clisp.org>
87185
87186         * modules/error: Add m4/strerror_r.m4 to file list.
87187
87188 2003-05-03  Bruno Haible  <bruno@clisp.org>
87189
87190         Upgrade to Unicode-4.0.
87191         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
87192         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
87193         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
87194         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
87195         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
87196         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
87197         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
87198         Change width of U+E0100..U+E01EF from 1 to 0.
87199
87200 2003-04-25  Jim Meyering  <jim@meyering.net>
87201
87202         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
87203         of type size_t, not int.
87204
87205 2003-04-25  Bruno Haible  <bruno@clisp.org>
87206
87207         * lib/copy-file.c: Include <stddef.h>, for size_t.
87208
87209 2003-04-21  Paul Eggert  <eggert@twinsun.com>
87210
87211         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
87212         code which expansion is under static control.  Patch imported from
87213         Akim Demaille's patch to Bison; see
87214         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
87215
87216 2003-04-14  Bruno Haible  <bruno@clisp.org>
87217
87218         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
87219
87220 2003-04-11  Jim Meyering  <jim@meyering.net>
87221
87222         Merge changes from Coreutils.
87223
87224         2003-03-22  Jim Meyering  <jim@meyering.net>
87225
87226         * lib/strftime.c (widen): Cast alloca return value to proper type.
87227
87228         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
87229
87230         From GNU libc.
87231         * lib/strftime.c (my_strftime): Handle very large width
87232         specifications for numeric values correctly.  Improve checks for
87233         overflow.
87234
87235         2003-01-19  Jim Meyering  <jim@meyering.net>
87236
87237         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
87238         definitions.
87239         (nl_get_alt_digit) [! defined my_strftime]: Define.
87240         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
87241         _nl_get_alt_digit and _nl_get_walt_digit.
87242
87243         * lib/strftime.c (my_strftime): Merge in locale-related changes from
87244         libc. These changes have no effect outside of _LIBC.
87245
87246 2003-04-10  Bruno Haible  <bruno@clisp.org>
87247
87248         * modules/findprog: New file.
87249         * MODULES.html.sh (func_all_modules): Add it.
87250
87251 2003-04-10  Bruno Haible  <bruno@clisp.org>
87252
87253         * m4/findprog.m4: New file.
87254         * m4/eaccess.m4: New file.
87255
87256 2003-04-10  Bruno Haible  <bruno@clisp.org>
87257
87258         * lib/findprog.h: New file, from GNU gettext.
87259         * lib/findprog.c: New file, from GNU gettext.
87260
87261 2003-04-05  Jim Meyering  <jim@meyering.net>
87262
87263         Merge changes from Coreutils.
87264
87265         * lib/exclude.h (PARAMS): Remove definition and uses.
87266         * lib/exclude.c: Remove uses of `PARAMS'.
87267
87268         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
87269         Add test-cases for DOS filenames. Declare program_name.
87270         (main): Set up program_name.  Patch by Rich Dawe.
87271
87272         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
87273         error from mntctl.
87274         Use mntctl's return value to drive the entry-processing loop, since
87275         we can't rely on the value of the vmt_length member in the last
87276         entry.  On some systems doing so could result in exhausting
87277         virtual memory.  Based in part on a patch from Mike Jetzer.
87278
87279 2003-04-04  Bruno Haible  <bruno@clisp.org>
87280
87281         * modules/linebreak: New file.
87282         * MODULES.html.sh (func_all_modules): Add it.
87283
87284 2003-04-04  Bruno Haible  <bruno@clisp.org>
87285
87286         * m4/linebreak.m4: New file.
87287
87288 2003-04-04  Bruno Haible  <bruno@clisp.org>
87289
87290         * lib/linebreak.h: New file, from GNU gettext.
87291         * lib/linebreak.c: New file, from GNU gettext with slight
87292         modifications.
87293         * lib/lbrkprop.h: New file, from GNU gettext.
87294
87295 2003-04-03  Bruno Haible  <bruno@clisp.org>
87296
87297         * modules/utf8-ucs4: New file.
87298         * modules/utf16-ucs4: New file.
87299         * modules/ucs4-utf8: New file.
87300         * modules/ucs4-utf16: New file.
87301         * MODULES.html.sh (func_all_modules): Add them.
87302
87303 2003-04-03  Bruno Haible  <bruno@clisp.org>
87304
87305         * m4/utf-ucs4.m4: New file.
87306         * m4/ucs4-utf.m4: New file.
87307
87308 2003-04-03  Bruno Haible  <bruno@clisp.org>
87309
87310         * lib/utf8-ucs4.h: New file, from GNU gettext.
87311         * lib/utf16-ucs4.h: New file, from GNU gettext.
87312         * lib/ucs4-utf8.h: New file, from GNU gettext.
87313         * lib/ucs4-utf16.h: New file, from GNU gettext.
87314
87315 2003-04-02  Bruno Haible  <bruno@clisp.org>
87316
87317         * modules/binary-io: New file.
87318         * MODULES.html.sh (func_all_modules): Add it.
87319
87320 2003-04-02  Bruno Haible  <bruno@clisp.org>
87321
87322         * lib/binary-io.h: New file, from GNU gettext.
87323
87324 2003-04-01  Bruno Haible  <bruno@clisp.org>
87325
87326         * modules/pathname: New file.
87327         * MODULES.html.sh (func_all_modules): Add it.
87328
87329 2003-04-01  Bruno Haible  <bruno@clisp.org>
87330
87331         * lib/pathname.h: New file, from GNU gettext.
87332         * lib/concatpath.c: New file, from GNU gettext.
87333
87334 2003-03-30  Bruno Haible  <bruno@clisp.org>
87335
87336         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
87337
87338 2003-03-30  Bruno Haible  <bruno@clisp.org>
87339
87340         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
87341         function chown() doesn't exist.
87342
87343 2003-03-28  Bruno Haible  <bruno@clisp.org>
87344
87345         * modules/copy-file: New file.
87346         * MODULES.html.sh (func_all_modules): Add it.
87347
87348 2003-03-28  Bruno Haible  <bruno@clisp.org>
87349
87350         * m4/copy-file.m4: New file.
87351
87352 2003-03-28  Bruno Haible  <bruno@clisp.org>
87353
87354         * lib/copy-file.h: New file, from GNU gettext.
87355         * lib/copy-file.c: New file, from GNU gettext.
87356
87357 2003-03-18  Jim Meyering  <jim@meyering.net>
87358
87359         * lib/quote.c (quote_n): Fix typo in comment.
87360
87361 2003-03-18  Bruno Haible  <bruno@clisp.org>
87362
87363         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
87364         checking.
87365         * m4/onceonly_2_57.m4: Likewise.
87366
87367 2003-03-17  Bruno Haible  <bruno@clisp.org>
87368
87369         * m4/onceonly.m4: Require autoconf 2.54 or newer.
87370         (m4_quote): Remove macro.
87371         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
87372
87373 2003-03-14  Jim Meyering  <jim@meyering.net>
87374
87375         Merge changes from Coreutils.
87376         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
87377         to be const, in order to avoid warnings.
87378         (obstack_room): Likewise.
87379         (obstack_empty_p): Likewise.
87380
87381 2003-03-14  Bruno Haible  <bruno@clisp.org>
87382
87383         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
87384         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
87385
87386 2003-03-13  Paul Eggert  <eggert@twinsun.com>
87387
87388         Merge changes from Bison.
87389         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
87390         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
87391         when compiling Bison 1.875's `bitset bset = obstack_alloc
87392         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
87393         * lib/hash.c: Include <stdbool.h> unconditionally.
87394
87395 2003-03-13  Paul Eggert  <eggert@twinsun.com>
87396
87397         * m4/onceonly.m4 (m4_quote): New macro.
87398         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
87399         Quote AC_FOREACH variable-expansions properly.
87400
87401 2003-03-13  Paul Eggert  <eggert@twinsun.com>
87402
87403         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
87404
87405 2003-03-09  Paul Eggert  <eggert@twinsun.com>
87406
87407         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
87408         Reported by Bruce Becker; see:
87409         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
87410
87411 2003-03-03  Paul Eggert  <eggert@twinsun.com>
87412             Bruno Haible  <bruno@clisp.org>
87413
87414         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
87415         Reported by John Hughes, see
87416         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
87417
87418 2003-02-20  Bruno Haible  <bruno@clisp.org>
87419
87420         * MODULES.html.sh (func_all_modules): Add poll.
87421
87422 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
87423
87424         * modules/poll: New file.
87425
87426 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
87427
87428         * lib/poll_.h: New file.
87429         * lib/poll.c: New file.
87430
87431 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
87432
87433         * m4/poll.m4: New file.
87434
87435 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
87436
87437         * modules/mathl: New file.
87438
87439 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
87440
87441         * lib/mathl.h: New file.
87442         * lib/acosl.c: New file.
87443         * lib/asinl.c: New file.
87444         * lib/atanl.c: New file.
87445         * lib/ceill.c: New file.
87446         * lib/cosl.c: New file.
87447         * lib/expl.c: New file.
87448         * lib/floorl.c: New file.
87449         * lib/frexpl.c: New file.
87450         * lib/ldexpl.c: New file.
87451         * lib/logl.c: New file.
87452         * lib/sincosl.c: New file.
87453         * lib/sinl.c: New file.
87454         * lib/sqrtl.c: New file.
87455         * lib/tanl.c: New file.
87456         * lib/trigl.c: New file.
87457         * lib/trigl.h: New file.
87458
87459 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
87460
87461         * m4/mathl.m4: New file.
87462
87463 2003-02-18  Bruno Haible  <bruno@clisp.org>
87464
87465         * MODULES.html.sh (func_all_modules): Add mathl.
87466
87467 2003-02-17  Bruno Haible  <bruno@clisp.org>
87468
87469         * modules/mkdtemp: New module.
87470         * MODULES.html.sh (func_all_modules): Add it.
87471
87472 2003-02-17  Bruno Haible  <bruno@clisp.org>
87473
87474         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
87475
87476 2003-02-17  Bruno Haible  <bruno@clisp.org>
87477
87478         * lib/mkdtemp.h: New file, from GNU gettext.
87479         * lib/mkdtemp.c: New file, from GNU gettext.
87480
87481 2003-02-02  Jim Meyering  <jim@meyering.net>
87482
87483         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
87484         e.g. glibc-2.2.93.
87485
87486 2003-01-31  Bruno Haible  <bruno@clisp.org>
87487
87488         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
87489         'rpl_rename'.
87490         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
87491         'rpl_strnlen'.
87492         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
87493         'rpl_strtod'.
87494         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
87495         'rpl_utime'.
87496
87497 2003-01-31  Bruno Haible  <bruno@clisp.org>
87498
87499         * lib/rename.c: #undef rename before defining rpl_rename.
87500         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
87501
87502 2003-01-30  Bruno Haible  <bruno@clisp.org>
87503
87504         * modules/vasnprintf, modules/vasprintf: New modules.
87505         * MODULES.html.sh (func_all_modules): Add them.
87506
87507 2003-01-30  Bruno Haible  <bruno@clisp.org>
87508
87509         * m4/signed.m4: New file, from GNU gettext.
87510         * m4/longdouble.m4: New file, from GNU gettext.
87511         * m4/wchar_t.m4: New file, from GNU gettext.
87512         * m4/wint_t.m4: New file, from GNU gettext.
87513         * m4/vasnprintf.m4: New file.
87514         * m4/vasprintf.m4: New file.
87515
87516 2003-01-30  Bruno Haible  <bruno@clisp.org>
87517
87518         * lib/printf-args.h: New file, from GNU gettext.
87519         * lib/printf-args.c: New file, from GNU gettext.
87520         * lib/printf-parse.h: New file, from GNU gettext.
87521         * lib/printf-parse.c: New file, from GNU gettext.
87522         * lib/vasnprintf.h: New file, from GNU gettext.
87523         * lib/vasnprintf.c: New file, from GNU gettext.
87524         * lib/asnprintf.c: New file, from GNU gettext.
87525         * lib/vasprintf.h: New file, from GNU gettext with modifications.
87526         * lib/vasprintf.c: New file, from GNU gettext.
87527         * lib/asprintf.c: New file, from GNU gettext.
87528
87529 2003-01-29  Bruno Haible  <bruno@clisp.org>
87530
87531         * modules/stpncpy: New module.
87532         * MODULES.html.sh (func_all_modules): Add it.
87533
87534 2003-01-29  Bruno Haible  <bruno@clisp.org>
87535
87536         * m4/stpncpy.m4: New file.
87537
87538 2003-01-29  Bruno Haible  <bruno@clisp.org>
87539
87540         * lib/stpncpy.h: New file, from GNU gettext with modifications.
87541         * lib/stpncpy.c: New file, from GNU gettext with modifications.
87542
87543 2003-01-28  Bruno Haible  <bruno@clisp.org>
87544
87545         * modules/c-ctype: New module.
87546         * MODULES.html.sh (func_all_modules): Add it.
87547
87548 2003-01-28  Bruno Haible  <bruno@clisp.org>
87549
87550         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
87551         Paul Eggert.
87552         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
87553         Paul Eggert.
87554
87555 2003-01-27  Bruno Haible  <bruno@clisp.org>
87556
87557         * modules/xsetenv: New module.
87558         * MODULES.html.sh (func_all_modules): Add it.
87559
87560 2003-01-27  Bruno Haible  <bruno@clisp.org>
87561
87562         * lib/xsetenv.h: New file, from GNU gettext.
87563         * lib/xsetenv.c: New file, from GNU gettext.
87564
87565 2003-01-23  Jim Meyering  <jim@meyering.net>
87566
87567         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
87568         from working on systems without dirfd (at least Irix and OSF1/Tru64).
87569
87570 2003-01-23  Bruno Haible  <bruno@clisp.org>
87571
87572         * modules/minmax: New module.
87573         * MODULES.html.sh (func_all_modules): Add it.
87574
87575 2003-01-23  Bruno Haible  <bruno@clisp.org>
87576
87577         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
87578         Eggert.
87579
87580 2003-01-22  Bruno Haible  <bruno@clisp.org>
87581
87582         * modules/exit: New module.
87583         * MODULES.html.sh (func_all_modules): Add it.
87584
87585 2003-01-22  Bruno Haible  <bruno@clisp.org>
87586
87587         * lib/exit.h: New file, from GNU gettext.
87588
87589 2003-01-19  Bruno Haible  <bruno@clisp.org>
87590
87591         * gnulib-tool: Recognize option --extract-maintainer.
87592         (func_get_maintainer): New function.
87593         * modules/*: Add Maintainer entry.
87594
87595 2003-01-16  Jim Meyering  <jim@meyering.net>
87596
87597         * m4/regex.m4: The `regex' struct is both input and output.
87598         Initialize it before each use.  Patch by Tim Waugh.
87599
87600 2003-01-16  Bruno Haible  <bruno@clisp.org>
87601
87602         * MODULES.html.sh: Add a table of contents. Add the module name as
87603         leftmost column. Add hyperlinks.
87604
87605 2003-01-15  Bruno Haible  <bruno@clisp.org>
87606
87607         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
87608
87609 2003-01-15  Bruno Haible  <bruno@clisp.org>
87610
87611         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
87612         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
87613         suffix.
87614
87615 2003-01-15  Bruno Haible  <bruno@clisp.org>
87616
87617         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
87618
87619 2003-01-15  Bruno Haible  <bruno@clisp.org>
87620
87621         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
87622         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
87623
87624 2003-01-14  Jim Meyering  <jim@meyering.net>
87625
87626         * lib/same.c (same_name): Tweak a comment.
87627
87628 2003-01-14  Bruno Haible  <bruno@clisp.org>
87629
87630         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
87631         when a string comparison is sufficient.
87632
87633 2003-01-14  Bruno Haible  <bruno@clisp.org>
87634
87635         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
87636         'unsigned int'.
87637
87638 2003-01-14  Bruno Haible  <bruno@clisp.org>
87639
87640         * lib/hash-pjw.c: Add comment about low quality of this function.
87641
87642 2003-01-13  Bruno Haible  <bruno@clisp.org>
87643
87644         * modules/stpcpy: Distribute lib/stpcpy.h.
87645         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
87646
87647 2003-01-13  Bruno Haible  <bruno@clisp.org>
87648
87649         * modules/*: Add a description.
87650         * modules/strpbrk: Fix Makefile.am snippet.
87651         * modules/strtoimax: Fix dependencies.
87652         * modules/strtoumax: Likewise.
87653
87654 2003-01-13  Bruno Haible  <bruno@clisp.org>
87655
87656         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
87657         * modules/alloca (Makefile.am): All object files depend on alloca.h.
87658         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
87659
87660 2003-01-13  Bruno Haible  <bruno@clisp.org>
87661
87662         * gnulib-tool (func_create_testdir): Store config/* files in the main
87663         directory.
87664         * config.rpath: Move to ...
87665         * config/config.rpath: ... here.
87666         * modules/gettext: Contains config/config.rpath, not config.rpath.
87667         * modules/iconv: Likewise.
87668
87669 2003-01-12  Paul Eggert  <eggert@twinsun.com>
87670
87671         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
87672         to avoid collisions with libcurses and libreadline.
87673
87674         * m4/getstr.m4: Remove.
87675         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
87676
87677 2003-01-12  Paul Eggert  <eggert@twinsun.com>
87678
87679         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
87680         to avoid collisions with libcurses and libreadline.
87681
87682         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
87683         * lib/getstr.h, getstr.c: Remove.
87684         * lib/getline.c: Include "getline.h", to check interface.
87685         Move body of old getstr.c here: this defines MIN_CHUNK and
87686         declares getdelim2, which is renamed from getstr.
87687         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
87688
87689         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
87690         All uses changed.
87691         * lib/linebuffer.h: Likewise.
87692         (readline): Remove backward-compatibility macro.
87693
87694 2003-01-12  Paul Eggert  <eggert@twinsun.com>
87695
87696         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
87697         to avoid collisions with libcurses and libreadline.
87698         * getstr: Remove.
87699         * MODULES.html.sh: Remove getstr.
87700         * modules/getline: Depend on unlocked-io, not getstr.
87701
87702 2003-01-12  Jim Meyering  <jim@meyering.net>
87703
87704         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
87705
87706 2003-01-10  Bruno Haible  <bruno@clisp.org>
87707
87708         * modules/alloca: Change Makefile.am requirements. Simplify Include
87709         requirements. Add lib/alloca_.h to file list.
87710
87711 2003-01-10  Bruno Haible  <bruno@clisp.org>
87712
87713         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
87714
87715 2003-01-10  Bruno Haible  <bruno@clisp.org>
87716
87717         * lib/alloca_.h: New file.
87718         * lib/getdate.y: Unconditionally include alloca.h.
87719         * lib/makepath.c: Likewise.
87720         * lib/setenv.c: Likewise.
87721         * lib/userspec.c: Likewise.
87722
87723 2003-01-09  Karl Berry  <karl@gnu.org>
87724
87725         * MODULES.html.sh: include `dirname $0` in PATH, to find
87726         gnulib-tool.
87727
87728 2003-01-09  Bruno Haible  <bruno@clisp.org>
87729
87730         * modules/stdbool: Change configure.ac, Makefile.am requirements.
87731         Simplify Include requirements. Add lib/stdbool.h.in to file list.
87732
87733 2003-01-09  Bruno Haible  <bruno@clisp.org>
87734
87735         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
87736
87737 2003-01-09  Bruno Haible  <bruno@clisp.org>
87738
87739         * lib/stdbool.h.in: New file.
87740
87741 2003-01-09  Bruno Haible  <bruno@clisp.org>
87742
87743         * gnulib-tool (func_all_modules): Ignore files ending in ~.
87744         * MODULES.html.sh: Likewise.
87745
87746 2003-01-08  Jim Meyering  <jim@meyering.net>
87747
87748         * lib/full-write.c: Undefine and define-away `const' after inclusion
87749         of errno.h, not before.  Suggestion from Bruno Haible.
87750
87751 2003-01-08  Bruno Haible  <bruno@clisp.org>
87752
87753         * modules/full-read: Depend on full-write.
87754
87755 2003-01-08  Bruno Haible  <bruno@clisp.org>
87756
87757         * lib/safe-read.c: Include specification header first, to ensure its
87758         selfcontainedness.
87759         * lib/full-write.c: Likewise.
87760
87761 2003-01-07  Jim Meyering  <jim@meyering.net>
87762
87763         * lib/full-write.c: Rework so that it may serve to define full_read,
87764         too.
87765         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
87766
87767 2003-01-07  Bruno Haible  <bruno@clisp.org>
87768
87769         * lib/strtoimax.c: Include <stdint.h> as an alternative to
87770         <inttypes.h>.
87771         * lib/xstrtol.h: Likewise.
87772         * lib/xstrtoimax.c: Likewise.
87773         * lib/xstrtoumax.c: Likewise.
87774         * lib/human.h: Likewise.
87775
87776         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
87777         on systems that have <inttypes.h> but not <stdint.h>.
87778
87779 2003-01-07  Bruno Haible  <bruno@clisp.org>
87780
87781         * MODULES.html.sh: Add copyright notice.
87782         (missed_files): Omit CVS directory entries.
87783         (func_module): Make it work with sed-3.02.
87784         * MODULES.txt: Remove file.
87785
87786 2003-01-06  Jim Meyering  <jim@meyering.net>
87787
87788         * lib/version-etc.c: Update year in translatable copyright string.
87789
87790 2003-01-03  Karl Berry  <karl@gnu.org>
87791
87792         * config/config.{guess,sub}: update from prep.
87793
87794 2003-01-02  Karl Berry  <karl@gnu.org>
87795
87796         * doc/COPYING.DOC: belatedly updated to 1.2.
87797
87798 2003-01-01  Karl Berry  <karl@gnu.org>
87799
87800         * gnulib-tool (func_verify_module): report module name $module in
87801         error message, not $1.
87802         * gnulib-tool (create-testdir): don't complain if destdir couldn't
87803         be created, only if it doesn't exist.
87804         * gnulib-tool (last_checkin_date): don't expand the $Date here.
87805
87806 2002-12-31  Paul Eggert  <eggert@twinsun.com>
87807
87808         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
87809
87810 2002-12-31  Paul Eggert  <eggert@twinsun.com>
87811
87812         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
87813         memcmp if strcoll doesn't work.
87814
87815 2002-12-31  Bruno Haible  <bruno@clisp.org>
87816
87817         * lib/utime.c (utime_null): No need to call ftruncate if the file was
87818         nonempty.
87819
87820 2002-12-31  Bruno Haible  <bruno@clisp.org>
87821
87822         * lib/memcoll.c (STRCOLL): New macro.
87823         (memcoll): Use it.
87824
87825 2002-12-31  Bruno Haible  <bruno@clisp.org>
87826
87827         * lib/localcharset.h: New file.
87828         * lib/localcharset.c: Include it.
87829         * lib/unicodeio.c: Likewise.
87830
87831 2002-12-31  Bruno Haible  <bruno@clisp.org>
87832
87833         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
87834         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
87835
87836 2002-12-31  Bruno Haible  <bruno@clisp.org>
87837
87838         * lib/getline.h: Include <stddef.h>, for size_t.
87839
87840         * lib/unicodeio.h: Include <stddef.h>, for size_t.
87841         * lib/unicodeio.c: Don't include <stddef.h>.
87842
87843 2002-12-31  Bruno Haible  <bruno@clisp.org>
87844
87845         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
87846         HAVE_TM_ZONE.
87847
87848 2002-12-24  Karl Berry  <karl@gnu.org>
87849
87850         * config/config.guess: update from prep.
87851
87852 2002-12-24  Bruno Haible  <bruno@clisp.org>
87853
87854         General infrasructure.
87855         * m4/README: Rewritten.
87856         * m4/onceonly.m4: New file.
87857         * m4/onceonly_2_57.m4: New file.
87858
87859         Module atexit.
87860         * m4/atexit.m4: New file.
87861
87862         Module strtod.
87863         * m4/strtod.m4: New file.
87864
87865         Module strtol.
87866         * m4/strtol.m4: New file.
87867
87868         Module strtoul.
87869         * m4/strtoul.m4: New file.
87870
87871         Module memchr.
87872         * m4/memchr.m4: New file.
87873
87874         Module memcmp.
87875         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
87876         (jm_FUNC_MEMCMP): Invoke it.
87877
87878         Module memcpy.
87879         * m4/memcpy.m4: New file.
87880
87881         Module memmove.
87882         * m4/memmove.m4: New file.
87883
87884         Module memset.
87885         * m4/memset.m4: New file.
87886
87887         Module strcspn.
87888         * m4/strcspn.m4: New file.
87889
87890         Module strpbrk.
87891         * m4/strpbrk.m4: New file.
87892
87893         Module strstr.
87894         * m4/strstr.m4: New file.
87895
87896         Module strerror.
87897         * m4/strerror.m4: New file.
87898
87899         Module mktime.
87900         * m4/mktime.m4: Renamed from jm-mktime.m4.
87901         (gl_PREREQ_MKTIME): New macro.
87902         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
87903
87904         Module malloc.
87905         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
87906         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
87907         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
87908
87909         Module realloc.
87910         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
87911         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
87912         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
87913
87914         Module strftime.
87915         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
87916         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
87917         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
87918         gl_TM_GMTOFF.
87919         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
87920
87921         Module xalloc.
87922         * m4/xalloc.m4: New file.
87923
87924         Module alloca.
87925         * m4/alloca.m4: New file.
87926
87927         Module putenv.
87928         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
87929         (jm_FUNC_PUTENV): Invoke it.
87930
87931         Module setenv.
87932         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
87933         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
87934         when invoked twice.
87935         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
87936         gt_FUNC_SETENV.
87937
87938         Module memrchr.
87939         * m4/memrchr.m4: New file.
87940
87941         Module stpcpy.
87942         * m4/stpcpy.m4: New file.
87943
87944         Module strcase.
87945         * m4/strcase.m4: New file.
87946
87947         Module strdup.
87948         * m4/strdup.m4: New file.
87949
87950         Module strnlen.
87951         * m4/strnlen.m4: New file.
87952
87953         Module strndup.
87954         * m4/strndup.m4: New file.
87955
87956         Module xstrtod.
87957         * m4/xstrtod.m4: New file.
87958
87959         Module xstrtol.
87960         * m4/xstrtol.m4: New file.
87961
87962         Module getdate.
87963         * m4/getdate.m4: New file.
87964
87965         Module unlocked-io.
87966         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
87967         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
87968         * m4/jm-glibc-io.m4n: Remove file.
87969
87970         Module long-options.
87971         * m4/long-options.m4: New file.
87972
87973         Module md5.
87974         * m4/md5.m4: New file.
87975
87976         Module sha.
87977         * m4/sha.m4: New file.
87978
87979         Module getstr.
87980         * m4/getstr.m4: New file.
87981
87982         Module getline.
87983         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
87984         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
87985         <sys/types.h>, for size_t. Use the function name gnu_getline, not
87986         simply getline. Infoke gl_PREREQ_GETLINE.
87987
87988         Module obstack.
87989         * m4/obstack.m4: New file.
87990
87991         Module hash.
87992         * m4/hash.m4: New file.
87993
87994         Module readtokens.
87995         * m4/readtokens.m4: New file.
87996
87997         Module strverscmp.
87998         * m4/strverscmp.m4: New file.
87999
88000         Module stdbool.
88001         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
88002         OSF/1.
88003
88004         Module strtoll.
88005         * m4/strtoll.m4: New file.
88006
88007         Module strtoull.
88008         * m4/strtoull.m4: New file.
88009
88010         Module strtoimax.
88011         * m4/strtoimax.m4: New file.
88012
88013         Module strtoumax.
88014         * m4/strtoumax.m4: New file.
88015
88016         Module xstrtoimax.
88017         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
88018         jm_AC_PREREQ_XSTRTOIMAX.
88019         Moved the strtol prerequisites to strtol.m4.
88020         Moved the strtoll prerequisites to strtoll.m4.
88021         Moved the strtoimax prerequisites to strtoimax.m4.
88022
88023         Module xstrtoumax.
88024         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
88025         jm_AC_PREREQ_XSTRTOUMAX.
88026         Moved the strtoul prerequisites to strtoul.m4.
88027         Moved the strtoull prerequisites to strtoull.m4.
88028         Moved the strtoumax prerequisites to strtoumax.m4.
88029
88030         Module chown.
88031         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
88032         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
88033
88034         Module dup2.
88035         * m4/dup2.m4: New file.
88036
88037         Module ftruncate.
88038         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
88039         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
88040
88041         Module getgroups.
88042         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
88043         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
88044
88045         Module gettimeofday.
88046         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
88047         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
88048         gl_PREREQ_GETTIMEOFDAY.
88049
88050         Module mkdir.
88051         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
88052         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
88053
88054         Module mkstemp.
88055         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
88056         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
88057         jm_AC_TYPE_UINTMAX_T.
88058         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
88059
88060         Module stat.
88061         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
88062         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
88063
88064         Module lstat.
88065         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
88066         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
88067
88068         Module timespec.
88069         * m4/timespec.m4 (gl_TIMESPEC): New macro.
88070         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
88071         * m4/st_mtim.m4: Indentation.
88072
88073         Module nanosleep.
88074         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
88075         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
88076         gl_PREREQ_NANOSLEEP.
88077
88078         Module regex.
88079         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
88080         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
88081         (gl_REGEX): New macro.
88082
88083         Module rename.
88084         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
88085         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
88086
88087         Module rmdir.
88088         * m4/rmdir.m4: New file.
88089
88090         Module utime.
88091         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
88092         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
88093         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
88094
88095         Module dirname.
88096         * m4/dirname.m4: New file.
88097
88098         Module getopt.
88099         * m4/getopt.m4: New file.
88100
88101         Module unistd-safer.
88102         * m4/unistd-safer.m4: New file.
88103
88104         Module fnmatch.
88105         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
88106         declaration.
88107         (gl_PREREQ_FNMATCH_EXTRA): New macro.
88108         (gl_FUNC_FNMATCH_POSIX): New macro.
88109         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
88110         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
88111         simply fnmatch.
88112
88113         Module exclude.
88114         * m4/exclude.m4: New file.
88115
88116         Module human.
88117         * m4/human.m4: New file.
88118
88119         Module acl.
88120         * m4/acl.m4: Nop.
88121
88122         Module backupfile.
88123         * m4/backupfile.m4: New file.
88124         * m4/d-ino.m4: Indentation.
88125
88126         Module fsusage.
88127         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
88128         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
88129         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
88130
88131         Module dirfd.
88132         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
88133         requirements.
88134
88135         Module euidaccess.
88136         * m4/euidaccess.m4: New file.
88137
88138         Module file-type.
88139         * m4/file-type.m4: New file.
88140
88141         Module fileblocks.
88142         * m4/fileblocks.m4: New file.
88143
88144         Module filemode.
88145         * m4/filemode.m4: New file.
88146
88147         Module isdir.
88148         * m4/isdir.m4: New file.
88149
88150         Module lchown.
88151         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
88152         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
88153
88154         Module makepath.
88155         * m4/makepath.m4: New file.
88156
88157         Module modechange.
88158         * m4/modechange.m4: New file.
88159
88160         Module mountlist.
88161         * m4/mountlist.m4: New file.
88162         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
88163         Indentation.
88164
88165         Module path-concat.
88166         * m4/path-concat.m4: New file.
88167
88168         Module pathmax.
88169         * m4/pathmax.m4: New file.
88170
88171         Module same.
88172         * m4/same.m4: New file.
88173
88174         Module save-cwd.
88175         * m4/save-cwd.m4: New file.
88176
88177         Module savedir.
88178         * m4/savedir.m4: New file.
88179
88180         Module xgetcwd.
88181         * m4/xgetcwd.m4: New file.
88182         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
88183
88184         Module xreadlink.
88185         * m4/xreadlink.m4: New file.
88186
88187         Module safe-read.
88188         * m4/safe-read.m4: New file.
88189
88190         Module safe-write.
88191         * m4/safe-write.m4: New file.
88192
88193         Module closeout.
88194         * m4/closeout.m4: New file.
88195
88196         Module stdio-safer.
88197         * m4/stdio-safer.m4: New file.
88198
88199         Module getpass.
88200         * m4/getpass.m4: New file.
88201
88202         Module getugroups.
88203         * m4/getugroups.m4: New file.
88204
88205         Module group-member.
88206         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
88207         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
88208
88209         Module idcache.
88210         * m4/idcache.m4: New file.
88211
88212         Module userspec.
88213         * m4/userspec.m4: New file.
88214
88215         Module gettime.
88216         * m4/clock_time.m4: New file.
88217         * m4/gettime.m4: New file.
88218
88219         Module settime.
88220         * m4/settime.m4: New file.
88221
88222         Module posixtm.
88223         * m4/posixtm.m4: New file.
88224
88225         Module gethostname.
88226         * m4/gethostname.m4: New file.
88227
88228         Module canon-host.
88229         * m4/canon-host.m4: New file.
88230
88231         Module gettext.
88232         * m4/codeset.m4: New file, from gettext-0.11.5.
88233         * m4/gettext.m4: New file, from gettext-0.11.5.
88234         * m4/glibc21.m4: New file, from gettext-0.11.5.
88235         * m4/iconv.m4: New file, from gettext-0.11.5.
88236         * m4/intdiv0.m4: New file, from gettext-0.11.5.
88237         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
88238         * m4/inttypes.m4: New file, from gettext-0.11.5.
88239         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
88240         * m4/isc-posix.m4: New file, from gettext-0.11.5.
88241         * m4/lcmessage.m4: New file, from gettext-0.11.5.
88242         * m4/lib-ld.m4: New file, from gettext-0.11.5.
88243         * m4/lib-link.m4: New file, from gettext-0.11.5.
88244         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
88245         * m4/progtest.m4: New file, from gettext-0.11.5.
88246         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
88247         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
88248         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
88249
88250         Module localcharset.
88251         * m4/localcharset.m4: New file.
88252
88253         Module hard-locale.
88254         * m4/hard-locale.m4: New file.
88255
88256         Module mbswidth.
88257         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
88258         onceonly macros.
88259         * m4/mbrtowc.m4: Add comment.
88260
88261         Module memcasecmp.
88262         * m4/memcasecmp.m4: New file.
88263
88264         Module memcoll.
88265         * m4/memcoll.m4: New file.
88266
88267         Module unicodeio.
88268         * m4/unicodeio.m4: New file.
88269
88270         Module rpmatch.
88271         * m4/rpmatch.m4: New file.
88272
88273         Module yesno.
88274         * m4/yesno.m4: New file.
88275
88276         Module exitfail.
88277         * m4/exitfail.m4: New file.
88278
88279         Module c-stack.
88280         * m4/c-stack.m4 (gl_C_STACK): New macro.
88281         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
88282
88283         Module error.
88284         * m4/error.m4 (gl_ERROR): New macro.
88285         (jm_PREREQ_ERROR): Use onceonly macros.
88286
88287         Module fatal.
88288         * m4/fatal.m4: New file.
88289
88290         Module getloadavg.
88291         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
88292         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
88293
88294         Module getpagesize.
88295         * m4/getpagesize.m4: New file.
88296
88297         Module getusershell.
88298         * m4/getusershell.m4: New file.
88299
88300         Module physmem.
88301         * m4/physmem.m4: New file.
88302
88303         Module posixver.
88304         * m4/posixver.m4: New file.
88305
88306         Module quotearg.
88307         * m4/quotearg.m4: New file.
88308
88309         Module quote.
88310         * m4/quote.m4: New file.
88311
88312         Module readutmp.
88313         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
88314
88315         Module sig2str.
88316         * m4/sig2str.m4: New file.
88317
88318         Other.
88319         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
88320         ulonglong.m4.
88321         * m4/intmax_t.m4: New file.
88322         * m4/d-type.m4: Indentation.
88323         * m4/jm-macros.m4: Update.
88324         * m4/prereq.m4 (jm_PREREQ): Update.
88325         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
88326         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
88327         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
88328         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
88329         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
88330         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
88331         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
88332         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
88333         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
88334         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
88335         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
88336         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
88337         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
88338         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
88339         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
88340         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
88341         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
88342         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
88343         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
88344
88345 2002-12-24  Bruno Haible  <bruno@clisp.org>
88346
88347         * MODULES.txt: Update according to m4/ changes.
88348
88349         Module gettext.
88350         * config.rpath: New file, from gettext-0.11.5.
88351
88352         * modules/*: New module descriptions.
88353         * gnulib-tool: New file.
88354         * MODULES.html.sh: New file.
88355
88356 2002-12-21  Karl Berry  <karl@gnu.org>
88357
88358         * doc/fdl.texi: update to version 1.2.
88359
88360 2002-12-19  Karl Berry  <karl@gnu.org>
88361
88362         * config/config.guess: update from prep.
88363
88364 2002-12-18  Bruno Haible  <bruno@clisp.org>
88365
88366         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
88367         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
88368
88369 2002-12-17  Bruno Haible  <bruno@clisp.org>
88370
88371         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
88372         stdlib.h, string.h.
88373
88374 2002-12-17  Bruno Haible  <bruno@clisp.org>
88375
88376         * lib/canon-host.c (strdup): Remove unused declaration.
88377
88378         * lib/fsusage.c: Include full_read.h.
88379         (get_fs_usage): Use full_read instead of safe_read.
88380
88381         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
88382
88383 2002-12-12  Karl Berry  <karl@gnu.org>
88384
88385         * config/config.guess: update from prep.
88386
88387 2002-12-11  Bruno Haible  <bruno@clisp.org>
88388
88389         * m4/setenv.m4: New file, from gettext-0.11.5.
88390
88391 2002-12-11  Bruno Haible  <bruno@clisp.org>
88392
88393         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
88394         not unsetenv().
88395         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
88396         modifications:
88397
88398         2002-12-11  Bruno Haible  <bruno@clisp.org>
88399
88400                 * setenv.c (alloca): Fall back to malloc.
88401                 (freea): New macro.
88402                 (setenv): Use freea() to free memory allocated with alloca().
88403
88404         2002-11-13  Bruno Haible  <bruno@clisp.org>
88405
88406                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
88407                 function declarations.
88408                 * unsetenv.c (unsetenv): Likewise.
88409
88410         2002-03-04  Bruno Haible  <bruno@clisp.org>
88411
88412                 Portability to AIX 4.3.3.
88413                 * unsetenv.c: New file, extracted from setenv.c.
88414                 * setenv.c: Move the unsetenv() function to unsetenv.c.
88415
88416         2001-12-20  Bruno Haible  <bruno@clisp.org>
88417
88418                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
88419                 use malloc instead. For SunOS 4.
88420
88421         2001-12-11  Bruno Haible  <bruno@clisp.org>
88422
88423                 * setenv.c: Declare alloca.
88424                 (compar_fn_t): New typedef.
88425                 (KNOWN_VALUE, STORE_VALUE): Use it.
88426
88427         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
88428         setenv.h.
88429
88430 2002-12-10  Paul Eggert  <eggert@twinsun.com>
88431
88432         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
88433         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
88434         Choose values that are less likely to collide with system fnmatch
88435         options.
88436         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
88437         defined (e.g., a pure POSIX system).
88438         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
88439         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
88440
88441 2002-12-06  Paul Eggert  <eggert@twinsun.com>
88442
88443         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
88444         a pain in practice to deal with generated m4 files.  This change
88445         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
88446
88447         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
88448         and jm-glibc-io.m4, as they are no longer a special case.
88449         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
88450         kludge and the auto-generation stuff.  Check only whether the
88451         functions are declared, not whether they exist, since older hosts
88452         that don't declare the functions can't use the optimization anyway.
88453
88454 2002-12-06  Jim Meyering  <jim@meyering.net>
88455
88456         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
88457
88458         Merge in changes from libc's misc/error.c, in preparation
88459         for the merge of gnulib's changes back into libc.
88460
88461         * lib/error.c (_): Define only if not already defined.
88462         Move definition to follow all #include directives.
88463         Include unlocked-io.h only if !_LIBC.
88464         [_LIBC]: Include <libio/libioP.h>.
88465         [USE_IN_LIBIO]: Include <libio/iolibio.h>
88466         (fflush): Tweak definition to use INTUSE.
88467         (putc): Define.
88468
88469 2002-12-05  Paul Eggert  <eggert@twinsun.com>
88470
88471         * lib/alloca.c [defined emacs]: Include "lisp.h".
88472         (xalloc_die) [defined emacs]: New macro.
88473         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
88474         [! defined emacs]: Include <xalloc.h>.
88475         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
88476         (pointer): Typedef to POINTER_TYPE *.
88477         (malloc): Remove decl; we now always use xmalloc.
88478         (alloca): Use old-style definition, since Emacs needs this.
88479         Check for arithmetic overflow when computing combined size.
88480
88481 2002-12-04  Paul Eggert  <eggert@twinsun.com>
88482
88483         Do not generate unlocked-io.h automatically, since it's easier to
88484         maintain it by hand.
88485
88486         * lib/unlocked-io.h: New file, from GNU diffutils,
88487         but with proper copyright notice and attribution.
88488         * lib/gen-uio: Remove.
88489         * lib/Makefile.am: Add copyright notice.
88490         (libfetish_a_SOURCES): Add unlocked-io.h.
88491         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
88492         (DISTCLEANFILES, io_functions): Remove macros.
88493         (EXTRA_DIST): Remove gen_uio.
88494         (unlocked-io.h): Remove rule.
88495
88496 2002-12-04  Jim Meyering  <jim@meyering.net>
88497
88498         Reflect the fact that stat.c and lstat.c are no longer generated.
88499         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
88500         (DISTCLEANFILES): Likewise.
88501         (EXTRA_DIST): Likewise.
88502         (all_local): Don't depend on stat.c or lstat.c.
88503         (stat.c, lstat.c): Remove rules.
88504         (EXTRA_DIST): Remove xstat.in.
88505
88506         * lib/xstat.in: Remove file.  Contents moved into stat.c.
88507         * lib/stat.c: New file.  Contents mostly from xstat.in.
88508         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
88509         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
88510
88511         * lib/safe-read.c: Rework so that it may serve to define safe_write,
88512         too.
88513         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
88514
88515 2002-12-03  Jim Meyering  <jim@meyering.net>
88516
88517         * lib/safe-read.c, safe-write.c: Change variable names and comments,
88518         but not semantics, to minimize the differences between these two files.
88519         (safe_read): Change comment to mention SAFE_READ_ERROR.
88520
88521         * lib/safe-read.c (IS_EINTR): Define.
88522         (safe_read): Use IS_EINTR in place of in-function cpp directives.
88523
88524 2002-12-02  Jim Meyering  <jim@meyering.net>
88525
88526         * lib/safe-read.c (EINTR): Define.
88527         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
88528         (INT_MAX): Provide fallback.
88529         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
88530
88531         * lib/safe-read.h (SAFE_READ_ERROR): Define.
88532
88533 2002-12-02  Bruno Haible  <bruno@clisp.org>
88534
88535         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
88536         Define, taken from safe-read.c.
88537         (INT_MAX): Provide fallback.
88538         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
88539         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
88540
88541         * lib/safe-read.c (EINTR): Remove definition.
88542         (safe_read): Don't use EINTR if it is absent.
88543
88544 2002-12-01  Jim Meyering  <jim@meyering.net>
88545
88546         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
88547         zero.
88548         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
88549
88550 2002-11-27  Paul Eggert  <eggert@twinsun.com>
88551
88552         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
88553         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
88554         with `if (! (value < limit)) abort ();', for readability.
88555
88556 2002-11-26  Karl Berry  <karl@gnu.org>
88557
88558         * lib/strdup.c: copy from libc again, with jim's ok.
88559         * lib/.cppi-disable: re-add strdup.c
88560
88561 2002-11-25  Karl Berry  <karl@gnu.org>
88562
88563         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
88564         instead of "strtol.c".
88565
88566 2002-11-25  Karl Berry  <karl@gnu.org>
88567
88568         * config/install-sh: update from automake for variable quoting, $0 in
88569         error msgs, etc.
88570
88571         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
88572         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
88573         entry.
88574
88575 2002-11-25  Jim Meyering  <jim@meyering.net>
88576
88577         * lib/mktime.c: Sync from libc, now that it has the latest fix.
88578
88579 2002-11-24  Karl Berry  <karl@gnu.org>
88580
88581         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
88582         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
88583
88584 2002-11-24  Jim Meyering  <jim@meyering.net>
88585
88586         Update from coreutils:
88587
88588         * lib/mktime.c: Merge in changes from libc.
88589
88590         Avoid a link-time failure on some Linux systems.
88591         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
88592         (otherwise).
88593         (__mon_yday): Declare with the STATIC attribute.
88594         (__mktime_internal): Likewise.
88595         Based on a report from Greg Schafer.
88596
88597 2002-11-23  Jim Meyering  <jim@meyering.net>
88598
88599         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
88600         Use `unsigned', not `int', as type of index.
88601
88602         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
88603
88604         * lib/fsusage.c: Remove unneeded parentheses around operands of
88605         `defined'.
88606
88607 2002-11-22  Paul Eggert  <eggert@twinsun.com>
88608
88609         * lib/quotearg.h: Allow multiple inclusion by surrounding with
88610         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
88611         so that we can be included first.
88612         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
88613         * lib/quotearg.c: Include quotearg.h immediately after config.h.
88614         No need to include stddef.h or sys/types.h any more.
88615         Surround local include files with "", not "<>".
88616         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
88617         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
88618         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
88619         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
88620         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
88621         (ISPRINT): Remove; no longer needed now that we assume C89.
88622
88623         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
88624         Preserve errno.
88625
88626         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
88627         quotearg_char): Use SIZE_MAX rather than
88628         (size_t) -1 when we are talking about "infinity".
88629
88630         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
88631
88632 2002-11-22  Paul Eggert  <eggert@twinsun.com>
88633
88634         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
88635         hint that one should use `if (! x) abort ();' rather than `assert
88636         (x);', and anyway it's one less thing to worry about configuring.
88637         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
88638         hash_rehash, hash_insert): Use abort rather than assert.
88639
88640 2002-11-22  Bruno Haible  <bruno@clisp.org>
88641
88642         * lib/safe-read.h: Assume C89. Add comments.
88643         (safe_read): Change return type to size_t.
88644         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
88645         byte counts > SSIZE_MAX correctly.
88646         * lib/safe-write.h: New file.
88647         * lib/safe-write.c: New file.
88648         * lib/full-read.h: New file.
88649         * lib/full-read.c: New file.
88650         * lib/full-write.h: Assume C89. Add comments.
88651         * lib/full-write.c: Include safe-write.h.
88652         (full_write): Rewritten to use safe_write.
88653         Suggested by Jim Meyering and Paul Eggert.
88654
88655 2002-11-21  Jim Meyering  <jim@meyering.net>
88656
88657         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
88658
88659         Merge in changes from the coreutils.
88660
88661         2002-09-25  Paul Eggert  <eggert@twinsun.com>
88662         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
88663         <stdint.h>.
88664         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
88665         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
88666         int.  Work more efficiently if X is the same width as uintmax_t.
88667         Do not compare X to -1, to avoid bogus compiler warning.
88668         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
88669         Don't assume that f_frsize and f_bsize are the same type.
88670
88671         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
88672         warning on FreeBSD.
88673
88674         * lib/makepath.c (make_path): Restore umask *before* creating the final
88675         component.
88676         (make_path): Minor reformatting.
88677
88678         * lib/xmalloc.c: Adjust to work with new autoconf macros,
88679         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
88680         HAVE_MALLOC/HAVE_REALLOC.
88681
88682         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
88683         dummy ones.  At least on GNU/Linux systems, `auto' means something
88684         else.
88685         From Michael Stone.
88686
88687 2002-11-21  Bruno Haible  <bruno@clisp.org>
88688
88689         Remove case insensitive option matching.
88690         * lib/argmatch.h (argcasematch): Remove declaration.
88691         (ARGCASEMATCH): Remove macro.
88692         (__xargmatch_internal): Remove case_sensitive argument.
88693         (XARGMATCH): Update.
88694         (XARGCASEMATCH): Remove macro.
88695         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
88696         case_sensitive argument.
88697         (argcasematch): Remove function.
88698         (__xargmatch_internal): Remove case_sensitive argument.
88699         (main): Use XARGMATCH instead of XARGCASEMATCH.
88700
88701         * lib/xmalloc.c: Change compile-time error message. Add comment about
88702         required autoconf version.
88703
88704 2002-11-20  Paul Eggert  <eggert@twinsun.com>
88705
88706         Merge argmatch cleanups from Bison.  Assume C89.
88707
88708         * lib/argmatch.c: Include config.h here, not in argmatch.h.
88709         Include stdlib.h, for EXIT_FAILURE.
88710         Always include <string.h>, since we assume C89.
88711         (EXIT_FAILURE): Remove pre-C89 bug workaround.
88712         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
88713         Include <stddef.h> instead, since it's all we need for size_t.
88714         (PARAMS): Remove.  All uses removed.
88715         (ARRAY_CARDINALITY): Do not bother to #undef.
88716         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
88717         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
88718         Remove unnecessary parentheses.
88719         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
88720         Insert necessary parentheses.
88721         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
88722         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
88723
88724 2002-11-19  Bruno Haible  <bruno@clisp.org>
88725
88726         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
88727         * lib/mbswidth.h: Include <stddef.h>, for size_t.
88728
88729         * lib/mbswidth.h (PARAMS): Remove macro.
88730         (mbswidth, mbsnwidth): Use ANSI C function declarations.
88731         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
88732
88733         * lib/gcd.h (PARAMS): Remove macro.
88734         (gcd): Use ANSI C function declarations.
88735         * lib/gcd.c (gcd): Likewise.
88736
88737 2002-11-15  Bruno Haible  <bruno@clisp.org>
88738
88739         * lib/strcspn.c: Include <stddef.h>.
88740         (strcspn): Use ANSI C function declaration. Change return type to
88741         size_t. Use NULL.
88742         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
88743         (strpbrk): Use NULL.
88744         * lib/strpbrk.h (PARAMS): Remove macro.
88745         (strpbrk): Use ANSI C function declaration.
88746         * lib/strstr.c: Don't include <sys/types.h>.
88747         * lib/strstr.h (PARAMS): Remove macro.
88748         (strstr): Use ANSI C function declarations.
88749
88750 2002-11-14  Karl Berry  <karl@gnu.org>
88751
88752         * config/mkinstalldirs: `do' on separate line, instead of
88753         `for var; do'.
88754
88755 2002-11-06  Bruno Haible  <bruno@clisp.org>
88756
88757         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
88758         * lib/gcd.c (gcd): Likewise.
88759
88760 2002-11-05  Bruno Haible  <bruno@clisp.org>
88761
88762         * lib/gcd.h: New file, from gettext-0.11.5.
88763         * lib/gcd.c: New file, from gettext-0.11.5.
88764
88765 2002-11-05  Bruno Haible  <bruno@clisp.org>
88766
88767         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
88768         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
88769         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
88770         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
88771
88772         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
88773         <libintl.h>.
88774         * lib/makepath.c: Include gettext.h instead of <locale.h> and
88775         <libintl.h>.
88776
88777         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
88778         * lib/human.c: Include gettext.h instead of <libintl.h>.
88779         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
88780         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
88781         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
88782         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
88783         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
88784         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
88785         (textdomain): Remove definition.
88786         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
88787
88788         * lib/long-options.c: Remove include of <libintl.h> and definition of
88789         _.
88790         * lib/same.c: Remove include of <libintl.h> and definition of _.
88791
88792 2002-11-04  Owen Taylor  <otaylor@redhat.com>
88793
88794         * lib/config.charset: A few additions for Solaris.
88795
88796 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
88797
88798         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
88799         * lib/localcharset.c (locale_charset): Declare as extern "C".
88800
88801 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
88802
88803         * lib/config.charset: msdos in uk_UA uses CP1125.
88804
88805 2002-11-04  Bruno Haible  <bruno@clisp.org>
88806
88807         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
88808         * lib/strcase.h: New file, from GNU gettext-0.11.5.
88809         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
88810         * lib/strstr.h: New file, from GNU gettext-0.11.5.
88811         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
88812
88813 2002-11-04  Bruno Haible  <bruno@clisp.org>
88814
88815         * lib/localcharset.c (locale_charset): Don't return an empty string.
88816
88817 2002-11-04  Bruno Haible  <bruno@clisp.org>
88818
88819         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
88820         aliases.
88821
88822 2002-11-04  Bruno Haible  <bruno@clisp.org>
88823
88824         * lib/config.charset: Update for newest glibc. Add canonical names
88825         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
88826
88827 2002-11-04  Bruno Haible  <bruno@clisp.org>
88828
88829         * lib/config.charset: Add support for NetBSD.
88830
88831 2002-11-04  Bruno Haible  <bruno@clisp.org>
88832
88833         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
88834
88835 2002-11-01  Bruno Haible  <bruno@clisp.org>
88836
88837         * configure.in: Add AC_CONFIG_AUX_DIR call.
88838         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
88839         test/Makefile.
88840         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
88841
88842 2002-09-28  Karl Berry  <karl@gnu.org>
88843
88844         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
88845         installed automake until the next release, since changes have been
88846         made.
88847
88848 2002-09-25  Karl Berry  <karl@gnu.org>
88849
88850         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
88851         * lib/getopt*: copy from libc/posix.
88852         * lib/gettext.h: copy from gettext.
88853         * lib/.cppi-disable: add strdup.c, gettext.h.
88854
88855 2002-09-25  Karl Berry  <karl@gnu.org>
88856
88857         * config/srclist.txt: enable gettext.h check.
88858         * config/config.{guess,sub}: update from prep.
88859         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
88860                 from automake 1.6.3.
88861         See srclist*.
88862
88863 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
88864
88865         * regex.c (PATFETCH): Remove the translating fetch.
88866         (PATFETCH_RAW): Rename to PATFETCH.
88867         (set_image_of_range): New fun.
88868         (SET_RANGE_TABLE_WORK_AREA): Use it.
88869         (regex_compile): Don't translate the pattern chars so eagerly.
88870         Only do it when inserting an `exactn' bytecode or when handling
88871         a char-range.
88872         (mutually_exclusive_p): Avoid empty statement.
88873
88874 2002-07-06  Jim Meyering  <meyering@lucent.com>
88875
88876         * m4/README: Don't mention Makefile.am.in.
88877         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
88878
88879 2002-07-01  Jim Meyering  <meyering@lucent.com>
88880
88881         * lib/c-stack.c: Include sys/time.h.
88882         From Volker Borchert.
88883
88884 2002-06-26  Paul Eggert  <eggert@twinsun.com>
88885
88886         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
88887
88888 2002-06-26  Paul Eggert  <eggert@twinsun.com>
88889
88890         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
88891         New macro.  Use it uniformly instead of
88892         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
88893         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
88894         reported by Vin Shelton.
88895
88896 2002-06-22  Paul Eggert  <eggert@twinsun.com>
88897
88898         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
88899         Do not assume SA_SIGINFO behavior.
88900         Bug reported by Jim Meyering on NetBSD 1.5.2.
88901
88902 2002-06-22  Jim Meyering  <meyering@lucent.com>
88903
88904         * m4/c-stack.m4: New file, from diffutils-2.8.2.
88905         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
88906
88907         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
88908         now that configure.ac uses AC_GNU_SOURCE.
88909         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
88910         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
88911
88912         Update to latest tools.  Suggestions from Paul Eggert.
88913         * m4/stdbool.m4: New file, from diffutils-2.8.2.
88914         * m4/gnu-source.m4: Update from diffutils-2.8.2.
88915         * m4/fnmatch.m4: Likewise.
88916         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
88917         to AC_HEADER_STDBOOL
88918
88919 2002-06-22  Jim Meyering  <meyering@lucent.com>
88920
88921         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
88922         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
88923
88924 2002-06-22  Jim Meyering  <meyering@lucent.com>
88925
88926         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
88927
88928         * lib/exitfail.c, exitfail.h: Likewise.
88929         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
88930
88931         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
88932         of fnmatch.h.
88933         (EXTRA_DIST): Add fnmatch_loop.c.
88934         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
88935
88936         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
88937         * lib/fnmatch.c: Update from diffutils-2.8.2.
88938         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
88939         * lib/fnmatch.h: Remove file.
88940
88941 2002-06-21  Jim Meyering  <meyering@lucent.com>
88942
88943         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
88944         * m4/mbrtowc.m4: Likewise.
88945
88946         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
88947         * m4/mbswidth.m4: Reflect name change:
88948         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
88949         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
88950
88951         * m4/lib-link.m4: Update from gettext-0.11.2.
88952         * m4/gettext.m4: Likewise.
88953
88954         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
88955         From Alfred M. Szmidt.
88956
88957 2002-06-18  Paul Eggert  <eggert@twinsun.com>
88958
88959         * lib/file-type.h: Report an error if neither S_ISREG nor
88960         S_IFREG is defined, instead of using a test specific to glibc
88961         2.2.  This should be safe, since POSIX requires S_ISREG and
88962         Unix Version 7 had S_IFREG.  We don't need to check for
88963         <sys/types.h> since we don't use any symbols that it defines.
88964
88965 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
88966
88967         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
88968         $@-t, so that each temporary file name is unique and valid in the first
88969         8 characters, for operation under DOS.
88970
88971 2002-06-15  Paul Eggert  <eggert@twinsun.com>
88972
88973         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
88974
88975 2002-06-15  Jim Meyering  <meyering@lucent.com>
88976
88977         Work even with DJGPP 2.03, which lacks support for symlinks.
88978         From Richard Dawe.
88979         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
88980         is defined.
88981         * lib/lchown.c (S_ISLNK): Likewise.
88982
88983 2002-06-15  Jim Meyering  <meyering@lucent.com>
88984
88985         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
88986         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
88987         have been included before this file.
88988
88989 2002-06-14  Jim Meyering  <meyering@lucent.com>
88990
88991         * lib/file-type.h: Use the version from diffutils-2.8.2.
88992         * lib/file-type.c: Likewise.
88993
88994 2002-06-07  Jim Meyering  <meyering@lucent.com>
88995
88996         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
88997         They're needed at least for NetBSD 1.5.2.
88998         ($statxfs_includes): Include those same headers.
88999         ($statxfs_includes): Include sys/vfs.h if available.
89000         ($statxfs_includes): Likewise for sys/statvfs.h.
89001         Check for the following members in both structs statfs and statvfs:
89002         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
89003
89004 2002-06-01  Jim Meyering  <meyering@lucent.com>
89005
89006         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
89007         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
89008
89009 2002-05-28  Jim Meyering  <meyering@lucent.com>
89010
89011         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
89012         Reported by Volker Borchert.
89013
89014 2002-05-27  Jim Meyering  <meyering@lucent.com>
89015
89016         Fix a problem seen only on nonconforming systems whereby ls.c's
89017         use of localtime, and then of gettimeofday would cause trouble:
89018         the localtime call used to initialize rpl_gettimeofday's save
89019         mechanism would clobber ls's current local time information so
89020         that in any long listing the first file would always be listed
89021         with date 1970-01-01.  Analysis by Volker Borchert.
89022
89023         * lib/gettimeofday.c (localtime): Undefine.
89024         (rpl_localtime): New function.
89025
89026 2002-05-27  Jim Meyering  <meyering@lucent.com>
89027
89028         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
89029         localtime.
89030
89031         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
89032         use the replacement function; it wouldn't resolve at link time.
89033         Reported by Volker Borchert.
89034
89035 2002-05-22  Jim Meyering  <meyering@lucent.com>
89036
89037         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
89038         file-type.h.
89039         * lib/file-type.h: New file.
89040         * lib/file-type.c (file_type): New file/function.  Extracted from
89041         diffutils.
89042
89043 2002-04-30  Jim Meyering  <meyering@lucent.com>
89044
89045         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
89046
89047 2002-04-29  Paul Eggert  <eggert@twinsun.com>
89048
89049         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
89050
89051 2002-04-29  Paul Eggert  <eggert@twinsun.com>
89052
89053         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
89054         Do not check for alloca.h (no longer used) or stdbool.h (was never
89055         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
89056
89057 2002-04-29  Paul Eggert  <eggert@twinsun.com>
89058
89059         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
89060
89061 2002-04-29  Jim Meyering  <meyering@lucent.com>
89062
89063         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
89064         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
89065         Use AC_FUNC_STRNLEN here instead.
89066
89067         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
89068         With autoconf-2.53a, it's part of AC_PROG_CC.
89069
89070 2002-04-28  Paul Eggert  <eggert@twinsun.com>
89071
89072         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
89073         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
89074
89075 2002-04-28  Paul Eggert  <eggert@twinsun.com>
89076
89077         * lib/sig2str.h, lib/sig2str.c: New files.
89078         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
89079
89080 2002-04-28  Paul Eggert  <eggert@twinsun.com>
89081
89082         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
89083         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
89084         of 127, since 64 is the largest conceivable number for ancient
89085         nonstandard hosts.
89086         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
89087
89088 2002-04-28  Jim Meyering  <meyering@lucent.com>
89089
89090         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
89091
89092 2002-04-24  Jim Meyering  <meyering@lucent.com>
89093
89094         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
89095         (jm_PREREQ): Use it.
89096
89097         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
89098         mach/mach.h fcntl.h.
89099         Check for this function: setlocale.
89100
89101 2002-04-24  Jim Meyering  <meyering@lucent.com>
89102
89103         * lib/gettext.h: New file, from Gettext.
89104         * lib/Makefile.am (INCLUDES): Remove -I../intl.
89105         (libfetish_a_SOURCES): Add gettext.h.
89106
89107 2002-04-16  Jim Meyering  <meyering@lucent.com>
89108
89109         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
89110         ut_pid, ut_id, ut_exit.
89111
89112 2002-04-16  Jim Meyering  <meyering@lucent.com>
89113
89114         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
89115         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
89116         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
89117
89118 2002-04-12  Jim Meyering  <meyering@lucent.com>
89119
89120         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
89121         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
89122         existence of the getmntinfo function.  Needed for Darwin 5.3.
89123
89124         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
89125         This is necessary at least on Darwin 5.3.
89126
89127         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
89128         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
89129         strnlen.o in the library, and that makes some versions of ranlib
89130         object.
89131
89132 2002-04-12  Jim Meyering  <meyering@lucent.com>
89133
89134         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
89135
89136 2002-04-09  Jim Meyering  <meyering@lucent.com>
89137
89138         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
89139         to be more precise.  Rather than saying we're checking whether the
89140         function `works', say what we're testing.
89141         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
89142         Reported by Bruno Haible.
89143
89144 2002-03-10  Jim Meyering  <meyering@lucent.com>
89145
89146         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
89147         Suggestion from Santiago Vila.
89148
89149 2002-03-08  Jim Meyering  <meyering@lucent.com>
89150
89151         * lib/rename.c: Mention that this wrapper is needed also on
89152         mips-dec-ultrix4.4 systems.
89153
89154 2002-03-02  Jim Meyering  <meyering@lucent.com>
89155
89156         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
89157         not HAVE_CLOCK_SETTIME.
89158
89159 2002-02-27  Paul Eggert  <eggert@twinsun.com>
89160
89161         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
89162         Check for clock_settime.
89163
89164 2002-02-27  Paul Eggert  <eggert@twinsun.com>
89165
89166         * lib/nanosleep.h: Rename to....
89167         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
89168
89169         * lib/gettime.c: New file.
89170         * lib/settime.c: New file.
89171         * lib/stime.c: Remove.
89172
89173         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
89174         timespec.h.  Remove nanosleep.h.
89175
89176 2002-02-25  Paul Eggert  <eggert@twinsun.com>
89177
89178         * m4/acl.m4: New file.
89179         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
89180         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
89181
89182 2002-02-25  Paul Eggert  <eggert@twinsun.com>
89183
89184         * lib/acl.c, lib/acl.h: New files.
89185         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
89186
89187 2002-02-24  Jim Meyering  <meyering@lucent.com>
89188
89189         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
89190         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
89191         cause trouble.  Reported by Nelson Beebe.
89192
89193 2002-02-23  Paul Eggert  <eggert@twinsun.com>
89194
89195         * lib/path-concat.c (xpath_concat): Reorder code to pacify
89196         compilers that don't know that xalloc_die never returns.
89197
89198 2002-02-20  Jim Meyering  <meyering@lucent.com>
89199
89200         * lib/getdate.c: Regenerate using bison-1.33.
89201
89202 2002-02-17  Jim Meyering  <meyering@lucent.com>
89203
89204         * config/config.guess (main): Don't use `head -1'; it's no longer
89205         portable. Use `sed 1q' instead.
89206
89207 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
89208
89209         * m4/codeset.m4: Upgrade to gettext-0.11.
89210         * m4/gettext.m4: Upgrade to gettext-0.11.
89211         * m4/glibc21.m4: Upgrade to gettext-0.11.
89212         * m4/iconv.m4: Upgrade to gettext-0.11.
89213         * m4/isc-posix.m4: Upgrade to gettext-0.11.
89214         * m4/lcmessage.m4: Upgrade to gettext-0.11.
89215         * m4/lib-ld.m4: New file, from gettext-0.11.
89216         * m4/lib-link.m4: New file, from gettext-0.11.
89217         * m4/lib-prefix.m4: New file, from gettext-0.11.
89218         * m4/progtest.m4: Upgrade to gettext-0.11.
89219
89220 2002-02-15  Paul Eggert  <eggert@twinsun.com>
89221
89222         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
89223         (jm_PREREQ): Use it.
89224
89225 2002-02-15  Paul Eggert  <eggert@twinsun.com>
89226
89227         * lib/posixver.c, lib/posixver.h: New files.
89228         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
89229
89230 2002-02-02  Paul Eggert  <eggert@twinsun.com>
89231             Bruno Haible  <bruno@clisp.org>
89232
89233         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
89234         (fwrite_success_callback): New declaration.
89235         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
89236         print_unicode_char. Call failure callback instead of error.
89237         (fwrite_success_callback): New function.
89238         (exit_failure_callback): New function.
89239         (fallback_failure_callback): New function.
89240         (print_unicode_char): Call unicode_to_mb.
89241
89242 2002-01-26  Jim Meyering  <meyering@lucent.com>
89243
89244         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
89245         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
89246
89247 2002-01-26  Jim Meyering  <meyering@lucent.com>
89248
89249         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
89250
89251 2002-01-22  Paul Eggert  <eggert@twinsun.com>
89252
89253         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
89254
89255 2002-01-22  Jim Meyering  <meyering@lucent.com>
89256
89257         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
89258         Otherwise, some versions of automake would omit the rule that makes
89259         Makefile from Makefile.in.
89260
89261 2002-01-21  Paul Eggert  <eggert@twinsun.com>
89262
89263         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
89264         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
89265         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
89266         (memcoll): Set errno to zero if there is no error.
89267
89268         * lib/quotearg.c (quotearg_buffer_restyled):
89269         Fix bug with quoting buffers containing NUL when backslashing escapes.
89270         This bug was exposed by the other changes in this patch.
89271         (quotearg_n_options): New arg ARGSIZE.
89272         All callers changed.
89273         (quoting_options_from_style): New function.
89274         (quotearg_n_style): Use it.
89275         (quotearg_n_style_mem): New function.
89276
89277         * lib/quotearg.h (quotearg_n_style_mem): New function.
89278
89279 2002-01-19  Jim Meyering  <meyering@lucent.com>
89280
89281         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
89282         Remove useless quotes: DF_PROG="df".
89283         * m4/strnlen.m4: New file.
89284
89285 2002-01-16  Paul Eggert  <eggert@twinsun.com>
89286
89287         * lib/backupfile.c (ISDIGIT): Comment fix.
89288         * lib/getdate.y (ISDIGIT): Likewise.
89289         * lib/posixtm.c (ISDIGIT, year): Likewise.
89290         * lib/strverscmp.c (ISDIGIT): Likewise.
89291         * lib/userspec.c (ISDIGIT): Likewise.
89292
89293 2002-01-16  Jim Meyering  <meyering@lucent.com>
89294
89295         * lib/getdate.y: Add three semicolons, each just before a closing
89296         brace. Bison (as of version 1.31) no longer papers over that mistake.
89297
89298 2002-01-05  Jim Meyering  <meyering@lucent.com>
89299
89300         * lib/version-etc.c (version_etc_copyright): Update copyright year.
89301
89302 2001-12-19  Paul Eggert  <eggert@twinsun.com>
89303
89304         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
89305         not silently exit merely because the output buffer happens to
89306         have nothing pending.
89307
89308 2001-12-18  Paul Eggert  <eggert@twinsun.com>
89309
89310         See the big note in ../ChangeLog.
89311         * lib/human.c (suffixes): Prefer K to k for 1024.
89312         (generate_suffix_backwards): New function.
89313         (human_readable_inexact): Use it.
89314         * lib/xstrtol.c (__xstrtol): If there is no number but there
89315         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
89316         Accept 'K' as well as 'k'.
89317
89318 2001-12-15  Jim Meyering  <meyering@lucent.com>
89319
89320         * lib/regex.h (__restrict_arr): Update from libc.
89321
89322         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
89323         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
89324         (STREQ): Define.
89325
89326 2001-12-14  Jim Meyering  <meyering@lucent.com>
89327
89328         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
89329         Suggestion from Bruno Haible.
89330
89331 2001-12-10  Jim Meyering  <meyering@lucent.com>
89332
89333         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
89334         xrealloc, Instead, include "xalloc.h".
89335         (initbuffer): Don't cast xmalloc return value to char*.
89336         (readline): Reword comment.
89337         Don't cast xrealloc return value to char*
89338         Return NULL, not 0.
89339
89340 2001-12-09  Jim Meyering  <meyering@lucent.com>
89341
89342         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
89343         about `signed and unsigned type in conditional expression'.
89344         * lib/posixtm.c (posix_time_parse): Likewise.
89345
89346         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
89347
89348         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
89349         to avoid a pedantic warning.
89350
89351         * lib/getstr.c: Don't include assert.h.
89352         (getstr): Remove warning-evoking assertions.
89353         Return -1 if offset parameter is out of bounds.
89354         Change the type of a local from int to size_t.
89355
89356         * lib/strftime.c (my_strftime_localtime_r): Include this function
89357         definition in the `#if ! HAVE_TM_GMTOFF' block.
89358
89359         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
89360         Include xalloc.h instead.
89361
89362 2001-12-02  Jim Meyering  <meyering@lucent.com>
89363
89364         * lib/tempname.c: Don't declare getenv, thus reverting the change of
89365         2001-11-18.  It's no longer necessary, now that stdlib.h is always
89366         included.
89367
89368         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
89369         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
89370
89371 2001-11-30  Akim Demaille  <akim@epita.fr>
89372
89373         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
89374         before being defined.
89375
89376 2001-11-27  Paul Eggert  <eggert@twinsun.com>
89377
89378         * lib/quotearg.h (quotearg_n, quotearg_n_style):
89379         First arg is int, not unsigned.
89380         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
89381         (SIZE_MAX, UINT_MAX): New macros.
89382         (quotearg_n_options): Abort if N is negative.
89383         Avoid overflow check on hosts where size_t is 64 bits and int
89384         is 32 bits, as overflow is impossible there.
89385         Fix off-by-one typo that caused unnecessary reallocation.
89386
89387 2001-11-27  Jim Meyering  <meyering@lucent.com>
89388
89389         * lib/tempname.c: Merge with version from libc.
89390         * lib/regex.c: Likewise.
89391
89392         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
89393         systems for which STDC_HEADERS is 0, it was not included, resulting in
89394         a warning about an integer-to-pointer conversion problem with getenv.
89395         Reported by Volker Borchert.
89396
89397 2001-11-26  Jim Meyering  <meyering@lucent.com>
89398
89399         * lib/gtod.h: Remove file.
89400         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
89401         * lib/gettimeofday.c: Don't include gtod.h.
89402         (GTOD_init): Remove function.
89403         (rpl_gettimeofday): Do its job here instead, rather than aborting.
89404         Suggestion from Volker Borchert.
89405
89406 2001-11-23  Jim Meyering  <meyering@lucent.com>
89407
89408         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
89409         it.
89410         * lib/hash.c (struct hash_table): Define it here instead.
89411
89412 2001-11-22  Jim Meyering  <meyering@lucent.com>
89413
89414         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
89415
89416 2001-11-20  Jim Meyering  <meyering@lucent.com>
89417
89418         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
89419         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
89420
89421 2001-11-19  Jim Meyering  <meyering@lucent.com>
89422
89423         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
89424         directory.  Use "conftestXXXXXX" as the template.
89425         Suggestion from Paul Eggert.
89426
89427         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
89428         immediately, so the test doesn't mistakenly hit the max-open-files
89429         limit.
89430
89431 2001-11-18  Paul Eggert  <eggert@twinsun.com>
89432
89433         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
89434         (TEMPORARIES): New macro.
89435         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
89436         removes an artificial limitation (e.g. HP-UX 10.20, where
89437         TMP_MAX is 17576).
89438
89439 2001-11-18  Jim Meyering  <meyering@lucent.com>
89440
89441         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
89442
89443 2001-11-18  Jim Meyering  <meyering@lucent.com>
89444
89445         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
89446         on SunOS 4.
89447
89448         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
89449         files will be created before anything else.
89450
89451 2001-11-17  Paul Eggert  <eggert@twinsun.com>
89452
89453         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
89454         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
89455
89456 2001-11-17  Jim Meyering  <meyering@lucent.com>
89457
89458         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
89459         Prompted by a report from Bob Proulx.
89460
89461         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
89462         Instead, require UTILS_FUNC_MKSTEMP.
89463
89464 2001-11-17  Jim Meyering  <meyering@lucent.com>
89465
89466         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
89467         Now, that's done as part of AC_FUNC_STRTOD.
89468
89469 2001-11-17  Jim Meyering  <meyering@lucent.com>
89470
89471         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
89472         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
89473         rather than group writable.  Patch by Juan F. Codagnone.
89474
89475         * lib/readtokens.c: Remove explicit declarations of xmalloc and
89476         xrealloc, Instead, include "xalloc.h".
89477
89478         * lib/mountlist.c: Include unlocked-io.h after all system headers.
89479         Remove explicit declarations of xmalloc, xrealloc,
89480         and xstrdup.  Instead, include "xalloc.h".
89481
89482         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
89483         unlocked-io.h.
89484         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
89485         Likewise.
89486         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
89487
89488         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
89489         Reported by Padraig Brady.
89490
89491         * lib/mkstemp.c: #undef mkstemp.
89492         Include config.h.
89493         (rpl_mkstemp): Rename from mkstemp.
89494         Protoize.
89495
89496 2001-11-16  Jim Meyering  <meyering@lucent.com>
89497
89498         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
89499         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
89500         determine the amount of total physical memory, use pstat_getstatic.
89501         HPUX-11 doesn't define _SC_PHYS_PAGES.
89502         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
89503         If sysconf couldn't be used to determine the amount of available
89504         physical memory, use both pstat_getstatic and pstat_getdynamic.
89505         Based on a patch from Bob Proulx.
89506
89507 2001-11-10  Jim Meyering  <meyering@lucent.com>
89508
89509         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
89510         (jm_PREREQ): Use it.
89511
89512 2001-11-09  Jim Meyering  <meyering@lucent.com>
89513
89514         * m4/jm-macros.m4: Require autoconf-2.52f.
89515         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
89516         Use these AC_-prefixed names, not the AM_-prefixed ones.
89517
89518         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
89519
89520 2001-11-05  Jim Meyering  <meyering@lucent.com>
89521
89522         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
89523
89524 2001-11-04  Jim Meyering  <meyering@lucent.com>
89525
89526         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
89527         $DEFS.
89528
89529 2001-11-03  Jim Meyering  <meyering@lucent.com>
89530
89531         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
89532         of AC_DEFUN.
89533
89534         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
89535         know the name of the variable in the macro definition.
89536
89537 2001-11-03  Jim Meyering  <meyering@lucent.com>
89538
89539         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
89540         in argmatch_to_argument call.
89541
89542         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
89543         argument.
89544
89545         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
89546         e.g., a fault due to an attempt to free a NULL pointer.
89547
89548 2001-11-01  Jim Meyering  <meyering@lucent.com>
89549
89550         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
89551         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
89552
89553 2001-11-01  Jim Meyering  <meyering@lucent.com>
89554
89555         * lib/dirfd.c, lib/dirfd.h: New files.
89556         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
89557
89558         * lib/hash.c (hash_print) [TESTING]: Clean up.
89559
89560 2001-10-22  Paul Eggert  <eggert@twinsun.com>
89561
89562         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
89563         to avoid a warning if -Wall.
89564
89565 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
89566
89567         * README: New file
89568         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
89569         (per RMS's instructions, this is now the canonical source)
89570         * lgpl/, gpl/: New directories.
89571
89572 2001-10-21  Paul Eggert  <eggert@twinsun.com>
89573
89574         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
89575
89576 2001-10-21  Jim Meyering  <meyering@lucent.com>
89577
89578         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
89579         this code would end up calling gettext even in packages built
89580         with --disable-nls.
89581         * lib/getopt.c (_): Likewise.
89582         * lib/regex.c (_): Likewise.
89583
89584 2001-10-20  Paul Eggert  <eggert@twinsun.com>
89585
89586         * m4/error.m4 (jm_PREREQ_ERROR):
89587         Do not invoke AC_CHECK_FUNCS with strerror_r, as
89588         AC_FUNC_STRERROR_R does that.
89589         Check for strerror declaration.
89590
89591         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
89592         are supposed to have them these days.
89593         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
89594         Merge changes from latest Autoconf CVS.
89595         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
89596         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
89597         POSIX decided to standardize on the int flavor of strerror_r.
89598
89599 2001-10-20  Paul Eggert  <eggert@twinsun.com>
89600
89601         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
89602         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
89603         Use strerror_r that is only a macro, even if it is not a function.
89604         (strerror): Check for HAVE_DECL_STRERROR before declaring.
89605         (private_strerror): Use prototypes, not old-style function definition.
89606         (print_errno_message): New function.
89607         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
89608         char*-flavored one.
89609         (error_tail, error, error_at_line): Use it.
89610
89611 2001-10-11  Jim Meyering  <meyering@lucent.com>
89612
89613         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
89614         and quote_n (1, ... to avoid clobbering a buffer.
89615
89616 2001-10-05  Jim Meyering  <meyering@lucent.com>
89617
89618         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
89619         hash-pjw.h.
89620         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
89621         * lib/hash-pjw.h: New file.
89622
89623 2001-09-30  Jim Meyering  <meyering@lucent.com>
89624
89625         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
89626         `struct fsstat' has the `f_fstypename' member.
89627         Use that to define FS_TYPE, which is now used to make
89628         the getfsstat link test tighter.
89629
89630 2001-09-30  Jim Meyering  <meyering@lucent.com>
89631
89632         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
89633         Include <sys/ucred.h>, for Apple Darwin.
89634         Include sys/mount.h and sys/fs_types.h only if available.
89635         (FS_TYPE): Define.
89636         (read_filesystem_list): Use FS_TYPE.
89637
89638 2001-09-29  Paul Eggert  <eggert@twinsun.com>
89639
89640         * lib/exclude.c (excluded_filename): 0 -> false, since it's
89641         a boolean context.
89642
89643 2001-09-29  Jim Meyering  <meyering@lucent.com>
89644
89645         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
89646         [one-argument getmntent function]): Include stdio.h before mntent.h.
89647         SunOS 4.1.x needs it for the declaration of `FILE'.
89648         Patch by Volker Borchert.
89649
89650         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
89651         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
89652         sys/fs_types.h, and make the link-test for getfsstat guard #include
89653         directives with appropriate #if HAVE_*_H tests so that we can
89654         detect getfsstat on Apple Darwin1.3.7 systems.
89655         Reported by Nelson Beebe.
89656         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
89657
89658 2001-09-28  Paul Eggert  <eggert@twinsun.com>
89659
89660         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
89661         #defines strtoimax.  Also treat the other strto* functions
89662         like strtoimax.
89663
89664         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
89665         Check for strtoul and strtoumax,
89666         as those declarations are made even in the signed case.
89667         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
89668         Likewise, for strtol and strtoimax.
89669
89670 2001-09-28  Paul Eggert  <eggert@twinsun.com>
89671
89672         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
89673         #defines strtoimax.  Also treat the other strto* functions
89674         like strtoimax.
89675
89676         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
89677         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
89678         (strtoimax, strtoumax): Do not declare if already defined as a macro.
89679
89680 2001-09-26  Jim Meyering  <meyering@lucent.com>
89681
89682         Most macros in unlocked-io.h had the wrong number of arguments.
89683         * lib/gen-uio: New script.
89684         (USE_UNLOCKED_IO): Define to 1 if not already defined.
89685         * lib/unlocked-io.hin: Remove file.
89686         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
89687         rather than trying to embed it here.
89688         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
89689         Reported by Padraig Brady.
89690
89691 2001-09-25  Volker Borchert  <bt@teknon.de>
89692
89693         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
89694         `result'.
89695
89696 2001-09-24  Jim Meyering  <meyering@lucent.com>
89697
89698         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
89699
89700 2001-09-23  Jim Meyering  <meyering@lucent.com>
89701
89702         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
89703         instead of the mere test for existence of mntent.h.  The latter
89704         would get a false-positive on AIX 3.4 systems.
89705         In the outer getmntent if-block, don't die if neither of the getmntent
89706         tests succeeds.  Instead, just fall through and continue with the
89707         remaining tests.
89708
89709 2001-09-23  Jim Meyering  <meyering@lucent.com>
89710
89711         * lib/mountlist.c: Remove useless parentheses in #if directives.
89712         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
89713         the deprecated MOUNTED symbol is no longer defined in mntent.h.
89714
89715 2001-09-22  Jim Meyering  <meyering@lucent.com>
89716
89717         * m4/gettext.m4: New file.  From gettext.
89718         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
89719         * m4/progtest.m4: Likewise
89720         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
89721         * m4/glibc21.m4: Likewise.
89722
89723         * m4/libintl.m4: Remove.  No longer used.
89724
89725 2001-09-22  Jim Meyering  <meyering@lucent.com>
89726
89727         * lib/localcharset.c: Update from latest gettext.
89728         * lib/config.charset: Likewise.
89729
89730 2001-09-20  Jim Meyering  <meyering@lucent.com>
89731
89732         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
89733         strtoimax.
89734         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
89735         strtoumax.
89736
89737 2001-09-20  Jim Meyering  <meyering@lucent.com>
89738
89739         * lib/xstrtol.c (strtoimax): Guard declaration with
89740         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
89741         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
89742         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
89743         (strtoumax): Likewise, for completeness (it wasn't necessary).
89744
89745 2001-09-17  Paul Eggert  <eggert@twinsun.com>
89746
89747         * lib/strtoimax.c (HAVE_LONG_LONG):
89748         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
89749         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
89750         to work around bug in IBM C compiler.
89751
89752 2001-09-17  Jim Meyering  <meyering@lucent.com>
89753
89754         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
89755         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
89756         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
89757         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
89758         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
89759         whenever the right hand side need not be expanded by the shell.
89760
89761 2001-09-16  Paul Eggert  <eggert@twinsun.com>
89762
89763         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
89764         library.  It's not correct, as some older glibcs are buggy.
89765         fnmatch wasn't fixed until glibc 2.2.
89766
89767         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
89768         special shell magic here.
89769
89770 2001-09-16  Jim Meyering  <meyering@lucent.com>
89771
89772         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
89773         * m4/jm-macros.m4: Require it.
89774
89775 2001-09-16  Jim Meyering  <meyering@lucent.com>
89776
89777         * lib/mkdir.c: New file.
89778
89779 2001-09-15  Jim Meyering  <meyering@lucent.com>
89780
89781         * m4/jm-macros.m4: Check for help2man.
89782
89783 2001-09-11  Jim Meyering  <meyering@lucent.com>
89784
89785         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
89786         The body, by Paul Eggert, was moved here from configure.in.
89787         * m4/jm-macros.m4: Require UTILS_HOST_OS.
89788
89789 2001-09-04  Paul Eggert  <eggert@twinsun.com>
89790
89791         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
89792         (jm_PREREQ): Use it.
89793
89794 2001-09-04  Paul Eggert  <eggert@twinsun.com>
89795
89796         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
89797         Use ssize_t, not int, to store result of readlink.
89798         Check for ssize_t overflow as well as size_t overflow,
89799         as POSIX says the result of readlink is implementation-defined
89800         when ssize_t overflows.
89801         Remove unnecessary cast to char*.
89802         Use free+malloc instead of realloc, as the storage doesn't need
89803         to be preserved and it's clearer and can be more efficient that way.
89804         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
89805         * lib/xreadlink.h (xreadlink): Update prototype.
89806
89807 2001-09-04  Paul Eggert  <eggert@twinsun.com>
89808
89809         * lib/xgetcwd.c: Revert some of the previous change; intead,
89810         fix the HAVE_GETCWD_NULL code to behave more like the
89811         !HAVE_GETCWD_NULL code used to.
89812
89813         Include "xalloc.h".
89814         (xgetcwd): Do not return NULL when memory is exhausted; instead,
89815         invoke xalloc_die.
89816
89817 2001-09-03  Paul Eggert  <eggert@twinsun.com>
89818
89819         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
89820         sys/param.h, as pathmax.h includes them.
89821
89822 2001-09-03  Paul Eggert  <eggert@twinsun.com>
89823
89824         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
89825         (jm_PREREQ_XGETCWD): New macro.
89826
89827         * m4/getcwd.m4: New file.
89828
89829 2001-09-03  Paul Eggert  <eggert@twinsun.com>
89830
89831         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
89832         like the HAVE_GETCWD_NULL code.
89833         Include pathmax.h if not HAVE_GETCWD.
89834         Do not include xalloc.h.
89835         (INITIAL_BUFFER_SIZE): New symbol.
89836         Do not use xmalloc / xrealloc, since the caller is responsible for
89837         handling errors.  Preserve errno around `free' during failure.
89838         Do not overrun buffer when using getwd.
89839
89840 2001-09-03  Paul Eggert  <eggert@twinsun.com>
89841
89842         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
89843         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
89844         getcwd (NULL, 0).
89845
89846 2001-09-03  Paul Eggert  <eggert@twinsun.com>
89847
89848         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
89849         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
89850         spotted by Jim Meyering.
89851
89852 2001-09-03  Jim Meyering  <meyering@lucent.com>
89853
89854         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
89855         failure.
89856
89857 2001-09-02  Jim Meyering  <meyering@lucent.com>
89858
89859         * lib/error.c: Update from GNU libc.
89860
89861 2001-09-01  Jim Meyering  <meyering@lucent.com>
89862
89863         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
89864         Used by df.
89865
89866 2001-09-01  Jim Meyering  <meyering@lucent.com>
89867
89868         * lib/xreadlink.c: New file.
89869         * lib/xreadlink.h: New file.
89870         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
89871         xreadlink.h.
89872
89873         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
89874         doesn't conflict with sparc Solaris 7's definition in
89875         /usr/include/sys/int_types.h.
89876
89877         * lib/exclude.c: Use `""', not `<>' to #include non-system header
89878         files.
89879         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
89880         and strncasecmp as r-values.  Unixware didn't have declarations.
89881
89882 2001-08-31  Paul Eggert  <eggert@twinsun.com>
89883
89884         * lib/xstrtol.h: Add copyright notice.
89885         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
89886         LONGINT_INVALID_SUFFIX_CHAR.
89887
89888 2001-08-31  Paul Eggert  <eggert@twinsun.com>
89889
89890         * lib/xstrtol.c (strtoimax): New decl.
89891
89892 2001-08-31  Paul Eggert  <eggert@twinsun.com>
89893
89894         * lib/xgetcwd.c: Don't include pathmax.h.
89895         Include stdlib.h and unistd.h if available.
89896         Include xalloc.h.
89897         (xmalloc, xstrdup, free): Remove decls.
89898         (xgetcwd): Don't assume sizes fit in unsigned.
89899         Check for overflow when computing sizes.
89900         Simplify reallocation code.
89901
89902 2001-08-31  Paul Eggert  <eggert@twinsun.com>
89903
89904         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
89905         a directory's st_size can have an arbitrary value, so the old
89906         usage could waste an arbitrary amount of memory.  All uses
89907         changed.
89908         * lib/savedir.h: Update prototype.
89909
89910 2001-08-31  Paul Eggert  <eggert@twinsun.com>
89911
89912         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
89913
89914         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
89915         old strtoimax.c.
89916
89917         Also, make the following further changes to make this file's
89918         configuration more similar to that of strtol.c:
89919         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
89920         (strtoumax, uintmax_t, strtoull, strtol): Remove.
89921         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
89922         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
89923         changed to signed values.
89924
89925         And make the following changes as well:
89926         Fix copyright notice, as 1999 was missing.
89927         (verify): New macro.
89928         (strtoimax): Check sizes at compile-time, not run-time.
89929         Prefer strtol to strtoll if both work.
89930         (main): Remove; it was not that useful and was a pain to maintain.
89931
89932         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
89933
89934 2001-08-31  Jim Meyering  <meyering@lucent.com>
89935
89936         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
89937         Use an initial, malloc'd, buffer of length 128 rather than
89938         a statically allocated one of length 1024.
89939
89940 2001-08-30  Paul Eggert  <eggert@twinsun.com>
89941
89942         Simplify code, partly by assuming autoconf 2.52 semantics.
89943
89944         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
89945
89946         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
89947         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
89948         All uses removed.
89949         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
89950         Move AC_REQUIRE to next-to-top level, to avoid confusion.
89951         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
89952         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
89953         jm_AC_HEADER_INTTYPES_H.
89954         * m4/jm-macros.m4 (jm_MACROS): Likewise.
89955
89956         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
89957
89958         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
89959         Quote first arg of AC_DEFUN.
89960         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
89961         since they are needed to parse the include file even if we need
89962         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
89963         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
89964         but with opposite signedness.
89965
89966 2001-08-30  Paul Eggert  <eggert@twinsun.com>
89967
89968         Merge 'exclude' changes from tar 1.13.22.
89969         This fixes one or two unlikely storage allocation overflow bugs,
89970         but doesn't change user-visible behavior otherwise.
89971
89972 2001-08-30  Paul Eggert  <eggert@twinsun.com>
89973
89974         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
89975         (jm_PREREQ_EXCLUDE): New macro.
89976
89977 2001-08-30  Paul Eggert  <eggert@twinsun.com>
89978
89979         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
89980         tm to be declared.
89981
89982 2001-08-30  Paul Eggert  <eggert@twinsun.com>
89983
89984         * lib/hash.c: Remove '2001' from copyright notice.
89985
89986 2001-08-30  Paul Eggert  <eggert@twinsun.com>
89987
89988         * lib/full-write.h: New file.
89989         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
89990         * lib/full-write.c: Correct credits, as cccp.c no longer
89991         exists and anyway it was so heavily changed from the old cccp
89992         code as to be unrecognizable.  Include full-write.h.
89993         (full_write): Return size_t, with short writes meaning failure.
89994         All callers changed.  This fixes a bug with large buffers
89995         on 64-bit hosts.
89996         * lib/utime.c: Include full-write.h.
89997
89998 2001-08-30  Paul Eggert  <eggert@twinsun.com>
89999
90000         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
90001         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
90002         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
90003         Include if available.
90004         (<xalloc.h>): Include
90005         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
90006         (verify): New macro.  Use it to verify that EXCLUDE macros do not
90007         collide with FNM macros.
90008         (struct patopts): New struct.
90009         (struct exclude): Use it, as exclude patterns now come with options.
90010         (new_exclude): Support above changes.
90011         (new_exclude, add_exclude_file):
90012         Initial size must now be a power of two to simplify overflow checking.
90013         (free_exclude, fnmatch_no_wildcards): New function.
90014         (excluded_filename): No longer requires options arg, as the options
90015         are determined by add_exclude.  Now returns bool, not int.
90016         (excluded_filename, add_exclude):
90017         Add support for the fancy new exclusion options.
90018         (add_exclude, add_exclude_file): Now takes int options arg.
90019         Check for arithmetic overflow when computing sizes.
90020         (add_exclude_file): xrealloc might modify errno, so don't
90021         realloc until after errno might be used.
90022
90023         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
90024         New macros.
90025         (free_exclude): New decl.
90026         (add_exclude, add_exclude_file): Now takes int options arg.
90027         (excluded_filename): No longer requires options arg, as the options
90028         are determined by add_exclude.  Now returns bool, not int.
90029
90030 2001-08-30  Paul Eggert  <eggert@twinsun.com>
90031
90032         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
90033
90034 2001-08-27  Jim Meyering  <meyering@lucent.com>
90035
90036         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
90037
90038         * lib/version-etc.c (N_): Remove definition.
90039         Revert most of last change.
90040         Instead, simply don't mark the `Copyright...' string for translation.
90041         Based on advice from Paul Eggert.
90042
90043         * lib/strtoxmax.c: Tweak comment.
90044
90045 2001-08-26  Jim Meyering  <meyering@lucent.com>
90046
90047         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
90048
90049         * m4/xstrtoimax.m4: New file.
90050         * m4/xstrtoumax.m4: Add comments explaining why we
90051         AC_REPLACE_FUNCS(strtol).
90052
90053 2001-08-26  Jim Meyering  <meyering@lucent.com>
90054
90055         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
90056         of copyright with `%s' so translators don't get an untranslated
90057         message in 2002.
90058         (COPYRIGHT_YEAR): Define.
90059         (version_etc): Use fprintf rather than fputs.
90060         Suggestion from Ulrich Drepper.
90061
90062         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
90063
90064         * lib/strtoll.c: New file, from GNU libc.
90065         * lib/xstrtoimax.c: New file.
90066
90067         * lib/xstrtol.h: Add xstrtoimax.
90068         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
90069         * lib/strtoimax.c: New file.  Likewise, but first define
90070         STRTOUXMAX_SIGNED.
90071
90072         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
90073         ...
90074         * lib/strtoxmax.c: ... then renamed to this.
90075
90076 2001-08-18  Paul Eggert  <eggert@twinsun.com>
90077
90078         * m4/inttypes.m4: Add AC_PREREQ(2.13).
90079         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
90080         (jm_AC_TYPE_INTMAX_T): New macro.
90081         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
90082
90083         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
90084
90085         * m4/longlong.m4: Renamed from ulonglong.m4.
90086         * m4/inttypes.m4: Renamed from inttypes_h.m4.
90087         * m4/uintmax_t.m4: Removed.
90088
90089 2001-08-13  Paul Eggert  <eggert@twinsun.com>
90090
90091         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
90092         Port to Solaris 8, where 'sed' requires a space after the 'r'
90093         command, and where sh dislikes "$/".  Clean up the spacing a bit.
90094         Redirect output to $tmp just once.
90095
90096 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
90097
90098         * lib/addext.c (<errno.h>): Include.
90099         (errno): Declare if not defined.
90100         (addext): Work correctly when pathconf returns -1 and leaves
90101         errno alone because there is no limit.  Also, work even if
90102         pathconf returns a value greater than SIZE_MAX.
90103
90104 2001-08-12  Jim Meyering  <meyering@lucent.com>
90105
90106         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
90107         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
90108         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
90109         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
90110         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
90111         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
90112         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
90113         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
90114         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
90115         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
90116         utime.m4, utimes.m4, xstrtoumax.m4:
90117         Quote the first argument in each use of AC_DEFUN.
90118
90119 2001-08-12  Jim Meyering  <meyering@lucent.com>
90120
90121         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
90122         Simply `return getcwd (NULL, 0);'.
90123         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
90124         Use 1300 as initial value for length, not PATH_MAX.
90125
90126         * lib/pathmax.h: Clean up cpp syntax.
90127
90128 2001-08-12  Jim Meyering  <meyering@lucent.com>
90129
90130         * lib/gettimeofday.c: New file.
90131         * lib/gtod.h: New file.
90132         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
90133
90134 2001-08-05  Jim Meyering  <meyering@lucent.com>
90135
90136         * m4/jm-macros.m4: Require autoconf-2.52.
90137
90138 2001-08-04  Jim Meyering  <meyering@lucent.com>
90139
90140         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
90141         stmt, to get in sync with glibc.
90142
90143 2001-08-03  Paul Eggert  <eggert@twinsun.com>
90144
90145         The following changes are from gettext 0.10.39 as maintained by
90146         Bruno Haible.
90147
90148         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
90149         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
90150         with inverted sense.  All uses changed.
90151
90152         * lib/mbswidth.c: Don't include <limits.h>.
90153         Include <stdlib.h> and <string.h> unconditionally.
90154         (iswcntrl, mbsinit, ISCNTRL): New macros.
90155         (mbsnwidth): Use K&R style function declarations.
90156         Don't bother checking for MB_LEN_MAX == 1, since the compiler
90157         can optimize it when MB_CUR_MAX == 1.
90158         The width of control characters is zero, not 1.
90159
90160 2001-08-03  Paul Eggert  <eggert@twinsun.com>
90161
90162         The following changes are from gettext 0.10.39 as maintained by
90163         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
90164
90165         * m4/codeset.m4: Upgrade to serial AM1.
90166         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
90167         all uses changed.  Quote first arg of AC_DEFUN.
90168         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
90169
90170         * m4/iconv.m4: Upgrade to serial AM2.
90171         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
90172         Add --with-libconv-prefix.
90173         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
90174         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
90175         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
90176         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
90177         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
90178
90179         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
90180         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
90181         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
90182         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
90183         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
90184         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
90185         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
90186         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
90187         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
90188
90189         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
90190         string.h any more.
90191
90192         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
90193         not the default value.
90194
90195         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
90196         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
90197         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
90198         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
90199         Also check for iswcntrl, used for wcwidth fallback.
90200         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
90201         to Autoconf 2.13.
90202
90203 2001-08-03  Jim Meyering  <meyering@lucent.com>
90204
90205         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
90206         as it was in the original.  Reported by Paul Eggert.
90207
90208 2001-07-16  Jim Meyering  <meyering@lucent.com>
90209
90210         * m4/gettimeofday.m4: New file.
90211         Prompted by a report from Bernhard Baehr.
90212
90213 2001-07-15  Jim Meyering  <meyering@lucent.com>
90214
90215         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
90216         stuff. Now it's in ../Makefile.cfg.
90217
90218 2001-07-15  Jim Meyering  <meyering@lucent.com>
90219
90220         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
90221         (BUILT_SOURCES): Add unlocked-io.h.
90222         (io_functions): Define.
90223         (unlocked-io.h): New rule.
90224         (DISTCLEANFILES): Add unlocked-io.h.
90225         (all-local): Depend on unlocked-io.h, to ensure it is created.
90226
90227         * lib/unlocked-io.hin: New file
90228
90229         * lib/regex.c: Update from glibc.
90230
90231 2001-07-05  Jim Meyering  <meyering@lucent.com>
90232
90233         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
90234         recommendation.
90235         (libfetish_a_SOURCES): Put all .h files here instead.
90236         Remove a thus-exposed (better checks in automake) duplicate and
90237         two unnecessary .h files.
90238
90239 2001-07-04  Jim Meyering  <meyering@lucent.com>
90240
90241         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
90242         that generates jm-glibc-io.m4 so that it doesn't trigger any make
90243         distcheck failure.
90244
90245 2001-07-02  Jim Meyering  <meyering@lucent.com>
90246
90247         The following changes were prompted by suggestions from Bruno Haible.
90248
90249         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
90250         is now generated.
90251         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
90252         definition of EXTRA_DIST.
90253         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
90254         ensure that the generated file is created/updated whenever the list
90255         of $(unlocked_functions) is changed.
90256         (jm-glibc-io.m4): New rule.
90257         (unlocked-io.h): New rule -- currently unused.
90258
90259 2001-06-24  Jim Meyering  <meyering@lucent.com>
90260
90261         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
90262         unmatched right bracket, rather than kludging it with an extra,
90263         falsely-matching quote in a comment.  Patch by Akim Demaille.
90264
90265 2001-06-11  Jim Meyering  <meyering@lucent.com>
90266
90267         * lib/regex.c: Update from GNU libc.
90268
90269 2001-05-27  Jim Meyering  <meyering@lucent.com>
90270
90271         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
90272         Check for ut_type in struct utmp.
90273
90274 2001-05-27  Jim Meyering  <meyering@lucent.com>
90275
90276         * lib/readutmp.h (UT_TYPE): Define.
90277
90278 2001-05-24  Jim Meyering  <meyering@lucent.com>
90279
90280         * lib/argmatch.c: Include "quote.h".
90281         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
90282         quote function.  Reported by Göran Uddeborg.
90283
90284 2001-05-22  Jim Meyering  <meyering@lucent.com>
90285
90286         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
90287         now that we use the package-supplied version unconditionally.
90288         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
90289
90290 2001-05-21  Jim Meyering  <meyering@lucent.com>
90291
90292         * m4/regex.m4: Change a couple backticks to single quotes to avoid
90293         shell syntax errors.
90294
90295 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
90296
90297         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
90298
90299 2001-05-20  Paul Eggert  <eggert@twinsun.com>
90300
90301         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
90302         Don't bother to check library strftime, since
90303         we'll be using our own my_strftime function anyway.
90304         Define my_strftime instead of strftime.
90305
90306 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
90307
90308         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
90309         which is not yet declared.
90310
90311 2001-05-15  Jim Meyering  <meyering@lucent.com>
90312
90313         * m4/regex.m4: Use proper quoting so brackets appear in the test
90314         program.
90315         Reported by, and with help from, Bruno Haible.
90316
90317 2001-05-13  Jim Meyering  <meyering@lucent.com>
90318
90319         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
90320         undefined.
90321
90322 2001-05-11  Paul Eggert  <eggert@twinsun.com>
90323
90324         dirname code cleanup.  base_name now behaves more compatibly
90325         with POSIX basename when given file names that have trailing
90326         slashes, and similarly for dir_name.  Add new primitives
90327         base_len and dir_len.  Put the directory-name-related decls
90328         into dirname.h.
90329
90330         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
90331         * lib/backupfile.c (base_name): Likewise.
90332         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
90333         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
90334         * lib/makepath.c (strip_trailing_slashes): Likewise.
90335         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
90336         ISSLASH): Likewise.
90337         * lib/rename.c (strip_trailing_slashes): Likewise.
90338         * lib/same.c (base_name): Likewise.
90339         * lib/stripslash.c (ISSLASH): Likewise.
90340
90341         * lib/addext.c: Include <dirname.h> after size_t is defined.
90342         * lib/backupfile.c: Likewise.
90343
90344         * lib/addext.c (addext): Use base_len to trim redundant
90345         trailing slashes instead of doing it ourselves.
90346         But do not trim the last slash if it is not redundant.
90347
90348         * lib/backupfile.c (find_backup_file_name,
90349         max_backup_version): Use base_len instead of rolling it ourselves.
90350         Handle the case of "" and (on DOS) "C:" correctly.
90351
90352         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
90353         needed. Include <string.h>, <dirname.h>.
90354         (base_name): Allow file names ending in slashes, other than names
90355         that are all slashes.  In this case, return the basename followed
90356         by the slashes.  This is more general, and can be used in places
90357         where the original base_name purposely had an assertion failure.
90358         (base_len): New function.
90359
90360         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
90361         Do not include <assert.h>; no longer needed.
90362         Include xalloc.h.
90363         (memrchr): Remove decl.
90364         (dir_name_r): Remove.
90365         (dir_len): Renamed from dirlen.  All callers changed.
90366         Rewrite in terms of base_name, for simplicity and consistency.
90367         (dir_name): Never return NULL.  All callers changed.
90368         Do not include <stdlib.h> in test program; no longer needed.
90369         return 0; is fine for test program.
90370
90371         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
90372         New macros.
90373         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
90374
90375         * lib/path-concat.c (path_concat): Use base_len to compute
90376         base length, not strlen; this means we cannot rely on memcpy
90377         to null-terminate.
90378
90379         * lib/same.c (STREQ): Remove.
90380         (same_name): Handle the case where the basename ends in trailing '/'.
90381
90382         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
90383         a slash was stripped.  Do not strip the last slash after a
90384         file system prefix.
90385
90386 2001-05-11  Paul Eggert  <eggert@twinsun.com>
90387
90388         * lib/Makefile.am (libfetish_a_SOURCES):
90389         Add strftime.c, since we now compile it on all hosts.
90390
90391         * lib/strftime.c (my_strftime):
90392         Define to nstrftime if emacs, but only if my_strftime is not defined.
90393         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
90394         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
90395         Add one more extra argument: a nanoseconds value.
90396         All uses changed.
90397         (ns): New macro.
90398         (my_strftime function): Add %N format.
90399         (emacs_strftimeu): Renamed from emacs_strftime,
90400         with extra ut argument.
90401
90402 2001-05-09  Paul Eggert  <eggert@twinsun.com>
90403
90404         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
90405
90406 2001-04-21  Jim Meyering  <meyering@lucent.com>
90407
90408         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
90409         doesn't interfere.
90410
90411 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
90412
90413         * m4/ftruncate.m4: Check for chsize.
90414         Link with ftruncate.o unconditionally if ftruncate is missing.
90415         This was required when cross-compiling to i586-mingw32msvc.
90416
90417 2001-04-08  Jim Meyering  <meyering@lucent.com>
90418
90419         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
90420         recomputed; that's necessary when the offset spans a DST transition.
90421         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
90422
90423 2001-04-02  Jim Meyering  <meyering@lucent.com>
90424
90425         * lib/regex.h, regex.c: Update from GNU libc.
90426
90427 2001-03-24  Jim Meyering  <meyering@lucent.com>
90428
90429         * m4/jm-macros.m4: Require autoconf-2.49d.
90430
90431 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
90432
90433         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
90434
90435 2001-03-19  Paul Eggert  <eggert@twinsun.com>
90436
90437         * lib/version-etc.c (version_etc_copyright): Update to 2001.
90438
90439 2001-03-17  Jim Meyering  <meyering@lucent.com>
90440
90441         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
90442         now that the version in autoconf is equivalent.
90443         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
90444
90445         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
90446         Suggestion from Akim Demaille.
90447
90448         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
90449         (jm_PREREQ_TEMPNAME): New function.
90450
90451 2001-03-16  Paul Eggert  <eggert@twinsun.com>
90452
90453         * lib/tempname.c (uint64_t): Define to uintmax_t if
90454         not defined, and if UINT64_MAX is not defined.
90455         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
90456         Reported by John David Anglin.
90457
90458 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
90459
90460         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
90461         resolve alias if codeset is empty.
90462         * lib/config.charset (BeOS): Use wildcard syntax.
90463
90464 2001-03-13  Jim Meyering  <meyering@lucent.com>
90465
90466         * lib/path-concat.c (path_concat)
90467         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
90468         concatenating e.g., `C:' and `foo'.
90469         From Bruno Haible.
90470
90471 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
90472
90473         * lib/localcharset.c (locale_charset): Don't use
90474         setlocale(LC_CTYPE,NULL). Don't return NULL.
90475         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
90476
90477 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
90478
90479         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
90480         support for DOS/DJGPP.
90481
90482 2001-03-01  Paul Eggert  <eggert@twinsun.com>
90483
90484         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
90485         lacks mkstemp.  Compile our own tempname.c if we compile our own
90486         mkstemp.c, as mkstemp relies on tempname.
90487
90488 2001-03-01  Jim Meyering  <meyering@lucent.com>
90489
90490         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
90491         AH_VERBATIM really does output its argument verbatim.
90492
90493 2001-02-28  Paul Eggert  <eggert@twinsun.com>
90494
90495         * lib/Makefile.am (libfetish_a_SOURCES):
90496         Add dup-safer.c, fopen-safer.c.
90497         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
90498
90499         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
90500         * lib/unistd-safer.h: New files.
90501
90502 2001-02-25  Paul Eggert  <eggert@twinsun.com>
90503
90504         The mkstemp replacement is taken from glibc 2.2.2, with some
90505         portability fixes for use outside glibc, as follows:
90506
90507         * lib/tempname.c (struct_stat64): New macro.
90508         (direxists, __gen_tempname): Use it.
90509         This avoids a portability problem with Solaris 8.
90510
90511         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
90512         (<stddef.h>, <stdint.h>, <string.h>):
90513         Include only if STDC_HEADERS || _LIBC.
90514         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
90515         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
90516         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
90517         (__set_errno): Define this macro if <errno.h> doesn't.
90518         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
90519         Define these macros if <stdio.h> doesn't.
90520         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
90521         Define these macros if <sys/stat.h>
90522         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
90523         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
90524         __xstat64): Define if not _LIBC.
90525         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
90526         (__gen_tempname): Invoke gettimeofday only if
90527         HAVE_GETTIMEOFDAY || _LIBC;
90528         otherwise, fall back on plain "time".
90529         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
90530
90531         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
90532
90533         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
90534
90535 2001-02-18  Paul Eggert  <eggert@twinsun.com>
90536
90537         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
90538
90539 2001-02-17  Paul Eggert  <eggert@twinsun.com>
90540
90541         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
90542         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
90543         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
90544         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
90545
90546 2001-02-17  Paul Eggert  <eggert@twinsun.com>
90547
90548         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
90549         Remove workaround macros for hosts that have mbrtowc but not
90550         mbstate_t, as we now insist on proper declarations for both
90551         before using mbrtowc.
90552
90553 2001-02-17  Jim Meyering  <meyering@lucent.com>
90554
90555         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
90556         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
90557         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
90558         UnixWare 7.1.1.
90559
90560         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
90561         rather than AC_CACHE_VAL.
90562
90563 2001-02-17  Jim Meyering  <meyering@lucent.com>
90564
90565         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
90566         around included file name.
90567
90568         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
90569
90570         * lib/strftime.c: Update from GNU libc (the only changes were to
90571         comments).
90572
90573 2001-02-17  Jim Meyering  <meyering@lucent.com>
90574
90575         * lib/regex.c: Update from libc.
90576
90577 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
90578
90579         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
90580         clash.
90581
90582 2001-02-16  Paul Eggert  <eggert@twinsun.com>
90583
90584         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
90585         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
90586         Reported by Mark Hounschell via Paul Eggert.
90587
90588 2001-02-07  Jim Meyering  <meyering@lucent.com>
90589
90590         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
90591
90592 2001-02-05  Jim Meyering  <meyering@lucent.com>
90593
90594         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
90595         it includes the patch required for `large file' support with at least
90596         HP-UX's 10.20 /bin/cc.
90597
90598 2001-02-03  Jim Meyering  <meyering@lucent.com>
90599
90600         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
90601         AS_IF, now that it works once again (mysteriously).
90602         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
90603
90604 2001-01-30  Jim Meyering  <meyering@lucent.com>
90605
90606         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
90607         * m4/chown.m4: Rename conftestchown to conftest.chown.
90608         * m4/rename.m4: s/conftestdir/conftest.d1/ and
90609         s/conftestdir2/conftest.d2/.
90610         * m4/utimes.m4: s/conftestdata/conftest.data/
90611         Inspired by Pavel Roskin's change in autoconf.
90612
90613 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
90614
90615         * lib/config.charset: Update for FreeBSD 4.2.
90616
90617 2001-01-27  Jim Meyering  <meyering@lucent.com>
90618
90619         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
90620         a use of AS_IF.
90621         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
90622
90623 2001-01-26  Jim Meyering  <meyering@lucent.com>
90624
90625         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
90626         quotearg.c includes it.
90627
90628 2001-01-26  Jim Meyering  <meyering@lucent.com>
90629
90630         * lib/quotearg.c: Include stddef.h.
90631         * lib/quote.c: Include stddef.h.
90632         Reported by Axel Kittenberger.
90633
90634         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
90635         line in double quotes so that it evokes a better diagnostic.
90636         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
90637         Reported by Axel Kittenberger.
90638
90639 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
90640
90641         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
90642         as if it was a `charset'.
90643
90644 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
90645
90646         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
90647         has const.
90648
90649 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
90650
90651         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
90652         to avoid a warning.  Add back 'const' to inptr.
90653
90654 2001-01-20  Jim Meyering  <meyering@lucent.com>
90655
90656         Be sure that headers are checked before used in code compiled
90657         for the type checks.
90658         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
90659         In place of that, invoke jm_CHECK_ALL_TYPES.
90660         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
90661         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
90662         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
90663         The check for ssize_t was mistakenly run before the test for unistd.h.
90664
90665         The configure-time check for stdbool.h was missing.
90666         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
90667         (jm_PREREQ_HASH): New function.
90668
90669 2001-01-17  Jim Meyering  <meyering@lucent.com>
90670
90671         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
90672         for autoconf-2.49c.
90673         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
90674
90675 2001-01-16  Jim Meyering  <meyering@lucent.com>
90676
90677         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
90678         From Bruno Haible.
90679
90680 2001-01-14  Jim Meyering  <meyering@lucent.com>
90681
90682         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
90683         foo and bar.  Create conftestdir/ in the script, not in the C code.
90684         Remove directories in the script, not in the C code.
90685         Remove conftestdir{,2} before trying to create the directory.
90686         Make the entire configure script fail if the mkdir fails.
90687
90688 2001-01-14  Jim Meyering  <meyering@lucent.com>
90689
90690         * lib/rename.c: New file.  From Volker Borchert.
90691         Include stdlib.h, string.h or strings.h, and xalloc.h.
90692         Use strip_trailing_slashes rather than open-coding it.
90693
90694 2001-01-03  Paul Eggert  <eggert@twinsun.com>
90695
90696         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
90697
90698 2001-01-03  Jim Meyering  <meyering@lucent.com>
90699
90700         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
90701         of local `inptr' to avoid warning with some system declarations of
90702         iconv.
90703
90704 2001-01-02  Volker Borchert  <bt@teknon.de>
90705
90706         * m4/rename.m4: New file.
90707         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
90708
90709 2001-01-01  Jim Meyering  <meyering@lucent.com>
90710
90711         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
90712         even on systems with utmpx.h.  It's necessary for the declaration of
90713         utmp's ut_user member.  Reported by Andreas Jaeger.
90714
90715         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
90716         available. They are required for the declarations of getgrgid and
90717         getpwuid resp.
90718         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
90719         Reported by Andreas Jaeger.
90720
90721 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
90722
90723         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
90724         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
90725         so `make install' also works in VPATH builds.
90726
90727 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
90728
90729         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
90730         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
90731         can be used in subdirectories.
90732
90733 2000-12-29  Paul Eggert  <eggert@twinsun.com>
90734
90735         * lib/modechange.c: Do not assume that mode_t uses the
90736         traditional octal encoding.  E.g. "chmod 1 FOO" should set
90737         the other-execute bit of FOO even if S_IXOTH != 1.
90738
90739         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
90740         WOTH, XOTH, ALLM): New macros.
90741         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
90742          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
90743         Use them.
90744         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
90745         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
90746         (mode_compile):
90747         No need to use uintmax_t; unsigned long is long enough.
90748         Don't bother to get suffix since we don't use it.
90749
90750 2000-12-26  Jim Meyering  <meyering@lucent.com>
90751
90752         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
90753         better with autoheader.
90754
90755 2000-12-24  Jim Meyering  <meyering@lucent.com>
90756
90757         * lib/hash.c (is_prime): Return explicit boolean values.
90758         (hash_get_first): Return NULL to appease Irix5.6's 89.
90759         Reported by Nelson Beebe.
90760
90761 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
90762
90763         * lib/localcharset.c (locale_charset): Add support for Win32.
90764
90765 2000-12-18  Paul Eggert  <eggert@twinsun.com>
90766
90767         * lib/physmem.h, lib/physmem.c: New files.
90768
90769         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
90770         (noinst_HEADERS): Add physmem.h.
90771
90772         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
90773         't' for compatibility with Solaris 8 sort.
90774
90775 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
90776
90777         * lib/config.charset: Add support for BeOS.
90778
90779 2000-12-17  Jim Meyering  <meyering@lucent.com>
90780
90781         * m4/dos.m4 (jm_AC_DOS): New file and macro.
90782         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
90783
90784 2000-12-16  Jim Meyering  <meyering@lucent.com>
90785
90786         This bug had a serious impact on chown: `chown N:M FILE' (for integer
90787         N and M) would have treated it like `chown N:N FILE'.
90788
90789         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
90790
90791 2000-12-16  Jim Meyering  <meyering@lucent.com>
90792
90793         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
90794         SHELLS_FILE to a file name that's useful on djgpp systems.
90795         Include stdlib.h.
90796         (ADDITIONAL_DEFAULT_SHELLS): Define.
90797         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
90798         Based mostly on a patch from Prashant TR.
90799
90800 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
90801
90802         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
90803         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
90804         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
90805
90806 2000-12-08  Andreas Schwab  <schwab@suse.de>
90807
90808         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
90809         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
90810
90811 2000-12-07  Jim Meyering  <meyering@lucent.com>
90812
90813         * lib/stripslash.c (ISSLASH): Define.
90814         (strip_trailing_slashes): Use ISSLASH rather than comparing against
90815         `/'.
90816         From Prashant TR.
90817
90818         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
90819         (dir_name_r): Declare this function as static.
90820         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
90821         manifest itself on a name containing a mix of slashes and
90822         backslashes.
90823         Make this function work with names starting with a DOS-style
90824         drive letter and colon prefix.
90825         (dir_name): Append `.' if necessary.
90826         Based mostly on patches from Prashant TR and Eli Zaretskii.
90827
90828         * lib/dirname.h (dir_name_r): Remove prototype.
90829
90830 2000-12-06  Paul Eggert  <eggert@twinsun.com>
90831
90832         * m4/off_t-format.m4: Remove this file.
90833         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
90834
90835 2000-12-06  Jim Meyering  <meyering@lucent.com>
90836
90837         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
90838         replacement strtoull, we may well need the replacement strtoul, too.
90839         Check for declarations of strtoul and strtoull.
90840         Check for strtol.  Mainly as a cue to cause automake to include
90841         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
90842         Check for limits.h -- strtol.c needs it.
90843
90844 2000-12-05  Jim Meyering  <meyering@lucent.com>
90845
90846         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
90847
90848 2000-12-04  Jim Meyering  <meyering@lucent.com>
90849
90850         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
90851         Also include memory.h, stdlib.h, unistd.h if appropriate.
90852         Reported by Andreas Jaeger (conflicting declaration of malloc).
90853
90854 2000-12-02  Jim Meyering  <meyering@lucent.com>
90855
90856         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
90857         * m4/jm-macros.m4 (jm_MACROS): require it.
90858
90859 2000-12-02  Jim Meyering  <meyering@lucent.com>
90860
90861         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
90862
90863 2000-12-01  Paul Eggert  <eggert@twinsun.com>
90864
90865         * lib/memrchr.c: Include <config.h> before any system include file.
90866
90867 2000-11-30  Jim Meyering  <meyering@lucent.com>
90868
90869         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
90870
90871 2000-11-30  Jim Meyering  <meyering@lucent.com>
90872
90873         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
90874
90875 2000-11-29  Paul Eggert  <eggert@twinsun.com>
90876
90877         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
90878
90879 2000-11-26  Jim Meyering  <meyering@lucent.com>
90880
90881         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
90882
90883 2000-11-22  Paul Eggert  <eggert@twinsun.com>
90884
90885         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
90886         size of (size_t) -1; it's not portable.
90887
90888 2000-11-17  Jim Meyering  <meyering@lucent.com>
90889
90890         * lib/strstr.c: Update from GNU libc.
90891
90892 2000-11-17  Akim Demaille  <akim@epita.fr>
90893
90894         * lib/obstack.h: Formatting changes.
90895         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
90896         prevent type checking.
90897         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
90898         cast the value to (void *): assigning a `foo *' to a `void *'
90899         variable is valid.
90900         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
90901
90902 2000-11-16  Jim Meyering  <meyering@lucent.com>
90903
90904         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
90905
90906 2000-11-11  Jim Meyering  <meyering@lucent.com>
90907
90908         * lib/error.c: Add a couple #includes, merging from GNU libc version.
90909
90910 2000-11-10  Jim Meyering  <meyering@lucent.com>
90911
90912         * lib/obstack.h: Update from GNU libc.
90913         * lib/obstack.c: Likewise.
90914
90915 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
90916
90917         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
90918
90919 2000-11-06  Paul Eggert  <eggert@twinsun.com>
90920
90921         * lib/getusershell.c (setusershell): Use rewind rather than
90922         fseek/fseeko, to avoid configuration hassles with fseeko.
90923         Don't bother opening SHELLS_FILE if shellstream is NULL;
90924         it's not necessary.
90925
90926 2000-11-05  Jim Meyering  <meyering@lucent.com>
90927
90928         * lib/makepath.h (make_dir): Declare.
90929         * lib/makepath.c (make_dir): Remove `static' attribute.
90930         Tweak a comment.
90931
90932 2000-11-04  Jim Meyering  <meyering@lucent.com>
90933
90934         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
90935
90936 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
90937
90938         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
90939         last one in a bucket, advance to the next bucket.
90940
90941 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
90942
90943         * lib/fnmatch.c: Do not comment out all the code if we are using
90944         the GNU C library, because in some cases we are replacing buggy
90945         code in the GNU C library itself.
90946
90947 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
90948
90949         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
90950         (regex_compile): Catch bogus \(\1\).
90951
90952 2000-10-30  Paul Eggert  <eggert@twinsun.com>
90953
90954         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
90955         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
90956         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
90957
90958 2000-10-30  Paul Eggert  <eggert@twinsun.com>
90959
90960         * lib/error.h, getline.h, modechange.h:
90961         Remove "2000" from Copyright line, as the file hasn't been
90962         changed this year other than in the copyright notice.
90963
90964         * lib/xalloc.h: Add "2000" to Copyright line, as this file
90965         was changed this year.
90966
90967 2000-10-29  Jim Meyering  <meyering@lucent.com>
90968
90969         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
90970         renaming.
90971         * m4/ls-mntd-fs.m4: Likewise
90972
90973 2000-10-29  Jim Meyering  <meyering@lucent.com>
90974
90975         * lib/xstat.in: Fix grammar in comment.
90976
90977 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
90978
90979         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
90980         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
90981         doesn't define __restrict_arr.
90982
90983 2000-10-28  Jim Meyering  <meyering@lucent.com>
90984
90985         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
90986         (jm_PREREQ_MEMCHR): New function.
90987
90988 2000-10-28  Jim Meyering  <meyering@lucent.com>
90989
90990         * lib/memchr.c: Update from libc.
90991         Adjust for portability:
90992         [HAVE_STDLIB_H]: Include stdlib.h.
90993         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
90994         Undef __memchr, too.
90995         [!weak_alias]: Define __memchr to memchr.
90996
90997         * lib/regex.c: Update from libc.
90998         * lib/regex.h: Likewise.
90999         * lib/getopt1.c: Likewise.
91000         * lib/memcmp.c: Likewise.
91001
91002         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
91003         Avoid using fseek, when possible -- it's broken by design.
91004         Patch by Ulrich Drepper.
91005
91006 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
91007
91008         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
91009         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
91010         Giving in to popular pressure to shut up the compiler with casts.
91011
91012 2000-10-26  Jim Meyering  <meyering@lucent.com>
91013
91014         * lib/strftime.c: Update from libc.
91015
91016 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
91017
91018         * regex.c: More `unsigned char' -> `re_char' changes.
91019         Also change several `int' into `re_wchar_t'.
91020         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
91021         (PUSH_FAILURE_POINTER): Don't cast any more.
91022         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
91023         We want GCC to complain, since this piece of code makes
91024         re_match non-reentrant, which *should* be fixed.
91025         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
91026         (EXTEND_BUFFER): Use RETALLOC.
91027         (SET_LIST_BIT): Don't cast.
91028         (re_wchar_t): New type.
91029         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
91030         that those two functions will always properly return.
91031         (IMMEDIATE_QUIT_CHECK): Cast to void.
91032         (analyse_first): Use recursion rather than an explicit stack.
91033         (re_compile_fastmap): Can't fail anymore.
91034         (re_search_2): Don't check re_compile_fastmap for failure.
91035         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
91036         Now also sets the new value (passed in a new argument).
91037         (re_match_2_internal): Use it.
91038         Also, use a new var `reg' of type size_t when looping through regs
91039         rather than reuse the inappropriate `mcnt'.
91040
91041 2000-10-25  Jim Meyering  <meyering@lucent.com>
91042
91043         * lib/obstack.c: Update from libc.
91044
91045 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
91046
91047         * regex.c (regex_compile): Change the way of handling a range from
91048         a char less than 256 to a char not less than 256.
91049
91050 2000-10-24  Andrew Innes  <andrewi@gnu.org>
91051
91052         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
91053         NT-Emacs only.
91054         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
91055         so that re_search functions only quit when callers expect them to.
91056
91057 2000-10-23  Jim Meyering  <meyering@lucent.com>
91058
91059         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
91060         wrong.  That set_locale call must not have any side effects.
91061         From Paul Eggert.
91062
91063 2000-10-22  Jim Meyering  <meyering@lucent.com>
91064
91065         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
91066         [CYCLIC]: Remove now-unused definition.
91067
91068         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
91069         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
91070         Suggestion from Ulrich Drepper.
91071
91072 2000-10-21  Jim Meyering  <meyering@lucent.com>
91073
91074         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
91075         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
91076         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
91077
91078 2000-10-21  Jim Meyering  <meyering@lucent.com>
91079
91080         * lib/dirname.c (memrchr): Declare if necessary.
91081         (dir_name): Remove the restriction that there be no
91082         trailing slashes.  Now, this code skips past them, effectively
91083         ignoring them.
91084         [TEST_DIRNAME] (main): New unit tests.
91085
91086         * lib/memrchr.c: New file from GNU libc.
91087         Undef __memrchr, too.
91088         [!weak_alias]: Define __memrchr to memrchr.
91089         Guard weak_alias use with `#ifdef weak_alias'.
91090
91091 2000-10-21  Jim Meyering  <meyering@lucent.com>
91092
91093         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
91094         (dir_name): Use dir_name_r.
91095         * lib/dirname.h (dir_name_r): Declare it.
91096
91097 2000-10-17  Jim Meyering  <meyering@lucent.com>
91098
91099         * lib/quote.h (PARAMS): Define and use.
91100         Reported by Akim Demaille.
91101
91102         * lib/getopt.c: Update from libc.
91103
91104 2000-10-16  Jim Meyering  <meyering@lucent.com>
91105
91106         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
91107         setlocale.
91108         From Jan Fedak.
91109
91110 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
91111
91112         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
91113
91114 2000-09-25  Jim Meyering  <meyering@lucent.com>
91115
91116         * lib/md5.h (rol): Define (from GnuPG).
91117
91118         * lib/sha.c: Give credit (GnuPG) where due.
91119         (M): Use rol rather than open-coding it.
91120         Add a FIXME comment.
91121
91122 2000-09-21  Jim Meyering  <meyering@lucent.com>
91123
91124         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
91125         Reported by Michael Stone.
91126
91127 2000-09-20  Jim Meyering  <meyering@lucent.com>
91128
91129         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
91130         (noinst_HEADERS): Add sha.h.
91131         Based on code from Scott G. Miller and from GnuPG.
91132
91133 2000-09-18  Jim Meyering  <meyering@lucent.com>
91134
91135         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
91136         LIBS. Otherwise, everyone ends up linking with -lelf for some
91137         configurations.
91138         Reported by Mike Stone.
91139
91140 2000-09-15  Jim Meyering  <meyering@lucent.com>
91141
91142         * lib/regex.c: Update from libc.
91143
91144 2000-09-10  Jim Meyering  <meyering@lucent.com>
91145
91146         * lib/getopt.c (_getopt_internal): Update from glibc.
91147
91148 2000-09-09  Jim Meyering  <meyering@lucent.com>
91149
91150         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
91151         think it should be used as a general replacement for isascii.
91152         * lib/fnmatch.c: Likewise.
91153         * lib/mbswidth.c: Likewise
91154         * lib/regex.c: Likewise.
91155
91156         Don't use atoi.
91157         * lib/userspec.c: Include sys/param.h and limits.h.
91158         Include xstrtol.h.
91159         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
91160         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
91161         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
91162         UID, GID.  Check range.
91163
91164 2000-09-06  Jim Meyering  <meyering@lucent.com>
91165
91166         * lib/getopt.c (_getopt_internal): Update from glibc.
91167
91168 2000-08-30  Jim Meyering  <meyering@lucent.com>
91169
91170         * lib/strftime.c: Merge in changes from GNU libc.
91171
91172 2000-08-26  Jim Meyering  <meyering@lucent.com>
91173
91174         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
91175         * m4/fpending.m4: New file.
91176
91177 2000-08-26  Jim Meyering  <meyering@lucent.com>
91178
91179         * lib/closeout.c: Include "__fpending.h".
91180         (close_stdout_status): Return right away if there's nothing to flush.
91181
91182         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
91183         * lib/__fpending.c: New file.
91184         * lib/__fpending.h: New file.
91185
91186 2000-08-20  Jim Meyering  <meyering@lucent.com>
91187
91188         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
91189         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
91190         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
91191
91192 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
91193
91194         Improve fileutils installation on systems where running
91195         programs (like install) can't be unlinked.
91196         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
91197         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
91198
91199 2000-08-07  Paul Eggert  <eggert@twinsun.com>
91200
91201         Standardize on "memory exhausted" instead of "Memory exhausted"
91202         or "virtual memory exhausted".
91203         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
91204         "virtual memory exhausted".
91205         * lib/same.c (same_name): Invoke xalloc_die instead of printing
91206         our own message.
91207         * lib/userspec.c (parse_user_spec): Likewise.
91208         * lib/bumpalloc.h: comment fix
91209         * lib/same.c, userspec.c: Include xalloc.h.
91210
91211         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
91212         not char *const and pointing to a constant array.
91213         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
91214         (xrealloc): Comment fix.
91215
91216         * lib/userspec.c (parse_user_spec):
91217         Don't translate a message until just before returning,
91218         to avoid unnecessary translation.
91219
91220 2000-08-07  Jim Meyering  <meyering@lucent.com>
91221
91222         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
91223         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
91224         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
91225         getgroups.c, gethostname.c, getopt.h, group-member.c,
91226         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
91227         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
91228         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
91229         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
91230         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
91231         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
91232         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
91233         yesno.c: Back out Copyright date changes for each file with no change
91234         this year.  This eases coordination with other programs using the same
91235         source code modules.  From Paul Eggert.
91236
91237 2000-08-06  Paul Eggert  <eggert@twinsun.com>
91238
91239         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
91240         not char, for compatibility with glibc 2.1.3 strftime.c.
91241
91242 2000-08-03  Greg McGary  <greg@mcgary.org>
91243
91244         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
91245         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
91246         (EXTEND_BUFFER): Use them.
91247
91248 2000-08-01  Jim Meyering  <meyering@lucent.com>
91249
91250         * lib/dirname.c (ISSLASH): Define.
91251         (BACKSLASH_IS_PATH_SEPARATOR): Define.
91252         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
91253         both `\' and `/' may be use as path separators.
91254         Based on a patch from Prashant TR.
91255
91256 2000-07-31  Paul Eggert  <eggert@twinsun.com>
91257
91258         * lib/quotearg.c (quotearg_n_options): Don't make the initial
91259         slot vector a constant, since it might get modified.
91260
91261 2000-07-31  Jim Meyering  <meyering@lucent.com>
91262
91263         * lib/xmalloc.c: Use `virtual memory exhausted', not
91264         `Memory exhausted'.
91265         * lib/obstack.c (print_and_abort): Likewise.
91266
91267 2000-07-30  Paul Eggert  <eggert@twinsun.com>
91268
91269         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
91270         buffer, so that the caller can always quote one small
91271         component of a "memory exhausted" message in slot 0.
91272         From a suggestion by Jim Meyering.
91273
91274 2000-07-30  Jim Meyering  <meyering@lucent.com>
91275
91276         * lib/makepath.c (make_path): Quote the other instance, too.
91277
91278         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
91279         (STATIC_BUF_SIZE): Define.
91280         (quotearg_n_options): Use only statically allocated storage when
91281         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
91282         than STATIC_BUF_SIZE.
91283
91284 2000-07-29  Jim Meyering  <meyering@lucent.com>
91285
91286         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
91287         * lib/dirname.c (dir_name): Likewise.
91288
91289         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
91290         `/'.
91291
91292         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
91293         (dir_name): Assert that there are no trailing slashes.
91294
91295 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
91296
91297         * lib/mbswidth.h (mbswidth): Add a flags argument.
91298         (mbswidth): New declaration.
91299         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
91300         * lib/mbswidth.c (mbswidth): Add a flags argument.
91301         (mbsnwidth): New function.
91302
91303 2000-07-24  Jim Meyering  <meyering@lucent.com>
91304
91305         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
91306
91307 2000-07-23  Paul Eggert  <eggert@twinsun.com>
91308
91309         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
91310
91311 2000-07-23  Paul Eggert  <eggert@twinsun.com>
91312
91313         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
91314         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
91315         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
91316         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
91317         invoke multibyte primitives.
91318
91319 2000-07-23  Paul Eggert  <eggert@twinsun.com>
91320
91321         * lib/quotearg.c:
91322         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
91323         so that mbstate_t is always defined.
91324
91325         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
91326         be 1 in at least one GCC installation, and this configuration
91327         error is likely to be common.  Ignoring MB_LEN_MAX hurts
91328         performance on hosts that have mbrtowc but have only unibyte
91329         locales, but I assume these hosts are rare.
91330
91331 2000-07-23  Paul Eggert  <eggert@twinsun.com>
91332
91333         * lib/mbswidth.c (_XOPEN_SOURCE):
91334         Don't define; this causes problems on Solaris 7.
91335         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
91336
91337 2000-07-23  Jim Meyering  <meyering@lucent.com>
91338
91339         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
91340         too: getgrgid, getpwuid, getuid.
91341
91342 2000-07-23  Jim Meyering  <meyering@lucent.com>
91343
91344         * lib/basename.c (base_name): Add an assertion.
91345
91346 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
91347
91348         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
91349         shadow its mbsinit function.
91350
91351 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
91352
91353         * lib/mbswidth.h: New file.
91354         * lib/mbswidth.c: New file.
91355         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
91356         (noinst_HEADERS): Add mbswidth.h.
91357
91358 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
91359
91360         * lib/config.charset: Add support for FreeBSD. Improve support for
91361         HP-UX and IRIX 6.
91362
91363 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
91364
91365         * m4/mbswidth.m4: New file.
91366         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
91367
91368 2000-07-15  Jim Meyering  <meyering@lucent.com>
91369
91370         * lib/makepath.c: Include quote.h.
91371         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
91372         corresponding argument in a `quote (...)' call.
91373         Give better diagnostics.
91374
91375         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
91376         (noinst_HEADERS): Add quote.h.
91377
91378         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
91379         from tar's src/misc.c.
91380         * lib/quote.h: New file.  Prototypes for same.
91381
91382 2000-07-14  Paul Eggert  <eggert@twinsun.com>
91383
91384         From a suggestion by Bruno Haible.
91385         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
91386         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
91387         to decide whether to define the BeOS workaround macro;
91388         this adjusts to the change to AC_MBSTATE_T.
91389
91390 2000-07-14  Jim Meyering  <meyering@lucent.com>
91391
91392         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
91393         jm_AC_TYPE_UINTMAX_T.
91394
91395 2000-07-13  Paul Eggert  <eggert@twinsun.com>
91396
91397         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
91398
91399         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
91400         quotearg_buffer_restyled): Add support for
91401         clocale_quoting_style.  Undo previous change to
91402         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
91403         and "{RIGHT QUOTATION MARK}" msgids.
91404
91405 2000-07-10  Paul Eggert  <eggert@twinsun.com>
91406
91407         From a suggestion by Bruno Haible.
91408         * m4/mbstate_t.m4 (AC_MBSTATE_T):
91409         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
91410         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
91411         and mbstate_t, to a single-part test that simply defines mbstate_t.
91412         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
91413         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
91414
91415 2000-07-10  Jim Meyering  <meyering@lucent.com>
91416
91417         * m4/strerror_r.m4: Mirror the correction made in autoconf.
91418
91419         * m4/gnu-source.m4: Output to confdefs.h directly.
91420         Suggestion from Akim Demaille.
91421
91422 2000-07-09  Paul Eggert  <eggert@twinsun.com>
91423
91424         The old behavior of quoting `like this' doesn't look good with
91425         newer, ISO-style fonts.  See:
91426         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
91427
91428         Instead, quote "like this" by default.  Let the translator
91429         tailor the locale-specific quoting behavior by providing
91430         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
91431
91432         * lib/quotearg.c (N_): New macro.
91433         (gettext_default): New function.
91434         (quotearg_buffer_restyled): Use
91435         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
91436         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
91437
91438 2000-07-09  Jim Meyering  <meyering@lucent.com>
91439
91440         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
91441         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
91442
91443         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
91444         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
91445
91446 2000-07-09  Jim Meyering  <meyering@lucent.com>
91447
91448         * lib/Most files: Update copyright dates to include 2000.
91449
91450 2000-07-08  Jim Meyering  <meyering@lucent.com>
91451
91452         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
91453         if not defined.
91454         (xgethostname): Remove now-unnecessary #ifdef.
91455         Move declaration of `err' into loop where it's used.
91456
91457 2000-07-05  Paul Eggert  <eggert@twinsun.com>
91458         and Bruno Haible  <haible@clisp.cons.org>
91459
91460         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
91461         only if the test for an object-type mbstate_t fails.  This
91462         prevents us from mistakenly reporting that mbstate_t is a
91463         system object type after we "#define mbstate_t int" to work
91464         around its lack.
91465
91466 2000-07-05  Paul Eggert  <eggert@twinsun.com>
91467         and Bruno Haible  <haible@clisp.cons.org>
91468
91469         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
91470
91471 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
91472
91473         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
91474         to strerror_r.
91475         Include <ctype.h> for use of isalpha.
91476
91477 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
91478
91479         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
91480         by allocating a larger buffer. Test the gethostname return value for
91481         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
91482         returns an error and ENAMETOOLONG isn't defined.
91483
91484 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
91485
91486         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
91487         dimension.
91488
91489 2000-07-04  Jim Meyering  <meyering@lucent.com>
91490
91491         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
91492         of the deprecated AC_CHECKING.
91493
91494 2000-07-04  Jim Meyering  <meyering@lucent.com>
91495
91496         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
91497         Reported by Bruno Haible.
91498
91499 2000-07-04  Jim Meyering  <meyering@lucent.com>
91500
91501         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
91502         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
91503         lacks mbrtowc.
91504
91505 2000-07-03  Paul Eggert  <eggert@twinsun.com>
91506
91507         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
91508         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
91509
91510 2000-07-03  Paul Eggert  <eggert@twinsun.com>
91511         and Bruno Haible  <haible@clisp.cons.org>
91512
91513         * lib/quotearg.c (mbrtowc):
91514         Assign to *pwc, and return 1 only if result is nonzero.
91515         (iswprint): Use ISPRINT when substituting our own mbrtowc.
91516
91517 2000-07-03  Jim Meyering  <meyering@lucent.com>
91518
91519         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
91520
91521 2000-07-03  Jim Meyering  <meyering@lucent.com>
91522
91523         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
91524         This is necessary to get a definition of e.g., UTMP_FILE on
91525         HP-UX 10.20.
91526         From Bob Proulx.
91527
91528 2000-07-02  Jim Meyering  <meyering@lucent.com>
91529
91530         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
91531
91532         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
91533         AC_LIBOBJ(function_name).
91534         * m4/chown.m4: Likewise.
91535         * m4/fnmatch.m4: Likewise.
91536         * m4/ftruncate.m4: Likewise.
91537         * m4/getgroups.m4: Likewise.
91538         * m4/getline.m4: Likewise.
91539         * m4/group-member.m4: Likewise.
91540         * m4/jm-macros.m4: Likewise.
91541         * m4/lstat.m4: Likewise.
91542         * m4/malloc.m4: Likewise.
91543         * m4/memcmp.m4: Likewise.
91544         * m4/nanosleep.m4: Likewise.
91545         * m4/putenv.m4: Likewise.
91546         * m4/realloc.m4: Likewise.
91547         * m4/regex.m4: Likewise.
91548         * m4/stat.m4: Likewise.
91549         * m4/strftime.m4: Likewise.
91550
91551 2000-07-02  Jim Meyering  <meyering@lucent.com>
91552
91553         * lib/quotearg.c (mbstate_t): Don't define here.
91554
91555 2000-07-02  Jim Meyering  <meyering@lucent.com>
91556
91557         * lib/nanosleep.c (SIGCONT): Define if not already defined.
91558
91559 2000-07-01  Jim Meyering  <meyering@lucent.com>
91560
91561         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
91562
91563 2000-07-01  Jim Meyering  <meyering@lucent.com>
91564
91565         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
91566         problem.
91567
91568 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
91569
91570         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
91571         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
91572
91573 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
91574
91575         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
91576         per change in ../m4/ls-mntd-fs.m4.
91577         (read_filesystem_list): Ignore symbolic links.
91578
91579 2000-06-29  Jim Meyering  <meyering@lucent.com>
91580
91581         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
91582         for declaration of strcmp.
91583
91584         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
91585
91586         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
91587         Avoid warning by casting result to `char *' to remove `const'.
91588
91589 2000-06-28  Jim Meyering  <meyering@lucent.com>
91590
91591         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
91592         included by quotearg.c, for which we perform this test.  From
91593         Bruno Haible.
91594
91595 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
91596
91597         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
91598         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
91599         <utmpx.h> exists, put readutmp.o into LIBOBJS.
91600
91601 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
91602
91603         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
91604
91605 2000-06-26  Paul Eggert  <eggert@twinsun.com>
91606
91607         savedir now sets errno on failure and invokes xmalloc to get memory.
91608         Fix a couple of other minor bugs while we're at it.
91609
91610         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
91611         (NAMLEN): Remove macro.
91612         (malloc, realloc): Remove decls.
91613         (stpcpy): Likewise.
91614         ("xalloc.h"): Include.
91615         (NAME_SIZE_DEFAULT): New macro.
91616         (savedir): Use xmalloc / xrealloc to allocate memory.
91617         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
91618         Skip "" directory entries.
91619         Use strlen to calculate directory entry length, since the old method
91620         is rarely used these days and isn't worth supporting.
91621         Don't use a pointer after freeing it.
91622         Check for integer overflow when calculating allocation size.
91623         Use memcpy to copy entries, instead of stpcpy.
91624         Set errno properly when returning NULL.
91625         Check for readdir error.
91626
91627 2000-06-26  Jim Meyering  <meyering@lucent.com>
91628
91629         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
91630
91631 2000-06-25  Jim Meyering  <meyering@lucent.com>
91632
91633         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
91634         Linux header bug when _XOPEN_SOURCE is defined to 500.
91635
91636 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
91637
91638         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
91639         deficiency.
91640
91641 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
91642
91643         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
91644         Include xalloc.h.
91645         Don't include <stdlib.h>.  Don't declare malloc, realloc.
91646
91647 2000-06-24  Jim Meyering  <meyering@lucent.com>
91648
91649         * m4/strerror_r.m4: Revive this file -- to try out an experimental
91650         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
91651         for which strerror does return char*, but which lacks a conveniently
91652         accessible declaration of the function.  If the compile-test says
91653         strerror_r doesn't work, then resort to a `run'-test that works on
91654         BeOS and segfaults on DEC Unix.
91655
91656 2000-06-24  Jim Meyering  <meyering@lucent.com>
91657
91658         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
91659
91660 2000-06-23  Paul Eggert  <eggert@twinsun.com>
91661
91662         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
91663         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
91664
91665 2000-06-23  Paul Eggert  <eggert@twinsun.com>
91666
91667         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
91668         (mbrtowc, mbstate_t): Define substitutes if
91669         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
91670         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
91671         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
91672
91673 2000-06-23  Jim Meyering  <meyering@lucent.com>
91674
91675         * m4/afs.m4: Add missing AC_MSG_RESULT.
91676         Reported by Bruno Haible.
91677
91678         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
91679         Suggestion from Bruno Haible.
91680
91681 2000-06-23  Jim Meyering  <meyering@lucent.com>
91682
91683         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
91684
91685 2000-06-21  Jim Meyering  <meyering@lucent.com>
91686
91687         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
91688
91689 2000-06-21  Jim Meyering  <meyering@lucent.com>
91690
91691         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
91692         (noinst_HEADERS): Add getstr.h.
91693
91694         * lib/getline.c (getstr): Move into a separate file.
91695         * lib/getstr.c (getstr): New file, extracted from getline.c, with
91696         the following changes: new parameter, delim2; both delim[12]
91697         parameters have type `int', not `char'.  The latter would lose
91698         with 8-bit delimiters.
91699         * lib/getstr.h: New file.
91700
91701 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
91702
91703         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
91704         than 1024, return a memory chunk of least possible size, instead
91705         of size PATH_MAX + 2. In the loop, increment the size proportionally.
91706         Use free/xmalloc instead of xrealloc to avoid copying for very long
91707         paths.
91708
91709 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
91710
91711         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
91712         the empty string.
91713
91714 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
91715
91716         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
91717         address, not strdup.  Include <stdlib.h> and don't declare free().
91718
91719 2000-06-19  Jim Meyering  <meyering@lucent.com>
91720
91721         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
91722
91723 2000-06-18  Jim Meyering  <meyering@lucent.com>
91724
91725         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
91726
91727         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
91728         `checking whether...' message to be consistent with that of the
91729         lstat test.
91730
91731 2000-06-18  Jim Meyering  <meyering@lucent.com>
91732
91733         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
91734         Besides, these days every porting target provides a mkdir function.
91735
91736         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
91737         needed. (this snippet comes from src/system.h).
91738
91739 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
91740
91741         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
91742
91743 2000-06-15  Paul Eggert  <eggert@twinsun.com>
91744
91745         * lib/human.c (adjust_value): New function.
91746         (human_readable_inexact): Apply rounding style even when
91747         printing approximate values.
91748
91749 2000-06-14  Paul Eggert  <eggert@twinsun.com>
91750
91751         * lib/human.c (human_readable_inexact): Allow an input block
91752         size that is not a multiple of the output block size, and vice versa.
91753         Reported by Piergiorgio Sartor.
91754
91755 2000-06-14  Paul Eggert  <eggert@twinsun.com>
91756
91757         * lib/getdate.y (get_date): Apply relative times after time
91758         zone indicator, not before.  Reported by Todd A. Jacobs.
91759
91760 2000-06-13  Jim Meyering  <meyering@lucent.com>
91761
91762         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
91763
91764         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
91765
91766 2000-06-12  Paul Eggert  <eggert@twinsun.com>
91767
91768         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
91769
91770 2000-06-12  Jim Meyering  <meyering@lucent.com>
91771
91772         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
91773         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
91774         optional argument.
91775         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
91776         the optional argument, `lib'.
91777
91778 2000-06-08  Jim Meyering  <meyering@lucent.com>
91779
91780         * m4/largefile.m4: Remove file (now that it's part of autoconf).
91781
91782 2000-06-04  Paul Eggert  <eggert@twinsun.com>
91783
91784         Rewrite largefile configuration so that we don't need to run
91785         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
91786         AC_CANONICAL_HOST in configure.in -- jmm]
91787
91788         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
91789         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
91790         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
91791         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
91792         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
91793         All uses changed.
91794         Instead of inspecting the output of getconf, try to compile the
91795         test program without and with the macro definition.
91796         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
91797         for getconf.  Instead, check for the needed flags by compiling
91798         test programs.
91799
91800 2000-06-04  Paul Eggert  <eggert@twinsun.com>
91801
91802         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
91803
91804 2000-06-04  Jim Meyering  <meyering@lucent.com>
91805
91806         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
91807         SunOS 4.1.4 for which gid_t is an unsigned type.
91808
91809 2000-06-03  Jim Meyering  <meyering@lucent.com>
91810
91811         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
91812         now that autoconf requires that.
91813
91814         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
91815         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
91816         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
91817
91818 2000-06-03  Jim Meyering  <meyering@lucent.com>
91819
91820         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
91821
91822 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
91823
91824         * m4/glibc21.m4: New file.
91825         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
91826
91827 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
91828
91829         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
91830         newer, don't install charset.alias.
91831         * lib/config.charset: Change the Linux/glibc rules so they become empty
91832         on glibc-2.1 or newer.
91833
91834 2000-06-02  Jim Meyering  <meyering@lucent.com>
91835
91836         * lib/mountlist.c: Back out last change.  Instead, do this...
91837         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
91838         me_dummy member using the same `ignore'-testing code.
91839         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
91840         fs_type strings.
91841         From Mark D. Roth.
91842
91843 2000-05-29  Jim Meyering  <meyering@lucent.com>
91844
91845         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
91846         mounts with the `ignore' attribute.  Based on a patch from
91847         Mark D. Roth.
91848
91849 2000-05-28  Jim Meyering  <meyering@lucent.com>
91850
91851         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
91852         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
91853         * m4/stat.m4: Likewise.
91854         * m4/lstat.m4: Likewise.
91855         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
91856
91857         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
91858         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
91859
91860 2000-05-26  Jim Meyering  <meyering@lucent.com>
91861
91862         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
91863
91864 2000-05-24  Jim Meyering  <meyering@lucent.com>
91865
91866         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
91867         autoconf requires that.
91868         * m4/lib-check.m4: Likewise.
91869         * m4/jm-macros.m4: Likewise.
91870         * m4/strftime.m4: Likewise.
91871
91872         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
91873         AC_CHECK_DECLS, now that autoconf requires that.
91874
91875 2000-05-22  Jim Meyering  <meyering@lucent.com>
91876
91877         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
91878         * m4/lstat.m4: Likewise.
91879
91880 2000-05-22  Jim Meyering  <meyering@lucent.com>
91881
91882         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
91883
91884 2000-05-20  Jim Meyering  <meyering@lucent.com>
91885
91886         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
91887         (jm_PREREQ): Use it.
91888
91889 2000-05-18  Jim Meyering  <meyering@lucent.com>
91890
91891         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
91892         back, too, since it may have been modified by allocate_entry.
91893         (hash_delete): Rewrite to use neither the assignment operator
91894         nor the comma operator in an if-expression.
91895
91896 2000-05-15  Paul Eggert  <eggert@twinsun.com>
91897
91898         * lib/closeout.c:
91899         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
91900         Remove; no longer needed.
91901         "quotearg.h": Add include.
91902         (file_name): Do not bother to explicitly initialize to NULL; it's less
91903         efficient on some hosts.
91904         (close_stdout_status): Remove test as to whether stdout was already
91905         closed; it breaks for the case "echo x | sort >&-".
91906         Quote file name colons.
91907         Do not assume that _("write error") lacks format strings.
91908
91909 2000-05-15  Jim Meyering  <meyering@lucent.com>
91910
91911         * lib/version-etc.c (version_etc_copyright): Update the copyright
91912         string used in all --version output.
91913
91914 2000-05-14  Jim Meyering  <meyering@lucent.com>
91915
91916         * lib/closeout.c (close_stdout_set_file_name): New function.
91917         (close_stdout_status): Use new file-scoped global.
91918         Return right away if fstat says the stdout file descriptor is invalid.
91919         * lib/closeout.h (close_stdout_set_file_name): Declare.
91920
91921 2000-05-10  Jim Meyering  <meyering@lucent.com>
91922
91923         * lib/closeout.c [default_exit_status]: New file-scoped variable.
91924         (close_stdout_set_status): New function.
91925         * lib/closeout.h (close_stdout_set_status): Declare.
91926
91927 2000-05-09  Jim Meyering  <meyering@lucent.com>
91928
91929         * m4/gettext.m4: Rename this...
91930         * m4/libintl.m4: ...to this.
91931
91932 2000-05-08  Jim Meyering  <meyering@lucent.com>
91933
91934         * lib/long-options.c: Don't include closeout.h.
91935         (parse_long_options): Don't call close_stdout for --version.
91936
91937 2000-05-06  Paul Eggert  <eggert@twinsun.com>
91938
91939         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
91940         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
91941         2.1.3 bug.  This avoids a clash when files like regex.c define
91942         _GNU_SOURCE.
91943
91944 2000-05-06  Jim Meyering  <meyering@lucent.com>
91945
91946         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
91947         (AC_REPLACE_FUNCS): Add strnlen.
91948
91949         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
91950         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
91951
91952         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
91953         AC_SEARCH_LIBS call for nanosleep.
91954         (LIB_NANOSLEEP): Set and AC_SUBST.
91955
91956 2000-05-06  Jim Meyering  <meyering@lucent.com>
91957
91958         * lib/strnlen.c: Undefine __strnlen and strnlen.
91959         [!weak_alias]: Define __strnlen to strnlen.
91960
91961         * lib/atexit.c: New file, from libiberty.
91962
91963 2000-05-06  Jim Meyering  <meyering@lucent.com>
91964
91965         * lib/closeout.c (close_stdout_status): Also check for errors on the
91966         stderr stream.
91967
91968 2000-05-05  Jim Meyering  <meyering@lucent.com>
91969
91970         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
91971         AC_SEARCH_LIBS call for clock_gettime.
91972         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
91973
91974         * m4/search-libs.m4: Update from autoconf.
91975
91976         su doesn't work on Solaris 2.6.
91977         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
91978         <shadow.h>.  Reported by Dragos Harabor.
91979
91980 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
91981
91982         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
91983         memcpy instead of xmalloc, xrealloc, path_concat.
91984         (locale_charset): Treat empty environment variables as absent.
91985         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
91986
91987 2000-05-04  Jim Meyering  <meyering@lucent.com>
91988
91989         * lib/getopt.c: Update from glibc.
91990         * lib/obstack.c: Likewise.
91991         * lib/obstack.h: Likewise.
91992         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
91993         file
91994
91995         * lib/regex.h: Likewise.
91996         * lib/strndup.c: Likewise.
91997         * lib/strnlen.c: New file, from glibc.
91998
91999 2000-05-03  Jim Meyering  <meyering@lucent.com>
92000
92001         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
92002
92003 2000-05-02  Paul Eggert  <eggert@twinsun.com>
92004
92005         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
92006         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
92007         compile-time test, rather than inspecting host and OS, to
92008         decide whether to define _LARGEFILE_SOURCE.
92009
92010 2000-05-01  Jim Meyering  <meyering@lucent.com>
92011
92012         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
92013
92014         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
92015         Based on a patch from Bruno Haible.
92016
92017 2000-05-01  Jim Meyering  <meyering@lucent.com>
92018
92019         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
92020
92021 2000-04-29  Jim Meyering  <meyering@lucent.com>
92022
92023         * lib/path-concat.c: Declare strdup only if it's not defined.
92024         * lib/canon-host.c: Likewise.
92025
92026 2000-04-28  Jim Meyering  <meyering@lucent.com>
92027
92028         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
92029         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
92030         is included first, then limits.h is included by locale.h by libintl.h.
92031         From John David Anglin.
92032
92033 2000-04-25  Jim Meyering  <meyering@lucent.com>
92034
92035         * lib/makepath.c (S_IRWXUGO): Define.
92036         (make_path): Always perform explicit chmod if MODE specifies any
92037         of the `special' permission bits.  Prompted by a bug report against
92038         install from Mate Wierdl and Joost van Baal.
92039
92040 2000-04-18  Jim Meyering  <meyering@lucent.com>
92041
92042         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
92043         (jm_PREREQ): Use it.
92044
92045 2000-04-18  Jim Meyering  <meyering@lucent.com>
92046
92047         * lib/README: New file.
92048
92049         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
92050         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
92051
92052 2000-04-17  Jim Meyering  <meyering@lucent.com>
92053
92054         Get it right :-)
92055         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
92056         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
92057         Suggestion from Akim Demaille.
92058
92059 2000-04-17  Jim Meyering  <meyering@lucent.com>
92060
92061         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
92062         the definition of it to rpl_strftime also defined-away the system's
92063         declaration.
92064
92065 2000-04-15  Jim Meyering  <meyering@lucent.com>
92066
92067         Use `C' to denote so-called `contiguous' files, the same way
92068         that tar does.
92069         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
92070         (ftypelet): Use S_ISCTG.
92071         From Michael Deutschmann.
92072
92073 2000-04-14  Jim Meyering  <meyering@lucent.com>
92074
92075         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
92076         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
92077         clobbered.
92078
92079 2000-04-14  Jim Meyering  <meyering@lucent.com>
92080
92081         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
92082
92083 2000-04-13  Jim Meyering  <meyering@lucent.com>
92084
92085         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
92086         AH_VERBATIM to insert required #ifndef into config.h.in.
92087         Suggestion from Akim Demaille.
92088
92089 2000-04-12  Jim Meyering  <meyering@lucent.com>
92090
92091         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
92092         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
92093         Christian Krackowizer.
92094
92095         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
92096         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
92097         (AC_SYS_LARGEFILE): Require.
92098         (AM_C_PROTOTYPES): Require.
92099
92100 2000-04-08  Jim Meyering  <meyering@lucent.com>
92101
92102         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
92103         names don't conflict.  Reported by Eli Zaretskii.
92104
92105 2000-04-07  Jim Meyering  <meyering@lucent.com>
92106
92107         * lib/putenv.c: Move inclusion of errno.h so it follows that of
92108         sys/types.h, to work around system header problems on AIX 3.2.5.
92109         From Bruno Haible.
92110
92111 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
92112
92113         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
92114         bug.  Deal with the different error behavior of Irix iconv.
92115
92116 2000-04-05  Paul Eggert  <eggert@twinsun.com>
92117
92118         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
92119         IRIX if the installer said otherwise.
92120
92121 2000-04-05  Jim Meyering  <meyering@lucent.com>
92122
92123         Portability tweaks required for ultrix4.3.
92124         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
92125         (jm_CHECK_DECLS): Add getutent to the list of functions.
92126         (_jm_DECL_HEADERS): Add utmpx.h.
92127         From John David Anglin.
92128
92129         * m4/strftime.m4: Back out the 2000-04-02 change.
92130         Instead of that change, simply undefine putenv in the test program.
92131
92132 2000-04-05  Jim Meyering  <meyering@lucent.com>
92133
92134         Portability tweaks required for ultrix4.3.
92135         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
92136         getutent.
92137         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
92138         * lib/canon-host.c: Declare strdup.
92139         * lib/path-concat.c: Likewise.
92140         From John David Anglin.
92141
92142 2000-04-04  Jim Meyering  <meyering@lucent.com>
92143
92144         Be more DOS 8.3-friendly.
92145         * lib/ref-add.sin: Renamed from ref-add.sed.in.
92146         * lib/ref-del.sin: Renamed from ref-del.sed.in.
92147         * lib/Makefile.am: Reflect renaming.
92148         Reported by Eli Zaretskii.
92149
92150         Use a temporary file name that won't clash with `charset.alias'
92151         in the DOS 8.3 name space.
92152         * lib/Makefile.am (charset_tmp): Define.
92153         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
92154         (uninstall-local): Likewise.
92155         Reported by Eli Zaretskii.
92156
92157 2000-04-03  Jim Meyering  <meyering@lucent.com>
92158
92159         * m4/gettext.m4: Fix typo in comment.
92160
92161         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
92162         textutils/configure.in).  Suggestion from Paul Eggert.
92163         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
92164
92165 2000-04-02  Paul Eggert  <eggert@twinsun.com>
92166
92167         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
92168         variable in the shell rather than using putenv, which isn't
92169         portable.  This avoids the configure-time inter-test dependency
92170         on the potentially-renamed putenv function.
92171
92172 2000-03-30  Paul Eggert  <eggert@twinsun.com>
92173
92174         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
92175         before checking struct stat.st_blksize, so that
92176         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
92177
92178 2000-03-29  Paul Eggert  <eggert@twinsun.com>
92179
92180         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
92181         since strftime.c uses HAVE_STRFTIME to decide whether to use
92182         the underlying strftime.
92183
92184 2000-03-29  Paul Eggert  <eggert@twinsun.com>
92185
92186         * lib/time/strftime.c (my_strftime): Make sure we call the system
92187         strftime, not ourselves, when invoking the underlying strftime.
92188
92189 2000-03-24  Jim Meyering  <meyering@lucent.com>
92190
92191         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
92192         (charset_alias): Define.
92193         (install-exec-local): Factor out common code.
92194         (uninstall-local): Split lines longer than 80.
92195         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
92196         (SUFFIXES): Define.
92197         (.sed.in.sed): New rule.  Don't redirect directly to $@.
92198         (CLEANFILES): Add ref-add.sed and ref-del.sed.
92199
92200 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
92201
92202         * lib/config.charset: Output a line containing "Packages using this
92203         file".
92204         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
92205         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
92206         ref-del.sed): New rules.
92207
92208 2000-03-17  Jim Meyering  <meyering@lucent.com>
92209
92210         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
92211         Otherwise, include <strings.h>
92212
92213 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
92214
92215         * lib/unicodeio.c (utf8_wctomb): New function.
92216         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
92217         format instead of in UCS-4 with platform dependent endianness.
92218
92219 2000-03-10  Jim Meyering  <meyering@lucent.com>
92220
92221         * m4/lib-check.m4: Look for getspnam in -lgen, too.
92222         From Marco Franzen.
92223
92224 2000-03-07  Paul Eggert  <eggert@twinsun.com>
92225
92226         * lib/savedir.c (savedir): Work even if directory size is
92227         negative; this can happen with some screwy NFS configurations.
92228
92229 2000-03-06  Jim Meyering  <meyering@lucent.com>
92230
92231         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
92232         if it's NULL (because we ran out of memory).  From Bruno Haible.
92233
92234 2000-03-05  Jim Meyering  <meyering@lucent.com>
92235
92236         * lib/localcharset.c ("path-concat.h"): Include.
92237         (get_charset_aliases): Use path_concat instead of ANSI string
92238         concatenation.
92239
92240         * lib/unicodeio.h (PARAMS): Define.
92241         Use it to guard prototype.
92242
92243 2000-03-04  Jim Meyering  <meyering@lucent.com>
92244
92245         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
92246         for lib/localcharset.c.
92247
92248 2000-03-04  Jim Meyering  <meyering@lucent.com>
92249
92250         * lib/Makefile.am (install-exec-local): Create $(libdir) before
92251         installing into it.
92252         (uninstall-local): Uncomment this rule so `make distcheck' works
92253         once again.
92254
92255         * lib/unicodeio.c (<errno.h>): Include it.
92256         (errno): Declare if not defined.
92257
92258         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
92259
92260         * lib/config.charset: New version, incorporating remarks from a linux
92261         i18n mailing list.  From Bruno Haible.
92262
92263 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
92264
92265         * m4/codeset.m4: New file.
92266         * m4/iconv.m4: New file.
92267         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
92268
92269 2000-03-03  Jim Meyering  <meyering@lucent.com>
92270
92271         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
92272
92273 2000-03-02  Jim Meyering  <meyering@lucent.com>
92274
92275         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
92276         the messages come out on separate lines.
92277
92278         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
92279         rather than jm_CHECK_DECLARATIONS.
92280         * m4/decl.m4: Remove now-unused file.
92281
92282         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
92283         geteuid.
92284
92285 2000-03-02  Jim Meyering  <meyering@lucent.com>
92286
92287         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
92288
92289 2000-03-01  Jim Meyering  <meyering@lucent.com>
92290
92291         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
92292         * lib/unicodeio.c: Likewise.
92293
92294 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
92295
92296         * lib/config.charset: New file.
92297         * lib/localcharset.c: New file.
92298         * lib/unicodeio.h, lib/unicodeio.c: New files.
92299         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
92300         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
92301         (noinst_HEADERS): Add unicodeio.h.
92302         (all-local, install-exec-local, charset.alias): New targets.
92303
92304 2000-02-28  Paul Eggert  <eggert@twinsun.com>
92305
92306         * lib/quotearg.c (ALERT_CHAR): New macro.
92307         (quotearg_buffer_restyled): Use it.
92308
92309 2000-02-27  Jim Meyering  <meyering@lucent.com>
92310
92311         * m4/check-decl.m4: Add getenv to the list.
92312
92313 2000-02-27  Jim Meyering  <meyering@lucent.com>
92314
92315         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
92316         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
92317
92318         * lib/backupfile.c: Guard inclusion of stdlib.h with
92319         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
92320         Declare malloc if needed.
92321
92322         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
92323         `#ifndef HAVE_DECL..'
92324         now that autoconf always defines the HAVE_DECL_ symbols.
92325         * lib/human.c: Likewise.
92326         * lib/same.c: Likewise.
92327         * lib/strtoumax.c: Likewise.
92328
92329         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
92330         declaration check was not run.
92331         * lib/hash.c: Likewise.
92332         * lib/human.c: Likewise.
92333         * lib/same.c: Likewise.
92334         * lib/strtoumax.c: Likewise.
92335
92336         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
92337         `.', then first look up the entire `.'-containing string as a login
92338         name.
92339
92340 2000-02-23  Jim Meyering  <meyering@lucent.com>
92341
92342         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
92343         in place of my hack.
92344
92345 2000-02-18  Paul Eggert  <eggert@twinsun.com>
92346
92347         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
92348         (textint): New typedef.
92349         (parser_control): Member year changed from int to textint.
92350         All uses changed.
92351         (YYSTYPE): Removed; replaced by %union with int and textint members.
92352         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
92353         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
92354         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
92355         (tSNUMBER, tUNUMBER): Now of type <textintval>.
92356         (date, number, to_year): Use width of number in digits, not its value,
92357         to determine whether it's a 2-digit year, or a 2-digit time.
92358         (yylex): Store number of digits of numeric tokens.
92359         Reported by John Kendall.
92360
92361         (parser_control): Changed from struct parser_control to typedef (for
92362         consistency).  All uses changed.
92363
92364         (tID): Removed; not used.
92365         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
92366
92367 2000-02-14  Paul Eggert  <eggert@twinsun.com>
92368
92369         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
92370         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
92371
92372 2000-02-12  Jim Meyering  <meyering@lucent.com>
92373
92374         * lib/userspec.c (ISDIGIT): Define it.
92375         (isdigit): Remove definition.
92376         (is_number): Use ISDIGIT, not isdigit.
92377         <libintl.h>: Include.
92378         (_ and N_): Define.
92379         (parse_user_spec): Mark translatable strings.
92380
92381 2000-02-10  Jim Meyering  <meyering@lucent.com>
92382
92383         With these changes, nanosleep.[ch] are finally enough like the other
92384         lib/* replacement files to compile on a few more losing systems.
92385
92386         * lib/nanosleep.h: Don't include config.h.
92387         Remove prototype from declaration of nanosleep.
92388         (PARAMS): Remove now-unneeded definition.
92389         * lib/nanosleep.c: #undef nanosleep.
92390         (rpl_nanosleep): Rename from nanosleep.
92391
92392 2000-02-10  Jim Meyering  <meyering@lucent.com>
92393
92394         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
92395         gnu_nanosleep to rpl_nanosleep.
92396
92397 2000-02-09  Jim Meyering  <meyering@lucent.com>
92398
92399         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
92400         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
92401
92402 2000-02-08  Akim Demaille  <akim@epita.fr>
92403
92404         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
92405         `[' and `]' and remove uses of `changequote'.
92406         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
92407         (AC_SYS_LARGEFILE): Likewise.
92408         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
92409         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
92410         of changequote.
92411         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
92412         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
92413         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
92414         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
92415
92416 2000-02-05  Jim Meyering  <meyering@lucent.com>
92417
92418         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
92419         Remove explicit use of AC_HEADER_TIME.  It is required by
92420         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
92421         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
92422         in autoconf whereby the expansion of the latter ended up preceding
92423         the expansion of its prerequisite, AC_HEADER_TIME.
92424         Reported by Volker Borchert.
92425
92426 2000-02-03  Jim Meyering  <meyering@lucent.com>
92427
92428         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
92429
92430 2000-02-03  Jim Meyering  <meyering@lucent.com>
92431
92432         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
92433         rather than with `#if HAVE_UTMPNAME'.
92434
92435 2000-02-02  Jim Meyering  <meyering@lucent.com>
92436
92437         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
92438         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
92439         Reported by Eli Zaretskii.
92440
92441 2000-02-01  Jim Meyering  <meyering@lucent.com>
92442
92443         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
92444
92445 2000-01-31  Jim Meyering  <meyering@lucent.com>
92446
92447         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
92448         functions.  Add the time.h and sys/time.h headers along with the
92449         AC_REQUIRE'ment of AC_HEADER_TIME.
92450
92451 2000-01-31  Jim Meyering  <meyering@lucent.com>
92452
92453         * lib/nanosleep.h (nanosleep): Guard declaration with
92454         `#if ! HAVE_DECL_NANOSLEEP'.
92455         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
92456         the declaration in that vendor's sys/timers.h.
92457         Reported by Christian Krackowizer.
92458
92459         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
92460         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
92461         (ISPRINT): Likewise.
92462         Reported by Tom Tromey.
92463
92464 2000-01-30  Jim Meyering  <meyering@lucent.com>
92465
92466         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
92467
92468         * m4/prereq.m4 (utmp_includes): Define.
92469         Check for ut_user and ut_name members in both struct utmpx
92470         and struct utmp.
92471
92472 2000-01-30  Jim Meyering  <meyering@lucent.com>
92473
92474         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
92475         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
92476         header files where only utmpx.ut_user is declared.
92477
92478         * lib/readutmp.h (UT_USER): Define.
92479
92480 2000-01-29  Jim Meyering  <meyering@lucent.com>
92481
92482         * m4/lib-check.m4: New file containing library-related checks from
92483         fileutils and sh-utils (textutils had none).
92484
92485 2000-01-28  Jim Meyering  <meyering@lucent.com>
92486
92487         * m4/perl.m4: Change format of warning message to look more like that
92488         from the missing script.  Suggestion from François Pinard.
92489
92490 2000-01-25  Jim Meyering  <meyering@lucent.com>
92491
92492         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
92493         well as time.h in the compile check.
92494         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
92495         Fix typo in cross-compiling case: s/yes/no/.
92496
92497 2000-01-23  Jim Meyering  <meyering@lucent.com>
92498
92499         * m4/jm-macros.m4: Move df-related tests here from
92500         fileutils/configure.in
92501
92502         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
92503         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
92504
92505         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
92506         s/space/ac_fsusage_space/.
92507         (jm_FILE_SYSTEM_USAGE): Take two parameters.
92508
92509         * m4/ftruncate.m4: New file (derived from part of
92510         fileutils/configure.in).
92511         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
92512         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
92513
92514         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
92515         AC_SUBST these here, rather than just in sh-util/configure.in, so
92516         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
92517         all the same.
92518         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
92519         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
92520         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
92521         (AC_SUBST(POW_LIBM)): Likewise.
92522         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
92523
92524 2000-01-23  Jim Meyering  <meyering@lucent.com>
92525
92526         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
92527         obstack.c.
92528
92529 2000-01-22  Jim Meyering  <meyering@lucent.com>
92530
92531         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
92532
92533         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
92534
92535         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
92536         configure.in
92537         (AC_CHECK_HEADERS): Likewise for sh-utils.
92538         (AC_CHECK_HEADERS): Likewise for textutils.
92539         Merge the three lists of headers.
92540
92541         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
92542         from fileutils' configure.in.
92543
92544         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
92545         code. Moved tests into their own function (_jm_DECL_HEADERS) in
92546         check-decl.m4.
92547
92548         * m4/check-decl.m4: Use #if rather than #ifdef.
92549         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
92550         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
92551         (_jm_DECL_HEADERS): Define new function.
92552         (jm_CHECK_DECLARATIONS): Require it.
92553
92554 2000-01-22  Jim Meyering  <meyering@lucent.com>
92555
92556         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
92557         [! HAVE_DECL_STRTOULL]: Declare strtoull.
92558         Required for some AIX systems.  Reported by Christian Krackowizer.
92559         [TESTING] (main): New function.
92560
92561         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
92562         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
92563         letters.
92564
92565         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
92566         iswprint.
92567
92568         * lib/strverscmp.c (ISDIGIT): Define.
92569         (strverscmp): Use ISDIGIT, not isdigit.
92570
92571 2000-01-19  Jim Meyering  <meyering@lucent.com>
92572
92573         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
92574         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
92575         defines `struct timespec' in <sys/time.h>
92576
92577         * m4/c-bs-a.m4: Remove uses of changequote altogether.
92578         Thanks to Akim for explaining.
92579
92580 2000-01-17  Paul Eggert  <eggert@twinsun.com>
92581
92582         * lib/nanosleep.c (nanosleep):
92583         Don't use SA_INTERRUPT to decide whether to call sigaction, as
92584         POSIX.1 doesn't require SA_INTERRUPT and some systems
92585         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
92586         it's been part of POSIX.1 since day 1 (in 1988).
92587
92588 2000-01-17  Jim Meyering  <meyering@lucent.com>
92589
92590         * lib/interlock: Remove unused file.  Reported by François Pinard.
92591
92592 2000-01-16  Paul Eggert  <eggert@twinsun.com>
92593
92594         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
92595         alert, backslash, formfeed, and vertical tab unnecessarily in
92596         shell quoting style.
92597
92598 2000-01-16  Jim Meyering  <meyering@lucent.com>
92599
92600         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
92601         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
92602         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
92603         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
92604
92605 2000-01-16  Jim Meyering  <meyering@lucent.com>
92606
92607         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
92608         because the latter didn't work.
92609
92610 2000-01-15  Jim Meyering  <meyering@lucent.com>
92611
92612         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
92613         (AC_REPLACE_FUNCS): Add memcpy and memset.
92614         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
92615         Add strpbrk.
92616         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
92617
92618 2000-01-12  Jim Meyering  <meyering@lucent.com>
92619
92620         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
92621         (jm_PREREQ): Use it.
92622         (jm_PREREQ_READUTMP): New macro.
92623         (jm_PREREQ): Use it.
92624
92625 2000-01-11  Paul Eggert  <eggert@twinsun.com>
92626
92627         Quote multibyte characters correctly.
92628         * m4/c-bs-a.m4: New file.
92629         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
92630         (jm_PREREQ): Use it.
92631
92632 2000-01-11  Paul Eggert  <eggert@twinsun.com>
92633
92634         * m4/uintmax_t.m4: Port to autoconf 2.13.
92635
92636 2000-01-08  Jim Meyering  <meyering@ascend.com>
92637
92638         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
92639         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
92640
92641 2000-01-04  Jim Meyering  <meyering@ascend.com>
92642
92643         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
92644         jm_STRUCT_DIRENT_D_TYPE.
92645         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
92646         jm_STRUCT_DIRENT_D_INO.
92647         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
92648         jm_STRUCT_UTIMBUF.
92649         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
92650         renamings.
92651         * m4/utime.m4: Likewise.
92652
92653         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
92654         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
92655
92656 2000-01-03  Paul Eggert  <eggert@twinsun.com>
92657
92658         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
92659         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
92660
92661 2000-01-02  Jim Meyering  <meyering@ascend.com>
92662
92663         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
92664         remember if this is necessary.
92665
92666 1999-12-26  Jim Meyering  <meyering@ascend.com>
92667
92668         * m4/jm-macros.m4: Use it here.
92669         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
92670
92671 1999-12-23  Jim Meyering  <meyering@ascend.com>
92672
92673         * m4/jm-macros.m4: Check for clock_gettime (moved from
92674         fileutils/configure.in)
92675         Check for gettimeofday.
92676
92677 1999-12-20  Jim Meyering  <meyering@ascend.com>
92678
92679         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
92680         autoconf-2.14a-1999-12-20.
92681
92682 1999-12-19  Jim Meyering  <meyering@ascend.com>
92683
92684         * m4/lstat-slash.m4: New file.
92685         * m4/jm-macros.m4: Use the new macro:
92686         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
92687
92688 1999-12-07  Jim Meyering  <meyering@ascend.com>
92689
92690         * m4/perl.m4: Require that File::Compare be available, too.
92691         Too many systems seem to lack it.
92692
92693         * m4/strftime.m4: Add checks for most of the cpp macros tested in
92694         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
92695
92696 1999-11-18  Paul Eggert  <eggert@twinsun.com>
92697
92698         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
92699         problem with the QNX 4.25 shell, which doesn't propagate exit
92700         status of failed commands inside shell assignments.
92701
92702 1999-11-17  Jim Meyering  <meyering@ascend.com>
92703
92704         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
92705
92706 1999-11-07  Jim Meyering  <meyering@ascend.com>
92707
92708         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
92709
92710 1999-11-06  Jim Meyering  <meyering@ascend.com>
92711
92712         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
92713         * m4/jm-macros.m4 (jm_MACROS): Use it here.
92714
92715 1999-11-05  Jim Meyering  <meyering@ascend.com>
92716
92717         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
92718         configure.in of textutils, fileutils, and sh-utils into this one
92719         (shared between those packages) file.
92720         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
92721         AC_STRUCT_ST_BLKSIZE.
92722
92723 1999-11-03  Jim Meyering  <meyering@ascend.com>
92724
92725         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
92726         of AC_CHECK_TYPE checks includes unistd.h.
92727         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
92728         Suggestion from Akim Demaille.
92729
92730 1999-10-30  Jim Meyering  <meyering@ascend.com>
92731
92732         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
92733         m4-quoted string.
92734         * m4/ls-mntd-fs.m4: Likewise.
92735         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
92736         * m4/jm-winsz1.m4: Likewise.
92737
92738         * m4/const.m4: Remove file, since the fix made it into the experimental
92739         version of autoconf.
92740         * m4/mktime.m4: Likewise.
92741
92742         * m4/check-type.m4: Remove file, now that the latest version of
92743         AC_CHECK_TYPE takes a third arg to specify additional #includes.
92744
92745         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
92746         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
92747         AC_CHECK_TYPE.
92748
92749 1999-10-04  Jim Meyering  <meyering@ascend.com>
92750
92751         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
92752
92753 1999-09-22  Paul Eggert  <eggert@twinsun.com>
92754
92755         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
92756         2.95.1 bug with HP-UX 10.20.
92757
92758 1999-09-17  Jim Meyering  <meyering@ascend.com>
92759
92760         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
92761         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
92762         due to missing strdup (against sh-utils-2.0).
92763
92764 1999-08-29  Jim Meyering  <meyering@ascend.com>
92765
92766         * m4/jm-macros.m4: Require jm_BISON.
92767         * m4/bison.m4: New file.
92768
92769 1999-08-17  Paul Eggert  <eggert@twinsun.com>
92770
92771         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
92772         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
92773
92774 1999-08-05  Jim Meyering  <meyering@ascend.com>
92775
92776         * m4/getline.m4: Rename test file from conftestdata to conftest.data
92777         to avoid conflicts with `conftest' on 8+3 filesystems.
92778         Suggestion from Eli Zaretskii.
92779
92780 1999-08-04  Jim Meyering  <meyering@ascend.com>
92781
92782         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
92783         fileutils and sh-utils (textutils's getline test was inadequate).
92784         (AM_FUNC_GETLINE): Run this test.
92785         (AC_CHECK_FUNCS): Check for getdelim.
92786         Reported by Bob Proulx.
92787
92788 1999-08-02  Jim Meyering  <meyering@ascend.com>
92789
92790         * m4/jm-macros.m4: Add a comment.
92791
92792 1999-08-01  Paul Eggert  <eggert@twinsun.com>
92793
92794         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
92795         <inttypes.h> defines strtoumax as a macro (and not as a
92796         function).
92797
92798 1999-08-01  Paul Eggert  <eggert@twinsun.com>
92799
92800         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
92801         that we can shift, multiply and divide unsigned long long
92802         values; Ultrix cc can't do it.
92803
92804 1999-08-01  Paul Eggert  <eggert@twinsun.com>
92805
92806         * m4/mktime.m4: New file, which is a preview of what should appear
92807         in the next public autoconf release.
92808
92809 1999-08-01  Paul Eggert  <eggert@twinsun.com>
92810
92811         * m4/lfs.m4: Remove this file.
92812         * m4/largefile.m4: New file.  It contains the old contents of
92813         lfs.m4, except that all names with prefix AC_LFS have been
92814         changed to use the prefix AC_SYS_LARGEFILE instead, to be
92815         compatible with future autoconf versions.  Also, some minor m4
92816         quoting problems have been fixed.
92817
92818 1999-08-01  Paul Eggert  <eggert@twinsun.com>
92819
92820         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
92821         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
92822         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
92823         and simplify the shell code.
92824
92825 1999-08-01  Jim Meyering  <meyering@ascend.com>
92826
92827         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
92828         m4.
92829
92830 1999-07-20  Jim Meyering  <meyering@ascend.com>
92831
92832         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
92833
92834 1999-07-15  Jim Meyering  <meyering@ascend.com>
92835
92836         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
92837
92838 1999-05-22  Jim Meyering  <meyering@ascend.com>
92839
92840         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
92841
92842 1999-05-20  Jim Meyering  <meyering@ascend.com>
92843
92844         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
92845         Add a colon after each `then' in case $4 is empty.
92846
92847 1999-05-16  Jim Meyering  <meyering@ascend.com>
92848
92849         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
92850
92851 1999-05-10  Jim Meyering  <meyering@ascend.com>
92852
92853         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
92854
92855         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
92856         AC_FUNC_MKTIME.
92857
92858 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
92859
92860         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
92861
92862 1999-05-04  Paul Eggert  <eggert@twinsun.com>
92863
92864         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
92865         not CPPFLAGS, so that linking works correctly in IRIX.
92866
92867 1999-04-30  Paul Eggert  <eggert@twinsun.com>
92868
92869         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
92870
92871 1999-04-20  Paul Eggert  <eggert@twinsun.com>
92872
92873         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
92874         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
92875         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
92876         jm_AC_TYPE_UNSIGNED_LONG_LONG.
92877         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
92878
92879         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
92880
92881 1999-04-20  Jim Meyering  <meyering@ascend.com>
92882
92883         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
92884         AC_REPLACE xstroull if necessary.  From Paul Eggert.
92885         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
92886
92887 1999-04-18  Jim Meyering  <meyering@ascend.com>
92888
92889         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
92890         * m4/jm-macros.m4: Use it.
92891
92892 1999-04-06  Jim Meyering  <meyering@ascend.com>
92893
92894         * m4/strftime.m4: Remove test for %f.
92895
92896 1999-03-29  Jim Meyering  <meyering@ascend.com>
92897
92898         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
92899         superset of the AC_TYPE_* checks in the textutils, fileutils,
92900         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
92901         AC_TYPE_PID_T.
92902
92903 1999-03-28  Jim Meyering  <meyering@ascend.com>
92904
92905         * m4/jm-macros.m4: Define GNU_PACKAGE here.
92906         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
92907         replaced e.g., in the *.sh files of the sh-utils.
92908
92909 1999-03-20  Jim Meyering  <meyering@ascend.com>
92910
92911         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
92912         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
92913         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
92914
92915 1999-03-19  Jim Meyering  <meyering@ascend.com>
92916
92917         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
92918
92919 1999-03-12  Jim Meyering  <meyering@ascend.com>
92920
92921         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
92922
92923 1999-03-07  Jim Meyering  <meyering@ascend.com>
92924
92925         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
92926         declared.
92927
92928 1999-02-17  Jim Meyering  <meyering@ascend.com>
92929
92930         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
92931         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
92932
92933 1999-02-07  Jim Meyering  <meyering@ascend.com>
92934
92935         * m4/group-member.m4: New file -- extracted from sh-utils'
92936         configure.in.
92937
92938         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
92939         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
92940
92941 1999-02-06  Jim Meyering  <meyering@ascend.com>
92942
92943         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
92944         * m4/fnmatch.m4: Likewise.
92945         * m4/getgroups.m4: Likewise.
92946         * m4/lstat.m4: Likewise.
92947         * m4/malloc.m4: Likewise.
92948         * m4/putenv.m4: Likewise.
92949         * m4/realloc.m4: Likewise.
92950         * m4/regex.m4: Likewise.
92951         * m4/stat.m4: Likewise.
92952         * m4/strftime.m4: Likewise.
92953         Suggestion from Alain Magloire.
92954
92955         * m4/chown.m4: Use `.$ac_objext', not `.o'.
92956         * m4/fnmatch.m4: Likewise.
92957         * m4/getgroups.m4: Likewise.
92958         * m4/getline.m4: Likewise.
92959         * m4/lstat.m4: Likewise.
92960         * m4/malloc.m4: Likewise.
92961         * m4/memcmp.m4: Likewise.
92962         * m4/putenv.m4: Likewise.
92963         * m4/realloc.m4: Likewise.
92964         * m4/regex.m4: Likewise.
92965         * m4/stat.m4: Likewise.
92966         * m4/strftime.m4: Likewise.
92967         Suggestion from Alain Magloire.
92968
92969         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
92970         an argument.
92971
92972         * m4/regex.m4: Add a run-time Test for proper operation of
92973         re_compile_pattern.
92974
92975 1999-01-31  Jim Meyering  <meyering@ascend.com>
92976
92977         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
92978
92979 1999-01-30  Jim Meyering  <meyering@ascend.com>
92980
92981         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
92982
92983         * m4/jm-mktime.m4: Make this a wrapper around the official
92984         AM_FUNC_MKTIME rather than my private copy, now that the official one
92985         is up to date.
92986         * m4/mktime.m4: Remove file.
92987
92988         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
92989         * m4/uptime.m4: Likewise.
92990         * m4/uintmax_t.m4: Likewise.
92991
92992 1999-01-28  Jim Meyering  <meyering@ascend.com>
92993
92994         * m4/jm-macros.m4: Use jm_AFS.
92995         * m4/afs.m4: New file (from fileutils' configure.in).
92996
92997         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
92998         * m4/chown.m4: Likewise.
92999         * m4/d-ino.m4: Likewise.
93000         * m4/d-type.m4: Likewise.
93001         * m4/fnmatch.m4: Likewise.
93002         * m4/getgroups.m4: Likewise.
93003         * m4/gettext.m4: Likewise.
93004         * m4/jm-mktime.m4: Likewise.
93005         * m4/jm-winsz2.m4: Likewise.
93006         * m4/lcmessage.m4: Likewise.
93007         * m4/ls-mntd-fs.m4: Likewise.
93008         * m4/malloc.m4: Likewise.
93009         * m4/memcmp.m4: Likewise.
93010         * m4/putenv.m4: Likewise.
93011         * m4/realloc.m4: Likewise.
93012         * m4/st_mtim.m4: Likewise.
93013         * m4/strftime.m4: Likewise.
93014
93015 1999-01-16  Jim Meyering  <meyering@ascend.com>
93016
93017         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
93018         (ARGMATCH_DIE_DECL): Define.
93019
93020 1999-01-12  Jim Meyering  <meyering@ascend.com>
93021
93022         * m4/Makefile.am.in: Rewrite to avoid using fmt.
93023         Reported by Lars Hecking.
93024
93025 1999-01-10  Jim Meyering  <meyering@ascend.com>
93026
93027         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
93028         gross kludge.
93029         * m4/inttypes_h.m4: Likewise.
93030         * m4/lstat.m4: Likewise.
93031         * m4/malloc.m4: Likewise.
93032         * m4/readdir.m4: Likewise.
93033         * m4/realloc.m4: Likewise.
93034         * m4/st_dm_mode.m4: Likewise.
93035         * m4/stat.m4: Likewise.
93036         * m4/utimbuf.m4: Likewise.
93037         * m4/utimes.m4: Likewise.
93038
93039         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
93040         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
93041         comments in config.h.in are meaningful.
93042
93043         * m4/jm-macros.m4: Require autoconf-2.13 here.
93044
93045         * m4/regex.m4: By default, don't use the included regex.c on systems
93046         with glibc 2.  Suggestion from Uli Drepper.
93047
93048 1999-01-02  Jim Meyering  <meyering@ascend.com>
93049
93050         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
93051
93052 1998-12-18  Jim Meyering  <meyering@ascend.com>
93053
93054         * m4/Makefile.am.in (Makefile.am): Simplify rule.
93055         Based on a suggestion from Lars Hecking.
93056
93057 1998-11-16  Paul Eggert  <eggert@twinsun.com>
93058
93059         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
93060
93061 1998-11-16  Jim Meyering  <meyering@ascend.com>
93062
93063         * m4/lfs.m4: Double-quote the `uname...` expression.
93064
93065 1998-11-14  Jim Meyering  <meyering@ascend.com>
93066
93067         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
93068         * m4/stat.m4: Likewise.
93069
93070 1998-11-03  Jim Meyering  <meyering@ascend.com>
93071
93072         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
93073         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
93074
93075 1998-10-18  Jim Meyering  <meyering@ascend.com>
93076
93077         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
93078
93079 1998-10-17  Jim Meyering  <meyering@ascend.com>
93080
93081         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
93082         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
93083         calls for those previously hard-coded headers.  Instead, take a new
93084         parameter.
93085         (jm_CHECK_DECLARATIONS): Reflect interface change.
93086         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
93087         (jm_CHECK_DECL_LOCALTIME_R): New macro.
93088
93089         * m4/mktime.m4: Test for spring-forward gap before long-running test.
93090
93091 1998-10-14  Jim Meyering  <meyering@ascend.com>
93092
93093         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
93094         instead of "TZ=America/Vancouver".  From Paul Eggert.
93095
93096 1998-10-11  Jim Meyering  <meyering@ascend.com>
93097
93098         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
93099         This adds a test for a recently added compatibility fix for mktime.c.
93100         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
93101
93102 1998-09-27  Jim Meyering  <meyering@ascend.com>
93103
93104         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
93105
93106         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
93107         ../configure.in, including a change from Gordon Matzigkeit to allow
93108         cross-compiling for the Hurd.
93109
93110         * m4/glibc.m4: New file/macro to test for the GNU C Library
93111         versions 1 and 2.  From Gordon Matzigkeit.
93112         Indent.
93113
93114 1998-09-21  Jim Meyering  <meyering@ascend.com>
93115
93116         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
93117
93118 1998-08-18  Paul Eggert  <eggert@twinsun.com>
93119
93120         Port nanosecond-resolution times to UnixWare 2.1.2 and
93121         pedantic Solaris 2.6.
93122
93123         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
93124         AC_STRUCT_ST_MTIM.
93125         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
93126         Generate name of ns member, instead of just 1 or undef.
93127         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
93128
93129 1998-08-15  Jim Meyering  <meyering@ascend.com>
93130
93131         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
93132         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
93133         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
93134         instead of jm_TYPE_SSIZE_T.
93135
93136 1998-08-12  Jim Meyering  <meyering@ascend.com>
93137
93138         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
93139
93140 1998-08-02  Jim Meyering  <meyering@ascend.com>
93141
93142         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
93143         in acconfig.h manually.
93144
93145 1998-07-31  Paul Eggert  <eggert@twinsun.com>
93146
93147         * m4/st_mtim.m4: New file.
93148
93149 1998-07-28  Jim Meyering  <meyering@ascend.com>
93150
93151         * m4/utimes.m4: Undef stat.
93152
93153 1998-07-25  Jim Meyering  <meyering@ascend.com>
93154
93155         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
93156         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
93157
93158 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
93159
93160         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
93161         uid and gid actually remain unchanged.
93162
93163 1998-07-07  Jim Meyering  <meyering@ascend.com>
93164
93165         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
93166
93167 1998-07-04  Jim Meyering  <meyering@ascend.com>
93168
93169         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
93170         to prove that this macro can be used in packages without regex.c.
93171
93172 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
93173
93174         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
93175         is to be used.
93176
93177 1998-07-03  Jim Meyering  <meyering@ascend.com>
93178
93179         * m4/gettext.m4: Add -lintl if it's found to be necessary.
93180
93181         * m4/gettext.m4: New file -- from gettext-0.10.35.
93182         * m4/lcmessage.m4: Likewise.
93183         * m4/progtest.m4: Likewise.
93184
93185         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
93186         * m4/jm-macros.m4: Require the new macro.
93187
93188 1998-06-29  Jim Meyering  <meyering@ascend.com>
93189
93190         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
93191         for the definition of NGROUPS (used in a system header included
93192         by sys/mount.h).
93193
93194 1998-06-28  Jim Meyering  <meyering@ascend.com>
93195
93196         * m4/ls-mntd-fs.m4: New file.
93197         * m4/fstypename.m4: New file.
93198
93199         * m4/jm-macros.m4: Require the new macro.
93200         * m4/jm-glibc-io.m4: New file.
93201
93202 1998-05-19  Jim Meyering  <meyering@ascend.com>
93203
93204         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
93205         * m4/lchown.m4: New file.
93206
93207         * m4/Makefile.am.in: New file.
93208         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
93209
93210 1998-05-14  Jim Meyering  <meyering@ascend.com>
93211
93212         * m4/Makefile.am (EXTRA_DIST): Add them.
93213         * m4/jm-macros.m4: New file.
93214         * m4/utimbuf.m4: New file.
93215
93216 1998-05-12  Jim Meyering  <meyering@ascend.com>
93217
93218         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
93219
93220 1998-05-11  Jim Meyering  <meyering@ascend.com>
93221
93222         * m4/isc-posix.m4: New file.
93223
93224 1998-05-10  Jim Meyering  <meyering@ascend.com>
93225
93226         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
93227
93228 1998-05-09  Jim Meyering  <meyering@ascend.com>
93229
93230         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
93231         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
93232         with automake.
93233
93234         * m4/ssize_t.m4: New file.
93235         * m4/mktime.m4: Remove file -- the new automake has this now.
93236
93237 1998-04-26  Jim Meyering  <meyering@ascend.com>
93238
93239         * m4/assert.m4: New file.
93240         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
93241
93242 1998-04-05  Jim Meyering  <meyering@ascend.com>
93243
93244         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
93245         (jm_PREREQ): Use it here.
93246
93247 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
93248
93249         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
93250         in acconfig.h.
93251
93252 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
93253
93254         * m4/prereq.m4: New file.
93255         * m4/error.m4: New file.
93256         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
93257
93258 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
93259
93260         * m4/getline.m4: Don't set am_cv_func_working_getline before the
93261         cache-check for the same variable -- that defeated the purpose of
93262         the test; the test program was never run.  This was a problem only
93263         on systems with losing getline functions -- HP-UX 10.20 is one.
93264         Reported by Bjorn Helgaas.
93265
93266 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
93267
93268         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
93269
93270 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
93271
93272         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
93273
93274         * m4/const.m4: New file.  Use an initializer in this declaration
93275         typedef int charset[2]; const charset x;
93276         Reported by Bob Glickstein.
93277
93278 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
93279
93280         * m4/chown.m4: Fix reversed types on -1 args to chown.
93281         From Kaveh Ghazi.
93282
93283 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
93284
93285         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
93286         Add lseek and memchr.
93287
93288         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
93289         T.E.Dickey <dickey@clark.net> said that some older preprocessors
93290         have a 20-character limit on names.
93291
93292 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
93293
93294         * m4/inttypes_h.m4: New file.
93295         * m4/uintmax_t.m4: New file.
93296         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
93297
93298
93299         -----
93300
93301         Local Variables:
93302         coding: utf-8
93303         End:
93304
93305         Copyright (C) 1997-2012 Free Software Foundation, Inc.
93306
93307         Copying and distribution of this file, with or without
93308         modification, are permitted provided the copyright notice
93309         and this notice are preserved.